/* La Course aux Trésors by Atlas — page de conversion (/decouvrir/).
   Mobile d'abord. Animations : transform et opacity uniquement. */
/* Polices hébergées sur le site : plus rapide, et aucune adresse IP envoyée à Google (RGPD). */
@font-face { font-family: 'Cinzel'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/cinzel-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Cinzel'; font-style: normal; font-weight: 800; font-display: swap; src: url(/fonts/cinzel-latin-800-normal.woff2) format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/manrope-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/manrope-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/manrope-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 800; font-display: swap; src: url(/fonts/manrope-latin-800-normal.woff2) format('woff2'); }
:root {
  --nuit-0: #070d18; --nuit: #0e1828; --nuit-2: #15233a;
  --foret: #1f4a37; --foret-cl: #2f6b4f;
  --cuir: #6e4329; --parchemin: #f5e6c4; --encre: #2b1d10;
  --or-cl: #f3d68f; --or: #d9b15c; --laiton: #b8862e; --braise: #e07a3a;
  --texte: #efe6d2; --texte-2: #b9b09d; --filet: rgba(243, 214, 143, .18);
  --titre: 'Cinzel', Georgia, serif; --corps: 'Manrope', system-ui, -apple-system, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body { background: var(--nuit-0); color: var(--texte); font: 400 16px/1.6 var(--corps); overflow-x: clip; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--or-cl); }
:focus-visible { outline: 2px solid var(--or-cl); outline-offset: 3px; border-radius: 6px; }
.evitement { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--or-cl); color: var(--encre); padding: 8px 14px; border-radius: 8px; }
.evitement:focus { top: 12px; }

h1, h2 { font-family: var(--titre); color: var(--parchemin); font-weight: 700; letter-spacing: .01em; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(1.55rem, 6.4vw, 2.3rem); line-height: 1.15; }
h3 { font-family: var(--titre); color: var(--or-cl); font-size: 1.25rem; margin: 0 0 .25rem; }
.intro { color: var(--texte-2); max-width: 32em; margin: .8rem 0 0; font-size: 1.04rem; }
main > section { padding: 88px 20px; max-width: 760px; margin: 0 auto; }

