/* =====================================================================
   Ramy Hamade · Le sentier vosgien
   Feuille unique. Toutes les couleurs passent par les variables de :root,
   y compris celles des paysages SVG (dégradés, liserés, brumes).
   ===================================================================== */

@font-face {
  font-family: "Lexend";
  src: url("polices/lexend-latin-var.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lexend Zetta";
  src: url("polices/lexend-zetta-latin.woff2") format("woff2");
  font-weight: 500 600;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ---- Charte A · Forêt profonde ---- */
  --nuit: #0B1F17;
  --sapin: #10301F;
  --foret: #2F6247;
  --mousse: #6E9A74;
  --bourgeon: #B8E07A;
  --brume: #F4F8EE;
  --lumiere: #F4C463;
  --gres: #C2553B;

  /* ---- Dérivés ---- */
  --texte: var(--nuit);
  --texte-doux: #22432F;
  --foret-fonce: #22503A;
  --soleil-coeur: #FFF7DC;
  --lisere: #FFE6A3;
  --blanc-balise: #FBFCF7;

  /* ciel de l'aube : vert pâle en haut, doré vers l'horizon */
  --ciel-1: #B4D4C2;
  --ciel-2: #D2E5D0;
  --ciel-3: #E9EED5;
  --ciel-4: #F5E8BE;
  --ciel-5: #F7DC9B;

  /* reliefs, du plus lointain (1) au premier plan (9) : perspective atmosphérique */
  --r1-haut: #C9D6B0; --r1-bas: #EFE8C2;
  --r2-haut: #B3C8A0; --r2-bas: #E6E3BC;
  --r3-haut: #9DBA91; --r3-bas: #DAD9B0;
  --r4-haut: #82A782; --r4-bas: #C7D1A4;
  --r5-haut: #64906F; --r5-bas: #AEC397;
  --r6-haut: #46765A; --r6-bas: #8EAD86;
  --r7-haut: #2D5A43; --r7-bas: #6D9277;
  --r8-haut: #183F2C; --r8-bas: #2D5741;
  --r9-haut: #0B1F17; --r9-bas: #10301F;

  --sentier-lumiere: #F3DE9E;
  --sentier-milieu: #A6AE7A;
  --sentier-ombre: #2E5039;
  --bois-coupe: #D9C38A;
  --bois-cerne: #8F7C4E;

  --marge: clamp(20px, 5vw, 72px);
  --entete: 76px;
  --zetta: "Lexend Zetta", "Lexend", system-ui, sans-serif;

  /* ---- La journée : le ciel à chaque heure (haut, milieu, horizon) ---- */
  --matin-ciel-1: #9CCAC6; --matin-ciel-2: #C9E4D8; --matin-ciel-3: #EDF0D0;
  --midi-ciel-1: #79B4BF; --midi-ciel-2: #B5DAD3; --midi-ciel-3: #DDEED8;
  --aprem-ciel-1: #94BCA9; --aprem-ciel-2: #E2DCA6; --aprem-ciel-3: #F3CB7A;
  --couchant-ciel-1: #2F4C47; --couchant-ciel-2: #8E7C63; --couchant-ciel-3: #E7A15E; --couchant-ciel-4: #F6CC78;
  --nuit-ciel-1: #040C09; --nuit-ciel-2: #0A1D17; --nuit-ciel-3: #18392F;
  --etoile: #FFFBEA;
  --lune: #F4F2DE; --lune-ombre: #C6CBB0;

  /* ---- Panoramas : plan lointain, plan proche, brume, liseré de lumière, sol ---- */
  --matin-loin: #B7D4C6; --matin-pres: #1F4B37; --matin-brume: #F2F6E6; --matin-lisere: #FFF0C4; --matin-sol: #183F2C;
  --midi-loin: #A8CBBB; --midi-pres: #2B6440; --midi-brume: #F0F7E8; --midi-lisere: #FFFBE0; --midi-sol: #3F7038; --midi-chaume: #7FA453;
  --lac-loin: #CAD2A6; --lac-pres: #22503A; --lac-brume: #F7EDC6; --lac-lisere: #FFE29A; --lac-sol: #163A27;
  --lac-eau-1: #FFF1C0; --lac-eau-2: #E8C873; --lac-eau-3: #557A57;
  --couchant-loin: #B4917C; --couchant-pres: #183A2B; --couchant-brume: #F0BC86; --couchant-lisere: #FFCF7A; --couchant-sol: #10291E;
  --couchant-soleil: #FFE3A3; --couchant-halo: #F59B4C;
  --nuit-loin: #29463F; --nuit-pres: #0B1D16; --nuit-brume: #3A5C53; --nuit-lisere: #BFD8C6; --nuit-sol: #07140F;

  /* ---- Lumières chaudes du refuge, lucioles ---- */
  --lueur: #FFC46B; --lueur-coeur: #FFEAB8; --bois: #3C2A1C; --bois-clair: #5A4128; --luciole: #E4F7A0;

  /* ---- Textes sur fond sombre ---- */
  --texte-clair: var(--brume);
  --texte-clair-doux: #CFDCCB;
  --gres-texte: #A8402A;
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ciel-3);
  color: var(--texte);
  font-family: "Lexend", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  font-weight: 380;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--gres); outline-offset: 3px; border-radius: 8px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* balise du Club vosgien : rectangle grès sur blanc */
.balise {
  display: inline-block; flex: none;
  width: 26px; height: 14px; border-radius: 2px;
  background: linear-gradient(180deg, var(--gres) 0 50%, var(--blanc-balise) 50% 100%);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--nuit) 22%, transparent), 0 2px 6px color-mix(in srgb, var(--nuit) 18%, transparent);
}

/* ---------------------------------------------------------------- ciel fixe : la journée
   Couches empilées dans l'ordre des heures : chacune apparaît quand son heure arrive
   (--jour, de 0 à l'aube à 1 en pleine nuit, posé par le script sur .ciel seulement). */
.ciel {
  --jour: 0;
  position: fixed; inset: 0; z-index: -1; overflow: hidden;
  background: linear-gradient(180deg, var(--ciel-1) 0%, var(--ciel-2) 24%, var(--ciel-3) 44%, var(--ciel-4) 60%, var(--ciel-5) 74%, var(--ciel-4) 100%);
}
.ciel__heure { position: absolute; inset: 0; opacity: clamp(0, (var(--jour) - var(--debut)) / var(--duree), 1); }
.ciel__heure--matin { --debut: .08; --duree: .1; background: linear-gradient(180deg, var(--matin-ciel-1) 0%, var(--matin-ciel-2) 45%, var(--matin-ciel-3) 80%); }
.ciel__heure--midi { --debut: .28; --duree: .1; background: linear-gradient(180deg, var(--midi-ciel-1) 0%, var(--midi-ciel-2) 50%, var(--midi-ciel-3) 85%); }
.ciel__heure--aprem { --debut: .47; --duree: .1; background: linear-gradient(180deg, var(--aprem-ciel-1) 0%, var(--aprem-ciel-2) 50%, var(--aprem-ciel-3) 82%); }
.ciel__heure--couchant { --debut: .66; --duree: .1; background: linear-gradient(180deg, var(--couchant-ciel-1) 0%, var(--couchant-ciel-2) 42%, var(--couchant-ciel-3) 70%, var(--couchant-ciel-4) 88%); }
.ciel__heure--nuit { --debut: .8; --duree: .07; background: linear-gradient(180deg, var(--nuit-ciel-1) 0%, var(--nuit-ciel-2) 55%, var(--nuit-ciel-3) 100%); }
.ciel__etoiles {
  position: absolute; inset: 0 0 30% 0;
  opacity: clamp(0, (var(--jour) - .82) / .07, 1);
  background-image:
    radial-gradient(1.2px 1.2px at 12% 18%, var(--etoile) 98%, transparent), radial-gradient(1px 1px at 27% 8%, var(--etoile) 98%, transparent),
    radial-gradient(1.6px 1.6px at 41% 26%, var(--etoile) 98%, transparent), radial-gradient(1px 1px at 55% 12%, var(--etoile) 98%, transparent),
    radial-gradient(1.3px 1.3px at 68% 31%, var(--etoile) 98%, transparent), radial-gradient(1px 1px at 79% 6%, var(--etoile) 98%, transparent),
    radial-gradient(1.8px 1.8px at 88% 22%, var(--etoile) 98%, transparent), radial-gradient(1px 1px at 6% 40%, var(--etoile) 98%, transparent),
    radial-gradient(1.1px 1.1px at 34% 44%, var(--etoile) 98%, transparent), radial-gradient(1px 1px at 61% 50%, var(--etoile) 98%, transparent),
    radial-gradient(1.4px 1.4px at 93% 47%, var(--etoile) 98%, transparent), radial-gradient(1px 1px at 19% 60%, var(--etoile) 98%, transparent);
  background-size: 520px 420px;
}
.ciel__astre { position: absolute; left: 0; top: 0; width: 0; height: 0; will-change: transform; }
.ciel__astre span { position: absolute; border-radius: 50%; translate: -50% -50%; }
/* le soleil suit un arc : de l'est (gauche) à l'ouest (droite), plus haut à midi */
.ciel__astre--soleil {
  --a: calc((var(--jour) - .4) * 210deg);
  transform: translate(calc(50vw + 40vw * sin(var(--a))), calc(78vh - 60vh * cos(var(--a))));
  opacity: calc(min(clamp(0, (var(--jour) - .1) / .06, 1), clamp(0, (.74 - var(--jour)) / .05, 1)));
}
.ciel__astre--soleil span {
  width: 74px; height: 74px;
  background: radial-gradient(circle, var(--blanc-balise) 0 42%, var(--soleil-coeur) 78%, color-mix(in srgb, var(--lumiere) 50%, var(--soleil-coeur)) 100%);
  box-shadow: 0 0 40px 10px color-mix(in srgb, var(--lumiere) 60%, transparent), 0 0 160px 70px color-mix(in srgb, var(--lumiere) 26%, transparent);
}


/* ---------------------------------------------------------------- en-tête */
.entete {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--entete);
  display: flex; align-items: center; gap: 28px;
  padding: 0 var(--marge);
  transition: background-color .4s ease, box-shadow .4s ease, height .4s ease, color .4s ease;
}
.entete--compacte {
  --entete: 64px;
  background: color-mix(in srgb, var(--brume) 95%, transparent);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--sapin) 10%, transparent), 0 8px 24px color-mix(in srgb, var(--sapin) 10%, transparent);
}
.marque {
  display: inline-flex; align-items: center; gap: 12px; white-space: nowrap;
  font-weight: 650; font-size: 19px; letter-spacing: -.01em; text-decoration: none;
  margin-right: auto;
}
.menu { display: flex; gap: 6px; }
.menu a {
  font-size: 17px; font-weight: 500; text-decoration: none;
  padding: 10px 14px; border-radius: 999px;
  transition: background-color .25s ease;
}
.menu a:hover { background: color-mix(in srgb, var(--brume) 60%, transparent); }
.pilule {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 17px; font-weight: 600; text-decoration: none; white-space: nowrap;
  padding: 11px 18px 11px 15px; border-radius: 999px;
  background: var(--sapin); color: var(--brume);
  box-shadow: 0 6px 20px color-mix(in srgb, var(--sapin) 30%, transparent);
  transition: transform .25s ease, box-shadow .25s ease;
}
.pilule svg { width: 18px; height: 18px; fill: none; stroke: var(--bourgeon); stroke-width: 2.4; stroke-linecap: round; }
.pilule:hover { transform: translateY(-2px); box-shadow: 0 10px 26px color-mix(in srgb, var(--sapin) 38%, transparent); }

/* ---------------------------------------------------------------- accueil */
.accueil {
  position: relative;
  height: 100vh; height: 100svh;
  min-height: 640px;
  overflow: hidden;
  isolation: isolate;
}

/* Boîte commune à toutes les couches : même proportion que le viewBox (1920 × 1000),
   ancrée en bas, le point focal (soleil, Donon) gardé à l'écran. */
.paysage {
  --ph: max(100%, 52.1vw);
  --p: var(--focal);
  position: absolute; inset: 0;
  pointer-events: none;
}
.couche {
  position: absolute; bottom: 0;
  height: var(--ph); aspect-ratio: 1920 / 1000;
  left: calc(var(--p) * 100%);
  translate: calc(var(--focal) * -100%) 0;
  will-change: transform;
}
.couche > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
svg.defs { position: absolute; width: 0; height: 0; }

/* GEN:DEBUT — positions calculées par gen_accueil.py, ne pas modifier à la main */
.paysage{--soleil-x:67.50%;--soleil-y:43.89%;--coureur-x:64.27%;--coureur-y:81.80%;--donon-x:60.00%;--donon-y:47.76%;--focal:0.600;}
/* GEN:FIN */

