/* ==========================================================================
   VYX — LES CHRONIQUES DE L'ÈRE VARNIER (6 nov.)
   Une expérience par chapitre : un carton de titre, puis des scènes plein écran.
   D.A. : le noir de VYX, le papier des archives, le rouge des tampons, le vert
   des instruments de mesure du Nen. Aplats, aucun dégradé ni halo.
   ========================================================================== */
:root {
	--noir: #070709;
	--encre: #0f0f13;
	--carte: #15151a;
	--ligne: #2a2a32;
	--texte: #ebe7de;
	--dim: #8e8c95;
	--rouge: #c62a31;
	--papier: #e8e1cf;
	--papier-2: #d9d0ba;
	--papier-encre: #1d1a14;
	--signal: #8fe3b6;
	--titre: "Shippori Mincho B1", "Times New Roman", serif;
	--corps: "IBM Plex Sans", system-ui, sans-serif;
	--mono: "IBM Plex Mono", ui-monospace, monospace;
	--gouttiere: clamp(18px, 5vw, 72px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-snap-type: y proximity; background: var(--noir); }
body {
	margin: 0; background: var(--noir); color: var(--texte); font-family: var(--corps);
	font-size: 18px; line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.verrou { overflow: hidden; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--rouge); outline-offset: 3px; }
::selection { background: var(--rouge); color: #fff; }

/* le grain du film, par-dessus tout */
.grain { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 90; pointer-events: none; opacity: .05; mix-blend-mode: screen; }

/* ------------------------------------------------------------------ cadre */
.haut {
	position: fixed; top: 0; left: 0; right: 0; z-index: 60; display: flex; align-items: center;
	justify-content: space-between; padding: 18px var(--gouttiere); pointer-events: none;
}
.haut > * { pointer-events: auto; }
.marque {
	font-family: var(--mono); font-size: 11px; letter-spacing: .28em; text-transform: uppercase;
	text-decoration: none; color: var(--dim); display: flex; gap: 12px; align-items: center;
}
.marque b { color: var(--texte); font-weight: 500; }
.marque:hover b { color: var(--rouge); }
.chap-actuel { font-family: var(--mono); font-size: 11px; letter-spacing: .24em; color: var(--dim); text-transform: uppercase; }
.progression { position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 61; background: transparent; }
.progression i { display: block; height: 100%; width: 0; background: var(--rouge); }

/* (Kai : « mets un truc pour gérer le son de 0 à 100 % ») le bouton et sa réglette de volume */
.son-ctrl { position: fixed; right: var(--gouttiere); bottom: 22px; z-index: 60; display: flex; align-items: center; gap: 12px;
	border: 1px solid var(--ligne); border-radius: 999px; padding: 4px 16px 4px 4px; background: var(--noir); }
.son-ctrl[hidden] { display: none; }
.son__vol { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11px; color: var(--dim); letter-spacing: .1em; }
.son__vol input { width: 110px; accent-color: var(--rouge); }
.son__vol output { min-width: 4ch; text-align: right; font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 520px) { .son__vol input { width: 80px; } }
.son {
	display: flex; align-items: center; gap: 10px;
	background: transparent; border: 0; border-radius: 999px; padding: 8px 10px 8px 12px;
	font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--dim);
}
.son:hover { color: var(--texte); border-color: var(--dim); }
.son .barres { display: flex; gap: 2px; align-items: flex-end; height: 12px; }
.son .barres i { width: 2px; background: currentColor; height: 4px; }
.son.joue .barres i { animation: barre 1s infinite ease-in-out; }
.son.joue .barres i:nth-child(2) { animation-delay: .2s; } .son.joue .barres i:nth-child(3) { animation-delay: .45s; } .son.joue .barres i:nth-child(4) { animation-delay: .1s; }
@keyframes barre { 0%, 100% { height: 3px; } 50% { height: 12px; } }

.points { position: fixed; right: calc(var(--gouttiere) - 4px); top: 50%; transform: translateY(-50%); z-index: 55; display: flex; flex-direction: column; gap: 10px; }
.points button { width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--dim); background: transparent; padding: 0; }
.points button.actif { background: var(--rouge); border-color: var(--rouge); }
@media (max-width: 760px) { .points { display: none; } }

