@font-face { font-family: "Orbitron"; src: url("polices/orbitron-900.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Orbitron"; src: url("polices/orbitron-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Rajdhani"; src: url("polices/rajdhani-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Rajdhani"; src: url("polices/rajdhani-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --nuit: #05060d;
  --nuit-2: #0b0e1c;
  --texte: #e9edf8;
  --doux: #9aa3bf;
  --cyan: #3ee8ff;
  --or: #ffb92e;
  --rouge: #ff2d55;
  --verre: rgba(10, 14, 30, 0.62);
  --trait: rgba(62, 232, 255, 0.28);
  --titre: "Orbitron", "Segoe UI", system-ui, sans-serif;
  --corps: "Rajdhani", "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body {
  background: var(--nuit);
  color: var(--texte);
  font: 500 19px/1.5 var(--corps);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--cyan); }
.invisible { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

#etoiles { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.balayage {
  position: fixed; inset: 0; z-index: 50; pointer-events: none; opacity: 0.35;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
}

/* ---------------------------------------------------------------- La barre du haut */
.barre {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px clamp(16px, 4vw, 40px); transition: background 0.3s, border-color 0.3s, padding 0.3s;
  border-bottom: 1px solid transparent;
}
.barre.posee { background: rgba(5, 6, 13, 0.78); backdrop-filter: blur(12px); border-bottom-color: rgba(62, 232, 255, 0.14); padding-top: 10px; padding-bottom: 10px; }
.barre-marque { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--texte); font: 600 0.82rem/1 var(--titre); letter-spacing: 0.24em; text-transform: uppercase; }
.barre-marque b { color: var(--cyan); font-weight: 900; }
.barre-liens { display: flex; align-items: center; gap: clamp(12px, 2.6vw, 30px); }
.barre-lien { color: var(--doux); text-decoration: none; font: 600 0.7rem/1 var(--titre); letter-spacing: 0.22em; text-transform: uppercase; transition: color 0.2s; }
.barre-lien:hover, .barre-lien:focus-visible { color: var(--texte); }
.barre-appel {
  padding: 10px 16px; color: #fff; text-decoration: none; font: 900 0.68rem/1 var(--titre); letter-spacing: 0.2em; text-transform: uppercase;
  border: 1px solid var(--cyan); background: rgba(62, 232, 255, 0.1); box-shadow: 0 0 16px rgba(62, 232, 255, 0.25);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.barre-appel:hover { background: rgba(62, 232, 255, 0.22); }

/* ---------------------------------------------------------------- La scène d'ouverture */
/* As tall as the screen, but never taller than the poster at full width: the logo at its top stays whole. */
.scene {
  position: relative; z-index: 1; min-height: min(100svh, 56.3vw); display: flex; flex-direction: column; justify-content: flex-end;
  align-items: center; overflow: hidden; isolation: isolate;
}
.scene-image {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top;
  z-index: -2; transform-origin: center top; transform: scale(1.04); animation: respire 18s ease-in-out infinite alternate;
}
@keyframes respire { to { transform: scale(1.0); } }
.scene-voile {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 80% at 50% 30%, transparent 50%, rgba(5, 6, 13, 0.45) 80%, var(--nuit) 100%),
    linear-gradient(to bottom, rgba(5, 6, 13, 0) 58%, rgba(5, 6, 13, 0.78) 86%, var(--nuit) 100%);
}
.hud {
  font: 600 0.72rem/1.2 var(--titre); letter-spacing: 0.32em; text-transform: uppercase; color: var(--cyan);
  text-shadow: 0 0 12px rgba(62, 232, 255, 0.6);
}
.scene-appel .hud { margin: 0 0 18px; }
.clignote { color: var(--rouge); animation: clignote 1.2s steps(2, start) infinite; text-shadow: 0 0 10px var(--rouge); }
@keyframes clignote { to { visibility: hidden; } }

.scene-appel {
  width: min(620px, calc(100% - 32px)); text-align: center; padding: 28px 0 72px;
  background: radial-gradient(closest-side, rgba(5, 6, 13, 0.72), rgba(5, 6, 13, 0.35) 70%, transparent);
}
.sous-bouton { margin: 12px 0 0; color: var(--doux); font-size: 0.95rem; letter-spacing: 0.04em; }

.lectures { display: flex; justify-content: center; gap: 14px; margin-top: 26px; }
.lecture {
  flex: 1 1 0; max-width: 200px; padding: 12px 14px 10px; background: var(--verre); backdrop-filter: blur(8px);
  border: 1px solid var(--trait); clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.lecture b { display: block; font: 700 1.6rem/1.05 var(--corps); color: var(--texte); letter-spacing: 0.08em; font-variant-numeric: tabular-nums; }
.lecture span { display: block; margin-top: 4px; font: 600 0.62rem/1 var(--titre); letter-spacing: 0.28em; text-transform: uppercase; color: var(--doux); }

/* The poster (fallback) has its logo at the very top: it starts below the bar. */
.scene:not(.avec-titre) { margin-top: 62px; }
/* With the site's own key visual: title and call together in the sky, the lone figure free at the bottom. */
.scene.avec-titre { min-height: 100svh; justify-content: flex-start; padding-top: clamp(84px, 11vh, 130px); }
.scene.avec-titre .scene-image { object-position: center 65%; transform-origin: center; }
.scene.avec-titre .scene-appel { padding: 22px 0 0; background: none; }
.scene.avec-titre .sous-bouton { color: #c9d0e6; text-shadow: 0 0 4px #000, 0 0 10px #000, 0 1px 14px rgba(0, 0, 0, 0.9); }
.scene.avec-titre .lectures { margin-top: 18px; gap: 10px; }
.scene.avec-titre .lecture { flex: 0 0 auto; max-width: none; padding: 7px 14px; display: flex; align-items: baseline; gap: 10px; }
.scene.avec-titre .lecture b { display: inline; font-size: 1.05rem; }
.scene.avec-titre .lecture span { display: inline; margin: 0; }
.scene.avec-titre .scene-voile {
  background:
    linear-gradient(to bottom, rgba(5, 6, 13, 0.55) 0%, rgba(5, 6, 13, 0) 34%),
    radial-gradient(120% 80% at 50% 40%, transparent 55%, rgba(5, 6, 13, 0.5) 85%, var(--nuit) 100%),
    linear-gradient(to bottom, rgba(5, 6, 13, 0) 60%, rgba(5, 6, 13, 0.82) 88%, var(--nuit) 100%);
}
.scene-titre { width: min(980px, calc(100% - 32px)); text-align: center; }
.scene-titre h1 { margin: 0; }
.titre-principal {
  display: block; font: 900 clamp(2.5rem, 9vw, 7rem)/0.92 var(--titre); letter-spacing: 0.05em;
  background: linear-gradient(180deg, #ffffff 8%, #cdeeff 46%, #6b86c4 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 34px rgba(62, 232, 255, 0.4));
}
.sous-titre {
  display: block; margin-top: 14px; font: 600 clamp(0.85rem, 2.3vw, 1.5rem)/1 var(--titre); letter-spacing: 0.62em; padding-left: 0.62em;
  text-transform: uppercase; color: var(--or); text-shadow: 0 0 18px rgba(255, 185, 46, 0.55);
}
.devise { margin: 20px 0 0; font: 700 clamp(1.15rem, 2.4vw, 1.7rem)/1.3 var(--corps); letter-spacing: 0.06em; color: var(--texte); text-shadow: 0 2px 18px rgba(0, 0, 0, 0.8); }

.descendre {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); color: var(--cyan); text-decoration: none;
  font-size: 1.8rem; line-height: 1; opacity: 0.7; animation: flotte 2.2s ease-in-out infinite;
}
@keyframes flotte { 50% { transform: translate(-50%, 6px); } }

/* ---------------------------------------------------------------- Le bouton néon */
/* overflow: hidden keeps the rotating halo (::before) out of the page's scrollable area: clip-path only hides it, and
   its turning box made the scrollbar come and go every second on short pages. */
.bouton-neon {
  position: relative; display: inline-block; padding: 18px 44px; isolation: isolate; cursor: pointer; overflow: hidden;
  font: 900 1.02rem/1 var(--titre); letter-spacing: 0.22em; text-transform: uppercase; color: #fff; text-decoration: none;
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
  background: linear-gradient(135deg, rgba(62, 232, 255, 0.22), rgba(255, 45, 85, 0.22));
  text-shadow: 0 0 14px rgba(62, 232, 255, 0.9);
  transition: transform 0.18s, filter 0.18s;
}
.bouton-neon::before {
  content: ""; position: absolute; inset: -150%; z-index: -2;
  background: conic-gradient(from 0deg, var(--cyan), var(--or), var(--rouge), var(--cyan));
  animation: tourne 4s linear infinite;
}
.bouton-neon::after {
  content: ""; position: absolute; inset: 2px; z-index: -1; background: #070a16;
  clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
}
@keyframes tourne { to { transform: rotate(1turn); } }
.bouton-neon:hover { transform: translateY(-2px); filter: brightness(1.25) drop-shadow(0 0 18px rgba(62, 232, 255, 0.55)); }
.bouton-neon:focus-visible { outline: 2px solid var(--or); outline-offset: 6px; }
.bouton-eteint { cursor: default; color: var(--doux); text-shadow: none; }
.bouton-eteint::before { animation-duration: 12s; opacity: 0.45; }

/* ---------------------------------------------------------------- Les blocs */
main { position: relative; z-index: 1; }
.bloc { max-width: 1080px; margin: 0 auto; padding: 96px 16px; }
.etiquette {
  margin: 0 0 34px; font: 600 0.78rem/1 var(--titre); letter-spacing: 0.34em; text-transform: uppercase; color: var(--or);
  display: flex; align-items: center; gap: 14px;
}
.etiquette::after { content: ""; flex: 1; height: 1px; background: linear-gradient(to right, rgba(255, 185, 46, 0.6), transparent); }

.chiffres-geants { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; text-align: center; }
.chiffres-geants b {
  display: block; font: 700 clamp(5rem, 16vw, 11.5rem)/0.9 var(--corps); letter-spacing: -0.01em;
  background: linear-gradient(180deg, #ffffff 10%, #9fdcff 55%, #3a4a7a 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 22px rgba(62, 232, 255, 0.35));
}
.chiffres-geants span { display: block; margin-top: 10px; font: 600 clamp(0.7rem, 1.6vw, 0.95rem)/1.2 var(--titre); letter-spacing: 0.3em; text-transform: uppercase; color: var(--doux); }
.chapeau { margin: 0 auto 64px; max-width: 46ch; text-align: center; font-size: clamp(1.2rem, 2.3vw, 1.55rem); line-height: 1.45; color: var(--doux); }
.titre-section { margin: 0 auto 18px; max-width: 26ch; text-align: center; font: 900 clamp(1.5rem, 4vw, 2.6rem)/1.15 var(--titre); letter-spacing: 0.02em; }
.aventure .chiffres-geants { margin-bottom: 120px; }

/* ---------------------------------------------------------------- Les chapitres de l'aventure */
.chapitre { display: grid; grid-template-columns: 1.08fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; margin: 0 0 clamp(90px, 12vw, 150px); }
.chapitre:last-child { margin-bottom: 0; }
.chapitre:nth-child(even) .visuel { order: 2; }
.kicker { margin: 0 0 12px; display: flex; align-items: center; gap: 12px; font: 600 0.72rem/1 var(--titre); letter-spacing: 0.32em; text-transform: uppercase; color: var(--cyan); }
.kicker span { font: 900 1.5rem/1 var(--titre); color: transparent; -webkit-text-stroke: 1px var(--or); letter-spacing: 0.05em; }
.chapitre h2 { margin: 0 0 18px; font: 900 clamp(1.5rem, 3.4vw, 2.35rem)/1.1 var(--titre); letter-spacing: 0.02em; }
.chapitre-texte p { margin: 0 0 16px; color: var(--doux); }
.chapitre-texte .chute { margin-top: 22px; padding-left: 16px; border-left: 2px solid var(--rouge); color: var(--texte); font-weight: 700; font-size: 1.12em; }

.visuel {
  position: relative; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--nuit-2);
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 28px 100%, 0 calc(100% - 28px));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}
.visuel::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 4px),
              linear-gradient(to top, rgba(5, 6, 13, 0.55), transparent 40%);
  box-shadow: inset 0 0 0 1px rgba(62, 232, 255, 0.22);
}
.visuel img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.2s ease; }
.chapitre:hover .visuel img { transform: scale(1.07); }
.visuel-attente {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background:
    radial-gradient(60% 60% at 50% 50%, rgba(62, 232, 255, 0.12), transparent 70%),
    repeating-linear-gradient(90deg, rgba(62, 232, 255, 0.07) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(0deg, rgba(62, 232, 255, 0.07) 0 1px, transparent 1px 44px),
    linear-gradient(160deg, #0d1430, #05060d);
}
.visuel-attente::before {
  content: ""; position: absolute; left: 0; right: 0; height: 30%; top: -30%;
  background: linear-gradient(to bottom, transparent, rgba(62, 232, 255, 0.14), transparent); animation: sonde 4.5s linear infinite;
}
@keyframes sonde { to { top: 100%; } }
.visuel-code { font: 900 clamp(1.6rem, 4vw, 2.6rem)/1 var(--titre); color: transparent; -webkit-text-stroke: 1px rgba(62, 232, 255, 0.55); letter-spacing: 0.08em; }
.visuel-mire { width: 54px; height: 54px; border: 1px solid rgba(255, 185, 46, 0.6); border-radius: 50%; position: relative; }
.visuel-mire::before, .visuel-mire::after { content: ""; position: absolute; background: rgba(255, 185, 46, 0.6); }
.visuel-mire::before { left: 50%; top: -10px; bottom: -10px; width: 1px; }
.visuel-mire::after { top: 50%; left: -10px; right: -10px; height: 1px; }
.visuel-label { font: 600 0.66rem/1 var(--titre); letter-spacing: 0.34em; text-transform: uppercase; color: var(--rouge); animation: clignote 1.6s steps(2, start) infinite; }

/* ---------------------------------------------------------------- Les dix-sept */
.bande-image { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin: 0 0 56px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%); }
.dossiers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.dossier {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 14px 12px;
  background: linear-gradient(170deg, rgba(22, 30, 62, 0.9), rgba(6, 8, 18, 0.95)); border: 1px solid rgba(255, 255, 255, 0.07);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%); transition: border-color 0.25s, transform 0.25s;
}
.dossier::before {
  content: "?"; position: absolute; top: 8%; left: 0; right: 0; text-align: center; font: 900 4.6rem/1 var(--titre);
  color: transparent; -webkit-text-stroke: 1px rgba(62, 232, 255, 0.28); transition: opacity 0.25s;
}
.dossier.avec-portrait::before { content: none; }
.dossier img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(0.32) contrast(1.25); transition: filter 0.5s, transform 0.8s; }
.dossier::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(5, 6, 13, 0.92) 18%, transparent 62%); pointer-events: none; }
.dossier > span, .dossier > b { position: relative; z-index: 1; }
.dossier:hover { border-color: var(--trait); transform: translateY(-3px); }
.dossier:hover img { filter: grayscale(0.15) brightness(0.8) contrast(1.1); transform: scale(1.05); }
.dossier-num { font: 600 0.58rem/1 var(--titre); letter-spacing: 0.26em; text-transform: uppercase; color: var(--cyan); }
.dossier b { margin: 6px 0 6px; font: 900 0.92rem/1.15 var(--titre); letter-spacing: 0.05em; text-transform: uppercase; }
.dossier-statut { font: 600 0.56rem/1 var(--titre); letter-spacing: 0.24em; text-transform: uppercase; color: var(--rouge); }