/* -- soleil, halo, rayons -- */
.halo, .soleil, .rayons {
  position: absolute; left: var(--soleil-x); top: var(--soleil-y);
  translate: -50% -50%;
  border-radius: 50%;
}
.halo {
  width: 120%; aspect-ratio: 1.7;
  background: radial-gradient(closest-side,
    color-mix(in srgb, var(--lumiere) 88%, transparent) 0%,
    color-mix(in srgb, var(--lumiere) 66%, transparent) 9%,
    color-mix(in srgb, var(--lumiere) 32%, transparent) 26%,
    color-mix(in srgb, var(--ciel-5) 24%, transparent) 50%,
    transparent 100%);
  animation: respire 9s ease-in-out infinite alternate;
}
.soleil {
  width: 3.7%; aspect-ratio: 1;
  background: radial-gradient(circle, #FFFFFF 0%, #FFFFFF 40%, var(--soleil-coeur) 86%, color-mix(in srgb, var(--lumiere) 35%, var(--soleil-coeur)) 100%);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--soleil-coeur) 60%, transparent), 0 0 30px 6px color-mix(in srgb, var(--lumiere) 70%, transparent), 0 0 120px 50px color-mix(in srgb, var(--lumiere) 32%, transparent);
}
.couche--astre > div { animation: lever 3.2s cubic-bezier(.2, .6, .2, 1) both; }
.couche--astre > .halo { animation: lever 3.2s cubic-bezier(.2, .6, .2, 1) both, respire 9s 3.2s ease-in-out infinite alternate; }
@keyframes lever { from { transform: translateY(70%); opacity: .55; } to { transform: none; opacity: 1; } }
@keyframes respire { from { scale: 1; opacity: 1; } to { scale: 1.06; opacity: .86; } }

.rayons {
  --rai: color-mix(in srgb, var(--soleil-coeur) 30%, transparent);
  --rai-fort: color-mix(in srgb, var(--soleil-coeur) 46%, transparent);
  --rai-ciel: color-mix(in srgb, var(--soleil-coeur) 12%, transparent);
  width: 170%; aspect-ratio: 1;
  background: conic-gradient(from 0deg,
    transparent 0deg 14deg, var(--rai-ciel) 18deg, transparent 23deg 41deg, var(--rai-ciel) 46deg, transparent 52deg 74deg,
    var(--rai) 80deg, transparent 84deg 97deg,
    var(--rai-fort) 101deg, transparent 106deg 113deg,
    var(--rai) 116deg, transparent 118deg 127deg,
    var(--rai-fort) 133deg, transparent 139deg 147deg,
    var(--rai) 150deg, transparent 153deg 161deg,
    var(--rai-fort) 167deg, transparent 174deg 183deg,
    var(--rai) 186deg, transparent 189deg 197deg,
    var(--rai-fort) 203deg, transparent 209deg 219deg,
    var(--rai) 223deg, transparent 227deg 238deg,
    var(--rai-fort) 243deg, transparent 247deg 262deg,
    var(--rai) 267deg, transparent 272deg 300deg, var(--rai-ciel) 306deg, transparent 312deg 330deg, var(--rai-ciel) 336deg, transparent 342deg);
  -webkit-mask-image: radial-gradient(closest-side, #000 0%, rgb(0 0 0 / .55) 26%, transparent 64%);
          mask-image: radial-gradient(closest-side, #000 0%, rgb(0 0 0 / .55) 26%, transparent 64%);
  animation: rayons 26s ease-in-out infinite alternate;
}
.couche--rayons-avant .rayons { opacity: .32; animation-duration: 33s; animation-direction: alternate-reverse; }
@keyframes rayons { from { rotate: -2.5deg; } to { rotate: 3deg; } }

/* voile chaud : la lumière éclaircit les plans lointains autour du soleil */
.couche--voile {
  background: radial-gradient(ellipse 34% 24% at var(--soleil-x) var(--soleil-y),
    color-mix(in srgb, var(--soleil-coeur) 55%, transparent) 0%,
    color-mix(in srgb, var(--lumiere) 22%, transparent) 45%,
    transparent 100%);
}

/* -- reliefs -- */
#g1 .s-haut { stop-color: var(--r1-haut); } #g1 .s-bas { stop-color: var(--r1-bas); }
#g2 .s-haut { stop-color: var(--r2-haut); } #g2 .s-bas { stop-color: var(--r2-bas); }
#g3 .s-haut { stop-color: var(--r3-haut); } #g3 .s-bas { stop-color: var(--r3-bas); }
#g4 .s-haut { stop-color: var(--r4-haut); } #g4 .s-bas { stop-color: var(--r4-bas); }
#g5 .s-haut { stop-color: var(--r5-haut); } #g5 .s-bas { stop-color: var(--r5-bas); }
#g6 .s-haut { stop-color: var(--r6-haut); } #g6 .s-bas { stop-color: var(--r6-bas); }
#g7 .s-haut { stop-color: var(--r7-haut); } #g7 .s-bas { stop-color: var(--r7-bas); }
#g8 .s-haut { stop-color: var(--r8-haut); } #g8 .s-bas { stop-color: var(--r8-bas); }
#g9 .s-haut { stop-color: var(--r9-haut); } #g9 .s-bas { stop-color: var(--r9-bas); }
#lis-loin .l0, #lis-pres .l0 { stop-color: var(--lisere); stop-opacity: .9; }
#lis-loin .l1, #lis-pres .l1 { stop-color: var(--lumiere); stop-opacity: .32; }
#lis-loin .l2, #lis-pres .l2 { stop-color: var(--lumiere); stop-opacity: 0; }
#g-sentier .s-haut { stop-color: var(--sentier-lumiere); }
#g-sentier .s-milieu { stop-color: var(--sentier-milieu); }
#g-sentier .s-bas { stop-color: var(--sentier-ombre); }
#g-brume .b0, #g-banc .b0 { stop-color: var(--brume); stop-opacity: .78; }
#g-brume .b1, #g-banc .b1 { stop-color: var(--ciel-4); stop-opacity: .34; }
#g-brume .b2, #g-banc .b2 { stop-color: var(--ciel-4); stop-opacity: 0; }

.crete { stroke-width: 1.1; stroke-linejoin: round; }
.c1 .crete, .c2 .crete, .c3 .crete { stroke-width: .9; }
.c7 .crete, .c8 .crete { stroke-width: 1.6; }
.rim { fill: url(#lis-pres); }
.ombre8 { fill: var(--r8-haut); }
.ombre9 { fill: var(--r9-haut); }
.mousse { fill: none; stroke: var(--foret); stroke-width: 4; stroke-linecap: round; opacity: .9; }
.souche-dessus { fill: var(--bois-coupe); }
.souche-cerne { fill: none; stroke: var(--bois-cerne); stroke-width: 1.2; }
.balise-gres { fill: var(--gres); }
.balise-blanc { fill: var(--blanc-balise); }

/* -- brumes qui dérivent -- */
.couche--brume > svg { animation: derive 46s ease-in-out infinite alternate; }
.brume--2 > svg { animation-duration: 61s; animation-direction: alternate-reverse; }
.brume--3 > svg { animation-duration: 54s; }
.brume--vallee > svg { animation-duration: 70s; animation-direction: alternate-reverse; }
@keyframes derive { from { transform: translateX(-2.2%); } to { transform: translateX(2.2%); } }

/* -- le coureur -- */
.coureur-hero {
  position: absolute; left: var(--coureur-x); top: var(--coureur-y);
  width: 1.9%; aspect-ratio: 34 / 66;
  translate: -41% -89%;
}
.coureur-hero svg { width: 100%; height: 100%; overflow: visible; }
.coureur { fill: var(--nuit); }
.coureur .casquette { fill: var(--nuit); }
.coureur__corps, .cuisse, .tibia, .humerus, .avant-bras { transform-box: view-box; transform-origin: 0 0; }
.coureur__corps { animation: rebond .31s ease-in-out infinite alternate; }
.cuisse { animation: cuisse .62s linear infinite; }
.tibia { animation: tibia .62s linear infinite; }
.humerus { animation: humerus .62s ease-in-out infinite; }
.avant-bras { animation: avant-bras .62s ease-in-out infinite; }
/* bras opposé à la jambe du même côté */
.jambe--arriere .cuisse, .jambe--arriere .tibia, .bras--arriere .humerus, .bras--arriere .avant-bras { animation-delay: -.31s; }
@keyframes rebond { from { transform: translateY(0); } to { transform: translateY(-1.8px); } }
@keyframes cuisse {
  0% { transform: rotate(-34deg); }
  48% { transform: rotate(24deg); }
  62% { transform: rotate(14deg); }
  100% { transform: rotate(-34deg); }
}
@keyframes tibia {
  0% { transform: rotate(10deg); }
  22% { transform: rotate(28deg); }
  46% { transform: rotate(14deg); }
  66% { transform: rotate(108deg); }
  86% { transform: rotate(52deg); }
  100% { transform: rotate(10deg); }
}
@keyframes humerus { 0% { transform: rotate(34deg); } 50% { transform: rotate(-40deg); } 100% { transform: rotate(34deg); } }
@keyframes avant-bras { 0% { transform: rotate(-72deg); } 50% { transform: rotate(-108deg); } 100% { transform: rotate(-72deg); } }

/* -- repère du Donon -- */
.repere-donon {
  position: absolute; left: var(--donon-x); top: var(--donon-y);
  translate: -50% calc(-100% - 30px);
  font-family: var(--zetta); font-size: 14px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase;
  white-space: nowrap; color: var(--texte);
  padding: 5px 11px 6px; border-radius: 999px;
  background: color-mix(in srgb, var(--brume) 78%, transparent);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--sapin) 12%, transparent);
}
.repere-donon::after {
  content: ""; position: absolute; left: 50%; top: 100%;
  width: 1.5px; height: 26px; translate: -50% 0;
  background: linear-gradient(var(--texte), color-mix(in srgb, var(--texte) 0%, transparent));
}

/* brume de vallée derrière la colonne de texte (coordonnées de l'écran, pas du paysage) */
.brume-texte {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 46% 38% at 16% 72%, color-mix(in srgb, var(--brume) 80%, transparent) 0%, color-mix(in srgb, var(--brume) 52%, transparent) 45%, transparent 100%),
    linear-gradient(90deg, color-mix(in srgb, var(--brume) 34%, transparent) 0%, transparent 46%);
}

/* -- particules, grain -- */
.particules { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.grain {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: url("img/grain.png") 0 0 / 160px 160px repeat;
  opacity: .55;
}

/* -- contenu de l'accueil -- */
.accueil__contenu {
  position: relative; z-index: 5;
  padding: clamp(92px, 12vh, 132px) var(--marge) 0;
  max-width: calc(800px + var(--marge));
}
.depart { display: flex; align-items: center; gap: 16px; margin-bottom: clamp(14px, 2.2vh, 24px); }
.portrait {
  width: 68px; height: 68px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--brume);
  box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--foret) 50%, transparent), 0 8px 22px color-mix(in srgb, var(--sapin) 22%, transparent);
}
.depart__texte {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--zetta); font-size: 14px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase;
  color: var(--foret-fonce); line-height: 1.4;
}
.nom {
  margin: 0;
  font-size: clamp(54px, min(8vw, 12.6vh), 132px);
  font-weight: 720; line-height: .9; letter-spacing: -.045em;
  color: var(--texte);
}
.nom .ligne { display: block; }
.nom .ligne + .ligne { margin-left: .04em; }
.role {
  margin-top: clamp(14px, 2.2vh, 24px);
  font-size: clamp(19px, 1.6vw, 23px); line-height: 1.4; font-weight: 600;
  color: var(--texte);
}

/* deux métiers, un même départ : le poteau directionnel */
.poteau {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch;
  max-width: 790px; margin-top: clamp(12px, 1.8vh, 18px);
  filter: drop-shadow(0 8px 18px color-mix(in srgb, var(--sapin) 20%, transparent));
}
.poteau__mat {
  align-self: stretch; width: 9px; margin: -10px 0 -18px; border-radius: 3px 3px 0 0;
  background: linear-gradient(90deg, var(--foret), var(--sapin));
}
.plaque {
  display: flex; align-items: center; gap: 8px; text-decoration: none;
  min-height: 70px; padding: 10px 16px;
  background: var(--brume); color: var(--texte);
  transition: transform .35s cubic-bezier(.2, .7, .2, 1);
}
.plaque--gauche { clip-path: polygon(22px 0, 100% 0, 100% 100%, 22px 100%, 0 50%); padding-left: 22px; margin-right: -1px; }
.plaque--droite { clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 50%, calc(100% - 22px) 100%, 0 100%); padding-right: 22px; margin-left: -1px; }
.plaque--gauche:hover { transform: translateX(-4px) rotate(-1deg); }
.plaque--droite:hover { transform: translateX(4px) rotate(1deg); }
.plaque__texte { display: flex; flex-direction: column; line-height: 1.25; }
.plaque--droite .plaque__texte { flex: 1; }
.plaque strong { font-size: 18px; font-weight: 680; letter-spacing: -.01em; }
.plaque small { font-size: 15px; font-weight: 420; color: var(--texte-doux); margin-top: 3px; }
.plaque__fleche { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--gres); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.citation {
  margin: clamp(16px, 2.6vh, 26px) 0 0;
  padding: 9px 18px 10px 18px;
  border-left: 3px solid var(--gres);
  border-radius: 0 14px 14px 0;
  background: color-mix(in srgb, var(--brume) 88%, transparent);
  width: fit-content;
  max-width: 54ch;
  font-size: 18px; line-height: 1.5; font-weight: 420;
  color: var(--texte-doux);
}
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(20px, 3.4vh, 34px); }
.bouton {
  display: inline-flex; flex-direction: column; justify-content: center;
  min-height: 60px; padding: 9px 26px 10px; border-radius: 18px;
  text-decoration: none; line-height: 1.2;
  transition: transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s ease, background-color .25s ease;
}
.bouton span { font-size: 19px; font-weight: 650; }
.bouton small { font-size: 14px; font-weight: 450; margin-top: 3px; }
.bouton--plein { background: var(--sapin); color: var(--brume); box-shadow: 0 10px 28px color-mix(in srgb, var(--sapin) 34%, transparent); }
.bouton--plein small { color: var(--bourgeon); }
.bouton--clair {
  color: var(--sapin);
  background: color-mix(in srgb, var(--brume) 92%, transparent);
  box-shadow: inset 0 0 0 2px var(--sapin);
}
.bouton--clair small { color: var(--foret); }
.bouton:hover { transform: translateY(-3px); }
.bouton--plein:hover { box-shadow: 0 16px 34px color-mix(in srgb, var(--sapin) 42%, transparent); }