/* ------------------------------------------------------------------ le carton de titre */
.carton {
	position: fixed; inset: 0; z-index: 80; background: var(--noir); display: grid; place-items: center;
	text-align: center; padding: var(--gouttiere); transition: opacity .9s ease, visibility .9s;
}
.carton.parti { opacity: 0; visibility: hidden; }
.carton__num { font-family: var(--titre); font-size: clamp(90px, 18vw, 230px); line-height: .8; color: transparent; -webkit-text-stroke: 1px var(--ligne); }
.carton__sur { font-family: var(--mono); font-size: 12px; letter-spacing: .32em; text-transform: uppercase; color: var(--rouge); margin: 26px 0 10px; }
.carton__titre { font-family: var(--titre); font-weight: 800; font-size: clamp(32px, 5.4vw, 72px); line-height: 1.05; margin: 0; text-wrap: balance; }
.carton__date { font-family: var(--mono); color: var(--dim); font-size: 13px; letter-spacing: .14em; margin-top: 16px; }
.carton__go {
	margin-top: 44px; background: var(--texte); color: var(--noir); border: 0; padding: 16px 30px; border-radius: 2px;
	font-family: var(--mono); font-size: 12px; letter-spacing: .3em; text-transform: uppercase; font-weight: 500;
}
.carton__go:hover { background: var(--rouge); color: #fff; }
.carton__note { margin-top: 16px; font-size: 13px; color: var(--dim); }

/* ------------------------------------------------------------------ les scènes */
.scene {
	min-height: 100vh; min-height: 100svh; position: relative; display: grid; place-items: center;
	padding: 110px var(--gouttiere); scroll-snap-align: start; overflow: hidden;
}
.scene--papier { background: var(--papier); color: var(--papier-encre); }
.scene--papier .dim { color: #6f685a; }
.scene--rouge { background: var(--rouge); color: #fff; }
.scene--noir { background: #000; }
.scene > .fond { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.scene > :not(.fond) { position: relative; z-index: 1; }
/* (Kai : « que ce soit pas trop à regarder de partout ») UNE seule ligne de lecture : une colonne centrée, le texte
   puis l'objet en dessous ; rien de part et d'autre de l'écran */
.colonne { width: 100%; max-width: 900px; margin: 0 auto; }
.etroit { width: 100%; max-width: 680px; }

.date {
	font-family: var(--mono); font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--rouge);
	display: inline-flex; gap: 12px; align-items: center;
}
.date::before { content: ""; width: 26px; height: 1px; background: currentColor; }
.grand { font-family: var(--titre); font-weight: 800; font-size: clamp(42px, 7.5vw, 112px); line-height: 1; letter-spacing: -.015em; margin: 18px 0 0; text-wrap: balance; }
.moyen { font-family: var(--titre); font-weight: 700; font-size: clamp(30px, 4.4vw, 58px); line-height: 1.1; margin: 0; text-wrap: balance; }
.texte p { margin: 0 0 1.15em; max-width: 62ch; }
.texte p.fort { font-family: var(--titre); font-weight: 700; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.35; }
.dim { color: var(--dim); }
.centre { text-align: center; }
.centre .texte p, .centre.texte p { margin-left: auto; margin-right: auto; }
.mono { font-family: var(--mono); }
.etiquette { font-family: var(--titre); font-size: 17px; font-style: italic; color: var(--dim); }   /* (Kai) plus de libellés « dossier classifié » en capitales */
.deux { display: flex; flex-direction: column; gap: clamp(22px, 3.5vw, 40px); align-items: stretch !important; }

/* apparitions */
[data-r] { opacity: 0; transform: translateY(16px); transition: opacity .9s ease, transform .9s ease; }
[data-r].vu { opacity: 1; transform: none; }
[data-r="flou"] { transform: none; filter: blur(8px); transition: opacity 1.2s ease, filter 1.2s ease; }
[data-r="flou"].vu { filter: none; }
@media (prefers-reduced-motion: reduce) {
	[data-r] { opacity: 1; transform: none; filter: none; transition: none; }
	html { scroll-behavior: auto; }
}

.bouton {
	display: inline-flex; align-items: center; gap: 12px; border: 1px solid currentColor; background: transparent;
	padding: 14px 22px; border-radius: 2px; font-family: var(--mono); font-size: 12px; letter-spacing: .24em;
	text-transform: uppercase; text-decoration: none;
}
.bouton:hover { background: var(--texte); color: var(--noir); border-color: var(--texte); }
.bouton--plein { background: var(--rouge); border-color: var(--rouge); color: #fff; }
.bouton--plein:hover { background: #fff; color: var(--rouge); border-color: #fff; }
.scene--papier .bouton:hover { background: var(--papier-encre); color: var(--papier); border-color: var(--papier-encre); }
.indice { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); margin-top: 18px; }
.descendre { position: absolute; left: 0; right: 0; bottom: 28px; text-align: center; z-index: 2; }

/* ------------------------------------------------------------------ objets d'archive */
.tampon {
	display: inline-block; border: 3px solid var(--rouge); color: var(--rouge); padding: 6px 14px; font-family: var(--mono);
	font-weight: 500; font-size: 14px; letter-spacing: .2em; text-transform: uppercase; transform: rotate(-6deg);
}
.tampon.frappe { animation: frappe .45s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes frappe { from { transform: rotate(-6deg) scale(2.4); opacity: 0; } to { transform: rotate(-6deg) scale(1); opacity: 1; } }

.dossier {
	background: var(--papier); color: var(--papier-encre); border-radius: 2px; padding: clamp(22px, 4vw, 44px);
	position: relative; box-shadow: 10px 10px 0 #000;
}
.dossier__tete { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--papier-encre); padding-bottom: 12px; margin-bottom: 20px; }
.dossier dl { display: grid; grid-template-columns: 104px 1fr; gap: 10px 18px; margin: 0; font-size: 16px; }
.dossier dt { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: #6f685a; padding-top: 4px; }
.dossier dd { margin: 0; }
.dossier__corps { display: grid; grid-template-columns: 110px 1fr; gap: 22px; align-items: start; }
@media (max-width: 1180px) { .dossier__corps { grid-template-columns: 1fr; } .dossier .photo { width: 110px; } }
.dossier .tampon { position: absolute; right: 22px; bottom: 22px; }
.photo { aspect-ratio: 3 / 4; background: var(--papier-encre); display: grid; place-items: center; color: #6f685a; font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; text-align: center; padding: 20px; }
.photo svg { width: 55%; height: auto; }

.noirci { background: var(--papier-encre); color: transparent; border-radius: 1px; padding: 0 .2em; cursor: help; user-select: none; transition: background .2s; }
.noirci:hover { background: var(--rouge); }


.ruban {
	position: absolute; left: -10%; width: 120%; background: var(--texte); color: var(--noir); font-family: var(--mono);
	font-size: 14px; letter-spacing: .4em; padding: 10px 0; white-space: nowrap; overflow: hidden; z-index: 2;
}
.ruban span { display: inline-block; animation: defile 28s linear infinite; }
@keyframes defile { to { transform: translateX(-50%); } }

/* les alertes (chapitre I) */
.alertes { display: grid; gap: 12px; margin-top: 30px; }
.alerte { display: block; border-left: 3px solid var(--rouge); background: var(--carte); padding: 14px 18px; font-size: 16px; }
.alerte b { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; color: var(--rouge); font-weight: 500; padding-top: 3px; }

/* les rapports d'incident */
.rapports { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 36px; }
.rapport { border: 1px solid var(--ligne); padding: 18px; background: var(--encre); }
.rapport .etiquette { color: var(--rouge); }
.rapport h4 { font-family: var(--titre); font-size: 21px; margin: 10px 0 6px; font-weight: 700; }
.rapport p { margin: 0; font-size: 14px; color: var(--dim); }

/* le registre de mobilisation */
.registre { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 14px; margin-top: 24px; }
.registre th { text-align: left; font-weight: 500; font-size: 11px; letter-spacing: .2em; color: var(--dim); padding: 10px 12px; border-bottom: 1px solid var(--ligne); }
.registre td { padding: 12px; border-bottom: 1px solid var(--ligne); }
.registre td.etat { width: 160px; text-align: right; letter-spacing: .14em; }
.registre tr.disparu td { color: var(--dim); }
.registre tr.disparu td.etat { color: var(--rouge); }
.registre tr.illustre td:first-child { color: var(--texte); }

/* la transmission */
.transmission { border: 1px solid var(--ligne); background: var(--encre); padding: 26px; }
.transmission canvas { width: 100%; height: 110px; display: block; margin: 18px 0; }
.transmission__citation { font-family: var(--titre); font-size: clamp(24px, 3vw, 38px); min-height: 2.6em; line-height: 1.25; margin: 6px 0 0; }

/* ------------------------------------------------------------------ chapitre II */
.jauges { display: grid; gap: 22px; margin-top: 30px; }
.jauge { display: grid; grid-template-columns: 220px 1fr 180px; gap: 18px; align-items: center; }
.jauge .piste { height: 10px; background: var(--ligne); }
.jauge .piste i { display: block; height: 100%; width: 100%; background: var(--texte); transition: width 3.2s cubic-bezier(.6, 0, .2, 1); }
.jauge.vu .piste i { width: var(--fin); }
.jauge .etat { font-family: var(--mono); font-size: 12px; color: var(--rouge); letter-spacing: .08em; }
@media (max-width: 760px) { .jauge { grid-template-columns: 1fr; gap: 6px; } }

.contraste { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--ligne); margin-top: 34px; }
.contraste > div { padding: 30px; transition: background .4s, color .4s; }
.contraste > div + div { border-left: 1px solid var(--ligne); }
.contraste > div:hover { background: var(--texte); color: var(--noir); }
.contraste .moyen { font-size: clamp(26px, 3vw, 40px); margin-top: 10px; }
@media (max-width: 700px) { .contraste { grid-template-columns: 1fr; } .contraste > div + div { border-left: 0; border-top: 1px solid var(--ligne); } }

.cctv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 30px; }
.cctv figure { margin: 0; position: relative; aspect-ratio: 16 / 10; background: #000; overflow: hidden; }
.cctv canvas { width: 100%; height: 100%; display: block; }
.cctv figcaption { position: absolute; left: 8px; top: 6px; background: #000; padding: 2px 6px; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--signal); }
.cctv figure::after { content: "● REC"; position: absolute; right: 8px; top: 6px; background: #000; padding: 2px 6px; font-family: var(--mono); font-size: 10px; color: var(--rouge); animation: clignote 1.2s steps(2) infinite; }
@keyframes clignote { 50% { opacity: 0; } }
@media (max-width: 700px) { .cctv { grid-template-columns: repeat(2, 1fr); } }

.archive { background: var(--papier); color: var(--papier-encre); padding: clamp(24px, 4vw, 46px); font-family: var(--mono); font-size: 15px; line-height: 2; box-shadow: 10px 10px 0 #000; }
.archive h4 { font-family: var(--mono); font-weight: 500; letter-spacing: .2em; font-size: 12px; margin: 0 0 18px; }

.frise { margin-top: 30px; }
.frise canvas { width: 100%; height: 220px; display: block; background: var(--encre); border: 1px solid var(--ligne); }
.frise__annee { font-family: var(--titre); font-size: clamp(54px, 9vw, 120px); line-height: 1; }
.frise input[type=range] { width: 100%; margin-top: 16px; accent-color: var(--rouge); }
.frise__legende { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: var(--dim); letter-spacing: .14em; }

.equipes { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 30px 0; }
.equipe { border: 1px solid var(--ligne); padding: 18px; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.equipe b { display: block; font-family: var(--titre); text-transform: none; letter-spacing: 0; font-size: 22px; }

/* ------------------------------------------------------------------ chapitre III */
.ile { display: grid; grid-template-columns: 1.15fr .85fr; gap: 26px; align-items: stretch; margin-top: 28px; }
.ile__carte { background: var(--encre); border: 1px solid var(--ligne); position: relative; }
.ile__carte svg { width: 100%; height: auto; display: block; }
.ile__point { cursor: pointer; }
.ile__point circle.anneau { fill: none; stroke: var(--rouge); stroke-width: 1.5; animation: sonde 2.4s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.ile__point.vu circle.anneau { stroke: var(--dim); animation: none; }
.ile__point.verrouille { cursor: not-allowed; opacity: .4; }
@keyframes sonde { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }
.journal { border: 1px solid var(--ligne); background: var(--encre); padding: 24px; display: flex; flex-direction: column; min-height: 360px; }
.journal__corps { flex: 1; }
.journal h4 { font-family: var(--titre); font-size: 26px; margin: 8px 0 12px; }
.journal p { font-size: 16px; margin: 0 0 .9em; }
.fiches { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 12px; }
.fiche { background: var(--papier); color: var(--papier-encre); padding: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; position: relative; }
.fiche b { display: block; font-family: var(--titre); font-size: 18px; letter-spacing: 0; margin: 4px 0; }
.fiche span.morts { color: var(--rouge); }
@media (max-width: 860px) { .ile { grid-template-columns: 1fr; } }

.questions { display: grid; gap: 18px; margin-top: 30px; }
.questions p { font-family: var(--titre); font-size: clamp(22px, 2.6vw, 34px); margin: 0; line-height: 1.25; }

.parchemin { position: relative; background: var(--papier-2); border: 1px solid #b8ad92; max-width: 860px; margin: 30px auto 0; }
.parchemin canvas { width: 100%; height: 340px; display: block; }
.parchemin__barre { position: absolute; left: 0; right: 0; height: 2px; background: var(--signal); top: 0; opacity: 0; }
.parchemin.scan .parchemin__barre { opacity: 1; animation: scanne 2.8s linear forwards; }
@keyframes scanne { to { top: 100%; } }
.parchemin__resultat { margin-top: 18px; font-family: var(--mono); font-size: 13px; letter-spacing: .1em; min-height: 3.6em; }
.parchemin__resultat .rouge { color: var(--rouge); }
.parchemin .tampon { position: absolute; right: 24px; top: 24px; background: var(--papier-2); }

.detecteur { border: 1px solid var(--ligne); background: #050806; padding: 20px; margin-top: 26px; }
.detecteur canvas { width: 100%; height: 180px; display: block; }
.detecteur__tete { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; letter-spacing: .16em; color: var(--signal); }
.detecteur__tete .rouge { color: var(--rouge); }

.avantapres { position: relative; aspect-ratio: 16 / 7; margin-top: 28px; overflow: hidden; border: 1px solid var(--ligne); user-select: none; touch-action: none; }
.avantapres canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.avantapres .apres { clip-path: inset(0 0 0 var(--cut, 50%)); }
.avantapres .poignee { position: absolute; top: 0; bottom: 0; left: var(--cut, 50%); width: 2px; background: var(--texte); cursor: ew-resize; }
.avantapres .poignee::after { content: "⇆"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: var(--texte); color: var(--noir); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 16px; }
.avantapres .lbl { position: absolute; bottom: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .2em; background: var(--noir); padding: 4px 8px; }

.plaque { border: 1px solid var(--papier-encre); padding: clamp(26px, 5vw, 56px); text-align: center; max-width: 720px; margin: 0 auto; }
.plaque .moyen { margin: 14px 0; }

/* ------------------------------------------------------------------ chapitre IV */
.horloge { font-family: var(--mono); font-size: clamp(64px, 13vw, 180px); line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.horloge small { font-size: .3em; color: var(--dim); margin-left: .2em; }
.tv { position: relative; background: #000; border: 1px solid var(--ligne); aspect-ratio: 16 / 9; overflow: hidden; max-width: 1060px; width: 100%; margin: 0 auto; }
.tv canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.tv__ecran { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 6%; }
.tv__bandeau { position: absolute; left: 0; right: 0; bottom: 0; background: var(--rouge); color: #fff; font-family: var(--mono); font-size: clamp(10px, 1.3vw, 14px); letter-spacing: .18em; padding: 10px 16px; display: flex; gap: 18px; white-space: nowrap; overflow: hidden; }
.tv__bandeau b { font-weight: 500; background: #fff; color: var(--rouge); padding: 0 8px; }
.tv__direct { position: absolute; left: 16px; top: 14px; font-family: var(--mono); font-size: 12px; letter-spacing: .2em; color: #fff; }
.tv__direct::before { content: "● "; color: var(--rouge); }
.tv__soustitre { position: absolute; left: 8%; right: 8%; bottom: 58px; font-size: clamp(13px, 1.6vw, 19px); line-height: 1.5; background: rgba(0, 0, 0, .78); padding: 10px 14px; min-height: 3.2em; }
.embleme { width: clamp(120px, 18vw, 210px); height: auto; color: var(--texte); }

.organigramme { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 30px; }
.corps { border: 1px solid var(--ligne); padding: 20px; min-height: 140px; }
.corps .etiquette { color: var(--dim); }
.corps b { display: block; font-family: var(--titre); font-size: 22px; margin-top: 10px; }
.corps.premier { border-color: var(--rouge); }
.corps.premier .etiquette { color: var(--rouge); }

.retournes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 30px; perspective: 1000px; }
.retourne { height: 190px; position: relative; transform-style: preserve-3d; transition: transform .7s; cursor: pointer; border: 0; padding: 0; background: none; text-align: left; }
.retourne.ouvert { transform: rotateY(180deg); }
.retourne > span { position: absolute; inset: 0; backface-visibility: hidden; padding: 22px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--ligne); background: var(--encre); }
.retourne > span b { font-family: var(--titre); font-size: 30px; font-weight: 700; }
.retourne > span.dos { transform: rotateY(180deg); background: var(--papier); color: var(--papier-encre); }
@media (max-width: 760px) { .retournes { grid-template-columns: 1fr; } }

.communique { max-width: 760px; margin: 0 auto; background: var(--papier); color: var(--papier-encre); padding: clamp(26px, 5vw, 60px); box-shadow: 10px 10px 0 #000; }
.communique p { margin: 0 0 1em; font-family: var(--titre); font-size: 19px; line-height: 1.65; }
.communique p.cle { font-weight: 800; font-size: 22px; }
.communique .signature { margin-top: 30px; border-top: 1px solid var(--papier-encre); padding-top: 16px; }
.communique .signature b { font-family: var(--titre); font-size: 24px; display: block; }

/* ------------------------------------------------------------------ LES DOCUMENTS À LIRE
   (Kai : « quand il y a des écriteaux à lire, un bruit de papier, et ça ouvre un parchemin ou un vieux journal »)
   Dans la page : un feuillet plié qu'on ouvre. Par-dessus la page : la feuille (parchemin ou journal). */
.feuillet {
	display: inline-flex; align-items: center; gap: 16px; margin-top: 30px; padding: 16px 22px 16px 16px; border: 0; border-radius: 2px;
	background: var(--papier); color: var(--papier-encre); font-family: var(--titre); font-size: 19px; font-weight: 700;
	box-shadow: 6px 6px 0 #000; transform: rotate(-1.2deg); transition: transform .3s;
}
.feuillet:hover { transform: rotate(0deg) translateY(-3px); }
.feuillet svg { width: 34px; height: 40px; flex: none; }

.lecture { position: fixed; inset: 0; z-index: 85; background: rgba(4, 4, 6, .9); overflow-y: auto; opacity: 0; visibility: hidden;
	transition: opacity .45s, visibility .45s; padding: clamp(50px, 8vh, 90px) var(--gouttiere); }
.lecture.ouverte { opacity: 1; visibility: visible; }
.lecture__fermer { position: fixed; top: 18px; right: var(--gouttiere); z-index: 2; background: transparent; border: 1px solid var(--dim);
	color: var(--texte); border-radius: 999px; padding: 9px 16px; font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
.lecture__fermer:hover { border-color: var(--texte); }
.lecture__feuille { max-width: 760px; margin: 0 auto; transform-origin: top center; transform: perspective(1200px) rotateX(-75deg) scaleY(.4); opacity: 0;
	transition: transform .75s cubic-bezier(.2, .9, .25, 1), opacity .4s; }
.lecture.ouverte .lecture__feuille { transform: none; opacity: 1; }

/* le parchemin : papier jauni, bords irréguliers, encre */
.lecture__feuille.parchemin { background: #e3d5b0; color: #2b2214; padding: clamp(34px, 6vw, 70px);
	clip-path: polygon(0 1.2%, 4% 0, 12% 1%, 23% .2%, 37% 1.1%, 51% .1%, 63% 1%, 77% .3%, 89% 1.2%, 100% .4%, 99.4% 14%, 100% 31%, 99.2% 52%, 100% 70%, 99.3% 88%, 100% 99%, 88% 100%, 73% 99.1%, 58% 100%, 41% 99.2%, 26% 100%, 12% 99.1%, 0 100%, .8% 84%, 0 66%, .7% 47%, 0 29%, .6% 12%); }
.parchemin .entete { font-family: var(--titre); font-size: 22px; font-weight: 700; color: #4a3d26; border-bottom: 1px solid #b9a77c; padding-bottom: 12px; margin-bottom: 26px; }
.parchemin p { font-family: var(--titre); font-size: 20px; line-height: 1.7; margin: 0 0 1em; }
.parchemin .citation { font-size: clamp(26px, 3.6vw, 40px); line-height: 1.3; text-align: center; margin: 30px 0; }
.parchemin canvas { width: 100%; height: 420px; display: block; filter: blur(.6px); }
.lecture__feuille .dossier__corps { display: grid; grid-template-columns: 120px 1fr; gap: 26px; align-items: start; }
.lecture__feuille .photo { background: #2b2214; color: #e3d5b0; }
.lecture__feuille dl { display: grid; grid-template-columns: 120px 1fr; gap: 12px 18px; margin: 0; font-family: var(--titre); font-size: 18px; }
.lecture__feuille dt { font-family: var(--titre); font-style: italic; font-size: 17px; color: #7a6a48; padding-top: 1px; }
.lecture__feuille dd { margin: 0; }
@media (max-width: 640px) { .lecture__feuille .dossier__corps, .lecture__feuille dl { grid-template-columns: 1fr; } }

/* le vieux journal : colonnes serrées, titre de une, filets */
.lecture__feuille.journal { background: #e9e3d3; color: #1b1915; padding: clamp(26px, 5vw, 54px); }
.journal .une { text-align: center; border-bottom: 3px double #1b1915; padding-bottom: 10px; margin-bottom: 8px; }
.journal .une b { display: block; font-family: var(--titre); font-weight: 800; font-size: clamp(30px, 5vw, 52px); letter-spacing: .02em; line-height: 1; }
.journal .une span { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
.journal .titre { font-family: var(--titre); font-weight: 800; font-size: clamp(24px, 3.4vw, 36px); line-height: 1.1; text-align: center; margin: 18px 0 18px; border-bottom: 1px solid #1b1915; padding-bottom: 16px; }
.journal .colonnes { columns: 2 260px; column-gap: 28px; column-rule: 1px solid #b9b1a0; }
.journal .colonnes p { font-family: var(--titre); font-size: 16.5px; line-height: 1.6; margin: 0 0 .8em; }
.journal .colonnes p.cle { font-weight: 800; }
.journal .signature { margin-top: 18px; border-top: 1px solid #1b1915; padding-top: 12px; text-align: right; font-family: var(--titre); }
.journal .signature b { font-size: 22px; display: block; }

/* ------------------------------------------------------------------ le sommaire (/lore) */
.accueil { min-height: 100vh; display: grid; place-items: center; padding: 120px var(--gouttiere) 80px; position: relative; }
.accueil__titre { font-family: var(--titre); font-weight: 800; font-size: clamp(46px, 8.5vw, 128px); line-height: .95; margin: 18px 0 0; text-wrap: balance; }
.accueil__sous { font-family: var(--mono); color: var(--dim); letter-spacing: .18em; font-size: 13px; text-transform: uppercase; margin-top: 18px; }
.chapitres { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 56px; }
.chapitre { display: flex; flex-direction: column; justify-content: space-between; min-height: 260px; padding: 22px; border: 1px solid var(--ligne); text-decoration: none; background: var(--encre); transition: background .3s, color .3s, transform .3s; }
.chapitre:hover { background: var(--texte); color: var(--noir); transform: translateY(-4px); }
.chapitre:hover .dim { color: #55525a; }
.chapitre__num { font-family: var(--titre); font-size: 64px; line-height: 1; }
.chapitre__titre { font-family: var(--titre); font-size: 22px; font-weight: 700; line-height: 1.2; margin: 10px 0 6px; }
.chapitre .etat { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; }
.chapitre.lu .etat { color: var(--rouge); }
@media (max-width: 960px) { .chapitres { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .chapitres { grid-template-columns: 1fr; } }

/* la fin d'un chapitre */
.suite { text-align: center; }
.suite .moyen { margin: 14px 0 34px; }
.suite nav { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* le silence (fin de la transmission) : tout s'éteint */
.extinction { position: fixed; inset: 0; background: #000; z-index: 70; opacity: 0; pointer-events: none; transition: opacity 1.2s; display: grid; place-items: center; }
.extinction.on { opacity: 1; pointer-events: auto; }
.extinction p { font-family: var(--titre); font-size: clamp(28px, 4vw, 52px); opacity: 0; transition: opacity 2s 1.4s; }
.extinction.on p { opacity: 1; }

.carte-odaiba { margin: 26px 0 0; box-shadow: 10px 10px 0 #000; transform: rotate(-.6deg); }
.carte-odaiba svg { width: 100%; height: auto; display: block; }
