/* SITE05 — la descente dans la montagne. La page EST la montagne : le sommet sous la neige, puis un étage par partie
   (−1 les salles, −2 les ateliers, −3 les profondeurs, −4 les archives, le trésor). Le décor change de couche en couche.
   Tout ce qui bouge est en bas de ce fichier et s'arrête si le visiteur demande moins d'animations. */

:root {
  --braise: #e0662a;
  --largeur: 1180px;
}
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }

/* en haut à droite de la page : le bouton de musique (SITE07) et le choix de la langue */
.outils-haut { position: absolute; top: 14px; right: 14px; z-index: 30; display: flex; align-items: stretch; gap: 14px; }
.langues { display: flex; gap: 6px; }

/* ── Les étages : la roche de chacun est dans style/strates.css (SITE10) ── */
.etage { position: relative; isolation: isolate; }
main .etage { padding: 0 16px 110px; overflow-x: hidden; overflow-x: clip; }

/* ── Les galeries : entre deux étages, un sol de pierre où passent les nains (js/nains.js) ── */
.galerie { position: relative; z-index: 2; height: 96px; background: linear-gradient(#0a0807, #17110d 70%, #0a0807);
  box-shadow: 0 -10px 24px #000000a0, 0 10px 24px #000000a0; }
.galerie::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 12px; image-rendering: pixelated;
  background: var(--img-clou) 0 0 / 12px 12px repeat-x, linear-gradient(var(--fer), var(--fer-sombre)); border-top: 1px solid var(--fer-clair); border-bottom: 2px solid #000; }
.galerie::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: linear-gradient(var(--fer-sombre), #000); border-bottom: 1px solid #ffffff0f; }
canvas.nains { display: block; width: 100%; height: 100%; }
.galerie canvas.nains { position: absolute; left: 0; bottom: 12px; height: 84px; } /* (des nains de 64 points : les vrais dessins du jeu, réduits) */

/* ── Les titres en enseignes, pendues à leurs chaînes ── */
.tete { text-align: center; padding-top: 0; margin-bottom: 44px; display: flex; flex-direction: column; align-items: center; }
.niveau { order: 2; margin: 14px 0 0; font: 700 16px/1 var(--police-titres); letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.niveau span:first-child { color: var(--or); }
.enseigne { order: 1; position: relative; display: inline-block; margin-top: 58px; padding: 14px 44px 13px; max-width: 100%;
  font-size: clamp(21px, 3.1vw, 34px); line-height: 1.15; letter-spacing: 0.04em; color: var(--or);
  text-shadow: 0 2px 0 #000, 0 0 18px #e0a04059;
  background: var(--img-clou) 10px 10px / 12px 12px no-repeat, var(--img-clou) calc(100% - 10px) 10px / 12px 12px no-repeat,
    var(--img-clou) 10px calc(100% - 10px) / 12px 12px no-repeat, var(--img-clou) calc(100% - 10px) calc(100% - 10px) / 12px 12px no-repeat, var(--bois-fond);
  border: 3px solid var(--fer-sombre); outline: 1px solid #000; border-radius: 3px;
  box-shadow: inset 0 0 0 1px var(--fer), inset 0 2px 0 1px var(--reflet-bois), inset 0 -14px 22px #0000004d, 0 14px 26px #000000b0; }
.enseigne::before, .enseigne::after { content: ''; position: absolute; bottom: 100%; width: 10px; height: 60px; margin-bottom: 3px;
  background: var(--img-maillon, none) 0 0 / 10px 12px repeat-y; image-rendering: pixelated; filter: drop-shadow(0 2px 2px #000); }
.enseigne::before { left: 26px; }
.enseigne::after { right: 26px; }

/* ── Le sommet : la montagne en coupe, vivante ── */
.sommet { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 26px 16px 0; overflow: hidden; background: #303d50; }
.sommet-fond { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
/* l'image garde ses proportions (les lueurs sont posées dessus en %), couvre l'écran, le pied de la montagne en bas */
.sommet-image, .sommet-zones { position: absolute; left: 50%; bottom: 0; width: max(100%, calc(100vh * 1376 / 768)); width: max(100%, calc(100svh * 1376 / 768));
  aspect-ratio: 1376 / 768; transform: translateX(-50%); }
.sommet-image img { width: 100%; height: 100%; }
.sommet-fond::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(#0b0f1acc, #0b0f1a00 24%, #0b0f1a00 62%, #0a0807e6 90%, #0a0807); }
.neige { position: absolute; inset: 0; width: 100%; height: 100%; }
.logo { width: min(600px, 86vw, 62vh); filter: drop-shadow(0 10px 22px #000000c0); transform-origin: 50% 0; }
.sous-titre { margin: 2px 0 0; font: 700 clamp(15px, 2vw, 21px)/1.2 var(--police-titres); color: var(--or); letter-spacing: 0.2em;
  text-shadow: 0 2px 6px #000, 0 0 3px #000; }
.sommet-bas { margin-top: auto; padding-bottom: 26px; display: flex; flex-direction: column; align-items: center; }
.accroche { margin: 0; font: 700 clamp(19px, 5.4vw, 52px)/1.12 var(--police-titres); letter-spacing: 0.02em; color: #fff3da;
  text-shadow: 0 3px 0 #000, 0 0 26px #000, 0 0 8px #000; }
.accroche span { display: block; }
.accroche span:last-child { color: var(--or); }
.steam-petit { margin: 16px 0 0; font: 700 17px/1 var(--police-texte); letter-spacing: 0.14em; text-transform: uppercase; color: var(--or);
  text-shadow: 0 1px 4px #000; }
.descendre { margin-top: 22px; display: inline-flex; flex-direction: column; align-items: center; gap: 8px; color: var(--muted);
  font: 400 16px/1 var(--police-texte); text-decoration: none; letter-spacing: 0.06em; }
.descendre:hover { color: var(--or); }
.descendre i { width: 14px; height: 14px; border-right: 3px solid var(--or); border-bottom: 3px solid var(--or); transform: rotate(45deg); }

/* SITE07 — les salles qui répondent (js/montagne.js, tracés js/zones.js) : une couche posée exactement sur l'image, au-dessus
   du voile sombre. Invisible tant qu'on ne survole rien : l'entrée reste celle de SITE05. */
.sommet-zones { z-index: 1; }
.sommet-zones svg { display: block; width: 100%; height: 100%; overflow: visible; }
.zone { cursor: pointer; outline: none; -webkit-tap-highlight-color: transparent; }
.zone polygon { fill: #ffc46a; fill-opacity: 0; stroke: #ffe6a6; stroke-opacity: 0; stroke-width: 2px; stroke-linejoin: round;
  pointer-events: all; transition: fill-opacity 0.25s, stroke-opacity 0.25s; }
.zone.eclairee polygon { fill-opacity: 0.26; stroke-opacity: 0.95; filter: drop-shadow(0 0 1.2px #ffb04a); }
.zone:focus-visible polygon { stroke: #fff; stroke-opacity: 1; stroke-width: 3px; }
/* (le logo, l'accroche et la neige ne volent pas le survol aux salles qu'ils recouvrent) */
.sommet .logo, .sommet .sous-titre, .sommet-bas, .neige { pointer-events: none; }
.sommet-bas .descendre { pointer-events: auto; }
.zone-nom { position: absolute; z-index: 5; left: 0; top: 0; margin: 0; padding: 7px 16px 8px; white-space: nowrap; text-align: center; pointer-events: none;
  transform: translate(-50%, -100%); opacity: 0; visibility: hidden; transition: opacity 0.2s, visibility 0.2s;
  background: var(--parchemin-fond); color: var(--encre); border: 1px solid var(--bois-sombre); border-radius: var(--arrondi-1);
  box-shadow: inset 0 0 8px var(--tache-parchemin), 0 6px 16px #000000c0; }
.zone-nom.dessous { transform: translate(-50%, 0); }
.zone-nom.visible { opacity: 1; visibility: visible; }
.zone-nom b { display: block; font: 700 18px/1.2 var(--police-titres); letter-spacing: 0.04em; }
.zone-nom span { display: block; margin-top: 2px; font: 700 16px/1.2 var(--police-texte); color: var(--encre-pale); }

/* SITE07 — le bouton de musique : une plaque avec une note, barrée tant que la musique est coupée */
.musique { display: inline-flex; align-items: center; gap: 10px; padding: 4px 9px; }
.musique[hidden] { display: none; }
.musique svg { width: 20px; height: 20px; flex: none; fill: currentColor; }
.musique .barre { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.musique.joue { color: var(--or); border-color: var(--or); box-shadow: var(--plaque-relief), 0 0 14px #f0c36a66; }
.musique.joue .barre { display: none; }
.taverne { margin: 86px auto 0; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; scroll-margin-top: 40vh; }
.taverne .musique { padding: 10px 20px; font-size: 18px; }
.taverne .musique svg { width: 22px; height: 22px; }
.taverne-note { color: var(--muted); font-size: 16px; font-style: italic; }

/* les lueurs : torches, forge, or, lave (posées en % sur l'image) */
.lueur { position: absolute; left: var(--x); top: var(--y); width: var(--t); aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; pointer-events: none; mix-blend-mode: screen; opacity: 0.55;
  background: radial-gradient(closest-side, #ffb04a99, #ff8a2a40 45%, transparent); }
.lueur.or { background: radial-gradient(closest-side, #ffe08a99, #f0c36a33 50%, transparent); }
.lueur.lave { background: radial-gradient(closest-side, #ff5a1a8c, #ff3a1026 55%, transparent); }
.fumee { position: absolute; left: var(--x); top: var(--y); width: 3.2%; aspect-ratio: 1; pointer-events: none; }
.fumee::before, .fumee::after { content: ''; position: absolute; inset: 0; border-radius: 50%; opacity: 0;
  background: radial-gradient(closest-side, #c9cfdc59, transparent); }

/* ── Étage −1 : le jeu, et la fenêtre sur le fort ── */
.resume { max-width: 800px; margin: 0 auto; text-align: center; font-size: clamp(19px, 2.1vw, 23px); line-height: 1.5; }
.resume p:first-child { font: 700 clamp(22px, 2.9vw, 32px)/1.25 var(--police-titres); color: #fff3da; margin-bottom: 0.7em; }
.resume p:last-child { color: var(--or); }
.fenetre { position: relative; margin: 54px auto 0; width: min(100%, 1240px); aspect-ratio: 1024 / 572; }
.fenetre-vue { position: absolute; left: 24.6%; top: 21.2%; width: 50.8%; height: 67.6%; background: #000; overflow: hidden; }
.fenetre-vue img, .fenetre-vue video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fenetre-vue video { opacity: 0; transition: opacity 0.6s; }
.fenetre-vue video.joue { opacity: 1; }
.fenetre-vue::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 38px 10px #000000d0; }
.fenetre-cadre { position: absolute; inset: 0; width: 100%; height: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.fenetre figcaption { position: absolute; left: 0; right: 0; top: 100%; margin-top: 14px; text-align: center; color: var(--muted); font-size: 16px; font-style: italic; }
.grandir { margin: 120px auto 0; width: min(100%, 860px); }  /* SITE08 : le fort qui grandit */
.grandir figcaption { margin-top: 14px; text-align: center; color: var(--muted); font-size: 16px; font-style: italic; }

/* ── Étage −2 : ce que vous faites, en grandes images, un côté puis l'autre ── */
.point { max-width: var(--largeur); margin: 0 auto 96px; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(24px, 4.5vw, 64px); align-items: center; }
.point:last-child { margin-bottom: 0; }
.point:nth-of-type(even) { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
.point:nth-of-type(even) .point-image { order: 2; }
.point-image { position: relative; background: #000; box-shadow: 0 22px 44px #000000b8, 0 0 70px #e0a0401f; }
.point-image img, .point-image video { display: block; width: 100%; height: auto; }
.point-image video { position: absolute; inset: 0; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.5s; }
.point-image video.joue { opacity: 1; }
.point-image::after { content: ''; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 44px #00000099; }
.point-texte h3 { font-size: clamp(23px, 2.7vw, 34px); line-height: 1.15; color: var(--or); margin-bottom: 14px; text-shadow: 0 2px 0 #000; }
.point-texte h3::after { content: ''; display: block; width: 76px; height: 5px; margin-top: 14px; image-rendering: pixelated;
  background: linear-gradient(var(--fer-clair), var(--fer) 40%, var(--fer-sombre)); border: 1px solid #000; }
.point-texte p { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--text); }
.point:nth-of-type(even) .point-texte { text-align: right; }
.point:nth-of-type(even) .point-texte h3::after { margin-left: auto; }

/* ── Étage −3 : ce qui le distingue, gravé dans le basalte ── */
.atouts { list-style: none; counter-reset: atout; max-width: 920px; margin: 0 auto; padding: 0; }
.atouts li { counter-increment: atout; position: relative; padding: 26px 0 26px 118px; border-bottom: 1px solid #ffffff14; box-shadow: 0 1px 0 #000; }
.atouts li:last-child { border-bottom: 0; box-shadow: none; }
.atouts li::before { content: counter(atout, upper-roman); position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 92px; text-align: center;
  font: 700 clamp(40px, 5vw, 58px)/1 var(--police-titres); color: #e0662a99; text-shadow: 0 0 22px #e0662a66, 0 2px 0 #000; }
.atouts h3 { font-size: clamp(21px, 2.3vw, 28px); color: #fff3da; margin-bottom: 6px; }
.atouts p { font-size: clamp(18px, 1.6vw, 20px); color: var(--muted); }

/* SITE07 — la chronique d'un vrai fort : un registre de parchemin sous les atouts (les textes sont ceux du jeu) */
.chronique { max-width: 860px; margin: 96px auto 0; }
.chronique-page { padding: clamp(26px, 5vw, 50px) clamp(20px, 5vw, 58px) clamp(28px, 5vw, 48px); transform: rotate(0.5deg);
  box-shadow: inset 0 0 60px var(--tache-parchemin), inset 0 0 8px #78501e80, 0 30px 60px #000000c0, 0 2px 0 #00000080; }
.chronique h3 { text-align: center; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.2; color: var(--encre); }
.chronique-chapeau { margin: 10px auto 0; max-width: 34em; text-align: center; font-style: italic; color: var(--encre-pale); font-size: clamp(17px, 1.6vw, 19px); }
.chronique ol { list-style: none; margin: 26px 0 0; padding: 0; font-size: clamp(17px, 1.6vw, 19px); line-height: 1.5; }
.chronique li { display: grid; grid-template-columns: 12.5em minmax(0, 1fr); gap: 4px 18px; padding: 9px 0; border-top: 1px solid #2c1c0b26; }
.chron-date { font-weight: 700; color: #8c2415; }
.chronique li.chron-an { display: block; margin-top: 14px; padding: 16px 0 8px; border-top: 2px solid #2c1c0b99; }
.chronique li.chron-an:first-child { margin-top: 0; }
.chron-an h4 { display: inline; margin: 0 12px 0 0; font: 700 21px/1.2 var(--police-titres); letter-spacing: 0.06em; color: var(--encre); }
.chron-an p { display: inline; color: var(--encre-pale); font-style: italic; }
.chronique figcaption { margin: 22px auto 0; max-width: 40em; text-align: center; color: var(--muted); font-size: 16px; font-style: italic; }

/* ── Étage −4 : la lettre du créateur ── */
.lettre { position: relative; max-width: 760px; margin: 0 auto; padding: clamp(30px, 6vw, 64px) clamp(22px, 6vw, 70px) clamp(34px, 5vw, 54px);
  font-size: clamp(18px, 1.7vw, 20px); line-height: 1.7; transform: rotate(-0.6deg);
  box-shadow: inset 0 0 60px var(--tache-parchemin), inset 0 0 8px #78501e80, 0 30px 60px #000000c0, 0 2px 0 #00000080; }
.lettre p { margin-bottom: 1.05em; }
.lettrine::first-letter { float: left; font: 700 4.3em/0.82 var(--police-titres); padding: 0.06em 0.1em 0 0; color: #8c2415; text-shadow: 1px 1px 0 #2c1c0b40; }
.lettre .fin { font-style: italic; color: var(--encre-pale); }
.lettre-pied { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-top: 40px; }
.signature { flex: 1; max-width: 300px; font-size: 16px; color: var(--encre-pale); }
.signature-trait { display: block; height: 54px; border-bottom: 1px solid #2c1c0b99; margin-bottom: 6px; }
.sceau { width: 104px; flex: none; margin: 0 4px -8px 0; transform: rotate(9deg); filter: drop-shadow(0 4px 5px #2c1c0b99); }
.sceau .cire { fill: #9c2417; }
.sceau .cire-creux { fill: #7d1a10; stroke: #c2412c; stroke-width: 1.5; }
.sceau .cire-marque { fill: #b9372399; fill-rule: evenodd; stroke: #5e120a; stroke-width: 1.2; }

/* ── Le fond : le trésor, la foule, le bouton ── */
.tresor { text-align: center; overflow: hidden; }
.tresor .tete { margin-bottom: 26px; padding-top: 70px; }
.fin-compte { margin: 0; font: 700 clamp(22px, 3vw, 34px)/1 var(--police-titres); color: var(--or); letter-spacing: 0.06em; }
.fin-compte b { display: block; font-size: clamp(76px, 15vw, 190px); line-height: 0.95; color: #ffe6a6; letter-spacing: 0.01em;
  text-shadow: 0 4px 0 #6b4a27, 0 6px 0 #000, 0 0 60px #f0c36a80; }
.fin-accroche { margin: 22px auto 0; max-width: 26em; font-size: clamp(18px, 1.9vw, 22px); color: var(--text); }
.tas { width: min(460px, 78vw); margin: 22px auto -40px; image-rendering: pixelated; filter: drop-shadow(0 0 46px #f0c36a73); }
.fin-bouton { position: relative; z-index: 3; }
.fin-bouton .steam { font: 700 clamp(22px, 3.2vw, 34px)/1.1 var(--police-titres); letter-spacing: 0.05em; padding: clamp(16px, 2vw, 24px) clamp(26px, 5vw, 62px);
  color: #2c1c0b; text-shadow: 0 1px 0 #fff3da80; background: linear-gradient(#ffe6a6, #f0c36a 45%, #c98a2c); border: 3px solid #2c1c0b; outline: 1px solid #000;
  border-radius: 5px; box-shadow: inset 0 2px 0 #fff8e0b0, inset 0 -5px 0 #8a5a1a80, 0 12px 30px #000000c0, 0 0 60px #f0c36a59; }
.fin-bouton .steam[aria-disabled="true"]:hover { background: linear-gradient(#ffe6a6, #f0c36a 45%, #c98a2c); border-color: #2c1c0b; }
.fin-bouton a.steam[href]:hover { background: linear-gradient(#fff3da, #ffd98a 45%, #d99a3c); }
.steam-note { margin: 16px 0 0; font-size: 16px; color: var(--muted); }
canvas.foule { height: 190px; margin-top: 26px; background: linear-gradient(transparent, #000000b0); }
.tresor::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: linear-gradient(var(--fer), var(--fer-sombre)); border-top: 1px solid var(--fer-clair); }

/* ── La jauge de profondeur et le compteur, sur le côté ── */
.jauge { position: fixed; z-index: 20; left: 22px; top: 50%; transform: translateY(-50%); pointer-events: none; opacity: 0; transition: opacity 0.5s; }
.jauge.visible { opacity: 1; }
.jauge-rail { position: relative; height: min(300px, 44vh); width: 6px; display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(90deg, var(--fer-sombre), var(--fer) 50%, var(--fer-sombre)); border: 1px solid #000; border-radius: 3px; box-shadow: 0 2px 8px #000; }
.jauge-cran { position: relative; left: 18px; height: 0; white-space: nowrap; font: 700 12px/0 var(--police-titres); letter-spacing: 0.12em; text-transform: uppercase;
  color: #a8977e99; text-shadow: 0 1px 3px #000, 0 0 6px #000; transition: color 0.3s; }
.jauge-cran::before { content: ''; position: absolute; left: -22px; top: -1px; width: 12px; height: 2px; background: var(--fer-clair); box-shadow: 0 1px 0 #000; }
.jauge-cran.ici { color: var(--or); }
.jauge-curseur { position: absolute; left: 50%; top: calc(var(--p, 0) * 100%); width: 16px; height: 16px; margin: -8px 0 0 -8px; transform: rotate(45deg);
  background: linear-gradient(135deg, #ffe6a6, #e0a040); border: 2px solid #2c1c0b; box-shadow: 0 0 14px #f0c36ab0; }
.compteur { margin: 26px 0 0 -6px; display: inline-block; padding: 7px 12px 6px; font: 400 16px/1 var(--police-texte); color: var(--text); white-space: nowrap;
  background: var(--plaque-fond); border: 1px solid var(--bord-ext); border-radius: var(--arrondi-2); box-shadow: var(--plaque-relief); }
.compteur b { font: 700 19px/1 var(--police-titres); color: var(--or); font-variant-numeric: tabular-nums; margin-right: 2px; }

/* écrans moyens : plus de place pour les noms des étages à côté du rail → le rail seul et le compteur */
@media (max-width: 1500px) { .jauge-cran { font-size: 0; } .jauge { left: 14px; } }

/* ── Téléphone ── */
@media (max-width: 820px) {
  .point, .point:nth-of-type(even) { grid-template-columns: 1fr; gap: 22px; margin-bottom: 64px; }
  .point:nth-of-type(even) .point-image { order: 0; }
  .point:nth-of-type(even) .point-texte { text-align: left; }
  .point:nth-of-type(even) .point-texte h3::after { margin-left: 0; }
  main .etage { padding-bottom: 80px; }
  /* la jauge devient une petite plaque en bas : le compteur seul, avec le rail couché au-dessus */
  .jauge { left: 10px; top: auto; bottom: 10px; transform: none; }
  .jauge-rail { display: none; }
  .compteur { margin: 0; }
  .atouts li { padding-left: 76px; }
  .atouts li::before { width: 62px; }
  .fenetre { width: 150%; margin-left: -25%; }
  .fenetre figcaption { padding: 0 18%; }
  .galerie { height: 80px; }
  .galerie canvas.nains { height: 68px; }
  .enseigne { padding: 12px 30px 11px; }
  .lettre { transform: none; }
  .chronique { margin-top: 64px; }
  .chronique-page { transform: none; }
  .chronique li { grid-template-columns: 1fr; }
  .taverne { margin-top: 74px; }
  .sceau { width: 84px; }
}
@media (max-width: 640px) {
  /* la montagne entière ne tiendrait pas : on la montre en grand, centrée sur ses salles */
  .sommet-image, .sommet-zones { width: 220vw; bottom: 16%; }
  .sommet-image { -webkit-mask-image: linear-gradient(transparent, #000 20%); mask-image: linear-gradient(transparent, #000 20%); }
  .outils-haut { gap: 10px; }
  .sous-titre { letter-spacing: 0.1em; font-size: 16px; text-wrap: balance; }
  .sommet-fond::after { background: linear-gradient(#0b0f1acc, #0b0f1a00 30%, #0b0f1a00 52%, #0a0807f2 76%, #0a0807); }
}

/* ── Ce qui bouge (seulement si le visiteur n'a pas demandé moins d'animations) ── */
@media (prefers-reduced-motion: no-preference) {
  .lueur { animation: vaciller 2.9s ease-in-out infinite; }
  .lueur:nth-child(2n) { animation-duration: 3.7s; animation-delay: -1.2s; }
  .lueur:nth-child(3n) { animation-duration: 2.3s; animation-delay: -0.6s; }
  .lueur.lave { animation: vaciller 6s ease-in-out infinite; }
  @keyframes vaciller { 0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); } 22% { opacity: 0.9; transform: translate(-50%, -50%) scale(1.07); }
    41% { opacity: 0.6; } 63% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); } 80% { opacity: 0.68; } }
  .fumee::before, .fumee::after { animation: fumer 7s linear infinite; }
  .fumee::after { animation-delay: -3.5s; }
  @keyframes fumer { 0% { opacity: 0; transform: translate(0, 0) scale(0.5); } 18% { opacity: 0.9; } 100% { opacity: 0; transform: translate(130%, -330%) scale(2.6); } }
  .logo { animation: balancer 7s ease-in-out infinite; }
  @keyframes balancer { 0%, 100% { transform: rotate(-0.7deg); } 50% { transform: rotate(0.7deg); } }
  .descendre i { animation: inviter 1.8s ease-in-out infinite; }
  @keyframes inviter { 0%, 100% { transform: translateY(0) rotate(45deg); } 50% { transform: translateY(6px) rotate(45deg); } }
  /* les parties apparaissent en montant quand on y arrive (js/descente.js pose .vu) */
  .js-descente :is(.point, .atouts li, .lettre, .fenetre, .resume, .chronique):not(.vu) { opacity: 0; translate: 0 34px; }
  .js-descente :is(.point, .atouts li, .lettre, .fenetre, .resume, .chronique) { transition: opacity 0.8s ease, translate 0.8s ease; }
  /* la note du bouton de musique se balance pendant que ça joue */
  .musique.joue svg { animation: chanter 1.4s ease-in-out infinite; transform-origin: 50% 100%; }
  @keyframes chanter { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg); } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* SITE08 : le nain suivi (Kazra Mèche-d'or), une carte par étage : la scène du jeu, son portrait, son nom, une phrase vraie */
.suivi { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 20px; align-items: center;
  max-width: 780px; margin: 70px auto 0; padding: 14px; text-align: left;
  background: var(--panel); border: 1px solid #f0c36a55; border-radius: 10px; box-shadow: 0 18px 40px #000000a8; }
.suivi-scene { display: block; width: 100%; height: auto; border-radius: 6px; box-shadow: inset 0 0 0 1px #000; }
.suivi-texte p { margin: 0; color: var(--text); font-size: 17px; line-height: 1.45; }
.suivi-chapeau { color: var(--muted) !important; font-style: italic; font-size: 15px !important; margin-bottom: 6px !important; }
.suivi-nom { display: flex; align-items: center; gap: 12px; margin-bottom: 8px !important; }
.suivi-nom b { font-family: var(--police-titres); font-weight: 400; font-size: 22px; color: var(--or); }
.suivi-portrait { width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--or); background: #000; object-fit: cover; }
@media (max-width: 640px) {
  .suivi { grid-template-columns: 1fr; margin-top: 50px; }
}