.legende-relief {
  position: absolute; z-index: 5; right: var(--marge); bottom: 26px;
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 450; color: var(--brume);
}
.legende-relief .balise { width: 18px; height: 10px; }
.suite {
  position: absolute; z-index: 5; left: 50%; bottom: 22px; translate: -50% 0;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 18px 8px 14px; border-radius: 999px;
  font-size: 15px; font-weight: 550; color: var(--brume); text-decoration: none; white-space: nowrap;
  background: color-mix(in srgb, var(--nuit) 84%, transparent);
}
.suite svg { width: 12px; height: 22px; fill: var(--bourgeon); order: -1; }
.pas { opacity: .25; animation: pas 1.8s ease-in-out infinite; }
.pas--2 { animation-delay: .3s; } .pas--3 { animation-delay: .6s; }
@keyframes pas { 0%, 100% { opacity: .2; } 30% { opacity: 1; } }

/* -- entrée en scène -- */
.lettre { display: inline-block; opacity: 0; translate: 0 .32em; filter: blur(8px);
  animation: lettre 1s cubic-bezier(.2, .75, .2, 1) forwards; animation-delay: calc(var(--i) * 55ms + 250ms); }
@keyframes lettre { to { opacity: 1; translate: 0 0; filter: blur(0); } }
.depart, .role, .poteau, .citation, .actions { animation: monte 1s cubic-bezier(.2, .75, .2, 1) both; }
.depart { animation-delay: .1s; }
.role { animation-delay: .85s; }
.poteau { animation-delay: .95s; }
.citation { animation-delay: 1.1s; }
.actions { animation-delay: 1.25s; }
@keyframes monte { from { opacity: 0; translate: 0 18px; } }

/* ---------------------------------------------------------------- adaptations */
@media (max-width: 1180px) {
  .menu { display: none; }
}
@media (max-aspect-ratio: 4/5) {
  .paysage { --ph: 60%; --p: .5; }
  .nom { font-size: clamp(48px, 11vw, 100px); }
  .legende-relief, .repere-donon { display: none; }
}
@media (max-width: 560px) {
  :root { --entete: 66px; }
  .paysage { --ph: 56%; --p: .52; }
  .marque { font-size: 17px; gap: 10px; }
  .pilule { font-size: 15px; padding: 9px 14px 9px 12px; }
  .accueil__contenu { padding-top: 80px; }
  .poteau { margin-top: 10px; }
  .portrait { width: 52px; height: 52px; }
  .depart { margin-bottom: 12px; }
  .depart__prefixe { display: none; }
  .role { margin-top: 10px; }
  .citation { margin-top: 12px; }
  .actions { margin-top: 14px; }
  .depart { gap: 12px; }
  .depart__texte { gap: 10px; }
  .depart__texte .balise { display: none; }
  .nom { font-size: clamp(48px, 14.2vw, 62px); }
  .role { font-size: 17px; }
  .plaque { min-height: 62px; padding: 8px 10px; }
  .plaque--gauche { padding-left: 18px; clip-path: polygon(16px 0, 100% 0, 100% 100%, 16px 100%, 0 50%); }
  .plaque--droite { padding-right: 18px; clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%); }
  .plaque strong { font-size: 16px; }
  .plaque small { display: none; }
  .plaque__fleche { width: 16px; height: 16px; }
  .poteau__mat { width: 7px; }
  .citation { font-size: 17px; }
  .actions { gap: 10px; }
  .bouton { padding: 8px 18px 9px; min-height: 56px; border-radius: 16px; }
  .bouton span { font-size: 17px; }
  .legende-relief, .repere-donon { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .lettre { opacity: 1; translate: none; filter: none; }
  /* le coureur reste figé en pleine foulée */
  .jambe--avant .cuisse { transform: rotate(-32deg); } .jambe--avant .tibia { transform: rotate(14deg); }
  .jambe--arriere .cuisse { transform: rotate(24deg); } .jambe--arriere .tibia { transform: rotate(48deg); }
  .bras--avant .humerus { transform: rotate(32deg); } .bras--arriere .humerus { transform: rotate(-38deg); }
  .avant-bras { transform: rotate(-88deg); }
}

/* =====================================================================
   LA SUITE DU SENTIER : sections, panoramas, barre de profil, refuge
   ===================================================================== */

.evitement {
  position: absolute; left: 16px; top: -80px; z-index: 100;
  padding: 12px 18px; border-radius: 12px; background: var(--sapin); color: var(--brume);
  font-weight: 600; text-decoration: none;
}
.evitement:focus { top: 12px; }

body { padding-bottom: 0; }
main { display: block; }
.conteneur { width: 100%; max-width: calc(1240px + 2 * var(--marge)); margin: 0 auto; padding: 0 var(--marge); }

/* -- sol : chaque section est posée sur la forêt -- */
.etape {
  position: relative; isolation: isolate;
  padding: clamp(72px, 9vw, 140px) 0;
  background: var(--sapin); color: var(--texte-clair);
}
.etape::after { /* grain de papier, comme l'affiche de l'accueil */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("img/grain.png") 0 0 / 160px 160px repeat; opacity: .32; mix-blend-mode: soft-light;
}
.etape { --teinte: var(--foret); }
#topo, #parcours { --teinte: var(--matin-ciel-1); }
#sentiers, #marketing { --teinte: var(--bourgeon); }
#ia { --teinte: var(--lumiere); }
#offre { --teinte: var(--couchant-ciel-3); }
.etape::before { /* lumière de l'heure, posée sur le sol */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background:
    radial-gradient(ellipse 60% 40% at 85% 0%, color-mix(in srgb, var(--teinte) 22%, transparent), transparent 70%),
    radial-gradient(ellipse 50% 60% at 5% 90%, color-mix(in srgb, var(--nuit) 50%, transparent), transparent 70%);
}
.etape h2, .refuge h2 {
  margin: 0; max-width: 18ch;
  font-size: clamp(34px, 4.6vw, 62px); line-height: 1.04; font-weight: 700; letter-spacing: -.035em;
  text-wrap: balance;
}
.etape h3 { margin: 0; font-weight: 680; letter-spacing: -.015em; line-height: 1.2; }
.etape h4 { margin: 0; }
.chapo { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.5; font-weight: 400; color: var(--texte-clair-doux); max-width: 46ch; text-wrap: pretty; }
.doux { font-size: 18px; color: var(--texte-clair-doux); max-width: 56ch; }
.reperage {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  margin-bottom: 22px;
  font-family: var(--zetta); font-size: 14px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase;
  color: var(--bourgeon);
}
.reperage__heure {
  font-family: "Lexend", system-ui, sans-serif; text-transform: none; letter-spacing: 0;
  font-size: 14px; font-weight: 500; color: var(--lumiere);
  padding: 3px 11px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--lumiere) 45%, transparent);
}
.tete { display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px 64px; align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.tete .chapo { justify-self: end; }

/* -- apparition au défilement (seulement si le script tourne) -- */
.js .revele { transition: opacity .9s cubic-bezier(.2, .7, .2, 1), translate .9s cubic-bezier(.2, .7, .2, 1); }
.js .revele:not(.vu) { opacity: 0; translate: 0 28px; }

/* ---------------------------------------------------------------- ÉTAPE 1 · LE TOPO */
.topo { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.topo__texte .chapo { margin-top: 26px; font-size: clamp(20px, 1.8vw, 24px); color: var(--brume); }
.topo__texte .doux { margin-top: 26px; }
.topo__deux { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 30px; max-width: 640px; filter: drop-shadow(0 10px 22px color-mix(in srgb, var(--nuit) 45%, transparent)); }
.mini-plaque {
  display: flex; align-items: center; gap: 10px;
  min-height: 96px; padding: 14px 18px;
  background: var(--brume); color: var(--texte); text-decoration: none;
  font-size: 15px; line-height: 1.4; color: var(--texte-doux);
  transition: transform .35s cubic-bezier(.2, .7, .2, 1);
}
.mini-plaque strong { display: block; font-size: 17px; color: var(--texte); margin-bottom: 3px; }
.mini-plaque svg { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--gres); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.mini-plaque--gauche { clip-path: polygon(20px 0, 100% 0, 100% 100%, 20px 100%, 0 50%); padding-left: 26px; border-right: 6px solid var(--foret); }
.mini-plaque--droite { clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 50%, calc(100% - 20px) 100%, 0 100%); padding-right: 26px; }
.mini-plaque--gauche:hover { transform: translateX(-5px); }
.mini-plaque--droite:hover { transform: translateX(5px); }

.dossard {
  position: relative; margin: 0; justify-self: center;
  width: min(100%, 400px); padding: 26px 30px 24px;
  background: var(--blanc-balise); color: var(--texte);
  border-radius: 10px;
  rotate: -3deg;
  box-shadow: 0 2px 0 color-mix(in srgb, var(--nuit) 8%, transparent), 0 26px 50px color-mix(in srgb, var(--nuit) 55%, transparent);
  transition: rotate .6s cubic-bezier(.2, .7, .2, 1), translate .9s cubic-bezier(.2, .7, .2, 1), opacity .9s ease;
}
.dossard:hover { rotate: -1deg; }
.dossard::before { /* trame du papier */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent 0 3px, color-mix(in srgb, var(--mousse) 7%, transparent) 3px 4px);
}
.dossard__epingle {
  position: absolute; width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--brume), var(--mousse) 70%, var(--foret-fonce));
  box-shadow: 0 1px 2px color-mix(in srgb, var(--nuit) 40%, transparent);
}
.dossard__epingle--1 { left: 12px; top: 12px; } .dossard__epingle--2 { right: 12px; top: 12px; }
.dossard__epingle--3 { left: 12px; bottom: 12px; } .dossard__epingle--4 { right: 12px; bottom: 12px; }
.dossard__haut {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 0 14px 12px; border-bottom: 2px solid var(--texte);
  font-family: var(--zetta); font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .02em;
}
.dossard__num {
  margin: 6px 0 0; text-align: center;
  font-size: clamp(130px, 13vw, 176px); line-height: .95; font-weight: 800; letter-spacing: -.07em;
  color: var(--sapin);
  font-variant-numeric: tabular-nums;
}
.dossard__nom {
  text-align: center; margin-top: 2px; padding-bottom: 14px; border-bottom: 2px solid var(--texte);
  font-family: var(--zetta); font-size: 17px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
}
.dossard__fiche { margin: 14px 0 0; display: grid; gap: 7px; }
.dossard__fiche div { display: grid; grid-template-columns: 104px 1fr; gap: 12px; font-size: 15px; line-height: 1.35; }
.dossard__fiche dt { font-weight: 600; color: var(--foret-fonce); }
.dossard__fiche dd { margin: 0; }
.dossard__note { margin-top: 14px; font-size: 14px; color: var(--foret-fonce); text-align: center; }

/* ---------------------------------------------------------------- PANORAMAS */
.pano {
  position: relative; margin: 0; isolation: isolate; overflow: hidden;
  height: clamp(380px, 46vw, 860px);
  content-visibility: auto; contain-intrinsic-size: auto 600px;
  background: linear-gradient(180deg, transparent calc(100% - 6px), var(--p-fond, var(--sapin)) calc(100% - 6px));
}
.pano + section, .pano + .etape { margin-top: -1px; }
.pano__scene { --ph: max(100%, 38vw); --p: var(--focal, .5); position: absolute; inset: 0; pointer-events: none; }
.pano .couche { will-change: transform; }
.pano__legende {
  position: absolute; z-index: 5; right: var(--marge); bottom: 96px;
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 450; color: var(--brume);
  padding: 5px 12px 5px 9px; border-radius: 999px;
  background: color-mix(in srgb, var(--nuit) 78%, transparent);
}
.pano__legende .balise { width: 18px; height: 10px; }
/* lisière : on sort de l'ombre de la forêt vers le ciel */
.pano::before {
  content: ""; position: absolute; inset: -1px 0 auto 0; height: clamp(60px, 9vw, 130px); z-index: 4; pointer-events: none;
  background: linear-gradient(180deg, var(--sapin) 0%, color-mix(in srgb, var(--sapin) 55%, transparent) 35%, transparent 100%);
}

