/* ==========================================================================
   GÉOPOLIS · Accueil : narration au scroll
   Chaque scène est une piste de défilement avec un plateau épinglé. Le script
   scenes.js publie l'avancement (0 à 1) dans --p ; tout le reste est du CSS.
   Sans JavaScript ou avec « mouvement réduit », les scènes sont des sections
   ordinaires : le contenu ne dépend jamais des effets.
   ========================================================================== */

/* ---------- Mécanique commune ---------- */
.scene {
  position: relative;
  --p: 1;
  background: var(--nuit);
  color: var(--papier);
  --focus: var(--laiton-clair);
}
.scene--papier {
  background: var(--papier);
  color: var(--encre);
  --focus: var(--encre);
}
.scene--papier-2 {
  background: var(--papier-2);
  color: var(--encre);
  --focus: var(--encre);
}
.scene__scene {
  position: relative;
  padding: calc(var(--header-h) + 3.5rem) var(--gouttiere) 4.5rem;
}
.scene__calque {
  display: none;
}

.anim .scene {
  --p: 0;
  height: calc(var(--piste, 300) * 1vh);
  height: calc(var(--piste, 300) * 1svh);
}
.anim .scene__scene {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  padding: 0;
  overflow: hidden;
  overflow: clip;
}
.anim .scene__calque {
  display: block;
}

/* Apparition liée au défilement : --s début, --d durée, --e fin (sortie), --f durée de sortie */
.anim .p-in {
  --a: clamp(0, calc((var(--p) - var(--s, 0)) / var(--d, 0.12)), 1);
  --b: clamp(0, calc((var(--p) - var(--e, 2)) / var(--f, 0.06)), 1);
  opacity: calc(var(--a) * (1 - var(--b)));
  transform:
    translate3d(
      calc((1 - var(--a)) * var(--dx, 0px)),
      calc((1 - var(--a)) * var(--dy, 24px) + var(--b) * var(--dyo, -16px)),
      0
    )
    scale(calc(1 - (1 - var(--a)) * var(--ds, 0)));
}

/* Zone de texte d'une scène : les « étapes » s'y succèdent */
.scene__etapes {
  position: relative;
}
.etape + .etape {
  margin-top: 3rem;
}
.anim .scene__etapes {
  position: absolute;
  z-index: 5;
  left: var(--gouttiere);
  top: 0;
  bottom: 0;
  width: min(34rem, 44vw);
}
.anim .etape {
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  margin: 0;
  translate: 0 -50%;
}
.anim .etape.p-in {
  translate: 0 -50%;
}

.scene .surtitre {
  color: var(--laiton-clair);
}
.scene--papier .surtitre,
.scene--papier-2 .surtitre {
  color: var(--laiton-texte);
}
.scene__titre {
  font-family: var(--police-revue);
  font-size: var(--t-section);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.018em;
  text-wrap: balance;
}
.scene__titre em {
  font-style: italic;
  color: var(--laiton-clair);
}
.scene--papier .scene__titre em,
.scene--papier-2 .scene__titre em {
  color: var(--laiton-texte);
}
.scene__texte {
  max-width: 34rem;
  margin-top: 1.5rem;
  font-size: var(--t-base);
  line-height: 1.6;
  color: rgb(242 238 228 / 0.88);
}
.scene--papier .scene__texte,
.scene--papier-2 .scene__texte {
  color: rgb(18 26 43 / 0.85);
}
.scene__note {
  max-width: 34rem;
  margin-top: 1.25rem;
  font-family: var(--police-depeche);
  font-size: var(--t-micro);
  letter-spacing: 0.08em;
  line-height: 1.7;
  text-transform: uppercase;
  color: var(--ardoise-clair);
}
.scene--papier .scene__note,
.scene--papier-2 .scene__note {
  color: var(--ardoise);
}

/* Voile de lisibilité sous le texte (téléphone) */
.scene__voile {
  display: none;
}

/* ---------- Indicateur de progression (§ 03 / 08) ---------- */
.rail {
  position: fixed;
  left: var(--gouttiere);
  bottom: 1.1rem;
  z-index: 40;
  display: none;
  align-items: baseline;
  gap: 0.6rem;
  font-family: var(--police-depeche);
  font-size: var(--t-micro);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  mix-blend-mode: difference;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.anim .rail {
  display: flex;
}
.rail--visible {
  opacity: 0.85;
}
.rail--cache {
  opacity: 0;
}

/* ==========================================================================
   SCÈNE 0 · HERO
   ========================================================================== */
.scene--hero {
  --meridien: 44%;
}
.scene--hero .scene__scene {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  padding: 0;
}

.hero__fond {
  position: absolute;
  inset: 0;
  overflow: hidden;
  overflow: clip;
  pointer-events: none;
}
.hero__ciel {
  position: absolute;
  inset: 0;
  background: radial-gradient(90% 75% at 44% 42%, var(--nuit-2) 0%, var(--nuit) 72%);
}
.hero__ciel::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .7 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Un « plan » est une couche de carte : plusieurs plans se déplacent à des vitesses différentes */
.plan {
  position: absolute;
  left: var(--meridien, 50%);
  top: 50%;
  width: var(--plan-l, min(94vw, 1560px));
  aspect-ratio: 1083 / 527;
  translate: -50% -50%;
}
.anim .scene.est-active .plan {
  will-change: transform;
}
.anim .hero__fond .plan--grille {
  transform: translate3d(0, calc(var(--p) * -50px), 0) scale(calc(1 + var(--p) * 0.12));
}
.anim .hero__fond .plan--terres {
  transform: translate3d(0, calc(var(--p) * -110px), 0) scale(calc(1 + var(--p) * 0.26));
}

/* Repère de ville : Paris (la ville seulement) */
.repere {
  position: absolute;
  width: 0;
  height: 0;
}
.repere::before,
.repere::after {
  content: "";
  position: absolute;
  left: -0.4rem;
  top: -0.4rem;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
}
.repere::before {
  background: var(--papier);
}
.repere::after {
  border: 1px solid var(--papier);
  animation: onde 3s ease-out infinite;
}
.repere__nom {
  position: absolute;
  left: 1rem;
  top: -0.6rem;
  padding-left: 2.1rem;
  font-family: var(--police-depeche);
  font-size: var(--t-micro);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--papier);
  text-shadow: 0 0 0.6rem var(--nuit), 0 0 0.2rem var(--nuit);
}
.repere__nom::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1.6rem;
  height: 1px;
  background: var(--papier);
}
.hero__repere {
  left: 50.52%;
  top: 14.95%;
}
.anim .scene:not(.est-active) .repere::after {
  animation-play-state: paused;
}
@keyframes onde {
  0% { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(4.5); opacity: 0; }
}

