/*
Theme Name: Expert Déco, la grille suisse
Theme URI: https://expert-deco.fr/
Description: Magazine de la maison pratique. Une grille de 12 colonnes tient tout le site, chaque rubrique a son motif. Porté depuis la maquette Impeccable maquettes/expert-deco/grille (19/11/2026).
Version: 1.0.1
Text Domain: expert-deco-grille
*/
/* Expert Déco, la grille suisse. Une grille de 12 colonnes tient tout le magazine.
   Contrastes (WCAG) calculés sur --papier #F2F2F0 (luminance 0,888) :
   --encre #121212 : 17,6:1 ; --encre-2 #45453F : 9,0:1 ; --rouge #C4301F en texte : 5,3:1 ;
   blanc #FFFFFF sur --rouge-plein #D2342A : 4,8:1 ; blanc sur --encre : 18,9:1 ;
   --gris #BFBFBA : décor seulement, jamais en texte. */
:root {
  --papier: #F2F2F0;
  --blanc: #FBFBFA;
  --encre: #121212;
  --encre-2: #45453F;
  --gris: #BFBFBA;
  --gris-clair: #DADAD6;
  --rouge-plein: #D2342A;
  --rouge: #C4301F;
  --f-titre: "Funnel Display", "Helvetica Neue", Arial, sans-serif;
  --f-texte: "Funnel Sans", "Helvetica Neue", Arial, sans-serif;
  /* gamme fermée */
  --t-1: 0.8125rem;  /* 13 */
  --t-2: 0.9375rem;  /* 15 */
  --t-3: 1.0625rem;  /* 17, texte courant */
  --t-4: 1.375rem;   /* 22 */
  --t-5: 1.875rem;   /* 30 */
  --t-6: 2.5rem;     /* 40 */
  --t-7: 3.5rem;     /* 56 */
  --t-8: clamp(3.4rem, 8.4vw, 8.25rem); /* nom du magazine */
  --gout: clamp(16px, 2.2vw, 32px);
  --marge: clamp(16px, 2.8vw, 40px);
  --rythme: clamp(72px, 9vw, 128px);
  --filet: 3px;
  --sortie: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; max-width: 100%; -webkit-text-size-adjust: 100%; scrollbar-color: var(--encre) var(--gris-clair); }
body { margin: 0; max-width: 100%; background: var(--papier); color: var(--encre); font: 400 var(--t-3)/1.55 var(--f-texte); font-feature-settings: "tnum" 0; -webkit-font-smoothing: antialiased; }
::selection { background: var(--rouge-plein); color: #fff; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--gris-clair); }
::-webkit-scrollbar-thumb { background: var(--encre); border: 3px solid var(--gris-clair); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
input, button { font: inherit; color: inherit; caret-color: var(--rouge-plein); }
:focus-visible { outline: 3px solid var(--rouge-plein); outline-offset: 3px; }
.gr-evite { position: absolute; left: -9999px; top: 0; background: var(--encre); color: #fff; padding: 12px 16px; z-index: 300; }
.gr-evite:focus { left: var(--marge); }
.gr-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* La grille */
.gr-g { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gout); padding-inline: var(--marge); max-width: 1600px; margin-inline: auto; }

/* Rail */
.gr-rail { padding-top: 22px; align-items: start; }
.gr-rail::before { content: ""; grid-column: 1 / 7; height: var(--filet); background: var(--encre); margin-right: calc(var(--gout) * -0.5); }
.gr-rail::after { content: ""; grid-column: 7 / 13; grid-row: 1; height: var(--filet); background: var(--encre); margin-left: calc(var(--gout) * 0.5); }
.gr-marque { grid-column: 1 / 5; grid-row: 2; display: inline-flex; align-items: center; gap: 14px; margin-top: 18px; text-decoration: none; font: 700 var(--t-4)/1 var(--f-titre); letter-spacing: -0.01em; }
.gr-marque svg { width: 40px; height: 28px; flex: none; }
.gr-nav { grid-column: 7 / 13; grid-row: 2; margin-top: 18px; }
.gr-nav ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, auto); justify-content: space-between; }
.gr-nav a { display: inline-block; padding: 6px 0; font: 600 var(--t-2)/1.2 var(--f-titre); text-decoration: none; position: relative; }
.gr-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: var(--filet); background: var(--rouge-plein); transform: scaleX(0); transform-origin: left; transition: transform .42s var(--sortie); }
.gr-nav a:hover::after, .gr-nav a[aria-current="page"]::after { transform: scaleX(1); }
.gr-nav a[aria-current="page"] { color: var(--rouge); }


/* Manchette */
.gr-une { row-gap: clamp(18px, 2vw, 28px); padding-top: clamp(22px, 3vw, 40px); }
.gr-titre { grid-column: 1 / 8; grid-row: 1; margin: 0; align-self: start; }
.gr-titre-nom { display: block; font: 800 var(--t-8)/0.86 var(--f-titre); letter-spacing: -0.04em; }
.gr-titre br { display: none; }
.gr-titre em { display: block; margin-top: 0.22em; font: 300 clamp(1.6rem, 3.2vw, 3rem)/1.05 var(--f-titre); font-style: normal; letter-spacing: -0.02em; }
.gr-arc { display: none; grid-column: 8 / 9; grid-row: 1; align-self: end; justify-self: end; width: clamp(90px, 9vw, 150px); aspect-ratio: 2 / 1; border: clamp(14px, 1.4vw, 22px) solid var(--gris); border-bottom: 0; border-radius: 999px 999px 0 0; margin-bottom: -8px; }
.gr-photo-une { grid-column: 9 / 13; grid-row: 1 / 3; margin: 0; position: relative; overflow: hidden; background: var(--gris-clair); }
.gr-photo-une img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.gr-photo-une { min-height: 240px; }
.gr-une-art { grid-column: 1 / 6; grid-row: 2; align-self: end; border-top: 1px solid var(--encre); padding-top: 22px; }
.gr-une-art h2 { margin: 0 0 14px; font: 600 var(--t-6)/1.04 var(--f-titre); letter-spacing: -0.025em; text-wrap: balance; }
.gr-une-art h2 a { text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: var(--filet); text-underline-offset: 0.14em; transition: text-decoration-color .3s var(--sortie); }
.gr-une-art h2 a:hover { text-decoration-color: var(--rouge-plein); }
.gr-une-art p { margin: 0 0 16px; max-width: 46ch; color: var(--encre-2); }
.gr-sign { font-size: var(--t-2); color: var(--encre-2); }
.gr-sign b { color: var(--encre); font-weight: 600; }
.gr-sign .gr-rub { color: var(--rouge); font-weight: 600; text-decoration: none; }
.gr-fragment { grid-column: 6 / 9; grid-row: 2; margin: 0; align-self: end; overflow: hidden; }
.gr-fragment img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 70% 40%; }
.gr-outils-court { grid-column: 6 / 9; grid-row: 2; align-self: end; border-top: 1px solid var(--encre); padding-top: 14px; }
.gr-outils-court h2 { margin: 0 0 8px; font: 700 var(--t-2)/1.2 var(--f-titre); }
.gr-outils-court ul { list-style: none; margin: 0; padding: 0; }
.gr-outils-court li { border-bottom: 1px solid var(--gris); }
.gr-outils-court a { display: block; padding: 7px 0; font-size: var(--t-2); text-decoration: none; transition: color .2s; }
.gr-outils-court a:hover { color: var(--rouge); }