/* palette : du lointain (c1) au proche (c8), le sol (c9) ; tout dérive de 5 variables par vue */
.pano {
  --c1: var(--p-loin);
  --c2: color-mix(in oklab, var(--p-pres) 9%, var(--p-loin));
  --c3: color-mix(in oklab, var(--p-pres) 20%, var(--p-loin));
  --c4: color-mix(in oklab, var(--p-pres) 33%, var(--p-loin));
  --c5: color-mix(in oklab, var(--p-pres) 48%, var(--p-loin));
  --c6: color-mix(in oklab, var(--p-pres) 64%, var(--p-loin));
  --c7: color-mix(in oklab, var(--p-pres) 80%, var(--p-loin));
  --c8: var(--p-pres);
  --c9: var(--p-sol);
}
.pano--matin { --p-loin: var(--matin-loin); --p-pres: var(--matin-pres); --p-brume: var(--matin-brume); --p-lisere: var(--matin-lisere); --p-sol: var(--matin-sol); --p-fond: var(--sapin); }
.pano--midi { --p-loin: var(--midi-loin); --p-pres: var(--midi-pres); --p-brume: var(--midi-brume); --p-lisere: var(--midi-lisere); --p-sol: var(--midi-sol); --p-fond: var(--sapin); }
.pano--lac { --p-loin: var(--lac-loin); --p-pres: var(--lac-pres); --p-brume: var(--lac-brume); --p-lisere: var(--lac-lisere); --p-sol: var(--lac-sol); --p-fond: var(--sapin); }
.pano--couchant { --p-loin: var(--couchant-loin); --p-pres: var(--couchant-pres); --p-brume: var(--couchant-brume); --p-lisere: var(--couchant-lisere); --p-sol: var(--couchant-sol); --p-fond: var(--nuit); }
.pano--nuit { --p-loin: var(--nuit-loin); --p-pres: var(--nuit-pres); --p-brume: var(--nuit-brume); --p-lisere: var(--nuit-lisere); --p-sol: var(--nuit-sol); --p-fond: var(--nuit); }

.pano .r1 .s-haut { stop-color: var(--c1); } .pano .r1 .s-bas { stop-color: color-mix(in oklab, var(--c1), var(--p-brume) 50%); }
.pano .r2 .s-haut { stop-color: var(--c2); } .pano .r2 .s-bas { stop-color: color-mix(in oklab, var(--c2), var(--p-brume) 46%); }
.pano .r3 .s-haut { stop-color: var(--c3); } .pano .r3 .s-bas { stop-color: color-mix(in oklab, var(--c3), var(--p-brume) 42%); }
.pano .r4 .s-haut { stop-color: var(--c4); } .pano .r4 .s-bas { stop-color: color-mix(in oklab, var(--c4), var(--p-brume) 38%); }
.pano .r5 .s-haut { stop-color: var(--c5); } .pano .r5 .s-bas { stop-color: color-mix(in oklab, var(--c5), var(--p-brume) 32%); }
.pano .r6 .s-haut { stop-color: var(--c6); } .pano .r6 .s-bas { stop-color: color-mix(in oklab, var(--c6), var(--p-brume) 26%); }
.pano .r7 .s-haut { stop-color: var(--c7); } .pano .r7 .s-bas { stop-color: color-mix(in oklab, var(--c7), var(--p-brume) 22%); }
.pano .r8 .s-haut { stop-color: var(--c8); } .pano .r8 .s-bas { stop-color: color-mix(in oklab, var(--c8), var(--p-fond) 40%); }
.pano .r9 .s-haut { stop-color: var(--c9); } .pano .r9 .s-bas { stop-color: var(--p-fond); }
.pano .lis .l0 { stop-color: var(--p-lisere); stop-opacity: .95; }
.pano .lis .l1 { stop-color: var(--p-lisere); stop-opacity: .38; }
.pano .lis .l2 { stop-color: var(--p-lisere); stop-opacity: 0; }
.pano .brume .b0 { stop-color: var(--p-brume); stop-opacity: .78; }
.pano .brume .b1 { stop-color: var(--p-brume); stop-opacity: .3; }
.pano .brume .b2 { stop-color: var(--p-brume); stop-opacity: 0; }
.pano .o8 { fill: var(--c8); }
.pano .o9 { fill: var(--c9); }
.pano--midi { --c8: var(--midi-chaume); }
.herbe-chaume { fill: color-mix(in oklab, var(--c8), var(--sapin) 38%); }
.pano .eau .e0 { stop-color: var(--lac-eau-1); }
.pano .eau .e1 { stop-color: var(--lac-eau-2); }
.pano .eau .e2 { stop-color: var(--lac-eau-3); }
.pano .reflets rect { fill: var(--lac-eau-1); }
.pano .reflets--a { animation: scintille 3.2s ease-in-out infinite alternate; }
.pano .reflets--b { animation: scintille 2.6s ease-in-out infinite alternate-reverse; }
@keyframes scintille { from { opacity: .15; } to { opacity: .95; } }
.pano .rive { stroke: var(--lac-eau-1); stroke-width: 2; opacity: .6; fill: none; }

/* le couchant porte son propre soleil, plus orangé */
.pano--couchant .soleil {
  width: 4.4%;
  background: radial-gradient(circle, var(--blanc-balise) 0 30%, var(--couchant-soleil) 70%, var(--couchant-halo) 100%);
  box-shadow: 0 0 30px 10px color-mix(in srgb, var(--couchant-halo) 70%, transparent), 0 0 140px 60px color-mix(in srgb, var(--couchant-halo) 35%, transparent);
}
.pano--couchant .halo {
  background: radial-gradient(closest-side,
    color-mix(in srgb, var(--couchant-soleil) 80%, transparent) 0%,
    color-mix(in srgb, var(--couchant-halo) 55%, transparent) 14%,
    color-mix(in srgb, var(--couchant-halo) 20%, transparent) 40%,
    transparent 100%);
}
.pano--couchant .couche--astre > div { animation: none; }

/* refuge (vue de nuit) */
.refuge__toit { fill: var(--nuit-pres); }
.refuge__fenetre { fill: var(--lueur); }
.refuge__fenetre--haut { fill: var(--lueur-coeur); }
.refuge__porte { fill: var(--lueur-coeur); opacity: .9; }
.refuge__croisillon { stroke: var(--nuit-pres); stroke-width: 3; fill: none; }
.refuge .refuge__fenetre { animation: veilleuse 5s ease-in-out infinite alternate; }
@keyframes veilleuse { 0% { opacity: 1; } 60% { opacity: .86; } 100% { opacity: .96; } }

