/* Passion Équitation : feuille de style unique */

@font-face {
  font-family: 'Familjen Grotesk';
  font-style: normal; font-display: swap; font-weight: 400 700;
  src: url(/assets/fonts/familjen-grotesk-latin-ext-wght-normal.woff2?v=1) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Familjen Grotesk';
  font-style: normal; font-display: swap; font-weight: 400 700;
  src: url(/assets/fonts/familjen-grotesk-latin-wght-normal.woff2?v=1) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal; font-display: swap; font-weight: 400 700;
  src: url(/assets/fonts/instrument-sans-latin-ext-wght-normal.woff2?v=1) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal; font-display: swap; font-weight: 400 700;
  src: url(/assets/fonts/instrument-sans-latin-wght-normal.woff2?v=1) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  --papier: #f1f2ec;
  --papier-2: #e6e9df;
  --encre: #1d2b24;
  --encre-2: #4c5b52;
  --pre: #8fa67a;
  --pre-clair: #dce5cf;
  --foin: #e2c15a;
  --havane: #6b4426;
  --havane-clair: #e7dacb;
  --annot: #2346b8;
  --trait: #c8cec0;

  --f-titre: 'Familjen Grotesk', 'Arial Narrow', Arial, sans-serif;
  --f-texte: 'Instrument Sans', 'Segoe UI', Roboto, Arial, sans-serif;
  --gouttiere: clamp(16px, 4vw, 40px);
  --largeur: 1200px;
}

/* base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font: 400 1.0625rem/1.6 var(--f-texte);
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 {
  font-family: var(--f-titre);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 4.8vw, 4.1rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.75rem, 2.8vw, 2.35rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.005em; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--annot); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--annot); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--largeur); margin: 0 auto; padding: 0 var(--gouttiere); }
.skip {
  position: absolute; left: 8px; top: -60px; z-index: 10;
  background: var(--encre); color: var(--papier); padding: 8px 14px; font-family: var(--f-titre);
}
.skip:focus { top: 8px; }

/* boutons */
.btn {
  display: inline-block;
  font: 600 1rem/1 var(--f-titre);
  padding: 15px 22px;
  border-radius: 4px;
  text-decoration: none;
  background: var(--encre);
  color: var(--papier);
  border: 1.5px solid var(--encre);
}
.btn:hover { background: #2c3d34; }
.btn-ligne { background: transparent; color: var(--encre); }
.btn-ligne:hover { background: var(--papier-2); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* marque */
.marque { display: inline-flex; align-items: center; gap: 13px; }
/* nom en capitales espacées ; la marge négative retire l'espace laissé après la dernière lettre */
.marque-nom {
  font: 700 1.125rem/1 var(--f-titre); letter-spacing: 0.15em; text-transform: uppercase;
  margin-right: -0.15em; color: var(--encre);
}

/* en-tête */
.entete { border-bottom: 1px solid var(--trait); }
.entete-in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px 32px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px;
}
.entete .accueil { text-decoration: none; }
.entete ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 26px; }
.entete nav a { font: 500 1rem/1 var(--f-titre); color: var(--encre); text-decoration: none; padding: 6px 0; }
.entete nav a:hover { color: var(--annot); text-decoration: underline; text-decoration-thickness: 1px; }
.entete nav a[aria-current='page'] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.35em; }