/* Le registre des rubriques : signature */
.gr-registre-l { grid-column: 1 / 13; grid-row: 3; display: grid; grid-template-columns: 3fr 3fr 2fr 2fr 2fr; gap: var(--gout); padding-top: 4px; }
.gr-barre { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 150px; padding: 16px 20px; overflow: hidden; text-decoration: none; color: #fff; background: var(--encre); isolation: isolate; transition: transform .42s var(--sortie); }
.gr-barre b { font: 800 var(--t-5)/1 var(--f-titre); letter-spacing: -0.02em; position: relative; z-index: 2; }
.gr-barre span { font-size: var(--t-2); position: relative; z-index: 2; font-variant-numeric: tabular-nums; }
.gr-barre i { position: absolute; z-index: 1; transition: transform .42s var(--sortie); }
.gr-barre:hover i, .gr-barre:focus-visible i { transform: translateX(var(--pas, 24px)); }
.gr-barre:hover, .gr-barre:focus-visible { transform: translateY(-6px); }
.gr-b-maison { background: var(--rouge-plein); }
.gr-b-maison i { width: 300px; height: 300px; right: -70px; top: -30px; border-radius: 50%; border: 34px solid var(--encre); }
.gr-b-travaux i { right: 0; top: 0; bottom: 0; width: 40%; background: linear-gradient(var(--gris), var(--gris)) 0 0 / 14% 100% no-repeat, linear-gradient(var(--gris), var(--gris)) 33% 0 / 14% 100% no-repeat, linear-gradient(var(--gris), var(--gris)) 66% 0 / 14% 100% no-repeat, linear-gradient(var(--gris), var(--gris)) 100% 0 / 14% 100% no-repeat; }
.gr-b-deco { background: var(--gris); color: var(--encre); }
.gr-b-deco i { width: 96px; height: 96px; right: -30px; top: 56px; border-radius: 50%; background: var(--encre); }
.gr-b-immo { background: var(--papier); color: var(--encre); box-shadow: inset 0 var(--filet) 0 var(--encre); }
.gr-b-immo i { right: 18px; bottom: 18px; width: 62px; height: 62px; background: linear-gradient(var(--encre), var(--encre)) 0 0 / 100% 18px no-repeat, linear-gradient(var(--encre), var(--encre)) 0 0 / 18px 100% no-repeat; }
.gr-b-nuis i { right: 18px; top: 62px; width: 70px; height: 70px; background: radial-gradient(circle, #fff 9px, transparent 10px) 0 0 / 36px 36px; }

/* Sections */
.gr-sec { padding-block: var(--rythme) 0; }
.gr-sec-t { grid-column: 1 / 13; display: grid; grid-template-columns: subgrid; align-items: end; border-top: var(--filet) solid var(--encre); padding-top: 18px; margin-bottom: clamp(28px, 3vw, 44px); }
.gr-sec-t h2 { grid-column: 1 / 8; margin: 0; font: 800 var(--t-7)/0.95 var(--f-titre); letter-spacing: -0.035em; }
.gr-sec-t p { grid-column: 9 / 13; margin: 0; color: var(--encre-2); font-size: var(--t-2); max-width: 40ch; }

/* Le journal : 5 en photo, puis l'index */
.gr-semaine { grid-column: 1 / 13; display: grid; grid-template-columns: subgrid; row-gap: clamp(28px, 3vw, 44px); }
.gr-carte { margin: 0; text-decoration: none; display: block; }
.gr-carte .gr-cadre { overflow: hidden; background: var(--gris-clair); }
.gr-carte img { width: 100%; object-fit: cover; transition: transform .7s var(--sortie); }
.gr-carte:hover img { transform: scale(1.035); }
.gr-carte h3 { margin: 14px 0 6px; font: 600 var(--t-4)/1.15 var(--f-titre); letter-spacing: -0.015em; text-wrap: balance; }
.gr-carte:hover h3 { color: var(--rouge); }
.gr-carte p { margin: 0; font-size: var(--t-1); color: var(--encre-2); }
.gr-c1 { grid-column: 1 / 7; } .gr-c1 img { aspect-ratio: 3 / 2; } .gr-c1 h3 { font-size: var(--t-5); }
.gr-c2 { grid-column: 7 / 10; } .gr-c2 img { aspect-ratio: 3 / 4; }
.gr-c3 { grid-column: 10 / 13; padding-top: 18%; } .gr-c3 img { aspect-ratio: 1; }
.gr-c4 { grid-column: 1 / 4; } .gr-c4 img { aspect-ratio: 4 / 3; }
.gr-c5 { grid-column: 4 / 9; } .gr-c5 img { aspect-ratio: 16 / 9; }
.gr-c6 { grid-column: 9 / 13; } .gr-c6 img { aspect-ratio: 4 / 3; }

.gr-index { grid-column: 1 / 13; display: grid; grid-template-columns: subgrid; margin-top: clamp(48px, 5vw, 72px); }
.gr-mois { grid-column: 1 / 3; margin: 0; padding-top: 14px; border-top: var(--filet) solid var(--encre); font: 700 var(--t-4)/1.1 var(--f-titre); align-self: start; position: sticky; top: 16px; }
.gr-lignes { grid-column: 3 / 13; list-style: none; margin: 0 0 var(--gout); padding: 0; border-top: var(--filet) solid var(--encre); }
.gr-lignes li { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) 8rem 4.5rem 64px; gap: var(--gout); align-items: center; padding: 10px 0; border-bottom: 1px solid var(--gris); position: relative; }
.gr-lignes time { font: 700 var(--t-3)/1 var(--f-titre); color: var(--encre); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.gr-lignes .gr-min { font-size: var(--t-1); color: var(--encre-2); font-variant-numeric: tabular-nums; }
.gr-lignes a { font: 500 var(--t-3)/1.3 var(--f-titre); text-decoration: none; }
.gr-lignes a::after { content: ""; position: absolute; inset: 0; }
.gr-lignes li::before { content: ""; position: absolute; left: 0; top: -1px; height: var(--filet); width: 0; background: var(--rouge-plein); transition: width .42s var(--sortie); }
.gr-lignes li:hover::before, .gr-lignes li:focus-within::before { width: 100%; }
.gr-lignes li:hover a { color: var(--rouge); }
.gr-lignes .gr-r { font-size: var(--t-1); font-weight: 600; }
.gr-lignes img { width: 64px; height: 44px; object-fit: cover; }

/* Les instruments : aplat d'encre */
.gr-instr { padding-top: var(--rythme); }
.gr-instr-l { grid-column: 7 / 13; list-style: none; margin: 0; padding: 0; border-top: var(--filet) solid var(--encre); }
.gr-instr-l li { border-bottom: 1px solid var(--gris); }
.gr-instr-l a { display: grid; grid-template-columns: 34px minmax(0, 1fr) 7.5rem; gap: 4px var(--gout); align-items: center; padding: 14px 0; text-decoration: none; }
.gr-instr-l i { grid-row: 1 / 3; width: 30px; height: 30px; display: block; transition: transform .42s var(--sortie); }
.gr-instr-l b { font: 600 var(--t-4)/1.15 var(--f-titre); }
.gr-instr-l span { grid-column: 2; font-size: var(--t-2); color: var(--encre-2); }
.gr-instr-l small { grid-column: 3; grid-row: 1 / 3; justify-self: end; font: 600 var(--t-1)/1 var(--f-titre); color: var(--encre-2); }
.gr-instr-l a:hover b, .gr-instr-l a:focus-visible b { color: var(--rouge); }
.gr-instr-l a:hover i, .gr-instr-l a:focus-visible i { transform: translateX(6px); }
.gr-principal { grid-column: 1 / 7; border-top: var(--filet) solid var(--encre); padding-top: 18px; text-decoration: none; display: block; padding-right: var(--gout); }
.gr-principal b { display: block; font: 800 var(--t-6)/1.02 var(--f-titre); letter-spacing: -0.025em; }
.gr-principal > span { display: block; margin-top: 12px; max-width: 52ch; color: var(--encre-2); }
.gr-principal .gr-princ-img { margin-top: 20px; overflow: hidden; }
.gr-principal img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .7s var(--sortie); }
.gr-principal:hover img { transform: scale(1.03); }
.gr-principal em { font-style: normal; display: inline-flex; align-items: stretch; margin-top: 20px; padding-left: 20px; background: var(--rouge-plein); color: #fff; font: 700 var(--t-2)/48px var(--f-titre); }
.gr-principal em::after { content: ""; width: 8px; margin-left: 22px; background: var(--encre); transition: width .42s var(--sortie); }
.gr-principal:hover em::after { width: 16px; }
.m-anneau { border-radius: 50%; border: 7px solid var(--encre); }
.m-rayures { background: linear-gradient(var(--encre), var(--encre)) 0 0 / 6px 100% no-repeat, linear-gradient(var(--encre), var(--encre)) 12px 0 / 6px 100% no-repeat, linear-gradient(var(--encre), var(--encre)) 24px 0 / 6px 100% no-repeat, linear-gradient(var(--encre), var(--encre)) 38px 0 / 6px 100% no-repeat; }
.m-demi { border-radius: 30px 30px 0 0; background: var(--encre); height: 15px !important; align-self: center; }
.m-equerre { background: linear-gradient(var(--encre), var(--encre)) 0 0 / 100% 12px no-repeat, linear-gradient(var(--encre), var(--encre)) 0 0 / 12px 100% no-repeat; }
.m-points { background: radial-gradient(circle, var(--encre) 3px, transparent 4px) 0 0 / 10px 10px; }
.m-barres { background: linear-gradient(var(--encre), var(--encre)) 0 0 / 100% 8px no-repeat, linear-gradient(var(--encre), var(--encre)) 0 18px / 70% 8px no-repeat, linear-gradient(var(--encre), var(--encre)) 0 36px / 40% 8px no-repeat; }
.m-carre { border: 7px solid var(--encre); }
.m-quart { border-radius: 0 30px 0 0; background: var(--encre); }
.m-croix { background: linear-gradient(var(--encre), var(--encre)) 50% 0 / 9px 100% no-repeat, linear-gradient(var(--encre), var(--encre)) 0 50% / 100% 9px no-repeat; }

/* Sophie */
.gr-sophie { padding-block: var(--rythme); align-items: end; }
.gr-sophie-txt { grid-column: 1 / 7; }
.gr-sophie-txt h2 { margin: 0 0 22px; font: 800 var(--t-7)/0.95 var(--f-titre); letter-spacing: -0.035em; }
.gr-sophie-txt p { margin: 0 0 1em; max-width: 60ch; }
.gr-sophie-txt .gr-lead { font: 400 var(--t-4)/1.4 var(--f-texte); max-width: 34ch; color: var(--encre); }
.gr-sophie-txt a { color: var(--rouge); font-weight: 600; }
.gr-sophie-fig { grid-column: 8 / 12; margin: 0; position: relative; }
.gr-sophie-fig img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; }
.gr-sophie-fig figcaption { margin-top: 10px; font-size: var(--t-1); color: var(--encre-2); }
.gr-sophie-cote { display: none; }

/* Pied */
.gr-pied { background: var(--encre); color: #fff; padding-block: 56px 28px; }
.gr-pied-nom { grid-column: 1 / 13; margin: 0 0 40px; font: 800 clamp(3rem, 11vw, 11rem)/0.82 var(--f-titre); letter-spacing: -0.045em; color: var(--papier); }
.gr-pied-nom span { color: var(--gris); }
.gr-pied-a { grid-column: 1 / 5; color: #CFCFCB; font-size: var(--t-2); max-width: 36ch; margin: 0; }
.gr-pied-b { grid-column: 5 / 7; }
.gr-pied-c { grid-column: 7 / 11; }
.gr-pied-d { grid-column: 11 / 13; }
.gr-pied h2 { margin: 0 0 10px; font: 700 var(--t-2)/1.2 var(--f-titre); color: #fff; border-top: var(--filet) solid #fff; padding-top: 10px; }
.gr-pied ul { list-style: none; margin: 0; padding: 0; }
.gr-pied li a { display: block; padding: 5px 0; font-size: var(--t-2); color: #E2E2DE; text-decoration: none; }
.gr-pied li a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--rouge-plein); }
.gr-pied-fin { grid-column: 1 / 13; margin-top: 44px; padding-top: 14px; border-top: 1px solid #4A4A46; font-size: var(--t-1); color: #CFCFCB; }

/* Révélation : visible par défaut, le JS ne fait qu'animer */
.gr-js [data-revele] { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--sortie), transform .8s var(--sortie); }
.gr-js [data-revele].gr-vu { opacity: 1; transform: none; }

/* Menu mobile */
.gr-menu { position: fixed; inset: 0; z-index: 200; background: var(--encre); color: #fff; padding: 22px var(--marge); display: none; flex-direction: column; }
.gr-menu.gr-ouvert { display: flex; }
.gr-menu-h { display: flex; justify-content: space-between; align-items: center; border-top: var(--filet) solid #fff; padding-top: 14px; }
.gr-menu ul { list-style: none; margin: 40px 0 0; padding: 0; }
.gr-menu li { border-bottom: 1px solid #4A4A46; }
.gr-menu li a { display: block; padding: 14px 0; font: 700 var(--t-6)/1 var(--f-titre); color: #fff !important; text-decoration: none; letter-spacing: -0.02em; }
.gr-menu li:first-child a { color: #fff; }
.gr-btn-ico { background: none; border: 0; padding: 10px; margin: -10px; cursor: pointer; display: inline-flex; }
.gr-btn-ico svg { width: 28px; height: 28px; }
.gr-rail .gr-ouvre { display: none; }

@media (max-width: 1100px) {
  .gr-nav ul { gap: 18px; justify-content: end; }
  .gr-registre-l { grid-template-columns: repeat(6, 1fr); }
  .gr-barre:nth-child(1), .gr-barre:nth-child(2) { grid-column: span 3; }
  .gr-barre:nth-child(n+3) { grid-column: span 2; }
}
@media (max-width: 860px) {
  .gr-g { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .gr-rail::before { grid-column: 1 / 5; margin: 0; }
  .gr-rail::after { display: none; }
  .gr-marque { grid-column: 1 / 4; }
  .gr-nav { display: none; }
  .gr-rail .gr-ouvre { display: inline-flex; grid-column: 4 / 5; grid-row: 2; justify-self: end; margin-top: 12px; }
  .gr-titre, .gr-photo-une, .gr-une-art, .gr-fragment, .gr-outils-court, .gr-registre-l { grid-column: 1 / -1; grid-row: auto; }
  .gr-arc { display: none; display: none; }
  .gr-photo-une img { position: static; min-height: 0; aspect-ratio: 4 / 3; }
  .gr-fragment { display: none; }
  .gr-registre-l { grid-template-columns: 1fr; gap: 8px; }
  .gr-barre { min-height: 84px; grid-column: auto !important; flex-direction: row; align-items: center; }
  .gr-barre b { font-size: var(--t-4); }
  .gr-barre span { margin-left: auto; margin-right: 112px; }
  .gr-b-maison i { width: 130px; height: 130px; right: -48px; top: -24px; border-width: 20px; }
  .gr-b-travaux i { width: 76px; }
  .gr-b-deco i { width: 64px; height: 64px; right: 14px; top: 10px; }
  .gr-b-immo i { right: 16px; bottom: 14px; width: 48px; height: 48px; background-size: 100% 14px, 14px 100%; }
  .gr-b-nuis i { right: 14px; top: 14px; width: 56px; height: 56px; background-size: 28px 28px; }
  .gr-sec-t h2, .gr-sec-t p { grid-column: 1 / -1; }
  .gr-sec-t p { margin-top: 12px; }
  .gr-semaine { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--gout); }
  .gr-c1, .gr-c4, .gr-c5, .gr-c6 { grid-column: 1 / -1; padding-top: 0; }
  .gr-c2 { grid-column: 1 / 2; padding-top: 0; } .gr-c3 { grid-column: 2 / 3; padding-top: 0; }
  .gr-c2 img, .gr-c3 img { aspect-ratio: 1; }
  .gr-c2 h3, .gr-c3 h3 { font-size: var(--t-3); }
  .gr-mois { grid-column: 1 / -1; position: static; }
  .gr-lignes { grid-column: 1 / -1; border-top: 0; }
  .gr-lignes li { grid-template-columns: 3.6rem minmax(0, 1fr) 56px; }
  .gr-lignes .gr-r, .gr-lignes .gr-min { display: none; }
  .gr-lignes img { width: 56px; height: 40px; }
  .gr-instr-l, .gr-principal { grid-column: 1 / -1; }
  .gr-instr-l { margin-top: 36px; }
  .gr-instr-l a { grid-template-columns: 30px minmax(0, 1fr); }
  .gr-instr-l small { grid-column: 2; grid-row: auto; justify-self: start; }
  .gr-principal b { font-size: var(--t-5); }
  .gr-sophie-txt, .gr-sophie-fig { grid-column: 1 / -1; }
  .gr-sophie-fig { order: -1; margin-bottom: 28px; max-width: 360px; }
  .gr-sophie-cote { display: none; }
  .gr-pied-a, .gr-pied-b, .gr-pied-c, .gr-pied-d, .gr-pied-nom, .gr-pied-fin { grid-column: 1 / -1; }
  .gr-pied-b, .gr-pied-c, .gr-pied-d { margin-top: 28px; }
  :root { --t-7: 2.5rem; --t-6: 2rem; }
}

/* Page de l'identificateur */
.gr-ariane { grid-column: 1 / 13; margin: 0; padding-top: 26px; font-size: var(--t-1); color: var(--encre-2); }
.gr-ariane a { color: var(--encre); }
.gr-n-tete { row-gap: 12px; align-items: end; padding-bottom: clamp(32px, 4vw, 56px); position: relative; }
.gr-n-h1 { grid-column: 1 / 9; margin: 6px 0 0; font: 800 clamp(3rem, 7.4vw, 7.25rem)/0.9 var(--f-titre); letter-spacing: -0.04em; text-wrap: balance; }
.gr-n-intro { grid-column: 9 / 13; margin: 0; max-width: 40ch; color: var(--encre-2); }
.gr-n-arc { position: absolute; right: var(--marge); top: 24px; width: 120px; height: 60px; border: 18px solid var(--gris); border-bottom: 0; border-radius: 999px 999px 0 0; }
.gr-n-corps { align-items: start; border-top: var(--filet) solid var(--encre); padding-top: 24px; }
.gr-criteres { grid-column: 1 / 5; position: sticky; top: 16px; }
.gr-crit { border: 0; margin: 0 0 18px; padding: 0 0 14px; border-bottom: 1px solid var(--gris); }
.gr-crit legend { padding: 0; margin-bottom: 8px; font: 700 var(--t-2)/1.2 var(--f-titre); }
.gr-opts { position: relative; display: flex; flex-wrap: wrap; gap: 8px; }
.gr-opt { background: none; border: 1px solid var(--gris); padding: 6px 10px; position: relative; cursor: pointer; font-size: var(--t-2); color: var(--encre-2); text-align: left; transition: color .2s; }
.gr-opt:hover, .gr-opt:focus-visible { color: var(--encre); border-color: var(--encre); }
.gr-opt[aria-pressed="true"] { color: var(--encre); font-weight: 600; border-color: var(--encre); }
.gr-curseur { position: absolute; left: 0; top: 0; height: var(--filet); background: var(--rouge-plein); opacity: 0; pointer-events: none; transition: transform .42s var(--sortie), width .42s var(--sortie), opacity .2s; }
.gr-raz { background: none; border: 0; padding: 8px 0; cursor: pointer; font: 600 var(--t-2)/1 var(--f-titre); text-decoration: underline; text-underline-offset: 0.25em; }
.gr-resultats { grid-column: 5 / 13; }
.gr-compte { margin: 0 0 12px; font-size: var(--t-2); color: var(--encre-2); }
.gr-compte b { font: 800 var(--t-6)/1 var(--f-titre); color: var(--encre); margin-right: 8px; font-variant-numeric: tabular-nums; }
.gr-especes { list-style: none; margin: 0; padding: 0; border-top: var(--filet) solid var(--encre); }
.gr-esp { border-bottom: 1px solid var(--gris); position: relative; }
.gr-esp::before { content: ""; position: absolute; left: 0; top: -1px; height: var(--filet); width: 0; background: var(--rouge-plein); transition: width .42s var(--sortie); }
.gr-esp.gr-ouverte::before, .gr-esp:hover::before { width: 100%; }
.gr-esp-bt { width: 100%; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr) minmax(0, 1.2fr); gap: var(--gout); align-items: center; padding: 16px 0; background: none; border: 0; cursor: pointer; text-align: left; }
.gr-esp-nom b { display: block; font: 600 var(--t-4)/1.15 var(--f-titre); letter-spacing: -0.01em; }
.gr-esp-nom i { display: block; font-style: italic; font-size: var(--t-1); color: var(--encre-2); margin-top: 2px; }
.gr-esp-taille { font-size: var(--t-2); color: var(--encre-2); }
.gr-regle { position: relative; height: 14px; background: linear-gradient(var(--gris), var(--gris)) 0 50% / 100% 1px no-repeat, linear-gradient(90deg, var(--encre) 1px, transparent 1px) 0 0 / calc(100% / 2.477) 100% repeat-x; }
.gr-regle-b { position: absolute; top: 2px; bottom: 2px; background: var(--encre); }
.gr-ouverte .gr-regle-b { background: var(--rouge-plein); }
.gr-esp.gr-ecartee .gr-esp-bt { padding: 6px 0; grid-template-columns: minmax(0, 1fr); }
.gr-esp.gr-ecartee .gr-esp-nom b { font-size: var(--t-2); font-weight: 400; color: var(--encre-2); text-decoration: line-through; text-decoration-color: var(--gris); }
.gr-esp.gr-ecartee .gr-esp-nom i, .gr-esp.gr-ecartee .gr-esp-taille, .gr-esp.gr-ecartee .gr-regle { display: none; }
.gr-esp.gr-proche .gr-esp-nom b::after { content: ", la plus proche"; font: 400 var(--t-1) var(--f-texte); color: var(--rouge); }
.gr-fiche { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--gout); padding: 4px 0 30px; }
.gr-fiche h3 { margin: 18px 0 6px; font: 700 var(--t-2)/1.2 var(--f-titre); }
.gr-fiche h3:first-child { margin-top: 0; }
.gr-fiche p { margin: 0; max-width: 62ch; }
.gr-gestes { margin: 0; padding: 0; list-style: none; counter-reset: geste; }
.gr-gestes li { counter-increment: geste; display: grid; grid-template-columns: 2.2rem 1fr; padding: 6px 0; }
.gr-gestes li::before { content: counter(geste); font: 700 var(--t-2)/1.55 var(--f-titre); color: var(--rouge); }
.gr-confus { margin-top: 16px !important; padding-top: 12px; border-top: 1px solid var(--gris); font-size: var(--t-2); }
.gr-fiche-fig { margin: 0 0 16px; }
.gr-fiche-fig img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.gr-fiche-fig figcaption { margin-top: 6px; font-size: var(--t-1); color: var(--encre-2); }
.gr-fiche-art { display: block; padding: 12px 0; border-top: 1px solid var(--encre); text-decoration: none; }
.gr-fiche-art span { display: block; font-size: var(--t-1); color: var(--encre-2); }
.gr-fiche-art b { font: 600 var(--t-3)/1.3 var(--f-titre); text-decoration: underline; text-decoration-color: var(--rouge-plein); text-decoration-thickness: var(--filet); text-underline-offset: 0.2em; }
.gr-fiche-art:hover b { color: var(--rouge); }
.gr-vide { margin: 14px 0 0; color: var(--encre-2); }
.gr-n-src { padding-block: var(--rythme); }
.gr-src { grid-column: 1 / 13; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gout); }
.gr-src a { display: block; border-top: 1px solid var(--encre); padding-top: 12px; text-decoration: none; }
.gr-src b { display: block; font: 700 var(--t-3)/1.25 var(--f-titre); }
.gr-src span { font-size: var(--t-2); color: var(--encre-2); }
.gr-src a:hover b { color: var(--rouge); }
@media (max-width: 860px) {
  .gr-n-h1, .gr-n-intro, .gr-criteres, .gr-resultats, .gr-src { grid-column: 1 / -1; }
  .gr-n-arc { display: none; }
  .gr-criteres { position: static; margin-bottom: 20px; }
  .gr-esp-bt { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .gr-fiche { grid-template-columns: 1fr; }
  .gr-src { grid-template-columns: 1fr; }
}

.gr-compte-mob { display: none; }
@media (max-width: 860px) {
  .gr-compte-mob { display: flex; position: sticky; top: 0; z-index: 5; justify-content: space-between; align-items: center; margin: 0 calc(var(--marge) * -1) 14px; padding: 10px var(--marge); background: var(--papier); border-bottom: var(--filet) solid var(--encre); font-size: var(--t-2); }
  .gr-compte-mob b { font: 800 var(--t-5)/1 var(--f-titre); margin-right: 6px; }
  .gr-compte-mob a { font-weight: 600; color: var(--encre); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .gr-js [data-revele] { opacity: 1; transform: none; }
}
/* ===== Thème WordPress : tout ce que la maquette ne montrait pas ===== */
.gr-marque svg, .gr-logo { width: 40px; height: 28px; flex: none; }
.gr-menu-nom { font: 700 var(--t-4)/1 var(--f-titre); color: #fff; }
.gr-menu .menu-contact a, .gr-nav .menu-contact a { font-weight: 700; }
.gr-nav ul { grid-template-columns: repeat(var(--n, 6), auto); }

/* Lecture sur fond blanc */
body.gr-lecture { background: #fff; }
.gr-art { padding-bottom: var(--rythme); }
.gr-art-cadre { row-gap: 0; }
.gr-art-tete, .gr-art-vue, .gr-art-resume, .gr-corps, .gr-art-tags, .gr-auteur, .gr-contact-mots, .gr-plan, .gr-fa-derniers { grid-column: 3 / 11; }
.gr-art-tete { padding-top: 6px; }
.gr-art-tete .gr-ariane { padding-top: 26px; }
.gr-art-rub { display: inline-block; margin-top: 30px; padding-top: 8px; border-top: var(--filet) solid var(--encre); font: 700 var(--t-2)/1 var(--f-titre); text-decoration: none; }
.gr-art-rub:hover { color: var(--rouge); }
.gr-art-h1 { margin: 16px 0 18px; font: 800 clamp(2.25rem, 4.6vw, 3.75rem)/1.02 var(--f-titre); letter-spacing: -0.03em; text-wrap: balance; }
.gr-art-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; padding-bottom: 22px; font-size: var(--t-2); color: var(--encre-2); }
.gr-art-meta time { font-variant-numeric: tabular-nums; }
.gr-art-etoiles .kk-star-ratings { margin: 0; }
.gr-art-vue { margin: 0 0 34px; }
.gr-art-vue img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.gr-art-resume { margin-bottom: 24px; }

/* Corps d'article : pleine largeur du conteneur, la mesure se pose sur les paragraphes */
.gr-corps { font-size: 1.0625rem; line-height: 1.7; }
.gr-corps > p, .gr-corps > ul, .gr-corps > ol { max-width: 72ch; }
.gr-corps h2 { margin: 2.4em 0 0.7em; padding-top: 14px; border-top: var(--filet) solid var(--encre); font: 700 var(--t-5)/1.15 var(--f-titre); letter-spacing: -0.02em; text-wrap: balance; }
.gr-corps h3 { margin: 1.8em 0 0.5em; font: 700 var(--t-4)/1.25 var(--f-titre); }
.gr-corps h4 { margin: 1.5em 0 0.4em; font: 700 var(--t-3)/1.3 var(--f-titre); }
.gr-corps p { margin: 0 0 1.1em; }
.gr-corps a { color: var(--rouge); text-decoration-thickness: 1px; }
.gr-corps a:hover { text-decoration-thickness: 2px; }
.gr-corps ul, .gr-corps ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.gr-corps li { margin-bottom: 0.4em; }
.gr-corps li::marker { color: var(--encre-2); }
.gr-corps img { height: auto; }
.gr-corps figure { margin: 1.6em 0; }
.gr-corps figcaption { margin-top: 8px; font-size: var(--t-1); color: var(--encre-2); }
.gr-corps blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; box-shadow: inset 3px 0 0 var(--encre); font: 500 var(--t-4)/1.4 var(--f-titre); }
.gr-corps table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: var(--t-2); font-variant-numeric: tabular-nums; }
.gr-corps th { text-align: left; font: 700 var(--t-2)/1.3 var(--f-titre); border-bottom: var(--filet) solid var(--encre); padding: 10px 12px 10px 0; }
.gr-corps td { border-bottom: 1px solid var(--gris); padding: 10px 12px 10px 0; vertical-align: top; }
.gr-corps hr { border: 0; border-top: 1px solid var(--gris); margin: 2em 0; }
.gr-corps iframe { max-width: 100%; }
.gr-legal h2 { font-size: var(--t-4); }
.gr-legal picture, .gr-legal img { display: block; max-width: 100%; height: auto; margin: 1em 0; }

/* Blocs de la chaîne de contenu : pictogrammes repris par le thème, sélecteurs par suffixe
   toujours qualifiés par .gr-corps, jamais de préfixe nommé. Icônes en mask-image : elles prennent l'accent. */
.gr-corps [class$="-key"] li { position: relative; }
.gr-corps [class$="-key"] li::before { content: ""; position: absolute; left: 0; top: 50%; margin-top: -10px; width: 20px; height: 20px; border-radius: 0; background: var(--rouge-plein); opacity: 1; }
.gr-corps [class$="-key"] li::after { content: ""; position: absolute; left: 4px; top: 50%; margin-top: -5px; width: 12px; height: 10px; border: 0; transform: none; background: #fff; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M1 5.2 4.3 8.4 11 1.6' fill='none' stroke='black' stroke-width='2.2'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M1 5.2 4.3 8.4 11 1.6' fill='none' stroke='black' stroke-width='2.2'/%3E%3C/svg%3E") center / contain no-repeat; }
.gr-corps [class$="-badge"]::before { content: ""; display: inline-block; width: 14px; height: 16px; margin-right: 8px; vertical-align: -2px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 16'%3E%3Cpath d='M7 1 13 3.4V8c0 3.6-2.6 6-6 7-3.4-1-6-3.4-6-7V3.4Z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 16'%3E%3Cpath d='M7 1 13 3.4V8c0 3.6-2.6 6-6 7-3.4-1-6-3.4-6-7V3.4Z'/%3E%3C/svg%3E") center / contain no-repeat; }
.gr-corps [class$="-foot"] span::before { content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 7px; vertical-align: -2px; background: var(--rouge); }
.gr-corps [class$="-foot"] span:nth-child(1)::before { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Ccircle cx='7' cy='7' r='6' fill='none' stroke='black' stroke-width='1.6'/%3E%3Cpath d='M4 7.2 6.2 9.2 10.2 4.8' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Ccircle cx='7' cy='7' r='6' fill='none' stroke='black' stroke-width='1.6'/%3E%3Cpath d='M4 7.2 6.2 9.2 10.2 4.8' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat; }
.gr-corps [class$="-foot"] span:nth-child(2)::before { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M1 2h5a2 2 0 0 1 1 1v10a2 2 0 0 0-1-1H1Zm12 0H8a2 2 0 0 0-1 1v10a2 2 0 0 1 1-1h5Z' fill='none' stroke='black' stroke-width='1.4'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M1 2h5a2 2 0 0 1 1 1v10a2 2 0 0 0-1-1H1Zm12 0H8a2 2 0 0 0-1 1v10a2 2 0 0 1 1-1h5Z' fill='none' stroke='black' stroke-width='1.4'/%3E%3C/svg%3E") center / contain no-repeat; }
.gr-corps [class$="-foot"] span:nth-child(3)::before { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M12.5 6A5.5 5.5 0 1 0 11 10.3M12.5 2v4h-4' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M12.5 6A5.5 5.5 0 1 0 11 10.3M12.5 2v4h-4' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat; }
.gr-corps #ez-toc-container { border: 0; border-top: var(--filet) solid var(--encre); border-radius: 0; box-shadow: none; background: transparent; padding: 14px 0; margin: 1.6em 0; }
.gr-corps #ez-toc-container .ez-toc-title { font: 700 var(--t-3)/1.2 var(--f-titre); }

/* Tags, auteur, voisins */
.gr-art-tags { list-style: none; margin: 34px 0 0; padding: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; border-top: 1px solid var(--gris); }
.gr-art-tags a { display: inline-block; padding: 6px 10px; border: 1px solid var(--gris); font-size: var(--t-1); text-decoration: none; }
.gr-art-tags a:hover { border-color: var(--encre); }
.gr-auteur { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: var(--gout); margin-top: 48px; padding-top: 18px; border-top: var(--filet) solid var(--encre); }
.gr-auteur-img { width: 120px; height: 150px; object-fit: cover; }
.gr-auteur-nom { margin: 0; font: 700 var(--t-4)/1.2 var(--f-titre); }
.gr-auteur-role { margin: 4px 0 10px; font-size: var(--t-2); color: var(--encre-2); }
.gr-auteur-bio p { margin: 0 0 8px; font-size: var(--t-2); max-width: 64ch; }
.gr-lien { color: var(--rouge); font-weight: 600; }
.gr-voisins { padding-top: var(--rythme); }
.gr-voisins h2 { grid-column: 1 / 13; margin: 0 0 28px; padding-top: 14px; border-top: var(--filet) solid var(--encre); font: 800 var(--t-6)/1 var(--f-titre); letter-spacing: -0.03em; }
.gr-voisins ul { grid-column: 1 / 13; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gout); align-items: start; }
.gr-voisin a { display: block; text-decoration: none; }
.gr-voisin .gr-cadre { display: block; overflow: hidden; background: var(--gris-clair); }
.gr-voisin img { width: 100%; object-fit: cover; transition: transform .7s var(--sortie); }
.gr-voisin a:hover img { transform: scale(1.035); }
.gr-voisin h3 { margin: 12px 0 4px; font: 600 var(--t-4)/1.2 var(--f-titre); text-wrap: balance; }
.gr-voisin a:hover h3 { color: var(--rouge); }
.gr-voisin-meta { font-size: var(--t-1); color: var(--encre-2); }
.gr-v1 { grid-column: 1 / 7; } .gr-v1 img { aspect-ratio: 3 / 2; }
.gr-v2 { grid-column: 7 / 10; } .gr-v2 img { aspect-ratio: 4 / 5; }
.gr-v3 { grid-column: 10 / 13; padding-top: 22%; } .gr-v3 img { aspect-ratio: 1; }

/* Vignette sans image : l'aplat et le motif de la rubrique */
.gr-sans-image { display: block; position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--encre); }

/* Rubrique */
.gr-rub-tete { padding-bottom: 40px; }
.gr-rub-tete .gr-ariane { grid-column: 1 / 13; }
.gr-rub-barre { grid-column: 1 / 13; margin-top: 22px; min-height: 220px; }
.gr-rub-barre h1 { margin: 0; position: relative; z-index: 2; font: 800 clamp(3rem, 8vw, 7rem)/0.9 var(--f-titre); letter-spacing: -0.04em; }
.gr-rub-barre:hover, .gr-rub-barre:focus-visible { transform: none; }
.gr-rub-desc { grid-column: 1 / 8; margin-top: 22px; color: var(--encre-2); }
.gr-rub-desc p { margin: 0 0 0.8em; max-width: 64ch; }
.gr-rub-liste { padding-bottom: var(--rythme); }
.gr-rub-liste .gr-semaine { grid-column: 1 / 13; }
.gr-carte-t { margin: 14px 0 6px; font: 600 var(--t-4)/1.15 var(--f-titre); letter-spacing: -0.015em; text-wrap: balance; }
.gr-c1 .gr-carte-t { font-size: var(--t-5); }
.gr-carte:hover .gr-carte-t { color: var(--rouge); }
.gr-rub-fond { padding-bottom: var(--rythme); }
.gr-rub-fond-in { grid-column: 1 / 9; border-top: var(--filet) solid var(--encre); padding-top: 18px; }
.gr-rub-fond-in h2 { font: 700 var(--t-5)/1.15 var(--f-titre); margin: 0 0 12px; }
.gr-rub-fond-in p { max-width: 70ch; }
.gr-page-h1 { grid-column: 1 / 13; margin: 18px 0 0; font: 800 clamp(2.5rem, 6vw, 5rem)/0.95 var(--f-titre); letter-spacing: -0.035em; }
.gr-vide-txt { grid-column: 1 / 13; color: var(--encre-2); }
.gr-lignes-pleine { grid-column: 1 / 13; }
.pagination, .nav-links { grid-column: 1 / 13; display: flex; gap: 14px; margin-top: 24px; font-weight: 600; }

/* 404 */
.gr-404 { padding-block: var(--rythme); row-gap: 18px; }
.gr-404-n { grid-column: 1 / 13; margin: 0; font: 800 clamp(7rem, 22vw, 18rem)/0.8 var(--f-titre); letter-spacing: -0.05em; color: var(--gris); }
.gr-404-p { grid-column: 1 / 8; margin: 0 0 20px; color: var(--encre-2); }

/* Contact : deux blocs courts, le formulaire Contact Form 7 */
.gr-contact .gr-contact-mots { grid-column: 3 / 7; }
.gr-contact-mots h2 { margin: 0 0 8px; padding-top: 12px; border-top: var(--filet) solid var(--encre); font: 700 var(--t-3)/1.2 var(--f-titre); }
.gr-contact-mots p { margin: 0 0 28px; color: var(--encre-2); }
.gr-contact-form { grid-column: 7 / 11; }
.wpcf7-form p { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; }
.wpcf7-form br { display: none; }
.wpcf7-form label { font: 600 var(--t-2)/1.2 var(--f-titre); }
.wpcf7-form input:not([type="submit"]), .wpcf7-form textarea, .wpcf7-form select { width: 100%; padding: 12px 14px; border: 1px solid var(--encre); border-radius: 0; background: #fff; font-size: var(--t-3); }
.wpcf7-form input:not([type="submit"]):focus, .wpcf7-form textarea:focus { outline: 3px solid var(--rouge-plein); outline-offset: 0; }
.wpcf7-form input.wpcf7-submit { width: auto; padding: 14px 26px; border: 0; border-radius: 0; background: var(--rouge-plein); color: #fff; font: 700 var(--t-2)/1 var(--f-titre); cursor: pointer; box-shadow: inset -5px 0 0 #fff, inset -17px 0 0 var(--rouge-plein); padding-right: 40px; }
.wpcf7-form input.wpcf7-submit:hover { background: var(--encre); box-shadow: inset -5px 0 0 #fff, inset -17px 0 0 var(--encre); }
.wpcf7-not-valid-tip { color: var(--rouge); font-size: var(--t-1); }
.wpcf7 form .wpcf7-response-output { margin: 14px 0 0; padding: 10px 12px; border: 1px solid var(--encre); }

/* Plan du site et fiche auteur */
.gr-plan { display: grid; grid-template-columns: 1fr 1fr; gap: 34px var(--gout); }
.gr-plan-rub h2 { margin: 0 0 10px; padding-top: 12px; border-top: var(--filet) solid var(--encre); font: 700 var(--t-4)/1.2 var(--f-titre); }
.gr-plan-rub h2 a { text-decoration: none; }
.gr-plan-rub h2 span { font: 400 var(--t-2) var(--f-texte); color: var(--encre-2); }
.gr-plan-rub ul { list-style: none; margin: 0; padding: 0; }
.gr-plan-rub li { border-bottom: 1px solid var(--gris); }
.gr-plan-rub li a { display: block; padding: 7px 0; font-size: var(--t-2); text-decoration: none; }
.gr-plan-rub li a:hover { color: var(--rouge); }
.gr-fiche-auteur .gr-fa-fig { grid-column: 3 / 6; margin: 0 0 30px; }
.gr-fa-corps { grid-column: 6 / 11 !important; }
.gr-fa-derniers { margin-top: 48px; }
.gr-fa-derniers h2 { margin: 0 0 12px; font: 800 var(--t-5)/1 var(--f-titre); }

@media (max-width: 860px) {
  .gr-art-tete, .gr-art-vue, .gr-art-resume, .gr-corps, .gr-art-tags, .gr-auteur, .gr-contact-mots, .gr-contact .gr-contact-mots, .gr-contact-form, .gr-plan, .gr-fa-derniers, .gr-fiche-auteur .gr-fa-fig, .gr-fa-corps, .gr-rub-desc, .gr-404-p, .gr-rub-fond-in { grid-column: 1 / -1 !important; }
  .gr-auteur { grid-template-columns: 84px minmax(0, 1fr); }
  .gr-auteur-img { width: 84px; height: 105px; }
  .gr-voisins h2, .gr-voisins ul { grid-column: 1 / -1; }
  .gr-voisins ul { grid-template-columns: 1fr 1fr; row-gap: 26px; }
  .gr-v1 { grid-column: 1 / -1; } .gr-v2 { grid-column: 1 / 2; } .gr-v3 { grid-column: 2 / 3; padding-top: 0; }
  .gr-v2 img, .gr-v3 img { aspect-ratio: 1; }
  .gr-rub-barre { min-height: 150px; }
  .gr-plan { grid-template-columns: 1fr; }
  .gr-corps table { display: block; overflow-x: auto; }
}

/* Pas de glissement du motif de chaque barre du registre, et nombre d'entrées de la navigation par défaut */
:root { --n: 6; --pas: 24px; }
.gr-b-maison { --pas: 28px; } .gr-b-travaux { --pas: 34px; } .gr-b-deco { --pas: -30px; } .gr-b-immo { --pas: 18px; } .gr-b-nuis { --pas: -36px; }
