/* Wickward — le site : la vitrine, la page de presse et le gabarit commun du codex (22 octobre 2026).
   Écrit pour outils/vitrine_site (batir.js, gabarit.js). Les couleurs, les polices et les boutons sont ceux du jeu
   (index.html : :root, .btn), recopiés tels quels : la page ne charge pas la feuille du jeu. controle.js vérifie que
   les couleurs recopiées suivent celles d'index.html.
   Rien ne défile de côté, sur aucun écran (21 octobre 2026) : les grilles sont en minmax(0, 1fr), les listes passent à
   la ligne, et outils/banc_largeur.py le vérifie page par page. */
:root {
  color-scheme: dark;
  --nuit: #0B1020;
  --nuit-2: #080C19;
  --lune: #E4E8F5;
  --lune-2: #C5CBE0;
  --brume: #8E98B9;
  --brume-2: #636C8E;
  --lanterne: #F5B342;
  --lanterne-2: #FFD27A;
  --velin: #121729;
  --velin-2: #0F1322;
  --puits: #04060D;
  --filet: #1C2036;
  --or: #C9A45A;
  --or-2: #D9B062;
  --or-3: #9C7C3C;
  --or-sombre: #6E5A30;
  --or-texte: #B89656;
  --braise: #FF6B3D;
  --f-display: 'Wickward Titres', 'Jacquard 24', 'Pirata One', Georgia, serif;
  --f-body: 'Alegreya Sans', 'Segoe UI', system-ui, sans-serif;
  --r: 4px;
  --r-2: 10px;
  --large: 1200px;
  --gouttiere: 24px;
  --barre: 64px;
  --ombre: 0 22px 60px rgba(0, 0, 0, 0.55);
  --lueur-or: 0 0 22px rgba(245, 179, 66, 0.28);
}
/* les langues dont la police des titres n'a pas les lettres : un titre de secours qui leur va */
:lang(ru) { --f-display: Georgia, 'Times New Roman', serif; }
:lang(zh-Hans) { --f-display: 'Noto Serif SC', 'Source Han Serif SC', 'Songti SC', 'SimSun', serif; --f-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif; }
:lang(ja) { --f-display: 'Noto Serif JP', 'Yu Mincho', 'Hiragino Mincho ProN', serif; --f-body: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic UI', 'Meiryo', system-ui, sans-serif; }
:lang(ko) { --f-display: 'Noto Serif KR', 'Nanum Myeongjo', 'Batang', serif; --f-body: 'Alegreya Sans', 'Malgun Gothic', 'Apple SD Gothic Neo', 'Noto Sans KR', system-ui, sans-serif; }
:lang(zh-Hans) *, :lang(ja) *, :lang(ko) * { font-style: normal !important; }
/* les titres japonais se coupaient au milieu d'un mot (« 下降、そ / して上昇 ») : Chrome les coupe par groupes de mots ;
   le coréen ne se coupe qu'aux espaces, comme il s'écrit (22 octobre 2026) */
:lang(ja) :is(h1, h2, h3, h4, summary, .etage-nom, .lecteur-grand-texte strong, .programme-texte strong, .pied-appel-titre, .ss-titre, .ss-carton) { word-break: auto-phrase; text-wrap: balance; }
:lang(ko) { word-break: keep-all; }
:lang(ru) .logo, :lang(zh-Hans) .logo, :lang(ja) .logo, :lang(ko) .logo, .marque { font-family: 'Wickward Titres', 'Jacquard 24', 'Pirata One', Georgia, serif; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--nuit); -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(var(--barre) + 12px); }
body { margin: 0; background: var(--nuit); color: var(--lune); font: 17px/1.6 var(--f-body); overflow-wrap: break-word; }
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: var(--lanterne-2); }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; font-weight: 400; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--lanterne); outline-offset: 3px; }
.px, .px img, img.px { image-rendering: pixelated; image-rendering: crisp-edges; }
picture.px { display: inline-block; line-height: 0; }
picture.px > img { display: block; max-width: none; }
svg { width: 1em; height: 1em; }
.evitement { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--lanterne); color: #1A1308; padding: 8px 14px; border-radius: var(--r); font-weight: 700; text-decoration: none; }
.evitement:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Les mots en tête de partie, les titres ---------- */
.sur { display: inline-flex; align-items: center; gap: 12px; font: 700 13px/1.3 var(--f-body); letter-spacing: 0.2em; text-transform: uppercase; color: var(--or-texte); }
.sur::before, .bloc-tete .sur::after { content: ''; width: 28px; height: 2px; background: linear-gradient(90deg, transparent, var(--or-3)); }
.bloc-tete .sur::after { background: linear-gradient(90deg, var(--or-3), transparent); }
.titre-bloc { font-family: var(--f-display); font-size: clamp(42px, 6vw, 76px); line-height: 0.95; color: var(--lune); text-shadow: 0 3px 0 var(--puits), 0 0 34px rgba(245, 179, 66, 0.12); }
.chapeau { color: var(--lune-2); font-size: clamp(17px, 1.6vw, 19px); max-width: 68ch; }
.plus { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; color: var(--lanterne-2); }
.plus svg { width: 14px; height: 14px; transition: transform 0.18s; }
.plus:hover svg { transform: translateX(4px); }