/* ---------------------------------------------------------------- ÉTAPE 2 · LE PARCOURS */
.carte-topo {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(36px, 5vw, 70px) clamp(18px, 4vw, 60px) clamp(64px, 6vw, 80px);
  border-radius: 26px;
  background: var(--brume); color: var(--texte);
  box-shadow: 0 30px 70px color-mix(in srgb, var(--nuit) 50%, transparent);
}
.carte-topo__courbes { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.courbes-fines { fill: none; stroke: var(--mousse); stroke-width: 1; opacity: .42; vector-effect: non-scaling-stroke; }
.courbes-maitresses { fill: none; stroke: var(--foret); stroke-width: 1.8; opacity: .4; vector-effect: non-scaling-stroke; }
.carte-topo__trace { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; overflow: visible; pointer-events: none; }
.trace-fond { fill: none; stroke: var(--blanc-balise); stroke-width: 12; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.trace { fill: none; stroke: var(--gres); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 10 9; }
.carte-topo__legende {
  position: absolute; left: clamp(18px, 4vw, 60px); bottom: 22px;
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--texte-doux);
}
.carte-topo__legende .balise { width: 18px; height: 10px; }
.bornes { position: relative; z-index: 1; list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(26px, 3.4vw, 46px); }
.borne { display: grid; grid-template-columns: 1fr 108px 1fr; align-items: center; }
.borne__pierre {
  grid-column: 2; justify-self: center;
  display: grid; place-items: center;
  width: 76px; height: 92px; border-radius: 38px 38px 10px 10px;
  background: linear-gradient(180deg, var(--gres) 0 22%, var(--blanc-balise) 22% 30%, var(--sapin) 30%);
  box-shadow: 0 0 0 4px var(--brume), 0 12px 24px color-mix(in srgb, var(--nuit) 30%, transparent);
  color: var(--brume); font-weight: 750; font-size: 19px; letter-spacing: -.01em;
}
.borne__pierre span { margin-top: 26px; }
.borne__carte {
  grid-row: 1; grid-column: 1; justify-self: end;
  width: min(100%, 470px); padding: 22px 26px 22px;
  background: color-mix(in srgb, var(--blanc-balise) 97%, transparent);
  border-radius: 18px;
  box-shadow: 0 1px 0 color-mix(in srgb, var(--foret) 18%, transparent), 0 16px 34px color-mix(in srgb, var(--sapin) 16%, transparent);
}
.borne:nth-child(even) .borne__carte { grid-column: 3; justify-self: start; }
.borne__quand { font-family: var(--zetta); font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; color: var(--gres-texte); }
.borne__carte h3 { margin-top: 8px; font-size: clamp(21px, 1.9vw, 25px); color: var(--texte); }
.borne__ou { margin-top: 4px; font-size: 16px; font-weight: 500; color: var(--foret-fonce); }
.borne__carte > p:not([class]) { margin-top: 10px; font-size: 17px; color: var(--texte-doux); }
.casquettes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.casquette { font-size: 14px; font-weight: 600; padding: 3px 11px; border-radius: 999px; }
.casquette--mk { background: color-mix(in srgb, var(--mousse) 26%, var(--blanc-balise)); color: var(--sapin); }
.casquette--ia { background: var(--sapin); color: var(--brume); }
.borne--arrivee .borne__pierre { background: linear-gradient(180deg, var(--gres) 0 22%, var(--blanc-balise) 22% 30%, var(--foret) 30%); }

/* ---------------------------------------------------------------- ÉTAPE 3 · LE CARREFOUR */
.etape--carrefour { text-align: center; padding-bottom: clamp(56px, 7vw, 100px); }
.carrefour { display: flex; flex-direction: column; align-items: center; }
.carrefour .reperage { justify-content: center; }
.carrefour h2 { max-width: 20ch; }
.carrefour .chapo { margin-top: 24px; max-width: 52ch; }
.grand-poteau {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  width: 100%; max-width: 1040px; margin-top: clamp(40px, 5vw, 64px);
  filter: drop-shadow(0 18px 30px color-mix(in srgb, var(--nuit) 50%, transparent));
}
.grand-poteau__mat {
  align-self: stretch; width: 18px; margin: -40px 0 -80px; position: relative;
  border-radius: 5px 5px 0 0;
  background: linear-gradient(90deg, var(--mousse), var(--foret) 40%, var(--foret-fonce));
}
.grand-poteau__mat .balise { position: absolute; top: 8px; left: 50%; translate: -50% 0; width: 14px; height: 18px;
  background: linear-gradient(180deg, var(--gres) 0 50%, var(--blanc-balise) 50%); }
.grand-poteau__plaque {
  display: flex; flex-direction: column; gap: 6px; text-align: left;
  min-height: 150px; padding: 24px 40px; justify-content: center;
  background: var(--brume); color: var(--texte); text-decoration: none;
  transition: transform .4s cubic-bezier(.2, .7, .2, 1), background-color .3s ease;
}
.grand-poteau__plaque strong { font-size: clamp(22px, 2.3vw, 30px); font-weight: 720; letter-spacing: -.02em; line-height: 1.15; }
.grand-poteau__plaque span:last-child { font-size: 16px; color: var(--texte-doux); }
.grand-poteau__num { font-family: var(--zetta); font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; color: var(--gres-texte); }
.grand-poteau__plaque--gauche { clip-path: polygon(36px 0, 100% 0, 100% 100%, 36px 100%, 0 50%); padding-left: 56px; align-items: flex-end; text-align: right; }
.grand-poteau__plaque--droite { clip-path: polygon(0 0, calc(100% - 36px) 0, 100% 50%, calc(100% - 36px) 100%, 0 100%); padding-right: 56px; }
.grand-poteau__plaque--gauche:hover { transform: translateX(-8px) rotate(-1deg); }
.grand-poteau__plaque--droite:hover { transform: translateX(8px) rotate(1deg); }
.grand-poteau__plaque:hover { background: var(--blanc-balise); }

/* ---------------------------------------------------------------- LES DEUX SENTIERS (même gabarit) */
.sentier { padding-top: clamp(56px, 7vw, 100px); }
.sentier--mk { background: linear-gradient(180deg, color-mix(in oklab, var(--sapin), var(--foret) 16%) 0%, var(--sapin) 100%); }
.sentier--ia { background: linear-gradient(180deg, var(--sapin) 0%, color-mix(in oklab, var(--sapin), var(--nuit) 30%) 100%); }
.sentier__tete { max-width: 860px; }
.sentier--ia .sentier__tete { margin-left: auto; text-align: right; }
.sentier--ia .sentier__tete h2, .sentier--ia .sentier__tete .chapo { margin-left: auto; }
.sentier__panneau {
  display: inline-flex; align-items: center; gap: 14px;
  margin-bottom: 26px; padding: 12px 22px;
  font-family: var(--zetta); font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .02em;
  background: var(--brume); color: var(--texte);
}
.sentier--mk .sentier__panneau { clip-path: polygon(16px 0, 100% 0, 100% 100%, 16px 100%, 0 50%); padding-left: 30px; }
.sentier--ia .sentier__panneau { clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%); padding-right: 30px; }
.sentier__panneau svg { width: 20px; height: 20px; fill: none; stroke: var(--gres); stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.sentier__tete .chapo { margin-top: 24px; }

.faits, .compteurs {
  list-style: none; margin: clamp(40px, 5vw, 64px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.fait, .compteur {
  padding: 26px 26px 28px; border-radius: 20px;
  background: color-mix(in oklab, var(--sapin), var(--brume) 7%);
  border: 1px solid color-mix(in srgb, var(--brume) 14%, transparent);
  color: var(--texte-clair-doux); font-size: 17px;
}
.fait__titre, .compteur__valeur {
  margin-bottom: 12px;
  font-size: clamp(28px, 2.7vw, 38px); line-height: 1.1; font-weight: 720; letter-spacing: -.025em;
  color: var(--bourgeon);
}
.compteur__valeur span { font-variant-numeric: tabular-nums; }
.fait__titre::before { content: ""; display: block; width: 34px; height: 4px; margin-bottom: 18px; border-radius: 2px; background: var(--gres); }
.compteur__valeur::before { content: ""; display: block; width: 34px; height: 4px; margin-bottom: 18px; border-radius: 2px; background: var(--gres); }
.sentier--ia .compteur { text-align: left; }

/* -- les sites : une sélection -- */
.sites { margin-top: clamp(64px, 8vw, 110px); }
.sites__tete { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 30px; margin-bottom: 30px; }
.sites__tete h3 { font-size: clamp(26px, 2.6vw, 36px); }
.sites__tete p { color: var(--texte-clair-doux); }
.sites__grille { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.site__carte {
  height: 100%; display: flex; flex-direction: column;
  border-radius: 20px; overflow: hidden;
  background: var(--brume); color: var(--texte);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--blanc-balise) 40%, transparent) inset, 0 18px 40px color-mix(in srgb, var(--nuit) 40%, transparent);
  transition: transform .45s cubic-bezier(.2, .7, .2, 1), box-shadow .45s ease;
}
.site__carte:hover { transform: translateY(-6px); box-shadow: 0 28px 60px color-mix(in srgb, var(--nuit) 50%, transparent); }
.site__navigateur { display: flex; align-items: center; gap: 12px; padding: 11px 14px; background: color-mix(in oklab, var(--brume), var(--mousse) 22%); }
.site__points { display: inline-flex; gap: 6px; }
.site__points i { width: 10px; height: 10px; border-radius: 50%; background: color-mix(in oklab, var(--brume), var(--foret) 45%); }
.site__points i:first-child { background: var(--gres); }
.site__adresse { flex: 1; height: 16px; border-radius: 999px; background: color-mix(in srgb, var(--blanc-balise) 80%, transparent); }
.site__visuel, .site__capture {
  position: relative; display: grid; place-items: center; overflow: hidden;
  aspect-ratio: 16 / 10; width: 100%; object-fit: cover;
  --v1: var(--foret); --v2: var(--sapin);
  background: radial-gradient(120% 90% at 20% 0%, color-mix(in oklab, var(--v1), var(--bourgeon) 22%) 0%, var(--v1) 40%, var(--v2) 100%);
}
.site--2 .site__visuel { --v1: var(--mousse); --v2: var(--foret-fonce); }
.site--3 .site__visuel { --v1: var(--foret-fonce); --v2: var(--nuit); }
.site--4 .site__visuel { --v1: color-mix(in oklab, var(--mousse), var(--bourgeon) 30%); --v2: var(--foret); }
.site--5 .site__visuel { --v1: var(--foret); --v2: var(--nuit); }
.site--6 .site__visuel { --v1: color-mix(in oklab, var(--foret), var(--lumiere) 18%); --v2: var(--sapin); }
.site--7 .site__visuel { --v1: var(--mousse); --v2: var(--sapin); }
.site--8 .site__visuel { --v1: var(--foret-fonce); --v2: color-mix(in oklab, var(--sapin), var(--nuit) 50%); }
.site--9 .site__visuel { --v1: color-mix(in oklab, var(--foret), var(--bourgeon) 12%); --v2: var(--foret-fonce); }
.site__motif { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: var(--brume); stroke-width: 1.2; opacity: .18; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.site__carte:hover .site__motif { transform: scale(1.08) translateY(-3%); }
.site__capture { display: block; height: auto; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.site__carte:hover .site__capture { transform: scale(1.035); }
.site__initiales {
  position: relative;
  font-family: var(--zetta); font-size: clamp(44px, 4.6vw, 66px); font-weight: 600; letter-spacing: .02em;
  color: var(--brume);
  text-shadow: 0 6px 30px color-mix(in srgb, var(--nuit) 40%, transparent);
}
.site__pied { display: flex; flex-direction: column; gap: 8px; padding: 18px 22px 22px; flex: 1; }
.site__nom { font-size: 21px; font-weight: 680; letter-spacing: -.015em; line-height: 1.2; overflow-wrap: anywhere; }
.site__statut { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; font-size: 14px; font-weight: 500; color: var(--foret-fonce); }
.site__statut::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mousse); box-shadow: 0 0 0 3px color-mix(in srgb, var(--mousse) 25%, transparent); }
.site__role { font-size: 15px; font-weight: 600; color: var(--foret-fonce); }
.site__description { font-size: 17px; color: var(--texte-doux); }
.site__lien { font-weight: 600; color: var(--sapin); }

/* -- les ravitos -- */
.ravitos { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.ravito {
  grid-column: span 2; display: flex; flex-direction: column; gap: 8px;
  padding: 22px 24px 26px; border-radius: 20px;
  background: var(--brume); color: var(--texte); font-size: 17px;
  box-shadow: 0 18px 40px color-mix(in srgb, var(--nuit) 40%, transparent);
  transition: transform .45s cubic-bezier(.2, .7, .2, 1);
}
.ravito:hover { transform: translateY(-5px); }
.ravito--grand { grid-column: span 3; }
.ravito--liste { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 30px; }
.ravito--liste .ravito__tete { border-bottom: 0; margin: 0; padding: 0; gap: 14px; flex: none; }
.ravito--liste ul { grid-template-columns: repeat(4, auto); justify-content: space-between; flex: 1; gap: 8px 26px; }
.ravito__tete {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 12px; margin-bottom: 6px; border-bottom: 1.5px dashed color-mix(in srgb, var(--foret) 40%, transparent);
  font-family: var(--zetta); font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; color: var(--foret-fonce);
}
.ravito h4 { font-size: clamp(20px, 1.8vw, 24px); font-weight: 680; letter-spacing: -.015em; line-height: 1.22; }
.ravito__qui { font-size: 16px; font-weight: 550; color: var(--foret-fonce); }
.ravito p:not([class]) { color: var(--texte-doux); }
.ravito__gain { margin-top: auto; padding-top: 14px; font-size: 17px; color: var(--texte-doux); }
.ravito__gain strong { display: block; font-size: clamp(32px, 3.2vw, 44px); line-height: 1.05; font-weight: 750; letter-spacing: -.03em; color: var(--sapin); }
.ravito--liste ul { margin: 0; padding: 0; list-style: none; display: grid; color: var(--texte-doux); }
.ravito--liste li { display: flex; gap: 10px; }
.ravito--liste li::before { content: ""; flex: none; width: 10px; height: 6px; margin-top: 10px; background: linear-gradient(180deg, var(--gres) 50%, var(--sapin) 50%); border-radius: 1px; }

/* -- le détour : l'Atelier IA -- */
.detour {
  position: relative; margin-top: clamp(64px, 8vw, 110px);
  display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 4vw, 60px); align-items: center;
  padding: clamp(28px, 4vw, 54px);
  border-radius: 28px;
  background: color-mix(in oklab, var(--nuit), var(--sapin) 40%);
  border: 2px dashed color-mix(in srgb, var(--lumiere) 55%, transparent);
}
.detour__panneau {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 9px 26px 9px 16px; margin-bottom: 20px;
  font-family: var(--zetta); font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .02em;
  background: var(--lumiere); color: var(--nuit);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%);
}
.detour h3 { font-size: clamp(28px, 3vw, 40px); letter-spacing: -.03em; }
.detour__texte > p:not([class]) { margin: 16px 0 26px; color: var(--texte-clair-doux); max-width: 44ch; }
.bouton--or { background: var(--lumiere); color: var(--nuit); box-shadow: 0 10px 28px color-mix(in srgb, var(--lumiere) 26%, transparent); }
.bouton--or small { color: var(--sapin); }
.mini-profil { border-radius: 18px; overflow: hidden; background: var(--brume); color: var(--texte); box-shadow: 0 24px 50px color-mix(in srgb, var(--nuit) 55%, transparent); }
.mini-profil__barre { display: flex; align-items: center; gap: 12px; padding: 11px 16px; background: color-mix(in oklab, var(--brume), var(--mousse) 22%); font-size: 14px; }
.mini-profil__points { display: inline-flex; gap: 6px; }
.mini-profil__points i { width: 10px; height: 10px; border-radius: 50%; background: color-mix(in oklab, var(--brume), var(--foret) 45%); }
.mini-profil__points i:first-child { background: var(--gres); }
.mini-profil__url { flex: 1; font-weight: 600; }
.mini-profil__etat { white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; color: var(--foret-fonce); font-weight: 500; }
.mini-profil__etat::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--foret); animation: pouls 2s ease-in-out infinite; }
@keyframes pouls { 50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--foret) 22%, transparent); } }
.mini-profil__svg { display: block; width: 100%; height: auto; padding: 18px 18px 0; overflow: visible; }
.mini-profil__aire { fill: color-mix(in oklab, var(--mousse) 26%, var(--brume)); }
.mini-profil__ligne { fill: none; stroke: var(--foret); stroke-width: 2.5; }
.mini-profil__etape line { stroke: var(--foret-fonce); stroke-width: 2; }
.mini-profil__etape circle { fill: var(--brume); stroke: var(--foret-fonce); stroke-width: 3; transition: fill .3s; }
.mini-profil__coureur { fill: var(--gres); stroke: var(--blanc-balise); stroke-width: 2.5; animation: mini-course 8s linear infinite; }
@keyframes mini-course {
  0%, 10% { transform: translate(40px, 100px); }
  18% { transform: translate(100px, 84px); }
  25%, 35% { transform: translate(150px, 69px); }
  42% { transform: translate(205px, 57px); }
  50%, 60% { transform: translate(260px, 46px); }
  67% { transform: translate(310px, 34px); }
  75%, 94% { transform: translate(370px, 22px); opacity: 1; }
  98% { transform: translate(370px, 22px); opacity: 0; }
  99% { transform: translate(40px, 100px); opacity: 0; }
  100% { transform: translate(40px, 100px); opacity: 1; }
}
.mini-profil__etape circle { animation: etape-allumee 8s steps(1, end) infinite; }
.mini-profil__etape--1 circle { animation-name: etape-1; }
.mini-profil__etape--2 circle { animation-name: etape-2; }
.mini-profil__etape--3 circle { animation-name: etape-3; }
.mini-profil__etape--4 circle { animation-name: etape-4; }
@keyframes etape-1 { 0%, 97% { fill: var(--gres); } 98%, 100% { fill: var(--brume); } }
@keyframes etape-2 { 0%, 24% { fill: var(--brume); } 25%, 97% { fill: var(--gres); } 98%, 100% { fill: var(--brume); } }
@keyframes etape-3 { 0%, 49% { fill: var(--brume); } 50%, 97% { fill: var(--gres); } 98%, 100% { fill: var(--brume); } }
@keyframes etape-4 { 0%, 74% { fill: var(--brume); } 75%, 97% { fill: var(--gres); } 98%, 100% { fill: var(--brume); } }
.mini-profil__liste { list-style: none; counter-reset: e; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0; padding: 10px 18px 20px; }
.mini-profil__liste li { counter-increment: e; font-size: 14px; line-height: 1.35; font-weight: 500; color: var(--texte-doux); }
.mini-profil__liste li::before { content: counter(e); display: grid; place-items: center; width: 24px; height: 24px; margin-bottom: 6px; border-radius: 50%; background: var(--sapin); color: var(--brume); font-size: 14px; font-weight: 650; }