/* menu mobile : bouton masqué et liste des rayons réservée au panneau mobile */
.menu-btn, .menu-titre, .entete .menu-rayons { display: none; }
@media (max-width: 760px) {
  .entete { position: sticky; top: 0; z-index: 20; background: var(--papier); }
  .entete-in { padding-top: 12px; padding-bottom: 12px; }
  .js .entete-in { flex-wrap: nowrap; column-gap: 12px; }
  .entete .accueil { flex: none; }
  .marque-nom { white-space: nowrap; font-size: 0.9375rem; letter-spacing: 0.13em; margin-right: -0.13em; }
  .marque { gap: 10px; }
  .js .menu-btn {
    display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px;
    border: 1.5px solid var(--encre); border-radius: 4px; background: transparent; color: var(--encre);
    font: 600 1rem/1 var(--f-titre); cursor: pointer;
  }
  .js .menu-btn:hover { background: var(--papier-2); }
  .menu-icone { position: relative; display: block; width: 18px; height: 12px; }
  .menu-icone::before, .menu-icone::after, .menu-icone span {
    content: ''; position: absolute; left: 0; right: 0; height: 2px; border-radius: 1px;
    background: currentColor; transition: transform .2s ease, opacity .2s ease;
  }
  .menu-icone::before { top: 0; }
  .menu-icone span { top: 5px; }
  .menu-icone::after { top: 10px; }
  .ouvert .menu-icone::before { transform: translateY(5px) rotate(45deg); }
  .ouvert .menu-icone::after { transform: translateY(-5px) rotate(-45deg); }
  .ouvert .menu-icone span { opacity: 0; }

  .js .menu {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    max-height: calc(100vh - 68px); max-height: calc(100dvh - 68px); overflow-y: auto; overscroll-behavior: contain;
    padding: 4px var(--gouttiere) 24px; background: var(--papier);
    border-bottom: 1px solid var(--trait); box-shadow: 0 16px 28px rgba(29, 43, 36, .10);
  }
  .js .entete.ouvert .menu { display: block; animation: deplier .18s ease-out; }
  .js .menu-titre { display: block; font: 600 0.9rem/1 var(--f-titre); color: var(--encre-2); margin: 14px 0 4px; }
  .js .entete ul.menu-rayons, .js .entete ul.menu-principal { display: block; }
  .js .menu-principal { margin-top: 18px; }
  .js .menu-principal .menu-cat { display: none; }
  .js .menu li a { display: block; padding: 13px 0; font-size: 1.125rem; border-top: 1px solid var(--trait); }
  .js .menu-principal li:nth-child(2) a { border-top: 3px solid var(--encre); }
}
@media (max-width: 379px) {
  .js .menu-btn { width: 44px; padding: 0; justify-content: center; }
  .menu-txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@keyframes deplier { from { opacity: 0; transform: translateY(-6px); } }

/* pied de page */
.pied { border-top: 1px solid var(--trait); margin-top: clamp(56px, 8vw, 104px); font-family: var(--f-titre); }
.pied-in {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px; padding-top: 40px; padding-bottom: 32px;
}
.pied-marque p { margin-top: 12px; color: var(--encre-2); font-size: 1rem; }
.pied-titre { font-size: 1rem; font-weight: 600; color: var(--encre-2); letter-spacing: 0; margin-bottom: 10px; }
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pied a { color: var(--encre); text-decoration: none; font-size: 1rem; }
.pied a:hover { color: var(--annot); text-decoration: underline; }
.pied-bas { padding-bottom: 28px; color: var(--encre-2); font-size: 0.9rem; }

/* plan de l'écurie */
.plan { margin: 0; }
.plan svg { display: block; width: 100%; height: auto; }
.plan .poteaux { fill: none; stroke: #1d2b24; stroke-width: 5.5; stroke-linecap: round; stroke-dasharray: 0.1 21; }
.plan .ruban {
  fill: none; stroke: #1d2b24; stroke-width: 1.3; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: poser 1.9s 0.25s cubic-bezier(.45, .05, .3, 1) forwards;
}
@keyframes poser { to { stroke-dashoffset: 0; } }
.plan .ruban-hl { fill: none; stroke: #2346b8; stroke-width: 3; stroke-linejoin: round; }
.plan .hl { opacity: 0; transition: opacity .15s; }
.plan .zone:hover .hl, .plan .zone:focus-visible .hl,
.plan svg[data-hl='clotures'] .hl-clotures, .plan svg[data-hl='couvertures'] .hl-couvertures,
.plan svg[data-hl='selles'] .hl-selles, .plan svg[data-hl='soins'] .hl-soins { opacity: 1; }
.plan .zone:focus { outline: none; }
.plan .zone:focus-visible .lbl, .plan .zone:hover .lbl { text-decoration: underline; }
.plan .lbl {
  font-family: var(--f-titre); font-size: 15.5px; font-weight: 650; fill: var(--annot);
  paint-order: stroke; stroke: var(--papier); stroke-width: 5px; stroke-linejoin: round;
}
.plan .leader { stroke: var(--annot); stroke-width: 1.2; fill: none; }
.plan .point { fill: var(--annot); }
.plan .rep { font-family: var(--f-titre); font-size: 12px; fill: var(--encre-2); }
.plan figcaption { font: 400 0.95rem/1.4 var(--f-titre); color: var(--encre-2); margin-top: 10px; }

/* accueil en 3D plein écran (grands écrans) : récit piloté par le défilement.
   La classe .avec-3d est posée dans <head> avant le premier affichage ; sans elle, page normale. */
.recit { position: relative; }
.recit-ancre, .recit-etapes, .recit-nav, .defiler { display: none; }
html:not(.avec-3d) .hero-3d, html:not(.avec-3d) .plan3d-calque { display: none; }

.avec-3d .entete { position: absolute; top: 0; left: 0; right: 0; z-index: 30; border-bottom-color: transparent; }
.avec-3d .recit { height: 600vh; }
.avec-3d .recit-ancre { display: block; position: absolute; left: 0; width: 1px; height: 1px; }
.avec-3d .recit-scene {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  background: linear-gradient(180deg, #dbe5e3 0%, #f1eee3 58%, #e9e6d8 100%);
}
.avec-3d .recit-scene::before {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(241, 242, 236, .96) 0%, rgba(241, 242, 236, .86) 27%, rgba(241, 242, 236, .4) 41%, rgba(241, 242, 236, 0) 54%),
    radial-gradient(130% 100% at 64% 42%, rgba(29, 43, 36, 0) 62%, rgba(29, 43, 36, .10) 100%);
}
.avec-3d .recit-scene::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 110px; z-index: 2; pointer-events: none;
  background: linear-gradient(0deg, rgba(241, 242, 236, .75), rgba(241, 242, 236, 0));
}
.hero-3d { position: absolute; inset: 0; z-index: 1; }
.hero-3d canvas { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity 1.6s ease; }
.hero-3d.pret canvas { opacity: 1; }

.avec-3d .hero-plan { display: none; }
.avec-3d .hero { position: relative; z-index: 3; height: 100%; display: flex; align-items: center; padding-top: 80px; padding-bottom: 90px; pointer-events: none; }
.avec-3d .hero-texte { max-width: 540px; pointer-events: auto; }
.avec-3d .hero h1 { font-size: clamp(2.9rem, 5.2vw, 4.8rem); }
.avec-3d .hero-texte > * { animation: monter 1.1s cubic-bezier(.2, .7, .2, 1) both; }
.avec-3d .hero-texte > :nth-child(2) { animation-delay: .15s; }
.avec-3d .hero-texte > :nth-child(3) { animation-delay: .3s; }
@keyframes monter { from { opacity: 0; transform: translateY(18px); } }

/* fiches des rayons, une par étape du défilement */
.avec-3d .recit-etapes { display: block; position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.etape {
  position: absolute; top: 50%; translate: 0 -50%;
  left: max(var(--gouttiere), calc((100% - var(--largeur)) / 2 + var(--gouttiere)));
  width: min(440px, 37vw); padding: 30px 32px 32px;
  background: rgba(241, 242, 236, .84); -webkit-backdrop-filter: blur(12px) saturate(1.1); backdrop-filter: blur(12px) saturate(1.1);
  border: 1px solid rgba(29, 43, 36, .10); border-radius: 10px; box-shadow: 0 24px 60px rgba(29, 43, 36, .12);
  pointer-events: auto; opacity: 0; visibility: hidden;
}
.etape-num { font: 600 .9rem/1 var(--f-titre); letter-spacing: .08em; color: var(--annot); }
.etape-num span { color: var(--encre-2); font-weight: 400; }
.etape-titre { font: 700 clamp(1.9rem, 2.8vw, 2.6rem)/1.05 var(--f-titre); letter-spacing: -.02em; margin-top: 14px; text-wrap: balance; }
.etape-texte { margin-top: 14px; color: var(--encre-2); font-size: 1.08rem; }
.etape-saison { margin-top: 10px; font: 400 .95rem/1.4 var(--f-titre); color: var(--encre-2); }
.etape .btn { margin-top: 22px; }

/* navigation par étapes, à droite */
.avec-3d .recit-nav {
  display: flex; flex-direction: column; gap: 14px; position: absolute; right: 28px; top: 50%; translate: 0 -50%;
  z-index: 4; opacity: var(--intro, 0);
}
.recit-nav a { display: flex; align-items: center; justify-content: flex-end; gap: 12px; text-decoration: none; color: var(--encre); font: 500 .85rem/1 var(--f-titre); }
.recit-nav a::after { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--encre); transition: background .2s, transform .2s; }
.recit-nav a.actif::after { background: var(--encre); transform: scale(1.3); }
.recit-nav span {
  opacity: 0; translate: 6px 0; transition: opacity .2s, translate .2s; white-space: nowrap;
  background: rgba(241, 242, 236, .88); padding: 5px 9px; border-radius: 4px;
}
.recit-nav a:hover span, .recit-nav a:focus-visible span, .recit-nav a.actif span { opacity: 1; translate: 0 0; }

/* invitation à faire défiler */
.avec-3d .defiler {
  display: flex; flex-direction: column; align-items: center; gap: 12px; position: absolute; left: 50%; bottom: 30px; translate: -50% 0;
  z-index: 4; font: 600 .78rem/1 var(--f-titre); letter-spacing: .14em; text-transform: uppercase; color: var(--encre); text-decoration: none; opacity: 0;
}
.defiler::after { content: ''; width: 2px; height: 46px; border-radius: 1px; background: linear-gradient(var(--encre) 40%, rgba(29, 43, 36, 0)); transform-origin: top; animation: defiler 2.4s ease-in-out infinite; }
@keyframes defiler { 0% { transform: scaleY(0); opacity: 1; } 50% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* accueil 3D sur téléphone et tablette en hauteur : titre en haut, scène dessous, fiches en bas de l'écran */
@media (max-width: 899px) {
  .avec-3d .recit-scene::before {
    background:
      linear-gradient(180deg, rgba(241, 242, 236, .96) 0%, rgba(241, 242, 236, .86) 30%, rgba(241, 242, 236, .35) 46%, rgba(241, 242, 236, 0) 58%);
    opacity: var(--voile, 1);
  }
  .avec-3d .hero { align-items: flex-start; padding-top: 92px; padding-bottom: 0; }
  .avec-3d .hero h1 { font-size: clamp(2.1rem, 8.6vw, 3rem); }
  .avec-3d .hero .chapo { font-size: 1.05rem; margin-top: 14px; }
  .avec-3d .hero .actions { margin-top: 20px; }
  .etape {
    top: auto; bottom: calc(14px + env(safe-area-inset-bottom)); left: 12px; right: 12px; width: auto; translate: none;
    padding: 18px 20px 20px; border-radius: 12px;
  }
  .etape-titre { font-size: 1.6rem; margin-top: 8px; }
  .etape-texte { font-size: 1rem; margin-top: 8px; }
  .etape-saison { display: none; }
  .etape .btn { margin-top: 14px; }
  .avec-3d .recit-nav { display: none; }
  .avec-3d .defiler { bottom: calc(22px + env(safe-area-inset-bottom)); }
  .plan3d-calque .plan3d-lbl { font-size: 13px; padding: 3px 6px; }
}
@media (max-width: 760px) {
  /* l'en-tête et son menu restent accessibles pendant toute la visite */
  .avec-3d .entete {
    position: fixed; background: rgba(241, 242, 236, .82); border-bottom-color: rgba(29, 43, 36, .08);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  }
  .avec-3d #categories, .avec-3d main section[id] { scroll-margin-top: 80px; }
}

/* étiquettes des zones sur la vue d'ensemble */
.plan3d-calque { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.plan3d-lbl {
  position: absolute; left: 0; top: 0; pointer-events: auto; white-space: nowrap; opacity: 0;
  padding: 4px 8px; font: 650 15px/1.15 var(--f-titre); color: var(--annot); text-decoration: none;
  background: rgba(241, 242, 236, .9); border-radius: 4px; box-shadow: 0 4px 14px rgba(29, 43, 36, .10);
}
.plan3d-lbl::after { content: ''; position: absolute; left: 50%; top: 100%; width: 1.5px; height: 14px; margin-left: -0.75px; background: var(--annot); }
.plan3d-lbl::before {
  content: ''; position: absolute; left: 50%; top: calc(100% + 14px); width: 7px; height: 7px; margin: -1px 0 0 -3.5px;
  border-radius: 50%; background: var(--annot); box-shadow: 0 0 0 2px var(--papier);
}
.plan3d-lbl:hover, .plan3d-lbl.actif, .plan3d-lbl:focus-visible { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.2em; }
.symbole { flex: none; display: block; }

/* accueil */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding-top: clamp(36px, 6vw, 80px);
  padding-bottom: clamp(36px, 6vw, 72px);
}
.chapo { font-size: 1.25rem; line-height: 1.55; color: var(--encre-2); margin-top: 22px; max-width: 34ch; }

.rayons { padding-top: clamp(24px, 4vw, 48px); }
.legende {
  list-style: none; margin: 28px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px;
}
.legende li {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 18px;
  padding: 24px 0 26px; border-top: 1px solid var(--trait);
}
.legende h3 a { color: var(--encre); text-decoration: none; }
.legende h3 a:hover, .legende h3 a:focus-visible { color: var(--annot); text-decoration: underline; }
.legende p { margin-top: 6px; max-width: 46ch; }
.legende .saison { font: 400 0.95rem/1.4 var(--f-titre); color: var(--encre-2); margin-top: 10px; }

.moment { background: var(--pre-clair); margin-top: clamp(48px, 7vw, 88px); }
.moment-in {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(28px, 5vw, 72px); align-items: start;
  padding-top: clamp(36px, 5vw, 64px); padding-bottom: clamp(36px, 5vw, 64px);
}
.moment-in p { margin-top: 16px; max-width: 58ch; }
.moment-in p a { font-family: var(--f-titre); font-weight: 600; }

.tableau { width: 100%; border-collapse: collapse; font-family: var(--f-titre); font-size: 1rem; }
.tableau caption { text-align: left; font-weight: 600; padding-bottom: 10px; color: var(--encre); }
.tableau th, .tableau td { text-align: left; padding: 11px 0; border-bottom: 1px solid #b9c7a9; vertical-align: top; }
.tableau thead th { font-weight: 500; color: var(--encre-2); font-size: 0.9rem; }
.tableau tbody th { font-weight: 650; white-space: nowrap; padding-right: 22px; }

.conseils { padding-top: clamp(48px, 7vw, 88px); }
.conseils ul { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.conseils li { border-top: 3px solid var(--encre); padding-top: 18px; }
.conseils h3 a { color: var(--encre); text-decoration: none; }
.conseils h3 a:hover, .conseils h3 a:focus-visible { color: var(--annot); text-decoration: underline; }
.conseils p { margin-top: 8px; color: var(--encre-2); }

.parti, .perdu { padding-top: clamp(48px, 7vw, 88px); }
.parti > *, .perdu > * { max-width: 760px; }
.parti p { margin-top: 16px; font-size: 1.2rem; }
.perdu p { margin-top: 18px; max-width: 56ch; }

/* adaptations */
@media (max-width: 900px) {
  .hero, .moment-in { grid-template-columns: minmax(0, 1fr); }
  .conseils ul { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 720px) {
  .pied-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pied-marque { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .legende { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .plan .lbl, .plan .leader, .plan .point, .plan figcaption { display: none; }
  .tableau { font-size: 0.95rem; }
  .tableau th, .tableau td { padding-right: 12px; }
  .tableau tbody th { white-space: normal; padding-right: 12px; }
  .tableau th:last-child, .tableau td:last-child { padding-right: 0; }
  .pied ul { gap: 0; }
  .pied li a { display: inline-block; padding: 7px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .plan .ruban { animation: none; stroke-dashoffset: 0; }
  .menu-icone::before, .menu-icone::after, .menu-icone span { transition: none; }
  .js .entete.ouvert .menu { animation: none; }
}

/* pages intérieures */
.fil { font: 400 0.95rem/1.4 var(--f-titre); color: var(--encre-2); padding-top: 22px; }
.fil ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; }
.fil li + li::before { content: '/'; margin: 0 8px; color: var(--trait); }
.fil a { color: var(--encre-2); text-decoration: none; }
.fil a:hover { color: var(--annot); text-decoration: underline; }

.tete {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(28px, 5vw, 64px); align-items: center;
  padding-top: clamp(24px, 4vw, 48px); padding-bottom: clamp(32px, 5vw, 56px);
}
.tete.sans-image { grid-template-columns: minmax(0, 1fr); }
.tete h1 { font-size: clamp(2.3rem, 4.2vw, 3.5rem); }
.tete .chapo { max-width: 46ch; }
.meta { font: 400 0.95rem/1.4 var(--f-titre); color: var(--encre-2); margin-top: 16px; }

.illus { margin: 0; }
.illus img { display: block; width: 100%; height: auto; border-radius: 6px; background: var(--papier-2); }
.illus figcaption { font: 400 0.85rem/1.4 var(--f-titre); color: var(--encre-2); margin-top: 8px; }

.corps {
  display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 3.5fr);
  gap: clamp(32px, 6vw, 88px); align-items: start;
  border-top: 1px solid var(--trait); padding-top: clamp(28px, 4vw, 44px);
}
.prose > * { max-width: 68ch; }
.prose h2 { font-size: clamp(1.45rem, 2.2vw, 1.75rem); margin-top: 48px; scroll-margin-top: 24px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.15rem; margin-top: 28px; }
.prose p { margin-top: 14px; }
.prose ul, .prose ol { margin: 14px 0 0; padding-left: 1.25em; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--encre-2); }
.prose strong { font-weight: 650; }
.prose .tableau { margin-top: 18px; max-width: 760px; }
.prose .illus { margin-top: 28px; max-width: 760px; }
.encadre {
  margin-top: 24px; padding: 18px 20px; border-left: 3px solid var(--foin);
  background: var(--papier-2); border-radius: 0 6px 6px 0;
}
.encadre p:first-child { margin-top: 0; }

.aside { position: sticky; top: 24px; font-family: var(--f-titre); display: grid; gap: 28px; }
.aside h2 { font-size: 1rem; font-weight: 600; letter-spacing: 0; color: var(--encre-2); margin-bottom: 10px; }
.aside ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.aside a { color: var(--encre); text-decoration: none; }
.aside a:hover { color: var(--annot); text-decoration: underline; }
.aside .question { border-top: 3px solid var(--encre); padding-top: 16px; }
.aside .question p { color: var(--encre-2); margin: 0 0 12px; }

.cartes { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.cartes h2, .cartes h3 { font-size: 1.25rem; margin-top: 14px; }
.cartes a { color: var(--encre); text-decoration: none; }
.cartes a:hover h2, .cartes a:hover h3 { color: var(--annot); text-decoration: underline; }
.cartes p { margin-top: 8px; color: var(--encre-2); }

/* formulaire */
.formulaire { display: grid; gap: 18px; margin-top: 24px; max-width: 560px; font-family: var(--f-titre); }
.formulaire label { display: grid; gap: 6px; font-weight: 600; }
.formulaire input, .formulaire textarea {
  font: 400 1rem/1.4 var(--f-texte); color: var(--encre); background: #fff;
  border: 1.5px solid #aab3a3; border-radius: 4px; padding: 11px 12px; width: 100%;
}
.formulaire input:focus, .formulaire textarea:focus { outline: 2px solid var(--annot); outline-offset: 1px; border-color: var(--annot); }
.formulaire textarea { min-height: 170px; resize: vertical; }
.formulaire .aide { font-weight: 400; color: var(--encre-2); font-size: 0.9rem; }
.formulaire .piege { position: absolute; left: -9999px; }
.formulaire button { justify-self: start; cursor: pointer; }
.message { margin-top: 20px; padding: 14px 16px; border-radius: 6px; font-family: var(--f-titre); max-width: 560px; }
.message.ok { background: var(--pre-clair); }
.message.erreur { background: #f6dede; color: #6d1d1d; }

@media (max-width: 900px) {
  .tete, .corps { grid-template-columns: minmax(0, 1fr); }
  .aside { position: static; }
  .cartes { grid-template-columns: minmax(0, 1fr); }
}

/* images de l'accueil */
.legende .legende-image { grid-column: 1 / -1; display: block; margin-bottom: 4px; }
.conseils .cartes li { border-top: 0; padding-top: 0; }
.moment-image { margin-top: 26px; }
.parti {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(28px, 5vw, 64px); align-items: center;
}
.parti > * { max-width: none; }
.parti p { max-width: 60ch; }
@media (max-width: 900px) { .parti { grid-template-columns: minmax(0, 1fr); } }