/* ---------- Les boutons : les plaques de ferronnerie du jeu ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  padding: 10px 18px; min-height: 48px; border-radius: var(--r); text-decoration: none; cursor: pointer;
  background: linear-gradient(180deg, #1A2037 0%, #121729 100%); border: 1px solid #2B3150; color: var(--lune);
  font: 700 16px/1.15 var(--f-body); white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), inset 0 -2px 0 rgba(0, 0, 0, 0.45), 0 1px 0 rgba(0, 0, 0, 0.45);
  transition: background-color 0.15s, border-color 0.15s, transform 0.08s, box-shadow 0.2s;
}
.btn:hover { background: linear-gradient(180deg, #212841 0%, #161B30 100%); border-color: var(--or-sombre); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn.primary {
  background: linear-gradient(180deg, #E4C47E 0%, var(--or) 42%, var(--or-3) 100%); border-color: var(--or-sombre); color: #1A1308;
  box-shadow: inset 0 1px 0 rgba(255, 240, 205, 0.55), inset 0 -2px 0 rgba(58, 38, 8, 0.45), 0 1px 0 rgba(0, 0, 0, 0.5), 0 0 22px rgba(201, 164, 90, 0.25);
  text-shadow: 0 1px 0 rgba(255, 236, 196, 0.35);
}
.btn.primary:hover { background: linear-gradient(180deg, #F0D18E 0%, #D6B266 42%, #A8894A 100%); border-color: #8A7038; box-shadow: inset 0 1px 0 rgba(255, 240, 205, 0.6), inset 0 -2px 0 rgba(58, 38, 8, 0.45), 0 0 34px rgba(245, 179, 66, 0.4); }
.btn.voile { background: rgba(8, 12, 25, 0.55); border-color: rgba(201, 164, 90, 0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn.voile:hover { background: rgba(18, 23, 41, 0.75); border-color: var(--or-2); }
.btn.grand { min-height: 60px; padding: 12px 26px; font-size: 18px; }
.btn.grand svg { width: 24px; height: 24px; }
.btn.petit { min-height: 36px; padding: 6px 12px; font-size: 14px; }
.btn .deux { display: grid; text-align: left; line-height: 1.1; }
.btn .deux small { font-weight: 500; font-size: 12.5px; color: var(--brume); letter-spacing: 0.02em; }
.btn.primary .deux small { color: #3A2A10; }
.btn.voile .deux small { color: var(--lune-2); }
.btn.bientot { cursor: default; opacity: 0.62; border-style: dashed; }
.btn.bientot:hover { background: linear-gradient(180deg, #1A2037 0%, #121729 100%); border-color: #2B3150; }
.btn.bientot:active { transform: none; }

/* ---------- L'en-tête ---------- */
.barre { position: sticky; top: 0; z-index: 50; height: var(--barre); background: rgba(8, 12, 25, 0.86); border-bottom: 1px solid rgba(43, 49, 80, 0.7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background-color 0.3s, border-color 0.3s; }
.barre.sur-film { position: fixed; left: 0; right: 0; background: linear-gradient(180deg, rgba(4, 6, 13, 0.7), rgba(4, 6, 13, 0)); border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.barre.sur-film.defile { background: rgba(8, 12, 25, 0.9); border-bottom-color: rgba(43, 49, 80, 0.7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.barre-in { width: min(var(--large), 100%); height: 100%; margin: 0 auto; padding: 0 var(--gouttiere); display: flex; align-items: center; gap: 22px; }
.marque { font: 400 34px/1 'Wickward Titres', 'Jacquard 24', 'Pirata One', Georgia, serif; color: var(--lune); text-decoration: none; text-shadow: 0 2px 0 var(--puits); flex: none; }
.marque em { font-style: normal; color: var(--lanterne); }
.menu { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0; flex-wrap: wrap; }
.menu a { color: var(--lune-2); text-decoration: none; font-weight: 700; font-size: 15px; padding: 8px 11px; border-radius: var(--r); position: relative; }
.menu a:hover, .menu a[aria-current] { color: var(--lune); }
.menu a::after { content: ''; position: absolute; left: 11px; right: 11px; bottom: 3px; height: 2px; background: var(--lanterne); transform: scaleX(0); transition: transform 0.2s; border-radius: 1px; }
.menu a:hover::after, .menu a[aria-current]::after { transform: scaleX(1); }
.barre-fin { display: flex; align-items: center; gap: 10px; flex: none; margin-left: auto; }
.barre .jouer { min-height: 40px; padding: 7px 16px; font-size: 15px; }
.barre .jouer svg { width: 16px; height: 16px; }
.langues { position: relative; }
.langues summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 10px; border-radius: var(--r); color: var(--lune-2); font-weight: 700; font-size: 13px; letter-spacing: 0.06em; cursor: pointer; border: 1px solid transparent; }
.langues summary::-webkit-details-marker { display: none; }
.langues summary:hover, .langues[open] summary { color: var(--lune); border-color: #2B3150; background: rgba(18, 23, 41, 0.7); }
.langues summary svg { width: 18px; height: 18px; }
.langues-liste { position: absolute; right: 0; top: calc(100% + 8px); min-width: 210px; background: #0E1426; border: 1px solid #2B3150; border-radius: var(--r-2); padding: 8px; box-shadow: var(--ombre); z-index: 60; }
.langues-liste a { display: block; padding: 8px 12px; border-radius: 6px; color: var(--lune-2); text-decoration: none; font-weight: 500; }
.langues-liste a:hover { background: #1A2037; color: var(--lune); }
.langues-liste a[aria-current] { color: var(--lanterne-2); font-weight: 700; }
.burger { display: none; width: 44px; height: 44px; border-radius: var(--r); border: 1px solid #2B3150; background: rgba(18, 23, 41, 0.7); color: var(--lune); cursor: pointer; place-items: center; }
.burger svg { width: 20px; height: 20px; }

/* ---------- L'ouverture : le film sous la lanterne ---------- */
.ouverture { position: relative; min-height: max(640px, 100svh); display: grid; place-items: center; isolation: isolate; overflow: hidden; background: var(--puits); }
.ouv-film { position: absolute; inset: 0; z-index: -3; }
.ouv-video { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; transform: scale(1.04); }
/* la nuit posée sur le film, percée par la lanterne que tient le curseur (vitrine.js : --lx, --ly) */
.ouv-nuit { position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(circle 520px at var(--lx, 50%) var(--ly, 46%), rgba(4, 6, 13, 0) 0%, rgba(4, 6, 13, 0.18) 45%, rgba(4, 6, 13, 0.6) 100%),
    linear-gradient(180deg, rgba(4, 6, 13, 0.55) 0%, rgba(4, 6, 13, 0.15) 30%, rgba(4, 6, 13, 0.3) 66%, rgba(11, 16, 32, 0.55) 90%, rgba(11, 16, 32, 0.8) 100%); }
.ouv-braises { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.ouv-contenu { width: min(980px, 100%); padding: calc(var(--barre) + 40px) var(--gouttiere) 150px; display: grid; justify-items: center; text-align: center; gap: 18px; }
.ouv-contenu .sur::after { content: ''; width: 28px; height: 2px; background: linear-gradient(90deg, var(--or-3), transparent); }
.logo { font: 400 clamp(92px, 17vw, 220px)/0.82 var(--f-display); color: var(--lune); letter-spacing: 0.005em; margin: 2px 0 4px;
  text-shadow: 0 0 30px rgba(245, 179, 66, 0.35), 0 6px 0 var(--puits); animation: logo-lueur 5.5s ease-in-out infinite; }
.logo em { font-style: normal; color: var(--lanterne); text-shadow: 0 0 26px rgba(255, 210, 122, 0.55), 0 6px 0 var(--puits); }
@keyframes logo-lueur { 0%, 100% { text-shadow: 0 0 30px rgba(245, 179, 66, 0.32), 0 6px 0 var(--puits); } 45% { text-shadow: 0 0 46px rgba(245, 179, 66, 0.5), 0 6px 0 var(--puits); } 60% { text-shadow: 0 0 26px rgba(245, 179, 66, 0.26), 0 6px 0 var(--puits); } }
.accroche { font-size: clamp(18px, 2vw, 21px); line-height: 1.55; color: var(--lune-2); max-width: 62ch; text-shadow: 0 1px 3px #000, 0 0 18px rgba(4, 6, 13, 0.9); }
.ouv-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 10px; }
.garanties { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; margin-top: 6px; }
.garanties li { font-size: 14px; color: var(--lune-2); padding: 4px 12px 4px 10px; border-radius: 999px; background: rgba(8, 12, 25, 0.55); border: 1px solid rgba(43, 49, 80, 0.9); display: inline-flex; align-items: center; gap: 8px; }
.garanties li::before { content: ''; width: 6px; height: 6px; background: var(--lanterne); box-shadow: 0 0 8px var(--lanterne); }
.defiler { position: absolute; left: 50%; bottom: 74px; transform: translateX(-50%); width: 44px; height: 44px; display: grid; place-items: center; color: var(--lune-2); border-radius: 50%; border: 1px solid rgba(201, 164, 90, 0.4); background: rgba(8, 12, 25, 0.4); animation: defiler 2.4s ease-in-out infinite; z-index: 2; }
.defiler svg { width: 20px; height: 20px; }
@keyframes defiler { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 7px); } }
/* l'horizon : une lisière au pixel, des arbres et des tours allumées, qui fond l'ouverture dans la page */
.horizon { position: absolute; left: 0; right: 0; bottom: -1px; height: 96px; z-index: 1; pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 24' shape-rendering='crispEdges'%3E%3Cpath fill='%230B1020' d='M0 24V17h3v-2h1v-2h1v2h1v2h4v-5h1v-2h1V7h1v3h1v2h1v5h3v-3h1v-1h1v1h1v3h5v-6h1V9h1v2h1v1h1v5h5v-2h1v-2h1v2h1v2h6v-8h4v8h3v-3h1v-2h1v2h1v3h7v-2h1v-3h1v3h1v2h6V8h1V6h2v2h1v9h4v-3h1v-1h1v1h1v3h9v-4h1v-2h1v2h1v4h5v-5h1V9h1v3h1v5h6v-2h1v-2h1v2h1v2h7v-9h1V5h2v3h1v9h4v-3h1v-1h1v1h1v3h6v-5h1v-2h1v2h1v5h6v-2h1v-3h1v3h1v2h5v-7h4v7h4v-3h1v-1h1v1h1v3h5v-4h1V9h1v4h1v4h6v-2h1v-2h1v2h1v2h4v-6h1V8h1v3h1v6h5v-2h1v-2h1v2h1v2h3v7z'/%3E%3Cpath fill='%23F5B342' d='M53 11h1v1h-1zm2 0h1v1h-1zm56-2h1v1h-1zm0 2h1v1h-1zm63-3h1v1h-1zm46 4h1v1h-1z'/%3E%3C/svg%3E") center bottom / 960px 96px repeat-x; }

/* ---------- Les parties ---------- */
.bloc { position: relative; width: min(var(--large), 100%); margin: 0 auto; padding: 110px var(--gouttiere) 40px; }
.bloc-tete { display: grid; justify-items: center; text-align: center; gap: 14px; margin-bottom: 48px; }
.bloc-tete .chapeau { margin: 0 auto; }

/* ---------- Les films : le cinéma ---------- */
.films { padding-top: 70px; }
.cinema { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.lecteur { position: relative; }
.lecteur-cadre { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 8px; overflow: hidden; box-shadow: var(--ombre), 0 0 0 1px #2B3150, 0 0 60px rgba(245, 179, 66, 0.08); }
/* les coins d'or du etage du jeu */
.lecteur::before, .lecteur::after { content: ''; position: absolute; width: 26px; height: 26px; z-index: 3; pointer-events: none; border: 3px solid var(--or-2); }
.lecteur::before { left: -6px; top: -6px; border-right: 0; border-bottom: 0; }
.lecteur::after { right: -6px; bottom: -6px; border-left: 0; border-top: 0; }
.lecteur-video { width: 100%; height: 100%; object-fit: contain; background: #000; image-rendering: auto; }
.lecteur.pret .lecteur-video { cursor: pointer; }
.lecteur-grand { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 16px; border: 0; padding: 0; cursor: pointer; color: var(--lune);
  background: radial-gradient(ellipse at center, rgba(4, 6, 13, 0.1) 0%, rgba(4, 6, 13, 0.55) 100%); }
.lecteur-grand-rond { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; color: #1A1308;
  background: radial-gradient(circle at 35% 30%, #FFE7A8 0%, var(--lanterne) 45%, #C27A1E 100%);
  box-shadow: 0 0 0 6px rgba(245, 179, 66, 0.22), 0 0 50px rgba(245, 179, 66, 0.55); transition: transform 0.2s, box-shadow 0.2s; }
.lecteur-grand-rond svg { width: 40px; height: 40px; margin-left: 6px; }
.lecteur-grand:hover .lecteur-grand-rond { transform: scale(1.07); box-shadow: 0 0 0 9px rgba(245, 179, 66, 0.25), 0 0 70px rgba(245, 179, 66, 0.7); }
.lecteur-grand-texte { display: grid; gap: 2px; text-shadow: 0 2px 6px #000; }
.lecteur-grand-texte strong { font: 400 clamp(26px, 3.4vw, 40px)/1 var(--f-display); }
.lecteur-grand-texte small { font-size: 14px; color: var(--lune-2); letter-spacing: 0.08em; }
.lecteur-barre { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 6px; padding: 26px 12px 10px; z-index: 2;
  background: linear-gradient(180deg, rgba(4, 6, 13, 0) 0%, rgba(4, 6, 13, 0.85) 60%); transition: opacity 0.3s; }
.lecteur.lit.calme .lecteur-barre { opacity: 0; }
.lecteur-barre button { width: 40px; height: 40px; border: 0; border-radius: var(--r); background: transparent; color: var(--lune); display: grid; place-items: center; cursor: pointer; flex: none; }
.lecteur-barre button:hover { background: rgba(255, 255, 255, 0.08); color: var(--lanterne-2); }
.lecteur-barre button svg { width: 18px; height: 18px; }
.lb-st[aria-pressed="false"] { opacity: 0.5; }
.lb-temps { font: 600 13px/1 var(--f-body); color: var(--lune-2); font-variant-numeric: tabular-nums; white-space: nowrap; padding: 0 4px; }
/* la mèche : la barre du film brûle à mesure qu'il passe, sa flamme au bout */
.lb-meche { position: relative; flex: 1; min-width: 60px; height: 26px; cursor: pointer; touch-action: none; }
.lb-meche-fond, .lb-meche-brule { position: absolute; left: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 2px; }
.lb-meche-fond { right: 0; background: repeating-linear-gradient(90deg, #5A4A2E 0 6px, #4A3C24 6px 8px); }
.lb-meche-brule { width: var(--avance, 0%); background: linear-gradient(90deg, #2A2018, #3A2A1A); box-shadow: inset 0 -1px 0 rgba(255, 140, 60, 0.35); }
.lb-flamme { position: absolute; top: 50%; left: var(--avance, 0%); width: 14px; height: 20px; margin: -16px 0 0 -7px; pointer-events: none;
  background: radial-gradient(ellipse 45% 60% at 50% 70%, #FFF3C4 0%, #FFD27A 35%, rgba(245, 120, 40, 0.85) 60%, rgba(224, 96, 42, 0) 75%);
  filter: drop-shadow(0 0 6px rgba(245, 179, 66, 0.9)); animation: flamme 0.9s ease-in-out infinite alternate; }
@keyframes flamme { 0% { transform: scale(1, 1) rotate(-2deg); } 100% { transform: scale(0.92, 1.12) rotate(3deg); } }
.lb-volume { width: 76px; accent-color: var(--lanterne); }
/* les mots du film : intertitres, noms, notes, récit (WebVTT, posés par vitrine.js) */
/* toutes les répliques dans la même case : chacune prenait sa rangée de la grille, et dès la troisième le texte
   descendait sous la barre puis hors du cadre (22 octobre 2026). Le bas suit la barre : il remonte quand elle est là. */
.lecteur-sous { position: absolute; inset: 0; pointer-events: none; z-index: 1; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); padding: 6% 7% max(6%, 80px); transition: padding-bottom 0.3s; }
.lecteur.lit.calme .lecteur-sous { padding-bottom: 6%; }
.lecteur-sous p { grid-area: 1 / 1; opacity: 0; transition: opacity 0.45s; margin: 0; }
.lecteur-sous p.la { opacity: 1; }
.lecteur-sous .ss-titre { align-self: center; justify-self: center; text-align: center; max-width: 24ch; font: 400 clamp(22px, 3.6vw, 50px)/1.08 var(--f-display); color: var(--lune); text-shadow: 0 0 18px rgba(4, 6, 13, 0.95), 0 3px 0 #000, 0 0 40px rgba(4, 6, 13, 0.9); }
.lecteur-sous .ss-fin { align-self: end; justify-self: center; text-align: center; margin-bottom: 4%; max-width: 40ch; font: 600 clamp(14px, 1.7vw, 21px)/1.35 var(--f-body); color: var(--lanterne-2); text-shadow: 0 2px 6px #000; }
.lecteur-sous .ss-nom { align-self: end; justify-self: start; font: 400 clamp(22px, 3vw, 42px)/1 var(--f-display); color: var(--lune); padding: 8px 16px 10px; background: linear-gradient(90deg, rgba(4, 6, 13, 0.85), rgba(4, 6, 13, 0)); border-left: 3px solid var(--lanterne); text-shadow: 0 2px 0 #000; }
.lecteur-sous .ss-note, .lecteur-sous .ss-recit { align-self: end; justify-self: center; text-align: center; max-width: 52ch; font: 500 clamp(14px, 1.6vw, 20px)/1.4 var(--f-body); color: #F2F4FA; padding: 6px 14px; border-radius: 4px; background: rgba(4, 6, 13, 0.72); }
.lecteur-sous .ss-recit { font-style: italic; font-size: clamp(15px, 1.8vw, 22px); background: linear-gradient(180deg, rgba(4, 6, 13, 0), rgba(4, 6, 13, 0.6)); text-shadow: 0 2px 6px #000; }
.lecteur-sous .ss-carton { align-self: center; justify-self: center; text-align: center; font: 400 clamp(28px, 4.4vw, 60px)/1 var(--f-display); color: var(--lune); text-shadow: 0 3px 0 #000, 0 0 30px rgba(0, 0, 0, 0.9); }
.lecteur.sans-st .lecteur-sous { display: none; }
.lecteur:fullscreen { background: #000; display: grid; place-items: center; }
.lecteur:fullscreen .lecteur-cadre { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; box-shadow: none; }
.lecteur:fullscreen::before, .lecteur:fullscreen::after { display: none; }
/* le programme : les films, à choisir */
.programme { display: grid; gap: 12px; }
.programme-film { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr); gap: 14px; align-items: center; padding: 8px; border-radius: 8px; text-decoration: none; color: var(--lune); border: 1px solid transparent; background: rgba(15, 19, 34, 0.6); transition: background-color 0.2s, border-color 0.2s; }
.programme-film:hover { background: #141A2E; border-color: #2B3150; }
.programme-film.en-cours { border-color: var(--or-sombre); background: linear-gradient(90deg, rgba(201, 164, 90, 0.12), rgba(15, 19, 34, 0.6)); }
.programme-image { position: relative; border-radius: 5px; overflow: hidden; aspect-ratio: 16 / 9; background: #000; }
.programme-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.programme-film:hover .programme-image img { transform: scale(1.05); }
.programme-duree { position: absolute; right: 5px; bottom: 5px; font: 700 11px/1 var(--f-body); background: rgba(4, 6, 13, 0.85); color: var(--lune); padding: 3px 5px; border-radius: 3px; font-variant-numeric: tabular-nums; }
.programme-lire { position: absolute; inset: 0; display: grid; place-items: center; color: var(--lanterne-2); opacity: 0; transition: opacity 0.2s; background: rgba(4, 6, 13, 0.35); }
.programme-lire svg { width: 28px; height: 28px; filter: drop-shadow(0 0 8px rgba(245, 179, 66, 0.8)); }
.programme-film:hover .programme-lire { opacity: 1; }
.programme-texte { display: grid; gap: 3px; min-width: 0; }
.programme-texte strong { font: 400 23px/1.05 var(--f-display); color: var(--lune); }
.programme-film.en-cours .programme-texte strong { color: var(--lanterne-2); }
.programme-texte span { font-size: 14px; line-height: 1.4; color: var(--brume); }

/* ---------- Le récit : trois Veilleurs autour d'une braise ---------- */
.recit { width: 100%; max-width: none; padding-left: 0; padding-right: 0; background: radial-gradient(ellipse 70% 60% at 72% 55%, rgba(245, 150, 50, 0.1), transparent 70%); }
.recit-in { width: min(var(--large), 100%); margin: 0 auto; padding: 0 var(--gouttiere); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.recit-texte { display: grid; gap: 18px; justify-items: start; }
.recit-texte .bloc-tete { justify-items: start; text-align: left; margin-bottom: 6px; }
.recit-texte .bloc-tete .sur::after { display: none; }
.recit-texte > p { color: var(--lune-2); font-size: 18px; }
.recit-texte > p:first-of-type::first-letter { font: 400 64px/0.8 var(--f-display); float: left; margin: 6px 10px 0 0; color: var(--lanterne); }
.recit-scene { position: relative; padding: 40px 10px 10px; border-radius: 14px; background: linear-gradient(180deg, rgba(4, 6, 13, 0) 0%, rgba(20, 14, 10, 0.5) 100%); }
.recit-foyer { position: absolute; left: 50%; top: 18px; width: 120px; height: 120px; transform: translateX(-50%); }
.recit-lueur { position: absolute; inset: -60px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 196, 92, 0.45) 0%, rgba(245, 140, 50, 0.16) 36%, transparent 70%); animation: braise 3.2s ease-in-out infinite; }
@keyframes braise { 0%, 100% { opacity: 0.85; transform: scale(1); } 35% { opacity: 1; transform: scale(1.06); } 70% { opacity: 0.75; transform: scale(0.97); } }
.recit-trio { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-top: 70px; }
.veilleur { display: grid; justify-items: center; text-align: center; gap: 4px; }
.veilleur-figure { width: 136px; height: 156px; display: grid; place-items: end center; position: relative; }
.veilleur-figure::after { content: ''; position: absolute; left: 18%; right: 18%; bottom: -4px; height: 14px; border-radius: 50%; background: radial-gradient(ellipse, rgba(0, 0, 0, 0.6), transparent 70%); z-index: -1; }
.veilleur-ysolde .veilleur-figure { transform: translateY(-26px); }
.veilleur-nom { font: 400 34px/1 var(--f-display); color: var(--lune); margin-top: 6px; }
.veilleur-ysolde .veilleur-nom, .veilleur-ysolde .veilleur-titre, .veilleur-ysolde .veilleur-texte { transform: translateY(-26px); }
.veilleur-titre { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--or-texte); font-weight: 700; }
.veilleur-texte { font-size: 15px; line-height: 1.45; color: var(--brume); max-width: 26ch; }

/* ---------- Le monde : la descente, puis la remontée ---------- */
.monde { width: 100%; max-width: none; padding-left: 0; padding-right: 0; padding-bottom: 0; }
.monde .bloc-tete { width: min(var(--large), 100%); margin-left: auto; margin-right: auto; padding: 0 var(--gouttiere); }
.etages { position: relative; }
.etage { --f1: #0B1A16; --f2: #10221C; --acc: #9AD17A; --txt: var(--lune); --txt2: var(--lune-2); position: relative; padding: 70px 0; background: linear-gradient(180deg, var(--f1) 0%, var(--f2) 100%); color: var(--txt); overflow: hidden; }
.etage::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.55;
  background: radial-gradient(ellipse 60% 70% at var(--lueur-x, 78%) 50%, color-mix(in srgb, var(--acc) 22%, transparent), transparent 70%); }
.etage-val { --f1: var(--nuit); --f2: #0D1A1C; --acc: #9AD17A; }
.etage-bas { --f1: #120B10; --f2: #241009; --acc: #FF7A3C; --lueur-x: 22%; }
.etage-haut { --f1: #1E0E0A; --f2: #0D1622; --acc: #7FB8D8; }
.etage-seuil { --f1: #0D1622; --f2: #1B1430; --acc: #B77CFF; --lueur-x: 22%; }
.etage-cieux { --f1: #F3ECDD; --f2: #FAF6EE; --acc: #F5B342; --txt: #2A2235; --txt2: #4A4058; padding-top: 190px; background: linear-gradient(180deg, #1B1430 0, #5E4E6E 60px, #BFAF9C 120px, #E9E0CE 170px, var(--f1) 220px, var(--f2) 100%); }
.etage-cieux::before { opacity: 0.8; }
.etage-cieux .etage-in { color: var(--txt); }
.etage-in { position: relative; width: min(var(--large), 100%); margin: 0 auto; padding: 0 var(--gouttiere) 0 calc(var(--gouttiere) + 46px); display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.etage:nth-child(even) .etage-in { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
.etage:nth-child(even) .etage-texte { order: 2; }
/* le fil de la profondeur, à gauche : une corde qui descend puis remonte, et le nom de l'étage */
.etage-profondeur { position: absolute; left: var(--gouttiere); top: -70px; bottom: -70px; width: 24px; display: grid; justify-items: center; }
.etage-profondeur::before { content: ''; position: absolute; top: 0; bottom: 0; width: 2px; background: repeating-linear-gradient(180deg, color-mix(in srgb, var(--acc) 70%, transparent) 0 8px, transparent 8px 14px); }
.etage-profondeur span { position: sticky; top: 45%; align-self: start; writing-mode: vertical-rl; transform: rotate(180deg); font: 700 12px/1 var(--f-body); letter-spacing: 0.24em; text-transform: uppercase; color: var(--acc); background: var(--f1); padding: 10px 2px; white-space: nowrap; }
.etage-texte { display: grid; gap: 14px; justify-items: start; }
.etage-n { font: 700 13px/1.3 var(--f-body); letter-spacing: 0.2em; text-transform: uppercase; color: var(--acc); }
.etage-nom { font: 400 clamp(40px, 5vw, 64px)/0.95 var(--f-display); text-shadow: 0 3px 0 rgba(0, 0, 0, 0.5); }
.etage-cieux .etage-nom { text-shadow: 0 2px 0 rgba(255, 255, 255, 0.6); }
.etage-texte > p { color: var(--txt2); font-size: 17.5px; }
.etage-strates { font-size: 15px !important; color: var(--txt2); opacity: 0.9; }
.etage-betes { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: flex-end; padding: 8px 0 2px; }
.etage-betes a { display: grid; place-items: end center; min-width: 52px; min-height: 64px; transition: transform 0.2s; }
.etage-betes a:hover { transform: translateY(-4px); }
.etage-betes img { height: auto; filter: drop-shadow(0 4px 2px rgba(0, 0, 0, 0.45)); }
.etage-boss { font-size: 15px; color: var(--txt2); }
.etage-boss-titre { font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; font-size: 12px; color: var(--acc); margin-right: 6px; }
.etage-boss a { color: var(--txt); text-decoration-color: color-mix(in srgb, var(--acc) 60%, transparent); }
.etage .plus { color: var(--acc); }
.etage-cieux .plus { color: #8A5A12; }
.etage-cieux .etage-n, .etage-cieux .etage-boss-titre { color: #9A6416; }
.etage-cieux .etage-profondeur span { color: #9A6416; background: transparent; }
.etage-cieux .etage-profondeur { top: -10px; }
.etage-image { position: relative; margin: 0; }
.etage-image > img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; box-shadow: var(--ombre), 0 0 0 1px rgba(255, 255, 255, 0.06); transition: transform 0.5s; }
.etage-image:hover > img { transform: scale(1.015); }
.etage-boss-figure { position: absolute; right: -14px; bottom: -26px; filter: drop-shadow(0 10px 8px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 22px color-mix(in srgb, var(--acc) 45%, transparent)); }
.etage:nth-child(even) .etage-boss-figure { right: auto; left: -14px; }

/* ---------- L'arsenal ---------- */
.onglets { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: -16px 0 30px; }
.onglet { padding: 10px 20px; border-radius: 999px; text-decoration: none; color: var(--lune-2); font-weight: 700; border: 1px solid #2B3150; background: rgba(15, 19, 34, 0.7); transition: all 0.2s; }
.onglet:hover { color: var(--lune); border-color: var(--or-sombre); }
.onglet[aria-selected="true"] { color: #1A1308; background: linear-gradient(180deg, #E4C47E, var(--or) 50%, var(--or-3)); border-color: var(--or-sombre); box-shadow: 0 0 18px rgba(201, 164, 90, 0.3); }
.avec-script .ars-panneau { display: none; }
.avec-script .ars-panneau.active { display: block; }
.ars-panneau + .ars-panneau { margin-top: 60px; }
.avec-script .ars-panneau + .ars-panneau { margin-top: 0; }
.ars-panneau > .chapeau { text-align: center; margin: 0 auto 28px; }
.ars-cadre { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 22px; align-items: start; }
.ars-liste { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ars-liste a { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: 8px; padding: 6px 10px 6px 6px; min-height: 58px; border-radius: 6px; border: 1px solid #1C2036; background: #0F1322; color: var(--lune-2); text-decoration: none; font-weight: 700; font-size: 14px; line-height: 1.15; transition: all 0.15s; }
.ars-liste a .px, .ars-liste a img { max-height: 46px; width: auto; justify-self: center; }
.ars-liste a:hover { border-color: #2B3150; color: var(--lune); background: #141A2E; }
.ars-liste a[aria-current] { border-color: var(--or-sombre); color: var(--lanterne-2); background: linear-gradient(90deg, rgba(201, 164, 90, 0.16), #0F1322); }
.avec-script .ars-fiche { display: none; }
.avec-script .ars-fiche.active { display: grid; }
.ars-fiche { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 26px; padding: 26px; border-radius: 12px; border: 1px solid #1C2036; background: linear-gradient(160deg, #121729 0%, #0B1020 70%); box-shadow: var(--ombre); position: relative; display: grid; }
.ars-fiche + .ars-fiche { margin-top: 16px; }
.avec-script .ars-fiche + .ars-fiche { margin-top: 0; }
.ars-fiche::before, .ars-fiche::after { content: ''; position: absolute; width: 18px; height: 18px; border: 2px solid var(--or-3); pointer-events: none; }
.ars-fiche::before { left: 8px; top: 8px; border-right: 0; border-bottom: 0; }
.ars-fiche::after { right: 8px; bottom: 8px; border-left: 0; border-top: 0; }
.ars-fiche { align-items: start; }
.ars-scene { position: sticky; top: calc(var(--barre) + 16px); display: grid; place-items: end center; height: 340px; padding-bottom: 30px; border-radius: 10px; background: radial-gradient(ellipse 70% 55% at 50% 72%, rgba(245, 179, 66, 0.18), transparent 70%), linear-gradient(180deg, #0B1020, #10162A); overflow: hidden; }
.ars-sol { position: absolute; left: 12%; right: 12%; bottom: 22px; height: 26px; border-radius: 50%; background: radial-gradient(ellipse, rgba(0, 0, 0, 0.55), transparent 70%); }
.ars-scene .px, .ars-scene img { position: relative; max-height: 260px; width: auto; }
.ars-texte { display: grid; gap: 12px; align-content: start; justify-items: start; }
.ars-texte h3 { font: 400 clamp(34px, 3.4vw, 46px)/1 var(--f-display); display: grid; gap: 4px; }
.ars-texte h3 small { font: 700 13px/1.2 var(--f-body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--or-texte); }
.ars-texte > p { color: var(--lune-2); }
.ars-role { font-weight: 700; color: var(--lanterne-2) !important; }
.ars-lore { font-style: italic; color: var(--brume) !important; border-left: 2px solid var(--or-sombre); padding-left: 12px; }
.ars-sous-titre { font: 700 12px/1.2 var(--f-body); letter-spacing: 0.18em; text-transform: uppercase; color: var(--or-texte); margin-top: 6px; }
.ars-paliers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: 100%; }
.ars-paliers li { display: grid; justify-items: center; text-align: center; gap: 3px; padding: 10px 6px; border-radius: 8px; background: rgba(4, 6, 13, 0.45); border: 1px solid #1C2036; }
.ars-paliers .px, .ars-paliers img { height: 100px; width: auto; }
.ars-paliers span, .ars-voies span { font: 700 11px/1.2 var(--f-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--or-texte); }
.ars-paliers strong { font-size: 14px; line-height: 1.2; color: var(--lune); }
.ars-voies { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: 100%; }
.ars-voies li { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 10px; align-items: start; padding: 10px; border-radius: 8px; background: rgba(4, 6, 13, 0.45); border: 1px solid #1C2036; }
.ars-voies .px, .ars-voies img { height: 104px; width: auto; justify-self: center; }
.ars-voies div { display: grid; gap: 2px; }
.ars-voies strong { font-size: 15px; line-height: 1.2; color: var(--lune); }
.ars-voies p { font-size: 13.5px; line-height: 1.4; color: var(--brume); }
.ars-competences { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; width: 100%; }
.ars-competences li { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--lune-2); }
.ars-competences img { width: 24px; height: 24px; flex: none; }
.ars-liste-heros a .px, .ars-liste-heros a img { max-height: 40px; }
.menagerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.menagerie a { display: grid; justify-items: center; text-align: center; gap: 3px; padding: 14px 8px 12px; border-radius: 10px; border: 1px solid #1C2036; background: #0F1322; color: var(--lune); text-decoration: none; height: 100%; transition: all 0.2s; }
.menagerie a:hover { border-color: var(--or-sombre); transform: translateY(-3px); background: #141A2E; }
.menagerie-figure { height: 72px; display: grid; place-items: end center; }
.menagerie strong { font-size: 15px; line-height: 1.2; }
.menagerie span { font-size: 12.5px; line-height: 1.3; color: var(--brume); }
.menagerie em { font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--lanterne-2); }
.pouvoirs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pouvoirs > li { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; padding: 20px; border-radius: 12px; border: 1px solid #1C2036; background: linear-gradient(160deg, #141A2E, #0B1020); }
.pouvoir-icone { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 12px; background: radial-gradient(circle, rgba(245, 179, 66, 0.25), rgba(4, 6, 13, 0.6) 70%); border: 1px solid var(--or-sombre); }
.pouvoir-icone img { width: 64px; height: 64px; }
.pouvoirs h3 { font: 400 28px/1 var(--f-display); margin-bottom: 8px; }
.pouvoirs p { color: var(--lune-2); font-size: 15.5px; }
.pouvoir-variantes { display: grid; gap: 4px; margin-top: 10px; }
.pouvoir-variantes li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--brume); }
.pouvoir-variantes img { width: 22px; height: 22px; }
.ars-fin, .bestiaire-fin { text-align: center; margin-top: 34px; }
.ars-fin .btn svg, .bestiaire-fin .btn svg { width: 14px; height: 14px; }

/* ---------- Le bestiaire : une parade, etage par etage ---------- */
.parade { display: grid; gap: 12px; }
.parade-rang { display: grid; grid-template-columns: minmax(0, 170px) minmax(0, 1fr); gap: 18px; align-items: center; padding: 16px 18px; border-radius: 12px; border: 1px solid #1C2036; background: linear-gradient(90deg, var(--rf, #0F1322), #0B1020 80%); }
.parade-val { --rf: #0E1A1C; --ra: #9AD17A; }
.parade-bas { --rf: #1E0D0A; --ra: #FF7A3C; }
.parade-haut { --rf: #0D1622; --ra: #7FB8D8; }
.parade-seuil { --rf: #1A1430; --ra: #B77CFF; }
.parade-cieux { --rf: #272233; --ra: #F5D27A; }
.parade-nom { font: 400 26px/1 var(--f-display); color: var(--ra); }
.parade-betes { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: flex-end; }
.parade-betes a { position: relative; display: grid; place-items: end center; min-width: 44px; min-height: 56px; padding: 2px; border-radius: 6px; transition: transform 0.18s, background-color 0.18s; }
.parade-betes a:hover { transform: translateY(-5px) scale(1.06); background: rgba(255, 255, 255, 0.05); }
.parade-betes img { filter: drop-shadow(0 3px 2px rgba(0, 0, 0, 0.5)); }
.parade-betes .parade-boss img { filter: drop-shadow(0 3px 2px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 10px color-mix(in srgb, var(--ra) 60%, transparent)); }

/* ---------- Après la campagne : six cartes ---------- */
.apres-cartes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.apres-carte { position: relative; display: grid; gap: 10px; align-content: start; padding: 24px 22px 22px; border-radius: 12px; border: 1px solid #1C2036; background: linear-gradient(170deg, #141A2E 0%, #0C1122 100%); overflow: hidden; transition: border-color 0.2s, transform 0.2s; }
.apres-carte::after { content: ''; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, rgba(245, 179, 66, 0.14), transparent 70%); pointer-events: none; }
.apres-carte:hover { border-color: var(--or-sombre); transform: translateY(-3px); }
.apres-icone { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 10px; background: rgba(4, 6, 13, 0.55); border: 1px solid #2B3150; color: var(--lanterne); }
.apres-icone img, .apres-icone svg { width: 40px; height: 40px; }
.apres-carte h3 { font: 400 28px/1.02 var(--f-display); color: var(--lune); }
.apres-carte p { color: var(--lune-2); font-size: 15.5px; }

/* ---------- La bande originale ---------- */
.disque { position: relative; padding: 30px; border-radius: 16px; border: 1px solid #1C2036; background:
  radial-gradient(ellipse 50% 70% at 100% 0%, rgba(183, 124, 255, 0.08), transparent 70%),
  radial-gradient(ellipse 50% 70% at 0% 100%, rgba(245, 179, 66, 0.08), transparent 70%), #0C1122; }
.pistes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 34px; }
.pistes-etage-nom { font: 400 24px/1 var(--f-display); color: var(--or-2); margin-bottom: 8px; }
.pistes-livre > ol { display: grid; gap: 4px; }
.piste { position: relative; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; grid-template-rows: auto 3px; column-gap: 12px; align-items: center; padding: 8px 10px 6px 6px; border-radius: 8px; transition: background-color 0.2s; }
.piste:hover { background: rgba(255, 255, 255, 0.03); }
.piste.joue { background: linear-gradient(90deg, rgba(201, 164, 90, 0.14), rgba(255, 255, 255, 0.02)); }
.piste-lire { grid-row: 1 / span 2; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--or-sombre); background: radial-gradient(circle at 35% 30%, #2A2F48, #141A2E); color: var(--lanterne-2); display: grid; place-items: center; cursor: pointer; transition: all 0.2s; }
.piste-lire svg { width: 16px; height: 16px; margin-left: 2px; }
.piste-lire:hover { box-shadow: 0 0 14px rgba(245, 179, 66, 0.4); border-color: var(--or-2); }
.piste.joue .piste-lire { background: radial-gradient(circle at 35% 30%, #FFE7A8, var(--lanterne) 50%, #C27A1E); color: #1A1308; }
.piste.joue .piste-lire svg { margin-left: 0; }
.piste-titre { display: grid; line-height: 1.2; min-width: 0; }
.piste-titre strong { font-weight: 700; color: var(--lune); }
.piste-titre small { color: var(--brume); font-size: 13px; }
.piste-temps { font: 600 13px/1 var(--f-body); color: var(--brume); font-variant-numeric: tabular-nums; }
.piste-barre { grid-column: 2 / span 2; height: 3px; border-radius: 2px; background: #1C2036; overflow: hidden; }
.piste-barre span { display: block; height: 100%; width: var(--avance, 0%); background: linear-gradient(90deg, var(--or-3), var(--lanterne)); }
.disque-credit { margin-top: 22px; font-size: 13.5px; color: var(--brume); text-align: center; }

/* ---------- Où jouer ---------- */
.plates { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.plate { display: grid; gap: 10px; align-content: start; justify-items: start; padding: 24px 20px; border-radius: 12px; border: 1px solid #1C2036; background: #0F1322; }
.plate-web { border-color: var(--or-sombre); background: linear-gradient(170deg, rgba(201, 164, 90, 0.16), #0F1322 55%); box-shadow: 0 0 40px rgba(201, 164, 90, 0.08); }
.plate-icone { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 10px; background: rgba(4, 6, 13, 0.55); border: 1px solid #2B3150; color: var(--lanterne-2); }
.plate-icone svg { width: 24px; height: 24px; }
.plate h3 { font: 400 30px/1 var(--f-display); }
.plate p { color: var(--lune-2); font-size: 15px; flex: 1; }
.plate .btn { margin-top: auto; }
.atouts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.atouts li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 10px; background: rgba(15, 19, 34, 0.6); color: var(--lune-2); font-size: 15px; line-height: 1.35; }
.atouts svg { width: 22px; height: 22px; flex: none; color: var(--lanterne); }

/* ---------- Les questions ---------- */
.faq-liste { max-width: 860px; margin: 0 auto; display: grid; gap: 10px; }
.faq-q { border: 1px solid #1C2036; border-radius: 10px; background: #0F1322; transition: border-color 0.2s; }
.faq-q[open] { border-color: #2B3150; background: #121729; }
.faq-q summary { list-style: none; cursor: pointer; padding: 18px 54px 18px 20px; font-weight: 700; font-size: 17.5px; position: relative; color: var(--lune); }
.faq-q summary::-webkit-details-marker { display: none; }
.faq-q summary::after { content: ''; position: absolute; right: 20px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background: linear-gradient(var(--lanterne), var(--lanterne)) center / 14px 2px no-repeat, linear-gradient(var(--lanterne), var(--lanterne)) center / 2px 14px no-repeat; transition: transform 0.25s; }
.faq-q[open] summary::after { transform: rotate(45deg); }
.faq-q p { padding: 0 20px 20px; color: var(--lune-2); }

/* ---------- Le pied ---------- */
.pied { margin-top: 90px; }
.pied-appel { position: relative; padding: 90px var(--gouttiere); text-align: center; overflow: hidden; border-top: 1px solid #1C2036;
  background: radial-gradient(ellipse 50% 80% at 50% 100%, rgba(245, 150, 50, 0.22), transparent 70%), linear-gradient(180deg, var(--nuit), #0E0B10); }
.pied-appel-in { width: min(760px, 100%); margin: 0 auto; display: grid; justify-items: center; gap: 16px; }
.pied-appel-titre { font: 400 clamp(40px, 6vw, 72px)/0.95 var(--f-display); color: var(--lune); text-shadow: 0 0 30px rgba(245, 179, 66, 0.25), 0 3px 0 var(--puits); }
.pied-appel-texte { color: var(--lune-2); font-size: 18px; }
.pied-in { width: min(var(--large), 100%); margin: 0 auto; padding: 50px var(--gouttiere) 40px; display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 1fr)) minmax(0, 1.3fr); gap: 28px; border-top: 1px solid #1C2036; color: var(--brume); font-size: 14.5px; }
.pied-marque { display: grid; gap: 10px; align-content: start; }
.pied-titre { font: 700 12px/1.2 var(--f-body); letter-spacing: 0.18em; text-transform: uppercase; color: var(--or-texte); margin-bottom: 12px; }
.pied-col ul { display: grid; gap: 7px; }
.pied-col a { color: var(--lune-2); text-decoration: none; }
.pied-col a:hover { color: var(--lanterne-2); text-decoration: underline; }
.pied-langues-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pied-langues-liste a[aria-current] { color: var(--lanterne-2); font-weight: 700; }

/* ---------- La page de presse ---------- */
.page { min-height: 60vh; }
.page-presse .bloc { padding-top: 60px; }
.presse-grille { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; }
.presse-col { display: grid; gap: 18px; align-content: start; }
.carton { position: relative; padding: 22px; border-radius: 12px; border: 1px solid #1C2036; background: #0F1322; display: grid; gap: 12px; align-content: start; }
.carton h3 { font: 700 13px/1.2 var(--f-body); letter-spacing: 0.18em; text-transform: uppercase; color: var(--or-texte); }
.carton-tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.texte-presse p { color: var(--lune-2); font-size: 16px; }
.texte-presse p + p { margin-top: 10px; }
.logos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.logo-presse { display: grid; justify-items: center; gap: 8px; padding: 14px 12px 10px; border-radius: 6px; border: 1px solid #1C2036; text-decoration: none; font-size: 13px; }
.logo-presse img { width: 100%; max-width: 240px; height: auto; }
.logo-presse.sombre { background: var(--puits); color: var(--brume); }
.logo-presse.clair { background: #EFE9DA; color: #5A4C30; }
.fichiers a { font-weight: 700; }
.fiche { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 18px; margin: 0; }
.fiche dt { color: var(--brume); }
.fiche dd { margin: 0; color: var(--lune-2); overflow-wrap: anywhere; }
.presse-sous { font: 400 34px/1 var(--f-display); margin: 44px 0 16px; }
.presse-captures, .presse-films { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.presse-captures a, .presse-films a { display: grid; gap: 6px; text-decoration: none; color: var(--lune-2); font-size: 14px; }
.presse-captures img, .presse-films img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; border: 1px solid #1C2036; }
.presse-retour { margin-top: 40px; text-align: center; }

/* ---------- Les apparitions au défilement (vitrine.js pose .vu) ---------- */
.avec-script .apparait { opacity: 0; transform: translateY(26px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.avec-script .apparait.vu { opacity: 1; transform: none; }

/* ---------- Les écrans moyens ---------- */
@media (max-width: 1100px) {
  .menu a { padding: 8px 8px; font-size: 14px; }
  .cinema { grid-template-columns: minmax(0, 1fr); }
  .programme { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plates, .atouts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pied-in { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pied-marque, .pied-langues { grid-column: span 3; }
}
@media (max-width: 960px) {
  .menu { display: none; }
  .burger { display: grid; }
  .burger[hidden] { display: none !important; }
  .sans-script .menu { display: flex; position: static; }
  /* menu ouvert : l'en-tête perd son flou, qui ferait de lui le cadre du panneau fixe (60 px de haut, « Films » seul,
     sur une page défilée et dans tout le codex) ; le panneau couvre alors l'écran sous l'en-tête */
  .barre.menu-ouvert, .barre.sur-film.menu-ouvert, .barre.sur-film.defile.menu-ouvert { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(8, 12, 25, 0.98); border-bottom-color: rgba(43, 49, 80, 0.7); }
  .barre.menu-ouvert .menu { display: grid; position: fixed; left: 0; right: 0; top: var(--barre); bottom: 0; align-content: start; gap: 4px; padding: 20px var(--gouttiere) 40px; background: rgba(8, 12, 25, 0.97); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); overflow-y: auto; overscroll-behavior: contain; }
  .barre.menu-ouvert .menu a { font-size: 20px; padding: 14px 8px; border-bottom: 1px solid #1C2036; border-radius: 0; }
  .barre.menu-ouvert .menu a::after { display: none; }
  .recit-in { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .etage-in, .etage:nth-child(even) .etage-in { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .etage:nth-child(even) .etage-texte { order: 0; }
  .ars-cadre { grid-template-columns: minmax(0, 1fr); }
  .ars-liste { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .ars-fiche { grid-template-columns: minmax(0, 1fr); }
  .apres-cartes, .pouvoirs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .presse-grille { grid-template-columns: minmax(0, 1fr); }
  .parade-rang { grid-template-columns: minmax(0, 1fr); gap: 8px; }
}
/* ---------- Le téléphone ---------- */
@media (max-width: 640px) {
  :root { --gouttiere: 16px; --barre: 58px; }
  body { font-size: 16px; }
  .barre-in { gap: 10px; }
  .marque { font-size: 28px; }
  .barre-in { gap: 8px; }
  .barre .jouer { padding: 6px 11px; font-size: 14px; gap: 6px; }
  .barre-fin { gap: 6px; }
  .burger { width: 40px; height: 40px; }
  .ouv-contenu .sur { font-size: 11.5px; letter-spacing: 0.14em; }
  .ouv-contenu .sur::before, .ouv-contenu .sur::after { display: none; }
  .langues summary span { display: none; }
  .ouverture { min-height: max(600px, 100svh); }
  .ouv-contenu { padding: calc(var(--barre) + 26px) var(--gouttiere) 130px; gap: 14px; }
  .logo { font-size: clamp(78px, 24vw, 120px); }
  .accroche { font-size: 16.5px; }
  .ouv-actions { display: grid; width: 100%; }
  .ouv-actions .btn { width: 100%; justify-content: flex-start; }
  .garanties li { font-size: 13px; }
  .defiler { display: none; }
  .bloc { padding: 76px var(--gouttiere) 24px; }
  .bloc-tete { margin-bottom: 30px; }
  .programme { grid-template-columns: minmax(0, 1fr); }
  .programme-film { grid-template-columns: minmax(0, 120px) minmax(0, 1fr); }
  .programme-texte strong { font-size: 20px; }
  .lecteur-grand-rond { width: 72px; height: 72px; }
  .lecteur-grand-rond svg { width: 30px; height: 30px; }
  .lb-volume, .lb-temps .lb-total, .lb-temps span[aria-hidden] { display: none; }
  .lecteur-barre { gap: 2px; padding: 20px 6px 6px; }
  .lecteur-barre button { width: 36px; height: 36px; }
  .lecteur::before, .lecteur::after { display: none; }
  .recit-trio { gap: 6px; }
  .veilleur-figure { width: 96px; height: 120px; }
  .veilleur-figure .px, .veilleur-figure img { width: 96px; height: auto; }
  .veilleur-nom { font-size: 26px; }
  .veilleur-titre { font-size: 10.5px; letter-spacing: 0.08em; }
  .veilleur-texte { display: none; }
  .etage { padding: 54px 0; }
  .etage-cieux { padding-top: 180px; }
  .etage-in { padding: 0 var(--gouttiere) 0 calc(var(--gouttiere) + 26px); }
  .etage-profondeur { left: 8px; top: -54px; bottom: -54px; }
  .etage-cieux .etage-profondeur { top: -10px; }
  .etage-boss-figure { transform: scale(0.7); transform-origin: right bottom; right: -6px; }
  .etage:nth-child(even) .etage-boss-figure { transform-origin: left bottom; left: -6px; }
  .ars-fiche { padding: 16px; }
  .ars-scene { height: 250px; position: relative; top: auto; }
  .ars-scene .px, .ars-scene img { max-height: 200px; }
  .ars-voies, .ars-competences { grid-template-columns: minmax(0, 1fr); }
  .ars-paliers .px, .ars-paliers img { height: 76px; }
  .menagerie { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .apres-cartes, .pouvoirs, .plates, .atouts, .pistes { grid-template-columns: minmax(0, 1fr); }
  .disque { padding: 18px 12px; }
  .pied-in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pied-marque, .pied-langues { grid-column: span 2; }
  .logos { grid-template-columns: minmax(0, 1fr); }
  .parade-rang { padding: 12px; }
  .parade-betes a { min-width: 38px; }
}
@media (max-width: 380px) {
  .recit-trio { grid-template-columns: minmax(0, 1fr); }
  .veilleur-ysolde .veilleur-figure, .veilleur-ysolde .veilleur-nom, .veilleur-ysolde .veilleur-titre, .veilleur-ysolde .veilleur-texte { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .avec-script .apparait { opacity: 1; transform: none; }
}

/* ---------- La langue de l'appareil, proposée (vitrine.js) : une note en bas d'écran, jamais par-dessus le film ---------- */
.bandeau-langue { position: fixed; z-index: 70; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); width: max-content; max-width: calc(100% - 2 * var(--gouttiere)); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; padding: 10px 50px 10px 18px; background: linear-gradient(180deg, #1A2037, #0E1426); border: 1px solid var(--or-sombre); border-radius: var(--r-2); box-shadow: var(--ombre); color: var(--lune); font-size: 15px; line-height: 1.3; text-align: center; animation: note-langue 0.5s 1.2s both; }
.bandeau-langue p { margin: 0; }
.bandeau-langue a { color: #1A1308; background: linear-gradient(180deg, #E4C47E, var(--or) 50%, var(--or-3)); padding: 6px 14px; border-radius: var(--r); font-weight: 700; text-decoration: none; white-space: nowrap; }
.bandeau-langue a:hover { filter: brightness(1.08); }
.bandeau-langue button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; border-radius: var(--r); background: transparent; color: var(--lune-2); font-size: 22px; line-height: 1; cursor: pointer; }
.bandeau-langue button:hover { background: rgba(255, 255, 255, 0.08); color: var(--lune); }
@keyframes note-langue { from { opacity: 0; transform: translate(-50%, 14px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (max-width: 640px) {
  .bandeau-langue { width: calc(100% - 2 * var(--gouttiere)); font-size: 14.5px; }
  /* la liste des langues : un panneau sous la barre, de bord à bord, sur deux colonnes */
  .langues-liste { position: fixed; left: var(--gouttiere); right: var(--gouttiere); top: calc(var(--barre) + 6px); min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; }
}

/* ---------- La page d'une adresse perdue (404.html) ---------- */
.page-perdue { min-height: 100svh; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 60%, #1A1A2A 0%, var(--nuit) 55%, var(--puits) 100%); }
.perdue { position: relative; display: grid; justify-items: center; gap: 14px; text-align: center; padding: 48px var(--gouttiere) 64px; max-width: 640px; }
.perdue-marque { font-size: 42px; margin-bottom: 18px; }
.perdue-lueur { position: absolute; z-index: -1; left: 50%; top: 46%; width: min(340px, 90vw); height: min(340px, 90vw); transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(245, 179, 66, 0.22), rgba(245, 179, 66, 0) 65%); pointer-events: none; }
.perdue-code { margin: 0; font: 400 clamp(84px, 22vw, 150px)/0.9 'Wickward Titres', 'Jacquard 24', 'Pirata One', Georgia, serif; color: var(--lanterne); text-shadow: 0 0 30px rgba(245, 179, 66, 0.45), 0 4px 0 var(--puits); }
.perdue-titre { font: 400 clamp(28px, 6vw, 44px)/1.1 var(--f-display); color: var(--lune); }
.perdue-texte { margin: 0; color: var(--lune-2); font-size: 18px; }
.perdue-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 14px; }