.vers-guide { margin: 42px 0 0; text-align: center; }
.vers-guide a { font: 600 0.78rem/1.4 var(--titre); letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; }

/* ---------------------------------------------------------------- Le guide */
.bandeau { position: relative; z-index: 1; min-height: 46vh; display: flex; align-items: flex-end; justify-content: center; padding: 130px 16px 56px; overflow: hidden; isolation: isolate; text-align: center; }
.bandeau.avec-image { min-height: 62vh; }
.bandeau-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.bandeau-voile { position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, rgba(5, 6, 13, 0.5), rgba(5, 6, 13, 0.2) 40%, var(--nuit) 100%); }
.bandeau h1 { margin: 16px 0 18px; font: 900 clamp(2rem, 6vw, 4.2rem)/1.05 var(--titre); letter-spacing: 0.03em; }
.bandeau .chapeau { margin-bottom: 0; }
.guide { padding-top: 40px; }
.chapitres-guide { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; counter-reset: chap; }
.chapitres-guide li {
  position: relative; background: linear-gradient(160deg, rgba(20, 28, 56, 0.7), rgba(8, 10, 22, 0.8)); border: 1px solid rgba(255, 255, 255, 0.07);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%); transition: transform 0.2s, border-color 0.2s;
}
.chapitres-guide li > a, .chapitres-guide li.verrouille { display: block; padding: 24px 22px 22px; color: inherit; text-decoration: none; }
.chapitres-guide li.ouvert:hover { transform: translateY(-4px); border-color: var(--trait); }
.chapitres-guide h2 { margin: 12px 0 8px; font: 600 1rem/1.3 var(--titre); letter-spacing: 0.08em; text-transform: uppercase; }
.chapitres-guide p { margin: 0 0 18px; color: var(--doux); }
.chapitres-guide .etat { font: 600 0.62rem/1 var(--titre); letter-spacing: 0.3em; text-transform: uppercase; color: var(--cyan); }
.chapitres-guide .verrouille { opacity: 0.72; }
.chapitres-guide .verrouille .etat { color: var(--rouge); }
.chapitres-guide .verrouille .etat::before { content: "■ "; }
.chapitre-guide { max-width: 760px; padding-top: 130px; }
.chapitre-guide h1 { margin: 14px 0 12px; font: 900 clamp(1.8rem, 5vw, 3rem)/1.1 var(--titre); }
.chapitre-guide .chapeau { text-align: left; margin: 0 0 40px; }
.texte-guide h2 { margin: 42px 0 12px; font: 600 1.1rem/1.3 var(--titre); letter-spacing: 0.06em; text-transform: uppercase; color: var(--cyan); }
.texte-guide p, .texte-guide li { color: #c9d0e6; }
.suite-guide { display: flex; justify-content: space-between; gap: 16px; margin-top: 64px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.suite-guide a { font: 600 0.72rem/1.4 var(--titre); letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; }

.phrase { margin: 56px auto 0; max-width: 40ch; text-align: center; font-size: clamp(1.3rem, 2.6vw, 1.75rem); line-height: 1.35; color: var(--doux); }
.phrase strong { color: var(--texte); font-weight: 700; }

.glitch { position: relative; }
.glitch::before, .glitch::after {
  content: attr(data-texte); position: absolute; inset: 0; pointer-events: none; opacity: 0;
  -webkit-background-clip: initial; background: none; filter: none;
}
.glitch::before { color: var(--cyan); transform: translate(-3px, 0); animation: brouille 6s infinite steps(1); }
.glitch::after { color: var(--rouge); transform: translate(3px, 0); animation: brouille 6s infinite 0.09s steps(1); }
@keyframes brouille {
  0%, 91%, 100% { opacity: 0; clip-path: inset(0 0 0 0); }
  92% { opacity: 0.8; clip-path: inset(10% 0 60% 0); }
  94% { opacity: 0.8; clip-path: inset(55% 0 20% 0); }
  96% { opacity: 0.8; clip-path: inset(30% 0 40% 0); }
}

.terminal {
  max-width: 760px; margin: 0 auto; background: rgba(4, 10, 16, 0.78); border: 1px solid var(--trait);
  box-shadow: 0 0 40px rgba(62, 232, 255, 0.08), inset 0 0 60px rgba(62, 232, 255, 0.05);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
}
.terminal-tete {
  margin: 0; display: flex; justify-content: space-between; padding: 12px 18px; border-bottom: 1px solid var(--trait);
  font: 600 0.66rem/1 var(--titre); letter-spacing: 0.3em; color: var(--cyan);
}
.terminal-tete span:last-child { color: var(--rouge); animation: clignote 2.4s steps(2, start) infinite; }
.bande { padding: 18px 20px 22px; min-height: 9.5em; font: 500 1.08rem/1.6 "Consolas", "Cascadia Mono", ui-monospace, monospace; color: #b7fbff; }
.bande p { margin: 0 0 4px; }
.bande p::before { content: "> "; color: var(--or); }
.curseur { display: inline-block; width: 0.6em; height: 1.05em; vertical-align: -0.15em; background: var(--cyan); animation: clignote 1s steps(2, start) infinite; }

.cartes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.cartes li {
  position: relative; padding: 26px 22px 22px; background: linear-gradient(160deg, rgba(20, 28, 56, 0.75), rgba(8, 10, 22, 0.75));
  border: 1px solid rgba(255, 255, 255, 0.07);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
  transition: transform 0.2s, border-color 0.2s;
}
.cartes li:hover { transform: translateY(-4px); border-color: var(--trait); }
.cartes li::before { content: ""; position: absolute; left: 0; top: 0; width: 46px; height: 2px; background: var(--rouge); box-shadow: 0 0 12px var(--rouge); }
.numero { font: 900 2.2rem/1 var(--titre); color: transparent; -webkit-text-stroke: 1px rgba(62, 232, 255, 0.65); }
.cartes h2 { margin: 14px 0 8px; font: 600 1rem/1.3 var(--titre); letter-spacing: 0.08em; text-transform: uppercase; }
.cartes p { margin: 0; color: var(--doux); }

.final { text-align: center; padding-bottom: 120px; }
.final-titre {
  margin: 0 0 34px; font: 900 clamp(1.7rem, 4.6vw, 3rem)/1.15 var(--titre); text-transform: uppercase; letter-spacing: 0.04em;
  background: linear-gradient(90deg, var(--texte), var(--cyan), var(--texte)); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------------------------------------------------------------- Pages de message */
.page-message .message {
  position: relative; z-index: 1; max-width: 640px; margin: 0 auto; min-height: 82svh; padding: 18vh 16px 48px; text-align: center;
}
.message h1 { margin: 18px 0 22px; font: 900 clamp(1.7rem, 5vw, 2.6rem)/1.15 var(--titre); letter-spacing: 0.03em; }
.message p { color: var(--doux); }
.rang { margin: 0 0 22px; }
.rang b { display: block; font: 700 clamp(4.5rem, 15vw, 8rem)/1 var(--corps); color: var(--or); text-shadow: 0 0 30px rgba(255, 185, 46, 0.45); }
.rang span { font: 600 0.75rem/1 var(--titre); letter-spacing: 0.3em; text-transform: uppercase; color: var(--doux); }
.message .bouton-neon { margin-top: 18px; }
.pseudo {
  margin: 30px auto 34px; padding: 22px 20px 18px; max-width: 460px; text-align: left; background: var(--verre);
  border: 1px solid var(--trait); clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}
.pseudo label { display: block; margin-bottom: 12px; font: 600 0.72rem/1.3 var(--titre); letter-spacing: 0.22em; text-transform: uppercase; color: var(--cyan); }
.pseudo-ligne { display: flex; gap: 10px; }
.pseudo input {
  flex: 1 1 auto; min-width: 0; padding: 12px 14px; font: 700 1.1rem/1 var(--corps); letter-spacing: 0.04em; color: var(--texte);
  background: rgba(4, 8, 18, 0.85); border: 1px solid rgba(62, 232, 255, 0.35); outline: none;
}
.pseudo input:focus-visible { border-color: var(--cyan); box-shadow: 0 0 0 2px rgba(62, 232, 255, 0.25); }
.pseudo-bouton {
  flex: 0 0 auto; padding: 0 18px; cursor: pointer; font: 900 0.72rem/1 var(--titre); letter-spacing: 0.18em; text-transform: uppercase;
  color: #fff; background: rgba(62, 232, 255, 0.14); border: 1px solid var(--cyan); box-shadow: 0 0 14px rgba(62, 232, 255, 0.25);
}
.pseudo-bouton:hover { background: rgba(62, 232, 255, 0.26); }
.pseudo-bouton:focus-visible { outline: 2px solid var(--or); outline-offset: 3px; }
.pseudo p { margin: 12px 0 0; font-size: 0.92rem; }
.message .pseudo .pseudo-erreur { color: #ff8099; }
.message .pseudo .pseudo-ok { color: #8dffb0; }
.message .pseudo .pseudo-aide { color: #7c84a3; font-size: 0.84rem; }
.retour { margin-top: 36px; }
.retour a { font: 600 0.75rem/1 var(--titre); letter-spacing: 0.3em; text-transform: uppercase; text-decoration: none; }

.pied { position: relative; z-index: 1; border-top: 1px solid rgba(255, 255, 255, 0.06); padding: 26px 16px 34px; text-align: center; color: #5d6584; font-size: 0.86rem; }
.pied p { margin: 4px auto; max-width: 72ch; }

/* ---------------------------------------------------------------- Apparitions */
.revele { opacity: 0; transform: translateY(28px); transition: opacity 0.9s ease, transform 0.9s ease; }
.revele.visible { opacity: 1; transform: none; }

@media (max-width: 640px) {
  body { font-size: 17px; }
  /* On a phone the poster is shown whole, the call below it. */
  .scene { display: block; min-height: 0; }
  .scene-image { position: relative; height: auto; transform: none; animation: none; }
  .scene-voile { background: linear-gradient(to bottom, rgba(5, 6, 13, 0) 30%, var(--nuit) 56%); }
  .scene-appel { margin: -48px auto 0; padding-bottom: 64px; position: relative; }
  .descendre { display: none; }
  .scene-appel .hud { font-size: 0.6rem; letter-spacing: 0.2em; }
  .bouton-neon { display: block; padding: 18px 20px; }
  .bloc { padding: 72px 16px; }
  .chiffres-geants { gap: 6px; }
  .barre { padding: 10px 16px; }
  .barre-marque span { display: none; }
  .barre-lien.secondaire { display: none; }
  .scene:not(.avec-titre) { margin-top: 52px; }
  .scene.avec-titre { display: flex; min-height: 100svh; padding-top: 96px; }
  .scene.avec-titre .scene-image { position: absolute; height: 100%; }
  .scene.avec-titre .scene-appel { margin-top: 0; }
  .sous-titre { letter-spacing: 0.4em; padding-left: 0.4em; }
  .chapitre { grid-template-columns: 1fr; gap: 24px; }
  .chapitre:nth-child(even) .visuel { order: 0; }
  .dossiers { grid-template-columns: repeat(2, 1fr); }
  .dossier::before { font-size: 3.6rem; }
  .scene.avec-titre .scene-appel { width: calc(100% - 32px); }
  .scene.avec-titre .lectures { flex-direction: column; align-items: center; }
}
@media (min-width: 641px) and (max-width: 900px) {
  .chapitre { grid-template-columns: 1fr; }
  .chapitre:nth-child(even) .visuel { order: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .revele { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------- L'espace de l'hôte (pages de lecture) */
.hote { position: relative; z-index: 1; max-width: 980px; margin: 0 auto; padding: 110px 16px 80px; }
.hote h1 { margin: 14px 0 12px; font: 900 clamp(1.8rem, 5vw, 2.8rem)/1.1 var(--titre); }
.hote a { color: var(--cyan); }
.chapeau-hote { color: var(--doux); max-width: 70ch; margin: 0 0 30px; }
.cartes-hote { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.cartes-hote li { background: linear-gradient(160deg, rgba(20, 28, 56, 0.75), rgba(8, 10, 22, 0.8)); border: 1px solid rgba(255, 255, 255, 0.08);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%); }
.cartes-hote li > a, .cartes-hote li > span { display: block; }
.cartes-hote li > a { padding: 24px 22px; color: inherit; text-decoration: none; }
.cartes-hote li > a:hover { background: rgba(62, 232, 255, 0.05); }
.cartes-hote h2 { margin: 12px 0 8px; font: 600 1.05rem/1.3 var(--titre); letter-spacing: 0.06em; text-transform: uppercase; }
.cartes-hote p { margin: 0; color: var(--doux); }
.a-venir { color: var(--or); padding: 0 22px 22px; }
.sommaire-heros { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 40px; }
.sommaire-heros a { padding: 6px 12px; font: 600 0.72rem/1 var(--titre); letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
  border: 1px solid var(--trait); background: rgba(62, 232, 255, 0.06); }
.fiche { margin: 0 0 56px; padding: 24px 22px; background: rgba(10, 14, 30, 0.72); border: 1px solid rgba(255, 255, 255, 0.07); scroll-margin-top: 80px; }
.fiche h2 { margin: 0 0 10px; font: 900 1.6rem/1.2 var(--titre); }
.fiche h2 small { font: 500 0.8rem/1 var(--corps); color: var(--doux); letter-spacing: 0.04em; margin-left: 8px; }
.fiche h3 { margin: 22px 0 8px; font: 600 0.95rem/1.3 var(--titre); letter-spacing: 0.06em; color: var(--or); }
.fiche .resume { color: var(--texte); }
.fiche details { margin: 14px 0 0; border-top: 1px solid rgba(255, 255, 255, 0.07); padding-top: 12px; }
.fiche summary { cursor: pointer; font: 600 0.8rem/1.4 var(--titre); letter-spacing: 0.16em; text-transform: uppercase; color: var(--cyan); }
.fiche p, .fiche li, .doc-hote p, .doc-hote li { color: #c9d0e6; }
.textes-jeu { margin: 10px 0 14px; padding: 10px 14px; background: rgba(0, 0, 0, 0.45); border-left: 3px solid var(--cyan); }
.textes-jeu p { margin: 4px 0; font: 500 1rem/1.45 var(--corps); color: #f2f4fb; }
.tableau-hote { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 0.95rem; }
.tableau-hote th, .tableau-hote td, .doc-hote th, .doc-hote td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.tableau-hote th, .doc-hote th { font: 600 0.68rem/1.3 var(--titre); letter-spacing: 0.14em; text-transform: uppercase; color: var(--doux); }
.manques { margin-top: 18px; padding: 12px 16px; border: 1px solid rgba(255, 185, 46, 0.45); background: rgba(255, 185, 46, 0.07); }
.manques strong { font: 600 0.75rem/1 var(--titre); letter-spacing: 0.18em; text-transform: uppercase; color: var(--or); }
.manques li { color: #f3dfb4; }
.doc-hote section { margin: 0 0 46px; }
.doc-hote h2 { margin: 0 0 14px; font: 900 1.5rem/1.2 var(--titre); }
.doc-hote h3 { margin: 24px 0 8px; font: 600 1rem/1.3 var(--titre); letter-spacing: 0.06em; color: var(--or); }
.doc-hote blockquote { margin: 10px 0 14px; padding: 10px 14px; background: rgba(0, 0, 0, 0.45); border-left: 3px solid var(--cyan); color: #f2f4fb; }
.doc-hote table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 0.95rem; }
@media (max-width: 640px) {
  .fiche { padding: 18px 14px; }
  .tableau-hote, .doc-hote table { display: block; overflow-x: auto; }
}
.compteurs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 36px; }
.etat { display: inline-block; padding: 4px 10px; font: 600 0.62rem/1.2 var(--titre); letter-spacing: 0.14em; text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.18); color: var(--doux); white-space: nowrap; }
.etat-fait { color: #8dffb0; border-color: rgba(141, 255, 176, 0.5); background: rgba(141, 255, 176, 0.08); }
.etat-en_cours { color: var(--cyan); border-color: var(--trait); background: rgba(62, 232, 255, 0.08); }
.etat-a_decider { color: var(--or); border-color: rgba(255, 185, 46, 0.5); background: rgba(255, 185, 46, 0.08); }
.lot { margin: 0 0 40px; }
.lot h2 { margin: 0 0 8px; font: 900 1.35rem/1.2 var(--titre); }
.lot h2 small { font: 600 0.62rem/1 var(--titre); letter-spacing: 0.2em; text-transform: uppercase; color: var(--doux); margin-left: 8px; }
.lot-id { color: var(--or); margin-right: 6px; }
.lot-but { color: var(--doux); margin: 0 0 12px; }
.points { list-style: none; margin: 0; padding: 0; }
.points li { display: grid; grid-template-columns: 104px 1fr; gap: 14px; align-items: start; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.points li p { margin: 4px 0 0; color: #c9d0e6; }
@media (max-width: 640px) { .points li { grid-template-columns: 1fr; gap: 6px; } }