/* ---------------------------------------------------------------- ÉTAPE 5 · CE QUE JE FAIS */
.etape--offre { background: linear-gradient(180deg, color-mix(in oklab, var(--sapin), var(--nuit) 30%) 0%, var(--sapin) 30%, var(--sapin) 100%); }
.offre { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.poteau4 { position: relative; padding: 10px 0 0; }
.poteau4__mat {
  position: absolute; left: 50%; top: -24px; bottom: 60px; width: 16px; translate: -50% 0; border-radius: 5px 5px 0 0;
  background: linear-gradient(90deg, var(--mousse), var(--foret) 40%, var(--foret-fonce));
}
.poteau4__mat .balise { position: absolute; top: 10px; left: 50%; translate: -50% 0; width: 12px; height: 16px; background: linear-gradient(180deg, var(--gres) 0 50%, var(--blanc-balise) 50%); }
.poteau4__plaques { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; position: relative; }
.direction {
  position: relative; width: calc(50% + 40px); padding: 20px 30px 22px;
  background: var(--brume); color: var(--texte); font-size: 17px;
  filter: drop-shadow(0 12px 18px color-mix(in srgb, var(--nuit) 45%, transparent));
}
.direction p:not([class]) { color: var(--texte-doux); margin-top: 6px; }
.direction h3 { font-size: clamp(22px, 2vw, 27px); }
.direction__num { font-family: var(--zetta); font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; color: var(--gres-texte); }
.direction--d { margin-left: calc(50% - 40px); clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 50%, calc(100% - 26px) 100%, 0 100%); padding-right: 46px; }
.direction--g { clip-path: polygon(26px 0, 100% 0, 100% 100%, 26px 100%, 0 50%); padding-left: 46px; }
.offre__mk {
  display: flex; gap: 14px; align-items: flex-start;
  margin-top: 34px; padding: 18px 22px; border-radius: 16px;
  background: color-mix(in oklab, var(--sapin), var(--brume) 8%); border: 1px solid color-mix(in srgb, var(--brume) 16%, transparent);
  color: var(--texte-clair-doux); position: relative;
}
.offre__mk strong { color: var(--brume); font-weight: 650; }
.offre__mk .balise { margin-top: 6px; }
.sac {
  position: relative; padding: 28px 28px 30px; border-radius: 26px;
  background: var(--brume); color: var(--texte);
  box-shadow: 0 26px 60px color-mix(in srgb, var(--nuit) 50%, transparent);
}
.sac::before { /* bretelles */
  content: ""; position: absolute; left: 22%; right: 22%; top: -16px; height: 32px; border: 5px solid var(--foret); border-bottom: 0; border-radius: 24px 24px 0 0;
}
.sac__tete { display: flex; gap: 16px; align-items: center; padding-bottom: 18px; border-bottom: 2px solid var(--sapin); }
.sac__icone { flex: none; width: 52px; height: 52px; fill: none; stroke: var(--sapin); stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.sac h3 { font-size: 28px; }
.sac__tete p { font-size: 16px; color: var(--texte-doux); }
.poche { padding: 16px 0; border-bottom: 1.5px dashed color-mix(in srgb, var(--foret) 34%, transparent); font-size: 17px; color: var(--texte-doux); }
.poche:last-child { border-bottom: 0; padding-bottom: 0; }
.poche h4 { margin-bottom: 8px; font-family: var(--zetta); font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; color: var(--foret-fonce); }
.poche p + p { margin-top: 6px; }
.puces { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.puces li { padding: 5px 12px; border-radius: 999px; font-size: 15px; font-weight: 550; background: color-mix(in oklab, var(--brume), var(--mousse) 24%); color: var(--sapin); }

/* ---------------------------------------------------------------- ÉTAPE 6 · LE REFUGE, LA NUIT */
.refuge { position: relative; isolation: isolate; color: var(--texte-clair); min-height: max(100svh, 900px); display: flex; flex-direction: column; justify-content: flex-start; }
.refuge__pano { position: absolute; inset: 0; height: auto; z-index: -1; content-visibility: visible; }
.refuge__pano::before { display: none; }
.refuge__pano .pano__scene { --ph: clamp(400px, 60vw, 100%); }
.refuge__contenu { margin-top: clamp(80px, 9vw, 140px); margin-bottom: clamp(300px, 30vw, 520px); }
.refuge__panneau {
  max-width: 1060px; padding: clamp(26px, 4vw, 48px);
  border-radius: 28px;
  background: color-mix(in srgb, var(--nuit) 88%, transparent);
  border: 1px solid color-mix(in srgb, var(--brume) 10%, transparent);
  box-shadow: 0 30px 80px color-mix(in srgb, var(--nuit) 50%, transparent);
}
.refuge__contenu .reperage { color: var(--bourgeon); }
.refuge h2 { max-width: 20ch; }
.refuge__contenu .chapo { margin-top: 20px; }
.portes { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 36px; max-width: 980px; }
.porte {
  position: relative; display: grid; grid-template-columns: 112px 1fr; gap: 22px; align-items: center;
  padding: 22px; border-radius: 22px; text-decoration: none; color: var(--texte-clair);
  background: color-mix(in srgb, var(--nuit) 90%, transparent);
  border: 1px solid color-mix(in srgb, var(--lueur) 22%, transparent);
  box-shadow: 0 20px 50px color-mix(in srgb, var(--nuit) 60%, transparent);
  transition: border-color .4s ease, box-shadow .6s ease, transform .4s cubic-bezier(.2, .7, .2, 1);
  perspective: 600px;
}
.porte__lumiere, .porte__battant { grid-column: 1; grid-row: 1; width: 112px; height: 150px; border-radius: 56px 56px 8px 8px; }
.porte__lumiere {
  background: radial-gradient(90% 70% at 50% 70%, var(--lueur-coeur) 0%, var(--lueur) 55%, color-mix(in oklab, var(--lueur), var(--bois) 40%) 100%);
  box-shadow: 0 0 0 5px var(--bois), 0 0 0 7px color-mix(in srgb, var(--lueur) 30%, transparent);
}
.porte__battant {
  position: relative; transform-origin: 0 50%;
  background:
    repeating-linear-gradient(90deg, transparent 0 26px, color-mix(in srgb, var(--nuit) 35%, transparent) 26px 28px),
    linear-gradient(180deg, var(--bois-clair), var(--bois));
  transition: transform 1s cubic-bezier(.2, .7, .2, 1);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--nuit) 40%, transparent);
}
.porte__poignee { position: absolute; right: 14px; top: 56%; width: 9px; height: 9px; border-radius: 50%; background: var(--lueur); }
.porte__texte { display: flex; flex-direction: column; gap: 6px; font-size: 17px; color: var(--texte-clair-doux); }
.porte__texte strong { font-size: clamp(26px, 2.4vw, 32px); font-weight: 720; letter-spacing: -.025em; color: var(--brume); line-height: 1.1; }
.porte__qui { font-family: var(--zetta); font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; color: var(--lueur); }
.porte__action { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-weight: 650; color: var(--lueur-coeur); }
.porte__action svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.porte:hover, .porte:focus-visible { border-color: color-mix(in srgb, var(--lueur) 60%, transparent); transform: translateY(-4px);
  box-shadow: 0 20px 50px color-mix(in srgb, var(--nuit) 60%, transparent), 0 0 70px color-mix(in srgb, var(--lueur) 22%, transparent); }
.porte:hover .porte__battant, .porte:focus-visible .porte__battant { transform: rotateY(-68deg); }
.js .porte.vu .porte__battant { transform: rotateY(-24deg); }
.js .porte.vu:hover .porte__battant, .js .porte.vu:focus-visible .porte__battant { transform: rotateY(-70deg); }
.coordonnees { list-style: none; margin: 30px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 28px; }
.coordonnees a { display: inline-flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 600; color: var(--brume); text-decoration: none; padding: 8px 0; border-bottom: 2px solid color-mix(in srgb, var(--lueur) 50%, transparent); }
.coordonnees a:hover { border-bottom-color: var(--lueur); }
.coordonnees svg { width: 22px; height: 22px; fill: none; stroke: var(--lueur); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pano__legende--nuit { bottom: 96px; }
.lucioles { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 6; pointer-events: none; }
/* la lune : une seule, elle se lève au-dessus du refuge (--lever posé par le script) */
.lune {
  position: absolute; z-index: 1; right: 7%; top: clamp(60px, 11%, 150px);
  width: 54px; height: 54px; border-radius: 50%;
  background: radial-gradient(circle at 36% 34%, var(--lune) 0 55%, var(--lune-ombre) 100%);
  box-shadow: 0 0 30px 6px color-mix(in srgb, var(--lune) 30%, transparent), 0 0 120px 40px color-mix(in srgb, var(--lune) 12%, transparent);
  transform: translate(calc((1 - var(--lever, 1)) * -80px), calc((1 - var(--lever, 1)) * 260px));
  opacity: calc(.25 + .75 * var(--lever, 1));
}
@media (max-width: 1100px) { .lune { top: 20px; width: 40px; height: 40px; } }
.etoile-filante {
  position: absolute; left: 62%; top: 9%; z-index: 1; width: 160px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--etoile), transparent);
  rotate: 152deg; transform-origin: 0 50%; opacity: 0;
  animation: filante 11s 2s ease-in infinite;
}
@keyframes filante {
  0%, 90% { opacity: 0; translate: 0 0; scale: .2 1; }
  92% { opacity: 1; }
  97% { opacity: 0; translate: -260px 140px; scale: 1 1; }
  100% { opacity: 0; }
}
.fumee { position: absolute; left: var(--fumee-x); top: var(--fumee-y); width: 2.4%; aspect-ratio: 1; }
.fumee i {
  position: absolute; left: 0; bottom: 0; width: 100%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--nuit-lisere) 30%, transparent), transparent 70%);
  animation: fumee 7s linear infinite; opacity: 0;
}
.fumee i:nth-child(2) { animation-delay: -2.3s; } .fumee i:nth-child(3) { animation-delay: -4.6s; }
@keyframes fumee {
  0% { opacity: 0; transform: translate(0, 0) scale(.6); }
  15% { opacity: .9; }
  100% { opacity: 0; transform: translate(-90%, -520%) scale(3.2); }
}

/* ---------------------------------------------------------------- PIED DE PAGE */
.pied { background: var(--nuit); color: var(--texte-clair-doux); padding: 30px 0 34px; font-size: 16px; }
.pied__ligne { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 30px; }
.pied p { display: inline-flex; align-items: center; gap: 10px; }
.pied .balise { width: 20px; height: 11px; }
.pied a { color: var(--brume); text-underline-offset: 4px; }