/* ---------- Boutons ---------- */
.bouton-or {
  display: inline-flex; align-items: center; gap: .6rem; min-height: 56px; padding: 0 1.6rem;
  font: 800 1.06rem/1 var(--corps); color: #2a1a06; text-decoration: none; border-radius: 16px;
  background: linear-gradient(180deg, #f8e3a6 0%, var(--or) 55%, var(--laiton) 100%);
  box-shadow: 0 1px 0 rgba(255, 245, 210, .8) inset, 0 -2px 0 rgba(90, 55, 10, .35) inset, 0 12px 30px rgba(217, 177, 92, .28);
  transition: transform .15s ease;
}
.bouton-or:active { transform: scale(.97); }
.gratuit { font: 700 .74rem/1 var(--corps); padding: .38rem .55rem; border-radius: 8px; background: rgba(42, 26, 6, .14); letter-spacing: .02em; }
.lien-doux { display: inline-block; margin-top: 1.1rem; color: var(--parchemin); font-weight: 600; text-decoration: underline; text-decoration-color: var(--filet); text-underline-offset: 5px; }

/* ---------- Musique : bouton toujours accessible, en haut à droite ---------- */
.bouton-son { display: none; position: fixed; z-index: 60; top: max(14px, env(safe-area-inset-top)); right: 14px; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  place-items: center; background: radial-gradient(circle at 50% 35%, #23395a, var(--nuit-0) 80%); box-shadow: 0 0 0 2px var(--laiton), 0 6px 18px rgba(0, 0, 0, .55), 0 0 18px rgba(243, 214, 143, .3); }
html.musique-dispo .bouton-son { display: grid; }
.bouton-son img { width: 28px; height: 28px; }
.bouton-son.coupee img { opacity: .35; }
.bouton-son.coupee::after { content: ''; position: absolute; left: 9px; right: 9px; top: 50%; height: 2px; background: var(--or-cl); transform: rotate(-40deg); }
html.musique-dispo .heros-haut { padding-right: 68px; }
@media (max-width: 419px) {
  .heros-haut .marque { white-space: normal; min-width: 0; }
  .heros-haut .marque > span { max-width: 8.5em; }
  .heros-haut .lien-connexion { padding: .5rem .7rem; font-size: .84rem; }
}

/* ---------- 1. Accroche ---------- */
.heros { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; isolation: isolate; }
.heros-scene { position: absolute; inset: 0; z-index: -1; }
/* La vraie scène du Camp (image fixe d'abord, puis la boucle vidéo par-dessus) — variante choisie dans le <head> */
.heros-flou { display: none; }
.heros-cadre { position: absolute; inset: 0; overflow: hidden; }
.heros-fond, .heros-fond img, .heros-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.heros-video { opacity: 0; transition: opacity 1.2s ease; }
.heros-video.visible { opacity: 1; }
html[data-moment="jour"] .heros .lucioles { display: none; } /* lucioles la nuit seulement, comme au Camp */
.heros-brume { position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(7, 13, 24, .62) 0%, rgba(7, 13, 24, 0) 22%, rgba(7, 13, 24, 0) 42%, rgba(7, 13, 24, .78) 70%, var(--nuit-0) 100%); }
.lucioles i { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #ffe9a8; box-shadow: 0 0 10px 3px rgba(255, 210, 120, .7); opacity: 0; animation: luciole 9s ease-in-out infinite; }
.lucioles i:nth-child(1) { left: 12%; top: 58%; animation-delay: 0s; }
.lucioles i:nth-child(2) { left: 28%; top: 46%; animation-delay: -1.5s; animation-duration: 11s; }
.lucioles i:nth-child(3) { left: 44%; top: 62%; animation-delay: -3s; }
.lucioles i:nth-child(4) { left: 63%; top: 50%; animation-delay: -4.2s; animation-duration: 12s; }
.lucioles i:nth-child(5) { left: 78%; top: 60%; animation-delay: -6s; }
.lucioles i:nth-child(6) { left: 88%; top: 40%; animation-delay: -2.4s; animation-duration: 10s; }
.lucioles i:nth-child(7) { left: 8%; top: 36%; animation-delay: -7s; }
.lucioles i:nth-child(8) { left: 36%; top: 30%; animation-delay: -5.2s; animation-duration: 13s; }
.lucioles i:nth-child(9) { left: 54%; top: 34%; animation-delay: -8s; }
.lucioles i:nth-child(10) { left: 70%; top: 70%; animation-delay: -3.6s; animation-duration: 10s; }
.lucioles i:nth-child(11) { left: 22%; top: 72%; animation-delay: -6.6s; }
.lucioles i:nth-child(12) { left: 92%; top: 66%; animation-delay: -1s; animation-duration: 12s; }
@keyframes luciole {
  0% { opacity: 0; transform: translate(0, 0); }
  20% { opacity: .95; }
  50% { opacity: .35; transform: translate(14px, -26px); }
  75% { opacity: .9; }
  100% { opacity: 0; transform: translate(-10px, -52px); }
}

.heros-haut { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: max(16px, env(safe-area-inset-top)) 18px 0; }
.marque { display: flex; align-items: center; gap: 10px; color: var(--parchemin); text-decoration: none; font: 700 .8rem/1.15 var(--titre); white-space: nowrap; }
.marque img { border-radius: 9px; box-shadow: 0 4px 14px rgba(0, 0, 0, .5); }
.marque small { display: block; font: 600 .72rem/1 var(--corps); color: var(--or); letter-spacing: .08em; margin-top: 3px; }
.lien-connexion { white-space: nowrap; color: var(--parchemin); font-weight: 600; font-size: .9rem; text-decoration: none; padding: .55rem .9rem; border-radius: 12px; background: rgba(7, 13, 24, .45); border: 1px solid var(--filet); backdrop-filter: blur(6px); }

.heros-texte { padding: 0 20px max(40px, calc(env(safe-area-inset-bottom) + 28px)); max-width: 640px; }
.heros h1 { font-size: clamp(2.35rem, 11.2vw, 4.2rem); line-height: 1.04; font-weight: 800; text-shadow: 0 4px 30px rgba(0, 0, 0, .65); }
.heros h1 span { display: block; }
.heros-chapo { margin: 1rem 0 1.6rem; font-size: 1.08rem; color: #e9dfc8; max-width: 26em; text-shadow: 0 2px 14px rgba(0, 0, 0, .7); }

/* Entrée orchestrée : une seule fois, au chargement */
.heros h1 span, .heros-chapo, .heros-texte .bouton-or, .heros-texte .lien-doux { opacity: 0; transform: translateY(18px); animation: entre .9s cubic-bezier(.2, .7, .2, 1) forwards; }
.heros h1 span:nth-child(1) { animation-delay: .15s; }
.heros h1 span:nth-child(2) { animation-delay: .32s; }
.heros-chapo { animation-delay: .55s; }
.heros-texte .bouton-or { animation-delay: .75s; }
.heros-texte .lien-doux { animation-delay: .9s; }
@keyframes entre { to { opacity: 1; transform: none; } }

/* Parallaxe au défilement */
@supports (animation-timeline: scroll()) {
  .heros-cadre { animation: plonge linear both; animation-timeline: scroll(root); animation-range: 0 100svh; }
  .lucioles { animation: plonge-proche linear both; animation-timeline: scroll(root); animation-range: 0 100svh; }
  .heros-texte { animation: s-efface linear both; animation-timeline: scroll(root); animation-range: 0 70svh; }
}
@keyframes plonge { to { transform: translateY(22%); } }
@keyframes plonge-proche { to { transform: translateY(-18%); } }
@keyframes s-efface { to { opacity: 0; transform: translateY(-40px); } }

/* ---------- Accueil v4 (31/10) : la scène du Camp, jour / nuit / saison ----------
   Mise en page « affiche de jeu » : titre en haut, feu de camp au milieu, bouton en bas. */
/* Ombre douce en haut (titre + texte, posés sur une scène chargée) et en bas (bouton) ; le feu de camp reste dégagé */
.heros-brume { background: linear-gradient(180deg, rgba(7, 13, 24, .88) 0%, rgba(7, 13, 24, .74) 24%, rgba(7, 13, 24, .45) 36%, rgba(7, 13, 24, 0) 50%, rgba(7, 13, 24, 0) 62%, rgba(7, 13, 24, .8) 80%, var(--nuit-0) 100%); }
/* De jour, le ciel est clair : un cran de plus */
html[data-moment="jour"] .heros-brume { background: linear-gradient(180deg, rgba(7, 13, 24, .9) 0%, rgba(7, 13, 24, .8) 24%, rgba(7, 13, 24, .5) 37%, rgba(7, 13, 24, 0) 51%, rgba(7, 13, 24, 0) 62%, rgba(7, 13, 24, .82) 79%, var(--nuit-0) 100%); }
.heros-texte { flex: 1; display: flex; flex-direction: column; align-items: flex-start; padding-top: 4svh; }
.heros-texte .bouton-or { margin-top: auto; }
.heros h1 { font-size: clamp(2.1rem, 9.6vw, 4.2rem); }
.heros-chapo { margin: .8rem 0 0; }
@media (min-width: 700px) {
  .s2-fond img { object-position: 50% 37%; } /* l'oiseau reste dans le viseur sur un écran large */
  .heros-texte { justify-content: center; }
  .heros-texte .bouton-or { margin-top: 1.8rem; }
}

/* ---------- 2 et 3. Le récit : une pub qui se joue au défilement ----------
   Par défaut (navigateur ancien ou mouvement réduit) : 4 scènes empilées, figées dans leur état final.
   Si le navigateur gère les animations liées au défilement : l'écran se fige et les scènes s'enchaînent sous le doigt. */
.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
main > section.recit { padding: 0; max-width: none; }
.scene { position: relative; min-height: 92svh; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; }
.scene > div:not(.legende-scene), .scene > img { pointer-events: none; }
.jalons { display: none; }
.numero { font: 700 .82rem/1 var(--titre); color: var(--laiton); letter-spacing: .12em; }
.legende-scene { position: relative; z-index: 5; padding: 120px 22px max(34px, calc(env(safe-area-inset-bottom) + 24px)); margin-top: auto; width: 100%; }
/* le dégradé de lisibilité couvre toute la largeur ; seul le texte est limité en largeur */
.legende-scene::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7, 13, 24, 0), rgba(7, 13, 24, .85) 45%, var(--nuit-0)); }
.legende-scene > * { max-width: 560px; }
.legende-scene h3 { font-size: clamp(1.9rem, 9vw, 2.6rem); color: var(--parchemin); margin: .35rem 0 .3rem; line-height: 1.05; }
.legende-scene p { margin: 0; color: #d9cfb9; font-size: 1.02rem; max-width: 30em; }

/* Scène I : Sors */
.s1-fond, .s2-fond { position: absolute; inset: 0; z-index: -2; }
.s1-fond img, .s2-fond img { width: 100%; height: 100%; object-fit: cover; }
.s1-fond img { transform: scale(1.05); }
.s1-voile { position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 45% at 50% 38%, transparent, rgba(7, 13, 24, .55)), linear-gradient(180deg, rgba(7, 13, 24, .5), transparent 25%); }
.s1-repere { position: absolute; left: 50%; top: 34%; width: 64px; height: 64px; margin: -32px 0 0 -32px; }
.s1-repere img { position: relative; border-radius: 50%; box-shadow: 0 0 0 3px var(--or), 0 10px 30px rgba(0, 0, 0, .6), 0 0 40px rgba(243, 214, 143, .55); }
.onde { position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--or-cl); opacity: 0; }
.tampon { position: absolute; left: 50%; top: calc(34% + 54px); transform: translateX(-50%) rotate(-5deg); text-align: center; padding: 10px 18px; border-radius: 10px;
  background: rgba(245, 230, 196, .96); color: var(--encre); box-shadow: 0 12px 30px rgba(0, 0, 0, .5), 0 0 0 2px var(--laiton) inset; white-space: nowrap; }