/* Cadre du texte */
.hero__cadre {
  position: relative;
  z-index: 3;
  display: flex;
  flex: 1;
  flex-direction: column;
  width: 100%;
  max-width: var(--largeur-max);
  margin: 0 auto;
  padding: calc(var(--header-h) + 1.1rem) var(--gouttiere) 0;
}
.anim .hero__cadre {
  position: absolute;
  inset: 0;
}
.hero__cote {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 2rem;
}

/* ---------- Signature : GÉO | POLIS, coupé au méridien d'origine ---------- */
.signature {
  --t-signature: clamp(3.1rem, 14.5vw, 15rem);
  display: grid;
  grid-template-columns: var(--meridien) 1fr;
  flex: 1;
  align-content: end;
  margin: 0 calc(var(--gouttiere) * -1);
  padding-bottom: 1.25rem;
  font-family: var(--police-revue);
  font-size: var(--t-signature);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0.012em;
  text-transform: uppercase;
}
.signature__g,
.signature__d {
  display: block;
}
.signature__g {
  justify-self: end;
  padding-right: 0.04em;
  text-align: right;
}
.signature__d {
  justify-self: start;
  padding-left: 0.04em;
  translate: 0 -0.06em;
}
.anim .signature__d {
  transform: translate3d(0, calc(var(--p) * -0.14em), 0);
}
/* Lettres gravées : fines lignes de parallèles qui glissent au défilement */
.signature__lettres {
  display: block;
  padding: 0.26em 0 0.04em;
  margin-top: -0.22em;
  color: var(--papier);
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .signature__lettres {
    background-image:
      repeating-linear-gradient(to bottom, rgb(11 19 32 / 0.5) 0 0.0075em, transparent 0.0075em 0.046em),
      linear-gradient(var(--papier), var(--papier));
    background-position: 0 0, 0 0;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
  .anim .signature__lettres {
    background-position: 0 calc(var(--p) * -140px), 0 0;
  }
}
.signature__ety {
  display: block;
  margin-top: 1rem;
  font-family: var(--police-depeche);
  font-size: var(--t-micro);
  font-weight: 400;
  letter-spacing: 0.16em;
  line-height: 1.4;
  color: var(--laiton-clair);
}

.hero__devise {
  margin-top: 0.5rem;
  max-width: 40ch;
  font-size: var(--t-devise);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
.hero__devise em {
  font-style: italic;
  color: var(--laiton-clair);
}
.hero__bas {
  display: grid;
  gap: 1.75rem 4rem;
  align-items: end;
  margin-top: 1.5rem;
  padding: 1.5rem 0 1.75rem;
  border-top: 3px double rgb(201 169 107 / 0.5);
}
.hero__chapeau {
  max-width: 36ch;
  font-size: var(--t-chapeau);
  line-height: 1.42;
  text-wrap: pretty;
  color: rgb(242 238 228 / 0.92);
}
.hero__depeche {
  position: relative;
  z-index: 3;
  padding: 0 var(--gouttiere);
}
.anim .hero__depeche {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
}
.anim .hero__bas {
  margin-bottom: 3.4rem;
}

/* Indication de défilement */
.defiler {
  display: none;
}
.anim .defiler {
  position: absolute;
  z-index: 4;
  right: calc(var(--gouttiere) * 0.55);
  top: 50%;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  writing-mode: vertical-rl;
  font-family: var(--police-depeche);
  font-size: var(--t-micro);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--laiton-clair);
  translate: 0 -50%;
}
.defiler::after {
  content: "";
  width: 1px;
  height: 3.5rem;
  background: linear-gradient(var(--laiton-clair) 50%, transparent 50%) 0 0 / 1px 14px;
  animation: defile 1.6s linear infinite;
}
@keyframes defile {
  to { background-position: 0 14px; }
}

/* Sorties pendant le défilement */
.anim .hero__cote,
.anim .hero__devise,
.anim .hero__bas,
.anim .hero__depeche {
  --a: 1;
  --b: clamp(0, calc((var(--p) - 0.18) / 0.3), 1);
  opacity: calc(1 - var(--b));
  transform: translate3d(0, calc(var(--b) * -40px), 0);
}
.anim .signature {
  --b: clamp(0, calc((var(--p) - 0.4) / 0.4), 1);
  opacity: calc(1 - var(--b));
  scale: calc(1 - var(--b) * 0.12);
}

/* Entrée en scène au chargement */
.js .signature__g .signature__lettres {
  animation: devoile-g 1.5s var(--ease) 0.25s both;
}
.js .signature__d .signature__lettres {
  animation: devoile-d 1.5s var(--ease) 0.25s both;
}
.js .signature__ety {
  animation: apparition 1s ease 1.3s both;
}
.js [data-entree] {
  animation: monter 0.9s var(--ease) var(--retard, 0s) backwards;
}
.js .hero__fond .carte-grille,
.js .hero__fond .carte-axe {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: trace 2.8s ease-out 0.1s forwards;
}
.js .hero__fond .carte-terres {
  animation: apparition 1.8s ease 0.8s both;
}
.js .hero__repere {
  animation: apparition 1s ease 2s both;
}
@keyframes devoile-g {
  from { clip-path: inset(-0.2em 0 -0.2em 100%); }
  to   { clip-path: inset(-0.2em 0 -0.2em 0); }
}
@keyframes devoile-d {
  from { clip-path: inset(-0.2em 100% -0.2em 0); }
  to   { clip-path: inset(-0.2em 0 -0.2em 0); }
}
@keyframes monter {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
@keyframes trace {
  to { stroke-dashoffset: 0; }
}
@keyframes apparition {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@media (min-width: 56rem) {
  .hero__bas {
    grid-template-columns: minmax(0, 1fr) minmax(0, 30rem);
  }
}

/* Téléphone : GÉO et POLIS sur deux lignes, la faille devient un décrochage */
@media (max-width: 47.99rem) {
  .scene--hero {
    --meridien: 46%;
  }
  .signature {
    --t-signature: clamp(3.4rem, 17vw, 7rem);
    grid-template-columns: var(--meridien) 1fr;
    align-content: center;
    row-gap: 0.15em;
  }
  .signature__g {
    grid-column: 1;
    grid-row: 1;
  }
  .signature__d {
    grid-column: 2;
    grid-row: 2;
    translate: 0 0;
    justify-self: start;
  }
  .signature__ety {
    margin-top: 0.5rem;
  }
  .hero__cadre {
    padding-top: calc(var(--header-h) + 0.75rem);
  }
  .hero__cote-devise,
  .hero__cote-suite,
  .hero__repere,
  .defiler,
  .rail {
    display: none !important;
  }
  .hero__devise {
    margin-top: 0.75rem;
  }
  .anim .hero__bas {
    margin-bottom: 4.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    gap: 1rem;
  }
  .hero__chapeau {
    font-size: 1.05rem;
  }
  .anim .hero__fond .plan {
    width: 250%;
    top: 40%;
  }
}

/* ==========================================================================
   SCÈNE 1 · LE MONDE ET SES ACTEURS : la carte devient table de négociation
   ========================================================================== */
.monde__table {
  position: absolute;
  inset: 0;
  perspective: 1050px;
  perspective-origin: 50% 12%;
  background: radial-gradient(80% 70% at 56% 62%, var(--nuit-2) 0%, var(--nuit) 75%);
}
.monde__plan {
  --inc: calc(clamp(0, calc((var(--p) - 0.04) / 0.26), 1) * 60);
  position: absolute;
  left: 57%;
  top: 66%;
  width: min(104vw, 1800px);
  aspect-ratio: 1083 / 527;
  translate: -50% -50%;
  transform-style: preserve-3d;
  transform: rotateX(calc(var(--inc) * 1deg));
}
.monde__plan .plan {
  inset: 0;
  left: 0;
  top: 0;
  width: 100%;
  translate: none;
}
.monde__plan .plan--terres {
  transform: translateZ(0.01px);
}

/* Acteurs : des pins qui se dressent sur la carte */
.noeud {
  position: absolute;
  left: calc(50% + (var(--x) - 50) * 1% * var(--etale, 1));
  top: calc(var(--y) * 1%);
  width: 0;
  height: 0;
  transform-style: preserve-3d;
}
.noeud__corps {
  position: absolute;
  left: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  transform: translateX(-50%) rotateX(calc(var(--inc) * -1deg));
  transform-origin: 50% 100%;
}
.noeud__nom {
  font-family: var(--police-depeche);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--papier);
}
.noeud__tige {
  width: 1px;
  height: 1.6rem;
  background: linear-gradient(var(--laiton-clair), rgb(201 169 107 / 0));
  transform: scaleY(-1);
}
.glyphe {
  display: block;
  flex: none;
  width: 0.8rem;
  height: 0.8rem;
  background: var(--papier);
}
.glyphe--etat { border-radius: 50%; }
.glyphe--institution { background: transparent; border: 2px solid var(--papier); }
.glyphe--comite { transform: rotate(45deg) scale(0.9); }
.glyphe--faction { clip-path: polygon(50% 0, 100% 100%, 0 100%); }

.monde__liens {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.lien-carte {
  fill: none;
  stroke: var(--laiton-clair);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: calc((1 - clamp(0, calc((var(--p) - var(--s, 0.7)) / var(--d, 0.15)), 1)) * 1px);
}
.lien-carte--tension {
  stroke: var(--papier);
  stroke-opacity: 0.75;
  stroke-width: 1;
  stroke-dasharray: 0.02 0.02;
  stroke-dashoffset: 0;
  opacity: clamp(0, calc((var(--p) - var(--s, 0.8)) / var(--d, 0.1)), 1);
}

.anim .legende {
  position: absolute;
  z-index: 5;
  left: var(--gouttiere);
  bottom: 3.6rem;
}
.legende {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  font-family: var(--police-depeche);
  font-size: var(--t-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ardoise-clair);
}
.legende li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.legende .glyphe {
  width: 0.65rem;
  height: 0.65rem;
}
.scene__legende-statique {
  display: none;
}

/* ==========================================================================
   SCÈNE 2 · PAS UN DÉBAT D'OPINION (papier)
   ========================================================================== */
.diff {
  position: relative;
  z-index: 2;
  max-width: var(--largeur-max);
  margin: 0 auto;
  padding: calc(var(--header-h) + 1rem) var(--gouttiere) 0;
}
.anim .diff {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--header-h) var(--gouttiere) 0;
}
.diff__titre {
  max-width: 14ch;
  font-size: var(--t-section);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.diff__table {
  position: relative;
  margin-top: clamp(1.5rem, 4vh, 3rem);
  display: grid;
  gap: 0;
}
.diff__tete,
.diff__ligne {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 clamp(2rem, 8vw, 7rem);
}
.diff__tete {
  padding-bottom: 0.8rem;
  border-bottom: 2px solid var(--encre);
  font-family: var(--police-depeche);
  font-size: var(--t-micro);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.diff__tete span:first-child {
  color: var(--ardoise);
}
.diff__tete span:last-child {
  color: var(--laiton-texte);
}
.diff__ligne {
  padding: clamp(0.9rem, 2.4vh, 1.5rem) 0;
  border-bottom: 1px solid rgb(18 26 43 / 0.25);
}
.diff__non,
.diff__oui {
  font-size: clamp(1.1rem, 0.85rem + 1.2vw, 1.85rem);
  line-height: 1.22;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
.diff__non {
  position: relative;
  color: var(--ardoise);
  font-weight: 300;
}
.diff__non span {
  position: relative;
  display: inline;
  background: linear-gradient(var(--encre), var(--encre)) 0 54% / calc(var(--k, 1) * 100%) 1.5px no-repeat;
}
.anim .diff__non span {
  --k: clamp(0, calc((var(--p) - var(--s, 0.2) - 0.1) / 0.12), 1);
}
.diff__oui {
  font-weight: 400;
}
.diff__conclusion {
  margin-top: clamp(1.25rem, 3.5vh, 2.5rem);
  max-width: 40ch;
  font-size: var(--t-chapeau);
  font-style: italic;
  color: var(--laiton-texte);
}
/* Le méridien qui se fracture au centre : écho de l'emblème */
.diff__meridien {
  display: none;
}
.anim .diff__meridien {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 0;
  bottom: 0;
  display: block;
  width: 1px;
  pointer-events: none;
}
.diff__meridien::before,
.diff__meridien::after {
  content: "";
  position: absolute;
  left: 0;
  width: 1px;
  background: var(--laiton);
  --r: clamp(0, calc((var(--p) - 0.6) / 0.25), 1);
}
.diff__meridien::before {
  top: 0;
  height: 50%;
  transform: translateY(calc(var(--r) * -0px));
}
.diff__meridien::after {
  top: 50%;
  bottom: 0;
  transform: translateY(calc(var(--r) * -2.6rem));
}

/* ==========================================================================
   SCÈNE 3 · LE DOSSIER : une chemise s'ouvre, les pièces glissent
   ========================================================================== */
.dossier__scene {
  margin-top: 2rem;
}
.chemise,
.chemise__plat {
  display: none;
}
.feuilles {
  display: grid;
  gap: 1rem;
}
.anim .dossier__scene {
  position: absolute;
  z-index: 3;
  right: clamp(1.25rem, 8vw, 9rem);
  top: 50%;
  width: min(31rem, 86vw);
  height: min(36rem, 72vh);
  margin: 0;
  translate: 0 -48%;
  perspective: 2200px;
}
.anim .feuilles {
  display: block;
}
.chemise {
  position: absolute;
  inset: 0;
  background: var(--nuit);
  border: 1px solid var(--laiton);
  box-shadow: 0 1.2rem 2.5rem rgb(18 26 43 / 0.28);
}
.anim .chemise {
  display: block;
}
.anim .chemise__plat {
  display: flex;
}
.chemise::before {
  content: "";
  position: absolute;
  inset: 0.6rem;
  border: 1px solid rgb(201 169 107 / 0.35);
}
.chemise__plat {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  background: var(--nuit);
  border: 1px solid var(--laiton);
  color: var(--papier);
  backface-visibility: hidden;
  transform-origin: 0 50%;
  --o: clamp(0, calc((var(--p) - 0.06) / 0.2), 1);
  transform: rotateY(calc(var(--o) * -158deg));
  opacity: calc(1 - clamp(0, calc((var(--o) - 0.92) / 0.08), 1));
  box-shadow: 0 1.2rem 2.5rem rgb(18 26 43 / 0.3);
}
.chemise__plat::before {
  content: "";
  position: absolute;
  inset: 0.6rem;
  border: 1px solid rgb(201 169 107 / 0.4);
}
.chemise__plat img {
  width: 55%;
  height: auto;
}
.chemise__plat .cote {
  text-align: center;
}

.feuille {
  position: relative;
  padding: 1.1rem 1.4rem;
  background: var(--ivoire);
  color: var(--encre);
  border: 1px solid rgb(18 26 43 / 0.18);
  box-shadow: 0 0.6rem 1.6rem rgb(18 26 43 / 0.2);
}
.anim .feuille {
  position: absolute;
  left: 4%;
  right: 4%;
  top: 4%;
  height: 50%;
  z-index: calc(var(--i) + 2);
  --a: clamp(0, calc((var(--p) - var(--s)) / 0.12), 1);
  opacity: var(--a);
  transform:
    translate3d(0, calc((1 - var(--a)) * 60% + var(--i) * 4.9rem), 0)
    rotate(calc((1 - var(--a)) * var(--rot, 4deg) + var(--a) * var(--rot-f, 0deg)));
}
.feuille__onglet {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.55rem;
  margin-bottom: 0.8rem;
  border-bottom: 1px solid rgb(18 26 43 / 0.25);
  font-family: var(--police-depeche);
  font-size: var(--t-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--laiton-texte);
}
.feuille__titre {
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.2;
}
.feuille__texte {
  margin-top: 0.5rem;
  font-size: 0.98rem;
  line-height: 1.5;
  color: rgb(18 26 43 / 0.82);
}
.caviarde {
  display: inline-block;
  height: 0.95em;
  width: 7.5rem;
  margin: 0 0.25rem;
  vertical-align: -0.1em;
  background: var(--encre);
}
.feuille__legende {
  margin-top: 0.7rem;
  font-family: var(--police-depeche);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--ardoise);
}


/* ==========================================================================
   SCÈNE 4 · LA NÉGOCIATION : la table, les camps, les alliances
   ========================================================================== */
.neg__monde {
  position: absolute;
  inset: 0;
  perspective: 1600px;
  perspective-origin: 50% 20%;
  background: radial-gradient(75% 65% at 62% 58%, var(--nuit-3) 0%, var(--nuit) 78%);
}
.neg__table {
  --inc: calc(clamp(0, calc((var(--p) - 0.02) / 0.14), 1) * 62);
  position: absolute;
  left: 68%;
  top: 56%;
  width: min(62vw, 1100px);
  aspect-ratio: 10 / 6;
  translate: -50% -50%;
  transform-style: preserve-3d;
  transform: rotateX(calc(var(--inc) * 1deg));
}
.neg__table > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.neg__ellipse {
  fill: rgb(242 238 228 / 0.04);
  stroke: var(--laiton-clair);
  stroke-width: 1.2;
}
.neg__ellipse--int {
  fill: none;
  stroke-opacity: 0.4;
  stroke-width: 0.8;
}
.neg__banc {
  fill: none;
  stroke: var(--papier);
  stroke-width: 1.2;
  stroke-opacity: 0.7;
}
.neg__minuterie {
  fill: none;
  stroke: var(--papier);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: calc((1 - clamp(0, calc((var(--p) - 0.42) / 0.2), 1)) * 1px);
}
.neg__siege {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  width: 0;
  height: 0;
  transform-style: preserve-3d;
  --a: clamp(0, calc((var(--p) - var(--s)) / 0.07), 1);
  opacity: var(--a);
}
.neg__siege .noeud__corps {
  transform: translateX(-50%) rotateX(calc(var(--inc) * -1deg)) translateY(calc((1 - var(--a)) * -14px));
}
.neg__lien {
  fill: none;
  stroke: var(--papier);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: calc((1 - clamp(0, calc((var(--p) - var(--s)) / 0.12), 1)) * 1px);
}
.neg__lien--tension {
  stroke: var(--laiton-clair);
  stroke-width: 1.6;
  stroke-dasharray: 0.018 0.018;
  stroke-dashoffset: 0;
  opacity: clamp(0, calc((var(--p) - var(--s)) / 0.06), 1);
}
.neg__etiquette {
  fill: var(--laiton-clair);
  font-family: var(--police-depeche);
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ==========================================================================
   SCÈNE 5 · L'IMPRÉVU : la carte se fracture, un communiqué tombe
   ========================================================================== */
.imp__monde {
  position: absolute;
  inset: 0;
  --meridien: 44%;
  --c: clamp(0, calc((var(--p) - 0.16) / 0.07), 1);
  background: radial-gradient(85% 70% at 44% 50%, var(--nuit-2) 0%, var(--nuit) 72%);
}
.imp__moitie {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.imp__moitie--g {
  clip-path: inset(0 56% 0 0);
  transform: translate3d(0, calc(var(--c) * 12px), 0) rotate(calc(var(--c) * -0.4deg));
  transform-origin: 44% 50%;
}
.imp__moitie--d {
  clip-path: inset(0 0 0 44%);
  transform: translate3d(0, calc(var(--c) * -38px), 0) rotate(calc(var(--c) * 0.9deg));
  transform-origin: 44% 50%;
}
.imp__moitie .plan {
  width: min(105vw, 1700px);
  opacity: 0.6;
}
.imp__faille {
  position: absolute;
  left: 44%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--rouge);
  transform: scaleY(var(--c));
  transform-origin: 50% 0;
}
.imp__coupure {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background: var(--rouge);
  transform: scaleX(clamp(0, calc((var(--p) - 0.08) / 0.07), 1)) scaleY(calc(1 - var(--c)));
  transform-origin: 0 50%;
}
.imp__corps {
  position: relative;
  z-index: 4;
}
.anim .imp__corps {
  position: absolute;
  inset: 0;
}

.communique {
  --k: 1;
  position: relative;
  max-width: 36rem;
  padding: 1.5rem 1.7rem 1.4rem;
  background: var(--ivoire);
  color: var(--encre);
  --focus: var(--encre);
}
.anim .communique {
  --k: clamp(0, calc((var(--p) - 0.2) / 0.14), 1);
  --e: 2;
  position: absolute;
  left: var(--gouttiere);
  top: 46%;
  width: min(32rem, 42vw);
  translate: 0 -50%;
  clip-path: inset(calc((1 - var(--k)) * 50%) 0);
  opacity: 1;
  transform: none;
}
.communique__tete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.8rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgb(18 26 43 / 0.25);
}
.communique__titre {
  font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.9rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.communique__texte {
  margin-top: 0.8rem;
  font-size: 1rem;
  line-height: 1.55;
  color: rgb(18 26 43 / 0.86);
}
.communique__liste {
  display: grid;
  gap: 0.4rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
  line-height: 1.4;
}
.communique__liste li {
  display: grid;
  grid-template-columns: 1.1rem 1fr;
}
.communique__liste li::before {
  content: "—";
  color: var(--rouge);
}

.natures {
  display: grid;
  gap: 0;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}
.natures li {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  gap: 0 0.5rem;
  padding: 0.7rem 0;
  border-top: 1px solid rgb(242 238 228 / 0.3);
}
.natures li:last-child {
  border-bottom: 1px solid rgb(242 238 228 / 0.3);
}
.natures__num {
  font-family: var(--police-depeche);
  font-size: var(--t-micro);
  letter-spacing: 0.1em;
  color: var(--laiton-clair);
  padding-top: 0.2rem;
}
.natures__nom {
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.2;
}
.natures__ex {
  grid-column: 2;
  margin-top: 0.15rem;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--ardoise-clair);
}
.natures__ex em {
  color: var(--papier);
}
.anim .natures {
  position: absolute;
  right: var(--gouttiere);
  top: 50%;
  width: min(30rem, 36vw);
  margin: 0;
  translate: 0 -50%;
}
.imp__conclusion {
  max-width: 36rem;
  margin-top: 1.5rem;
  font-size: var(--t-chapeau);
  font-style: italic;
  line-height: 1.4;
  color: rgb(242 238 228 / 0.9);
}
.anim .imp__conclusion {
  position: absolute;
  left: var(--gouttiere);
  bottom: 3.6rem;
  width: min(32rem, 42vw);
  margin: 0;
  font-size: 1.02rem;
}

/* ==========================================================================
   SCÈNE 6 · LA DÉCISION : on écrit, on vote, le texte s'éloigne (papier)
   ========================================================================== */
.dec__scene {
  margin-top: 2rem;
  max-width: 30rem;
}
.anim .dec__scene {
  position: absolute;
  z-index: 3;
  right: clamp(1.25rem, 9vw, 10rem);
  top: 50%;
  width: min(30rem, 86vw);
  margin: 0;
  translate: 0 -50%;
  perspective: 1400px;
}
.resolution {
  position: relative;
  padding: 1.5rem 1.7rem 1.6rem;
  background: var(--ivoire);
  border: 1px solid rgb(18 26 43 / 0.2);
  box-shadow: 0 1rem 2.4rem rgb(18 26 43 / 0.22);
  color: var(--encre);
}
.anim .resolution {
  --r: clamp(0, calc((var(--p) - 0.66) / 0.3), 1);
  transform:
    translate3d(calc(var(--r) * -6vw), calc(var(--r) * -16vh), calc(var(--r) * -2400px))
    rotateZ(calc(var(--r) * 7deg));
  opacity: calc(1 - clamp(0, calc((var(--r) - 0.55) / 0.45), 1));
}
.resolution__tete {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.7rem;
  margin-bottom: 1.1rem;
  border-bottom: 1px solid rgb(18 26 43 / 0.28);
  font-family: var(--police-depeche);
  font-size: var(--t-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--laiton-texte);
}
.resolution__titre {
  font-size: 1.7rem;
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 1.2rem;
}
.champ {
  margin-bottom: 1.15rem;
}
.champ__nom {
  font-family: var(--police-depeche);
  font-size: var(--t-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ardoise);
}
.champ__lignes {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.7rem;
}
.champ__ligne {
  display: block;
  height: 2px;
  background: var(--encre);
  opacity: 0.8;
  transform-origin: 0 50%;
  width: var(--l, 100%);
}
.anim .champ__ligne {
  --w: clamp(0, calc((var(--p) - var(--s)) / 0.09), 1);
  transform: scaleX(var(--w));
}
.resolution .tampon {
  position: absolute;
  right: 1.2rem;
  bottom: 1.3rem;
  font-size: 1.5rem;
}
.anim .resolution .tampon {
  --t: clamp(0, calc((var(--p) - 0.5) / 0.05), 1);
  opacity: var(--t);
  transform: rotate(-9deg) scale(calc(2.6 - var(--t) * 1.6));
}
.dec__fin {
  margin-top: 2rem;
  font-size: var(--t-sous-titre);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.anim .dec__fin {
  position: absolute;
  z-index: 4;
  right: clamp(1.25rem, 9vw, 10rem);
  top: 50%;
  width: min(30rem, 80vw);
  margin: 0;
  translate: 0 -50%;
}

/* ==========================================================================
   SCÈNE 7 · LE TEMPS : T+6 mois, T+2 ans, T+10 ans
   ========================================================================== */
.temps__monde {
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 70% at 62% 46%, var(--nuit-2) 0%, var(--nuit) 75%);
}
.temps__plan {
  position: absolute;
  left: 62%;
  top: 46%;
  width: min(92vw, 1500px);
  aspect-ratio: 1083 / 527;
  translate: -50% -50%;
}
.temps__plan .plan {
  inset: 0;
  left: 0;
  top: 0;
  width: 100%;
  translate: none;
}
.temps__ondes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.onde-temps {
  fill: none;
  stroke: var(--laiton-clair);
  stroke-width: 1.4;
  stroke-dasharray: 1;
  stroke-dashoffset: calc((1 - clamp(0, calc((var(--p) - var(--s)) / var(--d, 0.2)), 1)) * 1px);
}
.onde-temps--finale {
  stroke: var(--papier);
  stroke-opacity: 0.6;
  stroke-width: 1.1;
}
.temps__point {
  fill: var(--rouge);
}
.temps__eti {
  fill: var(--papier);
  font-family: var(--police-depeche);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: clamp(0, calc((var(--p) - var(--s)) / 0.05), 1);
}
.regle {
  position: absolute;
  z-index: 6;
  left: var(--gouttiere);
  right: var(--gouttiere);
  bottom: 3.6rem;
  height: 3rem;
}
.regle__trait {
  position: absolute;
  left: 0;
  right: 0;
  top: 1.2rem;
  height: 1px;
  background: rgb(201 169 107 / 0.5);
}
.regle__graduation {
  position: absolute;
  top: 0.9rem;
  left: var(--x);
  width: 1px;
  height: 0.7rem;
  background: var(--laiton-clair);
}
.regle__graduation span {
  position: absolute;
  top: 1.1rem;
  left: 0;
  transform: translateX(-50%);
  font-family: var(--police-depeche);
  font-size: var(--t-micro);
  letter-spacing: 0.12em;
  white-space: nowrap;
  text-transform: uppercase;
  color: var(--laiton-clair);
}
.regle__curseur {
  position: absolute;
  top: 0.55rem;
  left: calc(10% + clamp(0, calc((var(--p) - 0.1) / 0.8), 1) * 80%);
  width: 0.7rem;
  height: 1.4rem;
  margin-left: -0.35rem;
  background: var(--rouge);
}
.horizon__duree {
  margin-bottom: 0.9rem;
  font-family: var(--police-depeche);
  font-size: var(--t-micro);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--laiton-clair);
}
.horizon__titre {
  font-size: var(--t-sous-titre);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.015em;
}
.bulletin {
  display: grid;
  gap: 0;
  margin: 1.5rem 0 0;
  padding: 0 0.75rem 0 0;
  list-style: none;
  counter-reset: q;
  background: rgb(11 19 32 / 0.9);
}
.bulletin li {
  counter-increment: q;
  display: grid;
  grid-template-columns: 2rem 1fr;
  padding: 0.75rem 0;
  border-top: 1px solid rgb(242 238 228 / 0.3);
  font-size: 1.05rem;
  line-height: 1.35;
}
.bulletin li:last-child {
  border-bottom: 1px solid rgb(242 238 228 / 0.3);
}
.bulletin li::before {
  content: counter(q);
  font-family: var(--police-depeche);
  font-size: var(--t-micro);
  color: var(--laiton-clair);
  padding-top: 0.25rem;
}
.regle-statique {
  display: none;
}

/* ==========================================================================
   SCÈNE 8 · GÉOPOLIS : l'invitation
   ========================================================================== */
.fin {
  position: relative;
  overflow: hidden;
  overflow: clip;
  background: var(--nuit);
  color: var(--papier);
  --focus: var(--laiton-clair);
}
.fin__fond {
  position: absolute;
  left: 44%;
  top: 50%;
  width: min(120vw, 1900px);
  aspect-ratio: 1083 / 527;
  translate: -50% -50%;
  opacity: 0.7;
  pointer-events: none;
}
.fin__cadre {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 3rem 5rem;
  max-width: var(--largeur-max);
  min-height: 100svh;
  margin: 0 auto;
  padding: calc(var(--header-h) + 4rem) var(--gouttiere) 5rem;
  align-content: center;
}
.fin__titre {
  font-size: clamp(2.8rem, 1.2rem + 7vw, 8rem);
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.fin__titre em {
  font-style: italic;
  color: var(--laiton-clair);
}
.fin__texte {
  max-width: 36rem;
  font-size: var(--t-chapeau);
  line-height: 1.5;
  color: rgb(242 238 228 / 0.9);
}
.fin__contact {
  display: grid;
  gap: 0.35rem;
  margin-top: 2rem;
  font-family: var(--police-depeche);
  font-size: var(--t-petit);
  letter-spacing: 0.06em;
}
.fin__contact a {
  width: fit-content;
}
@media (min-width: 56rem) {
  .fin__cadre {
    grid-template-columns: 1.3fr 1fr;
    align-items: end;
  }
}

/* Révélation douce des blocs ordinaires */
.anim .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--retard, 0s);
}
.anim .reveal.est-visible {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   TÉLÉPHONE ET TABLETTE EN PORTRAIT : les textes passent en bas de l'écran
   ========================================================================== */
@media (max-width: 63.99rem) {
  .anim .scene__voile {
    position: absolute;
    z-index: 4;
    inset: auto 0 0 0;
    display: block;
    height: 58%;
    background: linear-gradient(to top, var(--nuit) 42%, rgb(11 19 32 / 0));
    pointer-events: none;
  }
  .anim .scene--papier .scene__voile,
  .anim .scene--papier-2 .scene__voile {
    background: linear-gradient(to top, var(--papier-2) 42%, rgb(231 225 210 / 0));
  }
  .anim .scene__etapes {
    left: var(--gouttiere);
    right: var(--gouttiere);
    top: auto;
    bottom: 0;
    width: auto;
    height: 0;
  }
  .anim .etape {
    top: auto;
    bottom: 3rem;
    translate: none;
  }
  .anim .etape.p-in {
    translate: none;
  }
  .rail {
    display: none !important;
  }
  .scene__titre {
    font-size: clamp(2.1rem, 9.5vw, 3.2rem);
  }
  .scene__texte {
    margin-top: 0.9rem;
    font-size: 1rem;
    line-height: 1.5;
  }

  /* Monde */
  .monde__plan {
    --etale: 0.55;
    width: 190vw;
    top: 36%;
  }
  .legende {
    display: none;
  }

  /* Différence */
  .diff__tete,
  .diff__ligne {
    gap: 0 1rem;
  }
  .diff__non,
  .diff__oui {
    font-size: 1rem;
  }
  .diff__titre {
    font-size: clamp(2.2rem, 10vw, 3.2rem);
  }

  /* Dossier */
  .anim .dossier__scene {
    right: 50%;
    top: 31%;
    width: min(20rem, 76vw);
    height: 22.5rem;
    translate: 50% -50%;
  }
  .anim .scene--papier-2 .scene__voile {
    height: 46%;
  }
  .anim .feuille {
    height: 52%;
    padding: 0.85rem 1rem;
    transform:
      translate3d(0, calc((1 - var(--a)) * 60% + var(--i) * 2.7rem), 0)
      rotate(calc((1 - var(--a)) * var(--rot, 4deg) + var(--a) * var(--rot-f, 0deg)));
  }
  .anim .feuille {
    transform:
      translate3d(0, calc((1 - var(--a)) * 60% + var(--i) * 3.7rem), 0)
      rotate(calc((1 - var(--a)) * var(--rot, 4deg) + var(--a) * var(--rot-f, 0deg)));
  }
  .feuille__titre { font-size: 1.12rem; }
  .feuille__texte { font-size: 0.86rem; margin-top: 0.3rem; }
  .caviarde { width: 4.5rem; }

  /* Négociation */
  .neg__table {
    left: 50%;
    top: 32%;
    width: 122vw;
  }

  /* Imprévu */
  .imp__moitie .plan {
    width: 250vw;
    top: 34%;
  }
  .anim .communique {
    --e: 0.52;
    --b: clamp(0, calc((var(--p) - var(--e)) / 0.06), 1);
    left: var(--gouttiere);
    right: var(--gouttiere);
    top: auto;
    bottom: 1.4rem;
    width: auto;
    translate: none;
    opacity: calc(1 - var(--b));
    padding: 1rem 1.1rem;
  }
  .communique__texte { font-size: 0.92rem; margin-top: 0.5rem; }
  .communique__liste { font-size: 0.86rem; margin-top: 0.6rem; gap: 0.25rem; }
  .anim .natures {
    left: var(--gouttiere);
    right: var(--gouttiere);
    top: auto;
    bottom: 1.4rem;
    width: auto;
    translate: none;
  }
  .natures__ex { display: none; }
  .natures li { padding: 0.5rem 0; }
  .natures__nom { font-size: 1.02rem; }
  .anim .imp__conclusion {
    left: var(--gouttiere);
    right: var(--gouttiere);
    bottom: auto;
    top: calc(var(--header-h) + 1rem);
    width: auto;
    font-size: 0.95rem;
  }

  /* Décision */
  .anim .dec__scene {
    right: 50%;
    top: 36%;
    width: min(21rem, 80vw);
    translate: 50% -50%;
  }
  .resolution { padding: 1rem 1.1rem 1.2rem; }
  .resolution__titre { font-size: 1.35rem; margin-bottom: 0.8rem; }
  .champ { margin-bottom: 0.75rem; }
  .anim .dec__fin {
    right: auto;
    left: var(--gouttiere);
    top: auto;
    bottom: 1.6rem;
    width: calc(100% - 2 * var(--gouttiere));
    translate: none;
  }

  /* Temps */
  .temps__plan {
    left: 50%;
    top: 30%;
    width: 220vw;
  }
  .regle {
    bottom: 1.2rem;
  }
  .anim .scene--temps .scene__etapes {
    bottom: 5rem;
  }
}