/* ---------------------------------------------------------------- BARRE FIXE · PROFIL D'ALTITUDE */
.profil {
  position: fixed; z-index: 60; left: 50%; bottom: 14px; translate: -50% calc(100% + 30px);
  width: min(1040px, calc(100% - 24px)); height: 48px;
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px;
  padding: 0 18px 0 12px; border-radius: 14px;
  background: color-mix(in srgb, var(--nuit) 94%, transparent);
  border: 1px solid color-mix(in srgb, var(--brume) 12%, transparent);
  box-shadow: 0 16px 40px color-mix(in srgb, var(--nuit) 45%, transparent);
  color: var(--brume);
  transition: translate .6s cubic-bezier(.2, .7, .2, 1);
}
.profil--visible { translate: -50% 0; }
/* masquée pendant la descente, réaffichée à la remontée ou à l'arrêt (voir site.js) */
.profil--visible.profil--cache { translate: -50% calc(100% + 30px); }
html { scroll-padding-bottom: 76px; }
.profil__etat { display: flex; align-items: center; gap: 10px; width: 244px; min-width: 0; }
.profil__texte { overflow: hidden; text-overflow: ellipsis; }
.profil__astre {
  width: 18px; height: 18px; border-radius: 50%; flex: none;
  background: radial-gradient(circle, var(--soleil-coeur) 0 45%, var(--lumiere) 100%);
  box-shadow: 0 0 14px color-mix(in srgb, var(--lumiere) 60%, transparent);
  transition: background .6s, box-shadow .6s;
}
.profil--nuit .profil__astre { background: radial-gradient(circle at 36% 34%, var(--lune) 0 55%, var(--lune-ombre) 100%); box-shadow: 0 0 14px color-mix(in srgb, var(--lune) 40%, transparent); }
.profil__texte { display: flex; align-items: baseline; gap: 8px; line-height: 1.2; white-space: nowrap; }
.profil__moment { font-size: 14px; color: var(--lumiere); }
.profil__nom { font-size: 15px; font-weight: 650; }
.profil__piste { position: relative; height: 42px; margin: 0 34px 0 30px; }
.profil__svg { position: absolute; left: 0; right: 0; bottom: 3px; width: 100%; height: 16px; }
.profil__aire { fill: color-mix(in srgb, var(--foret) 45%, transparent); }
.profil__ligne { fill: none; stroke: color-mix(in srgb, var(--brume) 40%, transparent); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.profil__fait { fill: none; stroke: var(--bourgeon); stroke-width: 2.5; vector-effect: non-scaling-stroke; clip-path: inset(0 calc(100% - var(--avance, 0%)) 0 0); will-change: clip-path; }
.profil__bornes { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; }
.profil__bornes li { position: absolute; left: var(--x); bottom: 0; top: 0; translate: -50% 0; }
.profil__bornes li:nth-child(1) { --x: 0%; } .profil__bornes li:nth-child(2) { --x: 14%; } .profil__bornes li:nth-child(3) { --x: 29%; }
.profil__bornes li:nth-child(4) { --x: 46%; } .profil__bornes li:nth-child(5) { --x: 63%; } .profil__bornes li:nth-child(6) { --x: 80%; } .profil__bornes li:nth-child(7) { --x: 100%; }
.profil__bornes a {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  height: 100%; min-width: 44px; text-decoration: none; color: var(--texte-clair-doux);
}
.profil__bornes a::after { /* le piquet de la borne */
  content: ""; position: absolute; bottom: calc(3px + var(--y, 12px)); width: 8px; height: 8px; border-radius: 2px;
  background: linear-gradient(180deg, var(--gres) 50%, var(--blanc-balise) 50%);
  box-shadow: 0 0 0 2px var(--nuit);
}
.profil__etiquette { font-size: 14px; line-height: 18px; font-weight: 500; white-space: nowrap; padding: 0 4px; border-radius: 6px; transition: color .3s, background-color .3s; }
.profil__bornes a:hover .profil__etiquette, .profil__bornes a[aria-current] .profil__etiquette { color: var(--nuit); background: var(--bourgeon); }

.profil__coureur {
  position: absolute; left: 0; bottom: 3px; width: 12px; height: 12px; translate: -6px -6px; will-change: translate;
  border-radius: 50%; background: var(--lumiere); box-shadow: 0 0 0 3px var(--nuit), 0 0 18px color-mix(in srgb, var(--lumiere) 70%, transparent);
}

/* ---------------------------------------------------------------- LECTURE RAPIDE */
.lecture { display: none; }
.lecture:target, .lecture.ouverte {
  display: block; position: fixed; inset: 0; z-index: 80; overflow-y: auto; overscroll-behavior: contain;
  padding: clamp(16px, 4vw, 48px) 16px 48px;
  background: color-mix(in srgb, var(--nuit) 72%, transparent);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.lecture__feuille {
  max-width: 780px; margin: 0 auto; padding: clamp(24px, 4vw, 48px);
  border-radius: 24px; background: var(--brume); color: var(--texte);
  box-shadow: 0 30px 80px color-mix(in srgb, var(--nuit) 60%, transparent);
}
.lecture__tete { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.lecture__sur { font-family: var(--zetta); font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; color: var(--gres-texte); }
.lecture__fermer { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--sapin); color: var(--brume); text-decoration: none; font-weight: 600; font-size: 16px; }
.lecture__fermer svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.lecture h2 { margin: 0; font-size: clamp(30px, 4vw, 44px); line-height: 1.05; letter-spacing: -.03em; }
.lecture h3 { margin: 28px 0 10px; padding-top: 18px; border-top: 1.5px solid color-mix(in srgb, var(--foret) 25%, transparent); font-size: 20px; letter-spacing: -.01em; }
.lecture__qui { margin-top: 12px; font-size: 19px; color: var(--texte-doux); }
.lecture__deux { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lecture__deux div { padding: 16px 18px; border-radius: 14px; background: color-mix(in oklab, var(--brume), var(--mousse) 16%); }
.lecture__deux dt { font-weight: 680; }
.lecture__deux dd { margin: 4px 0 0; color: var(--texte-doux); }
.lecture ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.lecture__chiffres strong { color: var(--sapin); font-weight: 750; }
.lecture__parcours b { display: inline-block; min-width: 190px; font-weight: 650; color: var(--foret-fonce); }
.lecture__sites { color: var(--texte-doux); }
.lecture a:not(.bouton):not(.lecture__fermer) { color: var(--sapin); font-weight: 600; text-underline-offset: 3px; }
.lecture__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.lecture__contact { margin-top: 18px; color: var(--texte-doux); }
.lecture-ouverte { overflow: hidden; }

/* ---------------------------------------------------------------- ADAPTATIONS */
@media (max-width: 1100px) {
  .ravito, .ravito--grand { grid-column: span 3; }
  .ravito--liste { grid-column: span 3; flex-direction: column; align-items: stretch; gap: 10px; }
  .ravito--liste .ravito__tete { border-bottom: 1.5px dashed color-mix(in srgb, var(--foret) 40%, transparent); padding-bottom: 12px; }
  .ravito--liste ul { grid-template-columns: 1fr; }
  .sites__grille { gap: 16px; }
  .site__nom { font-size: 19px; }
  .detour { grid-template-columns: 1fr; }
  .offre { grid-template-columns: 1fr; }
  .sac { max-width: 640px; }
}
@media (max-width: 900px) {
  .tete { grid-template-columns: 1fr; }
  .tete .chapo { justify-self: start; }
  .topo { grid-template-columns: 1fr; }
  .dossard { justify-self: start; }
  .faits, .compteurs { grid-template-columns: 1fr; }
  .borne { grid-template-columns: 84px 1fr; gap: 0 16px; }
  .borne__pierre { grid-column: 1; grid-row: 1; width: 66px; height: 80px; font-size: 17px; }
  .borne__carte, .borne:nth-child(even) .borne__carte { grid-column: 2; grid-row: 1; justify-self: stretch; width: auto; }
  .borne__pierre span { margin-top: 22px; }
  .portes { grid-template-columns: 1fr; }
  .grand-poteau { grid-template-columns: 1fr; gap: 14px; }
  .grand-poteau__mat { display: none; }
  .grand-poteau__plaque { min-height: 120px; }
  .grand-poteau__plaque--gauche { align-items: flex-start; text-align: left; }
  .sentier--ia .sentier__tete { text-align: left; margin-left: 0; }
  .sentier--ia .sentier__tete h2, .sentier--ia .sentier__tete .chapo { margin-left: 0; }
  .direction, .direction--d { width: auto; margin-left: 30px; }
  .poteau4__mat { left: 8px; translate: none; }
  .direction--g { clip-path: polygon(22px 0, 100% 0, 100% 100%, 22px 100%, 0 50%); }
  .direction--d { clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 50%, calc(100% - 22px) 100%, 0 100%); }
  .profil__etat { width: auto; }
  .profil__piste { margin: 0 14px 0 10px; }
  .profil__etiquette { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .profil__bornes a { justify-content: flex-end; }
}
@media (max-width: 700px) {
  .sites__grille { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .ravito, .ravito--grand, .ravito--liste { grid-column: 1 / -1; }
  .sites__grille { grid-template-columns: 1fr; gap: 14px; }
  .site__carte { display: grid; grid-template-columns: 124px 1fr; }
  .site__carte:has(.site__capture) { display: flex; flex-direction: column; }
  .site__navigateur { display: none; }
  .site__visuel { aspect-ratio: auto; height: 100%; min-height: 104px; }
  .site__initiales { font-size: 34px; }
  .site__pied { padding: 16px 18px; justify-content: center; }
  .site__nom { font-size: 19px; }
  .topo__deux { grid-template-columns: 1fr; gap: 10px; }
  .mini-plaque--gauche { border-right: 0; }
  .mini-profil__liste { grid-template-columns: 1fr 1fr; }
  .porte { grid-template-columns: 84px 1fr; gap: 16px; padding: 18px; }
  .porte__lumiere, .porte__battant { width: 84px; height: 116px; border-radius: 42px 42px 6px 6px; }
  .profil { height: 44px; padding: 0 14px 0 10px; gap: 10px; bottom: 8px; border-radius: 12px; }
  .profil__moment { display: none; }
  .profil__nom { font-size: 15px; max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .profil__astre { width: 16px; height: 16px; }
  .lecture__deux { grid-template-columns: 1fr; }
  .lecture__parcours b { display: block; min-width: 0; }
  .pano__legende { left: var(--marge); right: auto; bottom: 84px; }
  .direction { padding: 16px 30px 18px 34px; }
  .refuge__contenu { margin-bottom: 240px; }
  .dossard { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .js .revele:not(.vu) { opacity: 1; translate: none; }
  .js .porte.vu .porte__battant { transform: rotateY(-24deg); }
  .etoile-filante, .fumee { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .mini-profil__coureur { transform: translate(370px, 22px); }
  .mini-profil__etape circle { fill: var(--gres); }
}


/* PANOS:DEBUT — positions calculées par gen_panos.py */
.pano--matin .pano__scene{--focal:0.500;}
.pano--midi .pano__scene{--focal:0.500;}
.pano--lac .pano__scene{--focal:0.500;}
.pano--couchant .pano__scene{--soleil-x:66.67%;--soleil-y:49.49%;--focal:0.500;}
.pano--nuit .pano__scene{--fumee-x:60.92%;--fumee-y:68.70%;--focal:0.500;}
/* PANOS:FIN */

/* ---------------------------------------------------------------- PAGE · MENTIONS LÉGALES */
.page-legale { background: var(--sapin); }
.entete--legale { position: absolute; }
.entete--legale .pilule svg { stroke: var(--bourgeon); }
.legale { display: block; padding-bottom: 80px; }
.legale__pano { height: clamp(300px, 34vw, 520px); content-visibility: visible;
  background: linear-gradient(180deg, var(--matin-ciel-1) 0%, var(--matin-ciel-2) 50%, var(--matin-ciel-3) 85%); }
.legale__pano::before { display: none; }
.legale__feuille {
  position: relative; z-index: 5; max-width: 820px; margin: -120px auto 0; padding: clamp(28px, 5vw, 56px);
  border-radius: 26px; background: var(--brume); color: var(--texte);
  box-shadow: 0 30px 70px color-mix(in srgb, var(--nuit) 50%, transparent);
}
@media (max-width: 860px) { .legale__feuille { margin: -70px 16px 0; } }
.legale__feuille .reperage { color: var(--gres-texte); }
.legale h1 { margin: 0 0 10px; font-size: clamp(36px, 5vw, 56px); line-height: 1.05; letter-spacing: -.035em; }
.legale h2 { margin: 30px 0 10px; padding-top: 22px; border-top: 1.5px solid color-mix(in srgb, var(--foret) 25%, transparent); font-size: 22px; letter-spacing: -.01em; }
.legale p { color: var(--texte-doux); }
.legale p + p { margin-top: 10px; }
.legale a:not(.bouton) { color: var(--sapin); font-weight: 600; text-underline-offset: 3px; }
.legale strong { color: var(--texte); }
.legale__retour { margin-top: 34px; }
.pied--legale { padding-bottom: 40px; }

/* -- nuages qui passent (matin, midi, après-midi) -- */
.nuage {
  position: absolute; display: block; aspect-ratio: 4 / 1; border-radius: 50%;
  background:
    radial-gradient(closest-side at 30% 60%, color-mix(in srgb, var(--blanc-balise) 88%, transparent), transparent),
    radial-gradient(closest-side at 55% 42%, color-mix(in srgb, var(--blanc-balise) 92%, transparent), transparent),
    radial-gradient(closest-side at 75% 62%, color-mix(in srgb, var(--blanc-balise) 80%, transparent), transparent);
  background-size: 50% 100%, 46% 120%, 44% 90%;
  background-repeat: no-repeat;
  background-position: 0 50%, 40% 0, 100% 60%;
  filter: blur(2px);
  opacity: .75;
  animation: nuage 90s linear infinite alternate;
}
.nuage--1 { left: 4%; top: 9%; width: 30%; }
.nuage--2 { left: 60%; top: 4%; width: 22%; opacity: .55; animation-duration: 120s; animation-direction: alternate-reverse; }
.nuage--3 { left: 30%; top: 22%; width: 16%; opacity: .4; animation-duration: 75s; }
.nuage--4 { left: 82%; top: 17%; width: 26%; opacity: .6; animation-duration: 105s; }
.pano--lac .nuage { opacity: .5; }
@keyframes nuage { from { transform: translateX(-6vw); } to { transform: translateX(6vw); } }
.poteau-bois { fill: var(--foret-fonce); }
.pano--nuit .lis .l0 { stop-opacity: .4; }
.pano--nuit .lis .l1 { stop-opacity: .14; }
.halo-refuge .h0 { stop-color: var(--lueur); stop-opacity: .34; }
.halo-refuge .h1 { stop-color: var(--lueur); stop-opacity: .12; }
.halo-refuge .h2 { stop-color: var(--lueur); stop-opacity: 0; }

/* ---------------------------------------------------------------- FLUIDITÉ
   Le défilement est confié au compositeur : la parallaxe des paysages suit la page au pixel près,
   sans attendre le script. Les navigateurs sans « animation-timeline » gardent la parallaxe du script. */
.ciel__heure, .ciel__etoiles { will-change: opacity; }

.pano { --hp: clamp(380px, 46vw, 860px); height: var(--hp); view-timeline: --pano block; }
.refuge__pano { height: auto; --hp: max(100svh, 900px); } /* le refuge couvre toute sa section */

@supports (animation-timeline: view()) {
  /* accueil : les couches descendent à des vitesses différentes pendant les 120 premiers vh */
  .defilement-css .paysage .couche {
    animation: accueil-defile linear both;
    animation-timeline: scroll(root block);
    animation-range: 0 120vh;
  }
  @keyframes accueil-defile {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(0, calc(var(--k, .42) * 120vh), 0); }
  }
  /* panoramas : chaque couche glisse selon sa profondeur pendant toute la traversée de l'écran */
  .defilement-css .pano .couche {
    animation: pano-defile linear both;
    animation-timeline: --pano;
    animation-range: cover;
  }
  @keyframes pano-defile {
    from { transform: translate3d(0, calc(var(--k, 0) * (100vh + var(--hp)) / -2), 0); }
    to { transform: translate3d(0, calc(var(--k, 0) * (100vh + var(--hp)) / 2), 0); }
  }
}

/* animations permanentes mises en veille quand leur scène est hors de l'écran */
.endormi, .endormi * { animation-play-state: paused !important; }

/* ================================================================ FOND CLAIR PARTOUT
   Demande de Ramy : des sections claires, plus lisibles et moins chargées.
   Les paysages gardent leurs couleurs ; le contenu se lit sur un fond clair. */
:root {
  --fond-clair: #EFF4E9;
  --carte: #FFFFFF;
  --or-texte: #855A0C;
  --trait: rgba(47, 98, 71, .14);
  --ombre-douce: 0 1px 2px rgba(11, 31, 23, .06), 0 12px 32px rgba(11, 31, 23, .08);
}
.etape, .refuge, .pied { --texte-clair: var(--texte); --texte-clair-doux: var(--texte-doux); }
.etape { background: var(--fond-clair); color: var(--texte); --brume: var(--carte); }
.etape::before { display: none; }                       /* halos de lumière : retirés, ils brouillaient le fond */
.etape::after { display: none; } /* grain retiré : fond net, et une fusion de moins à composer */
.sentier--mk, .sentier--ia, .etape--offre { background: var(--fond-clair); }

.reperage, .refuge__contenu .reperage { color: var(--foret); }
.reperage__heure { color: var(--or-texte); border-color: color-mix(in srgb, var(--or-texte) 35%, transparent); }
.topo__texte .chapo { color: var(--texte); }
.sentier__panneau { background: var(--sapin); color: #fff; }
.sentier__panneau svg { stroke: var(--lumiere); }

/* cartes blanches, bordure fine et ombre légère au lieu des ombres de nuit */
.fait, .compteur, .offre__mk {
  background: var(--carte); border: 1px solid var(--trait); box-shadow: var(--ombre-douce); color: var(--texte-doux);
}
.fait__titre, .compteur__valeur { color: var(--foret); }
.offre__mk strong { color: var(--texte); }
.site__carte, .ravito, .borne__carte, .sac, .mini-plaque, .mini-profil, .dossard { box-shadow: var(--ombre-douce); border: 1px solid var(--trait); }
.site__carte:hover { box-shadow: 0 2px 4px rgba(11, 31, 23, .06), 0 24px 48px rgba(11, 31, 23, .14); }
.grand-poteau, .topo__deux { filter: drop-shadow(0 10px 18px rgba(11, 31, 23, .14)); }
.direction { filter: drop-shadow(0 8px 14px rgba(11, 31, 23, .12)); }
.detour { background: #FFF8E6; border-color: color-mix(in srgb, var(--or-texte) 40%, transparent); }
.detour__panneau { background: var(--lumiere); color: var(--nuit); }

/* transitions douces entre les paysages et les sections claires */
.pano::before { background: linear-gradient(180deg, var(--fond-clair) 0%, color-mix(in srgb, var(--fond-clair) 55%, transparent) 35%, transparent 100%); }
.pano::after, .accueil::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; z-index: 4; pointer-events: none;
  height: clamp(40px, 6vw, 96px); background: linear-gradient(180deg, transparent, var(--fond-clair));
}
.accueil::after { z-index: 4; }
.refuge__pano::after { display: none; }

/* le refuge : le paysage de nuit reste, les portes s'ouvrent sur un panneau clair */
.refuge { color: var(--texte); }
.refuge__panneau { background: color-mix(in srgb, var(--carte) 96%, transparent); border-color: var(--trait); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.porte { background: #FFFCF4; color: var(--texte); border-color: color-mix(in srgb, var(--lueur) 60%, transparent); box-shadow: var(--ombre-douce); }
.porte:hover, .porte:focus-visible { box-shadow: 0 16px 40px rgba(11, 31, 23, .14), 0 0 60px color-mix(in srgb, var(--lueur) 30%, transparent); }
.porte__texte { color: var(--texte-doux); }
.porte__texte strong { color: var(--texte); }
.porte__qui { color: var(--or-texte); }
.porte__action { color: var(--sapin); }
.coordonnees a { color: var(--texte); border-bottom-color: color-mix(in srgb, var(--or-texte) 40%, transparent); }
.coordonnees a:hover { border-bottom-color: var(--or-texte); }
.coordonnees svg { stroke: var(--or-texte); }

.pied { background: var(--fond-clair); color: var(--texte-doux); border-top: 1px solid var(--trait); }
.pied a { color: var(--sapin); }

/* la carte « Votre prochain site ? » */
.site__carte--prochain { text-decoration: none; color: var(--texte); background: var(--carte); border: 2px dashed color-mix(in srgb, var(--foret) 40%, transparent); box-shadow: none; }
.site__carte--prochain:hover { border-color: var(--foret); }
.site__vide {
  position: relative; display: grid; place-items: center; align-content: center; gap: 14px;
  aspect-ratio: 16 / 10; width: 100%;
  background:
    radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--foret) 22%, transparent) 1px, transparent 0) 0 0 / 18px 18px,
    color-mix(in oklab, var(--fond-clair), var(--carte) 40%);
}
.site__plus {
  position: relative; width: 64px; height: 64px; border-radius: 50%;
  background: var(--sapin); box-shadow: 0 10px 24px rgba(16, 48, 31, .25);
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.site__plus::before, .site__plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 26px; height: 3px; border-radius: 2px; background: var(--bourgeon); translate: -50% -50%; }
.site__plus::after { rotate: 90deg; }
.site__carte--prochain:hover .site__plus { transform: rotate(90deg) scale(1.06); }
.site__vide-texte { font-size: 15px; font-weight: 600; color: var(--foret); }
@media (max-width: 640px) {
  .site__carte--prochain { display: flex; flex-direction: column; }
}

/* ================================================================ ERGONOMIE
   Menu pour téléphone et tablette, bouton « Copier l'adresse ». */
.menu-mobile { display: none; position: relative; }
@media (max-width: 1180px) {
  .menu-mobile { display: block; }
  .entete { gap: 10px; }
}
.menu-mobile__bouton {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 10px 16px; border-radius: 999px;
  font-size: 17px; font-weight: 600; color: var(--sapin);
  background: color-mix(in srgb, var(--brume) 92%, transparent); box-shadow: inset 0 0 0 2px var(--sapin);
}
.menu-mobile__bouton::-webkit-details-marker { display: none; }
.menu-mobile__bouton svg { width: 18px; height: 18px; fill: none; stroke: var(--sapin); stroke-width: 2.4; stroke-linecap: round; }
.menu-mobile[open] .menu-mobile__bouton { background: var(--sapin); color: #fff; }
.menu-mobile[open] .menu-mobile__bouton svg { stroke: var(--bourgeon); }
.menu-mobile__panneau {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 70;
  width: min(320px, calc(100vw - 32px)); padding: 8px;
  display: grid; border-radius: 18px;
  background: #fff; border: 1px solid rgba(47, 98, 71, .14);
  box-shadow: 0 2px 4px rgba(11, 31, 23, .08), 0 24px 60px rgba(11, 31, 23, .22);
}
.menu-mobile__panneau a {
  display: block; padding: 13px 16px; border-radius: 12px;
  font-size: 18px; font-weight: 550; color: var(--texte); text-decoration: none;
}
.menu-mobile__panneau a:hover, .menu-mobile__panneau a:focus-visible { background: var(--fond-clair); }
.menu-mobile__cv { margin-top: 6px; border-top: 1px solid rgba(47, 98, 71, .14); color: var(--sapin) !important; font-weight: 650 !important; }
@media (max-width: 420px) {
  .pilule { padding: 10px 14px; font-size: 16px; }
  .menu-mobile__bouton { padding: 10px 14px; font-size: 16px; }
  .menu-mobile__bouton span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } /* l'icône seule sur les petits écrans ; le libellé reste lu */
}
.copier {
  min-height: 44px; padding: 8px 16px; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: 16px; font-weight: 600; color: var(--sapin);
  background: var(--fond-clair); border: 1px solid rgba(47, 98, 71, .25);
}
.copier:hover { background: #fff; border-color: var(--sapin); }

.pilule__court { display: none; }
@media (max-width: 480px) {
  .pilule__long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .pilule__court { display: inline; }
  .marque { font-size: 17px; gap: 8px; }
}
@media (max-width: 640px) {
  /* le menu suffit sur téléphone : la barre d'altitude libère le bas de l'écran */
  .profil { display: none; }
  html { scroll-padding-bottom: 0; }
  /* portes plus petites : le texte garde sa largeur */
  .porte { grid-template-columns: 64px 1fr; gap: 16px; padding: 18px; }
  .porte__lumiere, .porte__battant { width: 64px; height: 88px; border-radius: 32px 32px 6px 6px; }
  .porte__poignee { right: 9px; width: 7px; height: 7px; }
  .porte__texte strong { font-size: 24px; }
}

/* ================================================================ FORMULAIRE DE CONTACT */
.formulaire { margin-top: 36px; padding-top: 30px; border-top: 1px solid var(--trait); max-width: 980px; scroll-margin-top: 90px; }
.formulaire h3 { margin: 0 0 18px; font-size: clamp(24px, 2.2vw, 30px); font-weight: 700; letter-spacing: -.02em; }
.formulaire__grille { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; position: relative; }
.champ { display: flex; flex-direction: column; gap: 8px; }
.champ--large { grid-column: 1 / -1; }
.champ__nom { font-size: 16px; font-weight: 600; color: var(--texte); }
.champ__nom small { font-weight: 400; color: var(--texte-doux); font-size: 15px; }
.champ input, .champ select, .champ textarea {
  width: 100%; font: inherit; font-size: 18px; line-height: 1.4; color: var(--texte);
  padding: 13px 15px; border-radius: 12px; background: #fff;
  border: 1.5px solid rgba(47, 98, 71, .32);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.champ textarea { resize: vertical; min-height: 150px; }
.champ select { appearance: none; padding-right: 44px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--sapin) 50%), linear-gradient(135deg, var(--sapin) 50%, transparent 50%);
  background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; border-color: var(--sapin); box-shadow: 0 0 0 4px rgba(47, 98, 71, .16); }
.champ--erreur input, .champ--erreur select, .champ--erreur textarea { border-color: var(--gres); }
.piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.formulaire__pied { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 22px; }
.formulaire__envoyer { border: 0; cursor: pointer; font: inherit; }
.formulaire__envoyer[disabled] { opacity: .6; cursor: progress; }
.formulaire__statut { font-size: 17px; font-weight: 550; color: var(--texte-doux); }
.formulaire__statut--ok { color: var(--foret); }
.formulaire__statut--erreur { color: var(--gres-texte); }
.formulaire__rgpd { margin-top: 16px; font-size: 15px; color: var(--texte-doux); max-width: 70ch; }
.formulaire__rgpd a { color: var(--sapin); }
.formulaire--envoye .formulaire__grille, .formulaire--envoye .formulaire__envoyer { display: none; }
.formulaire--envoye .formulaire__statut { font-size: 20px; }
@media (max-width: 640px) {
  .formulaire__grille { grid-template-columns: 1fr; }
  .formulaire__envoyer { width: 100%; }
}
.page-merci { min-height: 100vh; display: grid; place-items: center; background: var(--fond-clair); padding: 24px; }
.merci { max-width: 620px; padding: clamp(28px, 5vw, 56px); border-radius: 26px; background: #fff; border: 1px solid var(--trait); box-shadow: var(--ombre-douce); }
.merci h1 { margin: 0 0 14px; font-size: clamp(30px, 4vw, 44px); line-height: 1.1; letter-spacing: -.03em; }
.merci p { margin-bottom: 18px; font-size: 19px; color: var(--texte-doux); }
.merci .bouton { display: inline-flex; margin-top: 8px; }

/* ---- LinkedIn ---- */
.lien-linkedin {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  color: var(--sapin); transition: background-color .25s ease;
}
.lien-linkedin svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lien-linkedin:hover { background: color-mix(in srgb, var(--brume) 60%, transparent); }
@media (max-width: 1180px) { .lien-linkedin { display: none; } } /* sur téléphone et tablette, il est dans le menu */
.menu-mobile__linkedin { margin-top: 6px; border-top: 1px solid rgba(47, 98, 71, .14); color: var(--sapin) !important; font-weight: 650 !important; }
.formulaire__ailleurs { margin-top: 18px; font-size: 17px; color: var(--texte-doux); }
.formulaire__ailleurs a { color: var(--sapin); font-weight: 600; }

/* ---- langue ---- */
.langue {
  display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 10px; border-radius: 999px;
  font-size: 15px; font-weight: 700; letter-spacing: .04em; color: var(--sapin); text-decoration: none;
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--sapin) 35%, transparent);
}
.langue:hover { background: color-mix(in srgb, var(--brume) 60%, transparent); }
@media (max-width: 1180px) { .langue { display: none; } }
.menu-mobile__langue { margin-top: 6px; border-top: 1px solid rgba(47, 98, 71, .14); }
.menu-mobile__langue + .menu-mobile__linkedin { margin-top: 0; border-top: 0; }

/* ---- portrait en polaroïd, épinglé au-dessus du dossard ---- */
.topo__visuel { display: grid; justify-items: center; }
.polaroid {
  position: relative; z-index: 2; margin: 0 0 -14px; justify-self: start; translate: -22% 0;
  width: clamp(190px, 18vw, 240px); padding: 12px 12px 14px; background: #fff;
  border-radius: 6px; rotate: 5deg;
  box-shadow: 0 2px 4px rgba(11, 31, 23, .1), 0 18px 40px rgba(11, 31, 23, .18);
  transition: rotate .6s cubic-bezier(.2, .7, .2, 1), translate .9s cubic-bezier(.2, .7, .2, 1), opacity .9s ease;
}
.polaroid:hover { rotate: 2deg; }
.polaroid img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 2px; }
.polaroid figcaption { margin-top: 10px; font-size: 15px; font-weight: 500; color: var(--texte-doux); text-align: center; }
@media (max-width: 900px) { .polaroid { justify-self: center; translate: none; rotate: -4deg; margin-bottom: -10px; } }

/* sans JavaScript, les paysages publiés à part ne se chargent pas : on n'affiche pas leur cadre vide */
html:not(.js) .pano:not(.refuge__pano):has(> .pano__scene[data-paysage]) { display: none; }

/* ---- liens vers les pages de services et le carnet ---- */
.fait__lien { display: inline-block; margin-top: 14px; font-weight: 650; color: var(--sapin); text-underline-offset: 4px; }
.suite-lien { margin-top: 26px; font-size: 18px; }
.suite-lien a { font-weight: 650; color: var(--sapin); text-underline-offset: 4px; }
.sentier--ia .suite-lien { text-align: right; }