.tampon b { display: block; font: 800 1.15rem/1.1 var(--titre); }
.tampon span { font-size: .82rem; font-weight: 700; color: var(--foret); }

/* Scène II : Photographie */
.s2-fond .flou { position: absolute; inset: 0; opacity: 0; }
.viseur { position: absolute; left: 50%; top: 36%; width: 62vw; max-width: 300px; aspect-ratio: 3 / 4; transform: translate(-50%, -50%); }
.viseur i { position: absolute; width: 34px; height: 34px; border: 3px solid var(--parchemin); }
.viseur i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; border-radius: 10px 0 0 0; }
.viseur i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; border-radius: 0 10px 0 0; }
.viseur i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 10px; }
.viseur i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; border-radius: 0 0 10px 0; }
.mise-au-point { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; border: 2px solid var(--or-cl); opacity: .9; }
.eclair { position: absolute; inset: 0; background: #fff8e6; opacity: 0; }
.fiche { position: absolute; left: 50%; top: calc(36% + min(41vw, 200px) + 14px); transform: translateX(-50%); display: flex; gap: 12px; align-items: center; width: min(84vw, 340px);
  padding: 12px 16px 12px 12px; border-radius: 14px; background: rgba(245, 230, 196, .97); color: var(--encre); box-shadow: 0 16px 40px rgba(0, 0, 0, .55), 0 0 0 1px rgba(184, 134, 46, .6) inset; }
.fiche img { width: 52px; height: 52px; flex: none; }
.fiche small { display: block; font-size: .75rem; font-weight: 700; color: var(--foret); }
.fiche b { display: block; font: 800 1.12rem/1.15 var(--titre); }
.fiche em { font-size: .85rem; color: #6a5536; }

/* Scène III : Collectionne */
.s3 { background: radial-gradient(90% 60% at 50% 38%, #142a3e, var(--nuit-0) 70%); }
.s3-halo { position: absolute; left: 50%; top: 30%; width: 120vw; max-width: 640px; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(243, 214, 143, .35), rgba(243, 214, 143, .08) 55%, transparent); }
.eventail { position: absolute; left: 0; right: 0; top: 17%; height: 330px; perspective: 900px; }
.s3 .eventail { pointer-events: auto; }
.carte { position: absolute; left: 50%; top: 0; width: clamp(118px, 33vw, 150px); margin-left: calc(clamp(118px, 33vw, 150px) / -2); transform-origin: 50% 115%; transform: translateX(var(--x)) rotate(var(--r)); z-index: var(--z); }
.c1 { --x: -62px; --r: -17deg; --z: 1; } .c2 { --x: -38px; --r: -10deg; --z: 2; } .c3 { --x: -13px; --r: -3.5deg; --z: 3; }
.c4 { --x: 13px; --r: 3.5deg; --z: 4; } .c5 { --x: 38px; --r: 10deg; --z: 5; } .c6 { --x: 62px; --r: 17deg; --z: 6; }
.incline { position: relative; border-radius: 10px; overflow: hidden; box-shadow: 0 18px 40px rgba(0, 0, 0, .65), 0 0 0 1px rgba(243, 214, 143, .25); transition: transform .25s ease-out; }
.holo { position: absolute; inset: -40%; pointer-events: none; mix-blend-mode: color-dodge; opacity: .38;
  background: linear-gradient(115deg, transparent 32%, rgba(255, 120, 200, .55) 40%, rgba(120, 220, 255, .55) 46%, rgba(255, 240, 150, .6) 52%, rgba(140, 255, 180, .5) 58%, transparent 66%);
  transform: translateX(-30%); }
.carte.levee { z-index: 10; }
.carte.levee .incline { box-shadow: 0 26px 60px rgba(0, 0, 0, .75), 0 0 0 1px rgba(243, 214, 143, .6), 0 0 40px rgba(243, 214, 143, .25); }

/* Scène IV : Grimpe */
.s4 { background: radial-gradient(90% 60% at 50% 30%, rgba(31, 74, 55, .55), var(--nuit-0) 72%); }
.registre { position: absolute; left: 50%; top: 9%; width: min(88vw, 380px); transform: translateX(-50%); padding: 22px 18px 18px; border-radius: 6px; color: var(--encre);
  background: url(/img/decouvrir/parchemin.webp) center / 100% 100% no-repeat; filter: drop-shadow(0 20px 36px rgba(0, 0, 0, .6)); }
.registre-titre { font: 800 1.1rem/1 var(--titre); text-align: center; margin-bottom: 12px; }
.registre ol { list-style: none; margin: 0; padding: 0; position: relative; height: calc(6 * 48px); }
.r { position: absolute; left: 0; right: 0; top: 0; height: 48px; display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 10px; padding: 0 8px;
  border-bottom: 1px solid rgba(43, 29, 16, .14); font-weight: 600; transform: translateY(calc(var(--i) * 100%)); }
.r img { width: 30px; height: 30px; }
.r i { font: normal 700 .95rem/1 var(--titre); text-align: center; color: #7a6243; position: relative; }
.r span { font-family: var(--titre); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.r b { font-variant-numeric: tabular-nums; font-size: .92rem; position: relative; }
.r1 { --i: 0; } .r2 { --i: 1; } .toi { --i: 2; } .r3 { --i: 3; } .r4 { --i: 4; } .r5 { --i: 5; }
.toi { z-index: 2; border-radius: 10px; border-bottom-color: transparent; background: linear-gradient(90deg, #f6dc94, #e5bd63); box-shadow: 0 8px 22px rgba(120, 80, 20, .35); }
.r em { font-style: normal; display: grid; place-items: center; }
.r i { display: grid; place-items: center; height: 30px; } .r i em { grid-area: 1 / 1; }
.r .avant { opacity: 0; }
.r b { display: grid; justify-items: end; } .r b em { grid-area: 1 / 1; }

/* Mode « pub » : seulement si le navigateur sait lier l'animation au défilement, et si le mouvement n'est pas réduit */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .recit { height: 520svh; view-timeline: --recit block; }
    .scene-fixe { position: sticky; top: 0; height: 100svh; overflow: hidden; }
    .scene { position: absolute; inset: 0; min-height: 0; pointer-events: none; }
    .scene .legende-scene { pointer-events: auto; }
    .recit * { animation-timeline: --recit; animation-fill-mode: both; animation-timing-function: linear; }

    .jalons { display: flex; flex-direction: column; gap: 10px; position: absolute; right: 14px; top: 50%; z-index: 20; margin: 0; padding: 0; list-style: none; transform: translateY(-50%); }
    .jalons li { width: 6px; height: 22px; border-radius: 3px; background: rgba(243, 214, 143, .22); position: relative; overflow: hidden; }
    .jalons li::after { content: ''; position: absolute; inset: 0; background: var(--or-cl); transform-origin: top; animation: j-remplit linear both; animation-timeline: --recit; }
    .jalons li:nth-child(1)::after { animation-range: contain 0% contain 25%; }
    .jalons li:nth-child(2)::after { animation-range: contain 25% contain 50%; }
    .jalons li:nth-child(3)::after { animation-range: contain 50% contain 75%; }
    .jalons li:nth-child(4)::after { animation-range: contain 75% contain 99%; }

    .s1 { animation-name: sc-debut; animation-range: contain 0% contain 26%; }
    .s2 { animation-name: sc-milieu; animation-range: contain 22% contain 52%; }
    .s3 { animation-name: sc-milieu; animation-range: contain 47% contain 77%; }
    .s4 { animation-name: sc-fin; animation-range: contain 72% contain 100%; }
    .s3 .eventail { pointer-events: auto; }
    .legende-scene { animation-name: monte; }
    .s1 .legende-scene { animation-range: contain 1% contain 7%; }
    .s2 .legende-scene { animation-range: contain 27% contain 32%; }
    .s3 .legende-scene { animation-range: contain 52% contain 57%; }
    .s4 .legende-scene { animation-range: contain 77% contain 82%; }

    /* I. le sentier se rapproche, le repère tombe, l'onde se propage, le tampon claque */
    .s1-fond img { animation-name: s1-plonge; animation-range: contain 0% contain 26%; }
    .s1-repere { animation-name: tombe; animation-range: contain 4% contain 10%; animation-timing-function: cubic-bezier(.3, 1.4, .5, 1); }
    .onde { animation-name: onde; animation-range: contain 9% contain 18%; }
    .onde.o2 { animation-range: contain 11% contain 21%; }
    .s1-tampon { animation-name: claque; animation-range: contain 12% contain 16%; }

    /* II. le viseur cadre, la mise au point se fait, éclair, la fiche de l'Herbier sort */
    .viseur { animation-name: cadre; animation-range: contain 27% contain 34%; }
    .mise-au-point { animation-name: pointe; animation-range: contain 31% contain 37%; }
    .s2-fond .flou { animation-name: net; animation-range: contain 29% contain 37%; }
    .eclair { animation-name: eclair; animation-range: contain 37.5% contain 40%; }
    .fiche { animation-name: sort; animation-range: contain 40% contain 45%; }

    /* III. les cartes jaillissent une à une et s'ouvrent en éventail, le reflet holographique les balaie */
    .s3-halo { animation-name: halo; animation-range: contain 50% contain 57%; }
    .carte { animation-name: jaillit; animation-timing-function: cubic-bezier(.2, .8, .3, 1.15); }
    .c1 { animation-range: contain 52% contain 58%; } .c2 { animation-range: contain 53% contain 59%; } .c3 { animation-range: contain 54% contain 60%; }
    .c4 { animation-range: contain 55% contain 61%; } .c5 { animation-range: contain 56% contain 62%; } .c6 { animation-range: contain 57% contain 64%; }
    .holo { animation-name: reflet; animation-range: contain 60% contain 76%; }

    /* IV. le registre se déroule, ton nom monte de la 48e à la 3e place */
    .registre { animation-name: deroule; animation-range: contain 75% contain 81%; }
    .toi { animation-name: grimpe-toi; animation-range: contain 82% contain 94%; animation-timing-function: cubic-bezier(.5, 0, .3, 1); }
    .r3 { animation-name: recule-3; animation-range: contain 90% contain 94%; }
    .r4 { animation-name: recule-4; animation-range: contain 87% contain 91%; }
    .r5 { animation-name: recule-5; animation-range: contain 84% contain 88%; }
    .r .avant { animation-name: s-efface-simple; animation-range: contain 88% contain 93%; }
    .r .apres { animation-name: apparait; animation-range: contain 88% contain 93%; }
  }
}
@keyframes j-remplit { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes sc-debut { 0%, 82% { opacity: 1; } 100% { opacity: 0; } }
@keyframes sc-milieu { 0% { opacity: 0; } 14%, 86% { opacity: 1; } 100% { opacity: 0; } }
@keyframes sc-fin { 0% { opacity: 0; } 18%, 100% { opacity: 1; } }
@keyframes monte { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes s1-plonge { from { transform: scale(1.35) translateY(-6%); } to { transform: scale(1.05); } }
@keyframes tombe { from { opacity: 0; transform: translateY(-45svh) scale(.6); } 60% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes onde { from { opacity: .9; transform: scale(.4); } to { opacity: 0; transform: scale(3.2); } }
@keyframes claque { from { opacity: 0; transform: translateX(-50%) rotate(-16deg) scale(1.8); } to { opacity: 1; transform: translateX(-50%) rotate(-5deg) scale(1); } }
@keyframes cadre { from { opacity: 0; transform: translate(-50%, -50%) scale(1.45); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes pointe { 0% { opacity: 0; transform: scale(1.8); } 60% { opacity: 1; transform: scale(.9); } 100% { opacity: .9; transform: scale(1); } }
@keyframes net { from { opacity: 1; } to { opacity: 0; } }
@keyframes eclair { 0% { opacity: 0; } 35% { opacity: .85; } 100% { opacity: 0; } }
@keyframes sort { from { opacity: 0; transform: translateX(-50%) translateY(60px) scale(.9); } to { opacity: 1; transform: translateX(-50%); } }
@keyframes halo { from { opacity: 0; transform: translate(-50%, -50%) scale(.4); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes jaillit { from { opacity: 0; transform: translateY(55svh) rotate(0deg) scale(.55); } 30% { opacity: 1; } to { opacity: 1; transform: translateX(var(--x)) rotate(var(--r)); } }
@keyframes reflet { from { transform: translateX(-45%); } to { transform: translateX(45%); } }
@keyframes deroule { from { opacity: 0; transform: translateX(-50%) translateY(50px) scale(.94); } to { opacity: 1; transform: translateX(-50%); } }
@keyframes grimpe-toi { from { transform: translateY(500%); } to { transform: translateY(200%); } }
@keyframes recule-3 { from { transform: translateY(200%); } to { transform: translateY(300%); } }
@keyframes recule-4 { from { transform: translateY(300%); } to { transform: translateY(400%); } }
@keyframes recule-5 { from { transform: translateY(400%); } to { transform: translateY(500%); } }
@keyframes s-efface-simple { from { opacity: 1; } to { opacity: 0; } }
@keyframes apparait { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Récit v2 : habillage « jeu » (HUD, éclats, rayons, brume) ---------- */
.recit { position: relative; }
.hud, .cadre-hud, .brume-passage, .eclats, .xp-pop, .arret { display: none; }
.numero { display: inline-flex; align-items: center; gap: 10px; text-transform: none; }
.numero::after { content: ''; width: 46px; height: 1px; background: linear-gradient(90deg, var(--laiton), transparent); }
.rayons { position: absolute; left: 50%; top: 31%; width: 150vw; max-width: 900px; aspect-ratio: 1; margin: calc(min(150vw, 900px) / -2) 0 0 calc(min(150vw, 900px) / -2); opacity: .55;
  background: repeating-conic-gradient(from 0deg, rgba(243, 214, 143, .22) 0deg 5deg, transparent 5deg 18deg);
  -webkit-mask: radial-gradient(closest-side, #000 18%, transparent 72%); mask: radial-gradient(closest-side, #000 18%, transparent 72%); }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    html { scroll-snap-type: y proximity; }
    .heros { scroll-snap-align: start; }
    .arret { display: block; position: absolute; left: 0; width: 1px; height: 1px; scroll-snap-align: start; }
    .arret-1 { top: 71svh; } .arret-2 { top: 193svh; } .arret-3 { top: 277svh; } .arret-4 { top: 407svh; }

    /* HUD : niveau + jauge d'XP qui se remplit sur tout le récit */
    .hud { display: flex; align-items: center; gap: 12px; position: absolute; z-index: 30; top: max(14px, env(safe-area-inset-top)); left: 16px; right: 68px; }
    .hud-niveau { position: relative; flex: none; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; text-align: center;
      background: radial-gradient(circle at 50% 30%, #23395a, var(--nuit-0) 78%); box-shadow: 0 0 0 2px var(--laiton), 0 0 0 5px rgba(7, 13, 24, .9), 0 0 0 6px rgba(243, 214, 143, .4), 0 0 22px rgba(243, 214, 143, .35); }
    .hud-niveau small { position: absolute; top: 7px; left: 0; right: 0; font: 700 .55rem/1 var(--corps); color: var(--or); }
    .hud-niveau b { display: grid; margin-top: 8px; font: 800 1.3rem/1 var(--titre); color: var(--or-cl); }
    .hud-niveau em { grid-area: 1 / 1; font-style: normal; }
    .hud-jauge { flex: 1; min-width: 0; }
    .hud-nom { display: block; font: 700 .78rem/1 var(--titre); color: var(--parchemin); margin-bottom: 6px; text-shadow: 0 2px 8px #000; }
    .jauge { height: 9px; border-radius: 6px; background: rgba(7, 13, 24, .75); box-shadow: 0 0 0 1px rgba(184, 134, 46, .8), 0 4px 12px rgba(0, 0, 0, .5); overflow: hidden; }
    .jauge i { display: block; height: 100%; transform-origin: left; background: linear-gradient(90deg, var(--laiton), var(--or-cl) 70%, #fff3cc); box-shadow: 0 0 10px rgba(243, 214, 143, .8); }
    .jauge i { animation-name: remplit; animation-range: contain 2% contain 96%; }
    .n1 { animation-name: sc-debut; animation-range: contain 0% contain 26%; }
    .n2 { animation-name: chiffre; animation-range: contain 24% contain 51%; }
    .n3 { animation-name: chiffre; animation-range: contain 49% contain 76%; }
    .n4 { animation-name: chiffre-fin; animation-range: contain 74% contain 100%; }

    /* Cadre en laiton aux quatre coins, comme un écran de jeu */
    .cadre-hud { display: block; position: absolute; inset: 8px; z-index: 25; pointer-events: none; }
    .cadre-hud i { position: absolute; width: 28px; height: 28px; border: 2px solid rgba(217, 177, 92, .75); }
    .cadre-hud i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; }
    .cadre-hud i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; }
    .cadre-hud i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; }
    .cadre-hud i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; }
    .hud, .cadre-hud { animation-name: hud-entre; animation-range: contain 0% contain 4%; }

    /* Brume qui balaie l'écran entre deux chapitres */
    .brume-passage { display: block; position: absolute; inset: 0; z-index: 15; pointer-events: none; overflow: hidden; }
    .brume-passage i { position: absolute; left: -10%; right: -10%; top: 0; height: 170svh;
      background: linear-gradient(180deg, transparent, rgba(7, 13, 24, .9) 30%, rgba(14, 28, 40, .97) 50%, rgba(7, 13, 24, .9) 70%, transparent); animation-name: balaie; }
    .b1 { animation-range: contain 20% contain 30%; } .b2 { animation-range: contain 45% contain 55%; } .b3 { animation-range: contain 70% contain 80%; }

    /* Éclats d'or : une gerbe à chaque réussite */
    .eclats { display: block; position: absolute; left: 50%; width: 0; height: 0; z-index: 12; }
    .eclats i { position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%; background: #fff0b8; box-shadow: 0 0 10px 3px rgba(243, 200, 100, .85); opacity: 0; animation-name: eclate; animation-timing-function: cubic-bezier(.1, .7, .3, 1); }
    .eclats i:nth-child(1) { --dx: 0px; --dy: -110px; } .eclats i:nth-child(2) { --dx: 70px; --dy: -86px; } .eclats i:nth-child(3) { --dx: 108px; --dy: -20px; }
    .eclats i:nth-child(4) { --dx: 92px; --dy: 56px; } .eclats i:nth-child(5) { --dx: 34px; --dy: 100px; } .eclats i:nth-child(6) { --dx: -38px; --dy: 98px; }
    .eclats i:nth-child(7) { --dx: -96px; --dy: 52px; } .eclats i:nth-child(8) { --dx: -110px; --dy: -16px; } .eclats i:nth-child(9) { --dx: -72px; --dy: -84px; }
    .eclats i:nth-child(10) { --dx: 20px; --dy: -60px; width: 4px; height: 4px; }
    .e1 { top: 34%; } .e1 i { animation-range: contain 11.5% contain 17%; }
    .e2 { top: 36%; } .e2 i { animation-range: contain 37.5% contain 43%; }
    .e3 { top: 31%; } .e3 i { animation-range: contain 57% contain 64%; }
    .e4 { top: 29%; } .e4 i { animation-range: contain 90% contain 96%; }

    /* Notifications de jeu */
    .xp-pop { display: block; position: absolute; left: 50%; z-index: 13; white-space: nowrap; padding: 7px 14px; border-radius: 999px;
      font: 800 .95rem/1 var(--titre); color: #2a1a06; background: linear-gradient(180deg, #fbe7aa, var(--or)); box-shadow: 0 0 0 1px rgba(255, 245, 210, .6) inset, 0 8px 22px rgba(0, 0, 0, .5), 0 0 26px rgba(243, 214, 143, .45);
      animation-name: pop; }
    .p1 { top: calc(34% - 86px); animation-range: contain 13% contain 22%; }
    .p2 { top: max(80px, calc(36% - min(41vw, 200px) - 46px)); animation-range: contain 40% contain 49%; }
    .p3 { top: 47%; animation-range: contain 60% contain 71%; }
    .p4 { top: 53%; animation-range: contain 89% contain 99%; }

    /* Rayons de lumière derrière la carte légendaire */
    .rayons { opacity: 0; animation-name: rayonne; animation-range: contain 52% contain 76%; }
  }
}
@keyframes remplit { from { transform: scaleX(.04); } to { transform: scaleX(1); } }
@keyframes chiffre { 0% { opacity: 0; transform: scale(1.8); } 8% { opacity: 1; transform: scale(1); } 92% { opacity: 1; } 100% { opacity: 0; } }
@keyframes chiffre-fin { 0% { opacity: 0; transform: scale(1.8); } 10%, 100% { opacity: 1; transform: scale(1); } }
@keyframes hud-entre { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
@keyframes balaie { from { transform: translateY(100svh); } to { transform: translateY(-170svh); } }
@keyframes eclate { 0% { opacity: 0; transform: translate(0, 0) scale(.3); } 12% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1); } }
@keyframes pop { 0% { opacity: 0; transform: translateX(-50%) translateY(14px) scale(.7); } 18% { opacity: 1; transform: translateX(-50%) scale(1.08); } 28% { transform: translateX(-50%) scale(1); } 75% { opacity: 1; transform: translateX(-50%) translateY(-8px); } 100% { opacity: 0; transform: translateX(-50%) translateY(-34px); } }
@keyframes rayonne { 0% { opacity: 0; transform: rotate(0deg) scale(.6); } 25% { opacity: 1; } 100% { opacity: .85; transform: rotate(50deg) scale(1); } }

/* Accueil : invitation « Glisse pour commencer » et titre qui scintille une fois */
.glisse { position: absolute; left: 50%; bottom: max(10px, env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: rgba(245, 230, 196, .75); text-decoration: none; font: 600 .72rem/1 var(--corps); letter-spacing: .04em; opacity: 0; animation: entre .8s 1.4s forwards; }
.glisse i { width: 12px; height: 12px; border-right: 2px solid var(--or); border-bottom: 2px solid var(--or); transform: rotate(45deg); animation: rebondit 1.6s ease-in-out infinite; }
@keyframes rebondit { 0%, 100% { transform: translateY(0) rotate(45deg); opacity: .5; } 50% { transform: translateY(6px) rotate(45deg); opacity: 1; } }
.heros-texte { padding-bottom: max(64px, calc(env(safe-area-inset-bottom) + 54px)); }
.heros h1 { text-shadow: none; filter: drop-shadow(0 4px 22px rgba(0, 0, 0, .7)); }
.heros h1 span { background: linear-gradient(100deg, var(--parchemin) 42%, #fffbe9 50%, var(--or-cl) 54%, var(--parchemin) 62%) 100% 0 / 260% 100% no-repeat;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: entre .9s cubic-bezier(.2, .7, .2, 1) forwards, scintille 1.8s 1.3s ease-in-out forwards; }
.heros h1 span:nth-child(1) { animation-delay: .15s, 1.2s; }
.heros h1 span:nth-child(2) { animation-delay: .32s, 1.45s; }
@keyframes scintille { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* ---------- Fonds cinéma des chapitres III-IV et des sections Saison / Parents ---------- */
.s-fond { position: absolute; inset: 0; z-index: -2; }
.s-fond img { width: 100%; height: 100%; object-fit: cover; }
.s3, .s4 { background: var(--nuit-0); }
.s3 .s-fond::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 13, 24, .55), rgba(7, 13, 24, .1) 35%, rgba(7, 13, 24, 0) 60%, rgba(7, 13, 24, .4)); }
.s4 .s-fond::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 13, 24, .35), rgba(7, 13, 24, 0) 40%, rgba(7, 13, 24, .45)); }
main > section.saison, main > section.parents { position: relative; isolation: isolate; max-width: none; }
main > section.saison > *:not(.section-fond), main > section.parents > *:not(.section-fond) { max-width: 720px; margin-left: auto; margin-right: auto; }
.section-fond { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.section-fond img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.section-fond::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, var(--nuit-0) 0%, rgba(7, 13, 24, .55) 14%, rgba(7, 13, 24, .45) 50%, rgba(7, 13, 24, .8) 86%, var(--nuit-0) 100%); }
main > section.parents { padding-top: 110px; padding-bottom: 110px; }

/* ---------- 4. Saison 1 ---------- */
.saison { background: none; }
.saison h2 span[data-date-depart] { display: block; font-size: .62em; color: var(--or-cl); margin-top: .35rem; }
.decompte[hidden] { display: none; }
.decompte { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 32px 0 30px; }
.decompte div { text-align: center; padding: 14px 4px 10px; border-radius: 14px; background: linear-gradient(180deg, rgba(110, 67, 41, .35), rgba(7, 13, 24, .6)); border: 1px solid var(--filet); }
.decompte b { display: block; font: 700 clamp(1.6rem, 8vw, 2.4rem)/1 var(--titre); color: var(--or-cl); font-variant-numeric: tabular-nums; }
.decompte span { font-size: .75rem; color: var(--texte-2); }
.lots { list-style: none; padding: 0 20px 6px; margin: 0 -20px; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.lots::-webkit-scrollbar { display: none; }
.lots li { flex: 0 0 62%; max-width: 240px; scroll-snap-align: start; }
.lots img { border-radius: 14px; aspect-ratio: 4 / 5; object-fit: cover; box-shadow: 0 0 0 1px var(--filet); }
.lots b { display: block; font: 700 1.05rem/1.2 var(--titre); color: var(--or-cl); margin-top: 10px; }
.lots span { font-size: .9rem; color: var(--texte-2); line-height: 1.45; }
.mention { font-size: .74rem; color: #8e8778; margin: 22px 0 0; line-height: 1.5; }

/* ---------- 5. Parents ---------- */
.parents { padding-top: 40px; }
.lettre { color: var(--encre); padding: 34px 26px 38px; border-radius: 6px; position: relative;
  padding-bottom: 92px; background: url(/img/decouvrir/parchemin.webp) center / 100% 100% no-repeat;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .6)); transform: rotate(-.6deg); }
.lettre h2 { color: var(--encre); font-size: clamp(1.4rem, 6vw, 1.9rem); }
.lettre ul { list-style: none; padding: 0; margin: 18px 0 0; }
.lettre li { padding: 12px 0; border-top: 1px solid rgba(43, 29, 16, .14); font-size: .98rem; line-height: 1.5; }
.lettre li b { display: block; font-family: var(--titre); font-size: 1.02rem; }

/* ---------- 6. Dernier appel : écran de sélection du personnage ---------- */
main > section.appel { position: relative; max-width: none; min-height: 100svh; padding: 0; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; }
.appel-fond { position: absolute; inset: 0; z-index: -1; }
.appel-fond { touch-action: pan-y; background: var(--nuit-0); }
/* Les apprentis en motion : scène plein écran, un apprenti à la fois (fondu), la boucle vidéo par-dessus l'image fixe */
.appel-flou { display: none; }
.appel-cadre { position: absolute; left: 0; right: 0; top: -9%; bottom: 9%; overflow: hidden; }
.perso { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .6s ease; cursor: grab; }
.perso.centre { opacity: 1; }
.perso img, .perso-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.perso img:not([src]) { visibility: hidden; }
.perso-video { z-index: 2; opacity: 0; transition: opacity .5s ease; pointer-events: none; }
.perso-video.visible { opacity: 1; }
.appel-fond::after { content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(180deg, var(--nuit-0) 0%, rgba(7, 13, 24, .2) 14%, rgba(7, 13, 24, 0) 40%, rgba(7, 13, 24, .55) 60%, rgba(7, 13, 24, .92) 74%, var(--nuit-0) 100%); }
.appel-texte { position: relative; z-index: 4; text-align: center; padding: 0 20px max(36px, calc(env(safe-area-inset-bottom) + 24px)); }
.appel-texte h2 { font-size: clamp(1.7rem, 7.4vw, 2.4rem); }
.plaque { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 14px auto 20px; max-width: 360px; }
.plaque-nom { flex: 1; min-height: 58px; padding: 9px 12px; border-radius: 12px; background: linear-gradient(180deg, rgba(110, 67, 41, .55), rgba(7, 13, 24, .75)); box-shadow: 0 0 0 1px rgba(217, 177, 92, .55) inset; }
.plaque-nom b { display: block; font: 800 1.1rem/1.2 var(--titre); color: var(--or-cl); }
.plaque-nom span { font-size: .86rem; color: var(--texte-2); }
.fleche { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; position: relative;
  background: radial-gradient(circle at 50% 35%, #23395a, var(--nuit-0) 80%); box-shadow: 0 0 0 2px var(--laiton), 0 6px 16px rgba(0, 0, 0, .5); }
.fleche::before { content: ''; position: absolute; left: 50%; top: 50%; width: 11px; height: 11px; margin: -6px 0 0 -3px; border-left: 2px solid var(--or-cl); border-bottom: 2px solid var(--or-cl); transform: rotate(45deg); }
.fleche.suivante::before { margin-left: -8px; transform: rotate(-135deg); }
.fleche:active { transform: scale(.94); }
.appel-note { margin: 14px auto 0; max-width: 26em; font-size: .86rem; color: var(--texte-2); }
/* Entrée : la scène de l'apprenti s'allume quand l'écran arrive */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .appel-cadre { animation: allume linear both; animation-timeline: view(); animation-range: entry 10% cover 40%; }
  }
}
@keyframes allume { from { opacity: 0; } to { opacity: 1; } }

/* Grand écran : la scène portrait (Camp, apprenti) dans un cadre aux bords fondus, sur un fond flou tiré de la même image */
@media (min-width: 1024px) {
  .heros-flou { display: block; position: absolute; inset: -60px; background: var(--scene-large) 50% 50% / cover no-repeat; filter: blur(36px) brightness(.5) saturate(1.1); }
  .heros-cadre { left: auto; right: 5vw; width: auto; height: 100%; aspect-ratio: 768 / 1360;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%); }
  .heros-brume { background: linear-gradient(90deg, rgba(7, 13, 24, .7) 0%, rgba(7, 13, 24, 0) 45%), linear-gradient(180deg, rgba(7, 13, 24, .5) 0%, rgba(7, 13, 24, 0) 25%, rgba(7, 13, 24, 0) 70%, var(--nuit-0) 100%) !important; }
  .heros-texte { max-width: min(640px, 50vw); }
  .appel-flou { display: block; position: absolute; inset: -60px; background: var(--apprenti, none) 50% 50% / cover no-repeat; filter: blur(36px) brightness(.45); transition: background-image .6s ease; }
  .appel-cadre { top: 0; bottom: 0; left: 50%; right: auto; height: 100%; aspect-ratio: 720 / 1280; translate: -50% 0;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 84%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 84%, transparent 100%); }
}

/* ---------- Pied ---------- */
.pied { border-top: 1px solid var(--filet); padding: 32px 20px calc(32px + env(safe-area-inset-bottom)); text-align: center; color: var(--texte-2); font-size: .85rem; }
.pied img { margin: 0 auto 14px; border-radius: 10px; opacity: .85; }
.pied nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; }
.pied a { color: var(--texte-2); }
.pied p { margin: 14px 0 0; }
.pied .pied-note { margin-top: 8px; font-size: .74rem; color: #8e8778; }

/* ---------- Écrans larges ---------- */
@media (min-width: 700px) {
  .heros-texte { padding-left: 6vw; }
  .carte { width: 170px; margin-left: -85px; }
  .legende-scene { padding-left: 6vw; }
  .lots { overflow: visible; display: grid; grid-template-columns: repeat(5, 1fr); margin: 0; padding: 0; }
  .lots li { max-width: none; }
  .lettre { padding: 48px 56px 110px; }
}

/* ---------- Mouvement réduit : version fixe et élégante ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .heros h1 span, .heros-chapo, .heros-texte .bouton-or, .heros-texte .lien-doux { opacity: 1; transform: none; }
  .lucioles i { opacity: .7; }
  html { scroll-behavior: auto; }
}
