/*
 * Eterna, pitch de finale.
 * Big Shoulders Display : la voix (affiche de cinéma). Permanent Marker : le feutre sur
 * l'étiquette d'une bobine. Archivo et Newsreader : les polices du site Eterna.
 * IBM Plex Mono : seulement les timecodes. Le jaune #F5D547 est celui des sous-titres d'Eterna.
 */
:root {
  --nuit: #070505;
  --encre: #1f1415;
  --creme: #f3ead8;
  --sepia: #c99a5b;
  --rec: #d0382b;
  --bordeaux: #7d0c14;
  --st: #f5d547;
  --ruban: #ecdfb5;
  --gris: #9a8f86;
  --voix: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --main: "Permanent Marker", cursive;
  --texte: "Archivo", system-ui, sans-serif;
  --parole: "Newsreader", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; height: 100dvh; overflow: hidden; overscroll-behavior: none; }
body { touch-action: none; }
body {
  background: var(--nuit);
  color: var(--creme);
  font: 500 34px/1.25 var(--texte);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
body.repos { cursor: none; }
ul, ol { list-style: none; }
img, video, svg { display: block; }

h1, h2 { font-family: var(--voix); font-weight: 900; line-height: .9; letter-spacing: -.5px; }
h2 { position: absolute; left: 120px; top: 70px; font-size: 130px; }

/* ---------- Décors ---------- */
#decors, #grain { position: fixed; inset: 0; }
#decors i { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
#decors i.on { opacity: 1; }
#decors [data-scene="noir"] { background: radial-gradient(ellipse at 50% 40%, #16100e 0, #070505 70%); }
#decors [data-scene="salle"] { background: radial-gradient(ellipse at 30% 30%, #4a3220 0, #241710 45%, #0d0806 100%); }
#decors [data-scene="ecran"] { background: radial-gradient(ellipse at 70% 30%, #1b2230 0, #0c0f15 55%, #050608 100%); }
#decors [data-scene="papier"] { background: radial-gradient(ellipse at 40% 30%, #fbf5e8 0, #efe4cd 60%, #e0d0b0 100%); }
#decors [data-scene="bordeaux"] { background: radial-gradient(ellipse at 50% 50%, #5a0f14 0, #2a070a 55%, #0d0304 100%); }
#decors [data-scene="amorce"] { background: radial-gradient(circle at 50% 50%, #b9b4ac 0, #8d8880 60%, #4a4642 100%); }

/* Grain de pellicule, plus fort dans le noir. */
#grain {
  inset: -60px;
  pointer-events: none;
  z-index: 3;
  opacity: .14;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23g)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  animation: grain .6s steps(6) infinite;
}
body[data-scene="papier"] #grain { opacity: .3; mix-blend-mode: multiply; }
body[data-scene="amorce"] #grain { opacity: .35; }
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-18px, 12px); } 40% { transform: translate(14px, -20px); }
  60% { transform: translate(-10px, -8px); } 80% { transform: translate(20px, 16px); } 100% { transform: translate(0, 0); }
}

/* ---------- Scène ---------- */
#stage {
  position: absolute;
  left: 50%; top: 50%;
  width: 1920px; height: 1080px;
  transform: translate(-50%, -50%) scale(var(--scale, 1));
}
.slide { position: absolute; inset: 0; z-index: 2; opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility 0s linear .25s; }
.slide.active { opacity: 1; visibility: visible; transition: opacity .55s ease .3s, visibility 0s; }
.slide [data-in], .slide [data-only] { opacity: 0; visibility: hidden; transform: translateY(18px); transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s; }
.slide.active [data-in].on, .slide.active [data-only].on { opacity: 1; visibility: visible; transform: none; transition: opacity .5s ease .15s, transform .6s cubic-bezier(.2, .8, .2, 1) .15s, visibility 0s; }

/* ---------- Éléments communs ---------- */
.main { font: 400 62px/1 var(--main); color: var(--st); }
.ruban {
  position: absolute;
  padding: 18px 40px 14px;
  background: var(--ruban);
  color: var(--encre);
  font: 400 44px/1.05 var(--main);
  clip-path: polygon(1% 6%, 9% 0, 22% 5%, 37% 1%, 52% 6%, 68% 0, 83% 5%, 99% 2%, 98% 40%, 100% 72%, 98% 97%, 84% 93%, 67% 100%, 51% 94%, 34% 99%, 18% 94%, 2% 99%, 0 60%);
  box-shadow: 0 6px 0 #0003;
  white-space: nowrap;
}
.slide [data-in].ruban.on, .slide [data-only].ruban.on { transform: rotate(var(--r, -2deg)); }
.ruban { transform: rotate(var(--r, -2deg)); }

/* Une parole s'affiche comme un sous-titre d'Eterna : jaune, contour noir, centré en bas. */
.st {
  position: absolute; left: 160px; right: 160px; top: 470px;
  color: var(--st);
  font: 700 60px/1.22 var(--texte);
  text-align: center;
  text-shadow: 0 0 3px #000, 0 0 3px #000, 0 3px 6px #000, 3px 0 3px #000, -3px 0 3px #000;
}
.st-bas { top: auto; bottom: 120px; }

/* ---------- Pellicule ---------- */
#bande {
  position: absolute; left: 0; top: 0; z-index: 1;
  transform-origin: 0 0;
  opacity: 0;
  transition: transform 1.5s cubic-bezier(.65, 0, .35, 1), opacity .9s ease;
  will-change: transform;
}
.rail {
  display: flex; gap: 20px;
  padding: 40px 20px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='22'%3E%3Crect x='10' y='4' width='24' height='15' rx='4' fill='%23e9e2d2'/%3E%3C/svg%3E") 0 6px / 44px 22px repeat-x,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='22'%3E%3Crect x='10' y='4' width='24' height='15' rx='4' fill='%23e9e2d2'/%3E%3C/svg%3E") 0 calc(100% - 6px) / 44px 22px repeat-x,
    #0b0908;
  width: max-content;
}
#bande.defile .rail { animation: defile 150s linear infinite; }
@keyframes defile { to { transform: translateX(-50%); } }
.cadre { position: relative; width: 360px; height: 260px; overflow: hidden; background: #000; }
.cadre img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.25) contrast(1.05); transition: filter 1.4s ease, opacity 1.2s ease, transform 1.6s ease; }
.cadre figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 10px; background: linear-gradient(#0000, #000c); font: 700 20px/1 var(--texte); letter-spacing: 2px; text-transform: uppercase; opacity: 0; transition: opacity .6s ease .6s; }
#bande.legendes figcaption { opacity: 1; }
/* Abîmée : rayures et poussière par-dessus, image fatiguée. */
.cadre::after { content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; background:
  linear-gradient(90deg, #0000 22%, #fff4 22.3%, #0000 22.6%, #0000 71%, #0006 71.4%, #0000 71.8%),
  radial-gradient(circle at 30% 40%, #fff6 0 2px, #0000 3px), radial-gradient(circle at 75% 70%, #0008 0 3px, #0000 4px),
  radial-gradient(ellipse at 50% 50%, #0000 50%, #000a 100%); }
#bande.abimee .cadre img { filter: grayscale(1) sepia(.7) contrast(1.3) brightness(.62) blur(.6px); }
#bande.abimee .cadre::after { opacity: 1; animation: scintille .18s steps(2) infinite; }
@keyframes scintille { 50% { transform: translateX(3px); } }
/* En cendre : les images partent une à une, une seule reste. */
#bande.cendre .cadre img { opacity: 0; transform: scale(1.12); filter: grayscale(1) brightness(.3) blur(14px); transition-delay: calc(var(--i) * 90ms); }
#bande.cendre .cadre.reste img { opacity: 1; transform: none; filter: grayscale(1) sepia(.5) brightness(.8); }

/* ---------- 1 · Amorce ---------- */
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.amorce { position: absolute; inset: 0; overflow: hidden; }
.balayage { position: absolute; inset: -400px; background: conic-gradient(from 0deg, #0004 var(--a), #0000 var(--a)); }
.croix-h, .croix-v { position: absolute; background: #f4f1ea; }
.croix-h { left: 0; right: 0; top: 539px; height: 3px; }
.croix-v { top: 0; bottom: 0; left: 959px; width: 3px; }
.cercle { position: absolute; left: 50%; top: 50%; border: 6px solid #111; border-radius: 50%; transform: translate(-50%, -50%); }
.c1 { width: 760px; height: 760px; }
.c2 { width: 700px; height: 700px; }
.n { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); text-align: center; font: 900 520px/1 var(--voix); color: #111; opacity: 0; }
.flash { position: absolute; inset: 0; background: #fff; opacity: 0; }
.s-amorce.joue .balayage { animation: balaie 1s linear 3; }
.s-amorce.joue .n3 { animation: chiffre 1s steps(1) 0s 1; }
.s-amorce.joue .n2 { animation: chiffre 1s steps(1) 1s 1; }
.s-amorce.joue .n1 { animation: chiffre 1s steps(1) 2s 1; }
.s-amorce.joue .flash { animation: flash .4s ease 3s 1 forwards; }
@keyframes balaie { from { --a: 0deg; } to { --a: 360deg; } }
@keyframes chiffre { 0% { opacity: 1; } 100% { opacity: 0; } }
@keyframes flash { 0% { opacity: 0; } 25% { opacity: 1; } 100% { opacity: 1; background: #000; } }

/* ---------- 2 · Silence ---------- */
.s-silence .st { top: 470px; font-size: 68px; }

/* Petites étiquettes : capitales espacées, en Archivo (pas de police à chasse fixe). */
.petit { font: 700 22px/1 var(--texte); letter-spacing: 3.5px; text-transform: uppercase; color: #b8ada0; }
.petit.rouge { color: var(--rec); }
.avatar { position: absolute; overflow: visible; }
.slide.active .avatar { animation: respire 4s ease-in-out .8s infinite; }
@keyframes respire { 50% { transform: translateY(-6px); } }
.slide.active [data-in].avatar.on { transform: none; }

/* ---------- 1 · Titre ---------- */
.s-titre .marque { position: absolute; left: 120px; top: 92px; display: flex; align-items: center; gap: 34px; }
.s-titre .marque .symbole { width: 300px; height: 125px; }
.s-titre .mot { font: 600 150px/1 "Montserrat", var(--texte); letter-spacing: -3px; }
.organisateurs { position: absolute; right: 120px; top: 96px; display: flex; align-items: center; gap: 38px; }
.organisateurs img { width: auto; }
.organisateurs .jei { height: 92px; }
.organisateurs .oif { height: 112px; }
.organisateurs i { width: 2px; height: 86px; background: #ffffff30; }
.s-titre h1 { position: absolute; left: 120px; top: 330px; font-size: 150px; }
.devise-titre { left: 128px; top: 640px; --r: -1.5deg; font-size: 38px; }
.equipe { position: absolute; left: 1220px; top: 640px; width: 580px; text-align: right; }
.equipe .tv5 { display: block; font: 900 44px/1 var(--voix); }
.equipe p { margin-top: 10px; font-size: 24px; line-height: 1.45; color: #b8ada0; }

/* ---------- 4 · Karim ---------- */
.partition { position: absolute; left: -60px; top: -30px; width: 760px; opacity: .14; filter: sepia(.5); transform: rotate(-4deg); }
.s-karim h2 { font-size: 136px; }
.s-karim .chapeau { position: absolute; left: 124px; top: 222px; font: 500 italic 50px/1.2 var(--parole); color: #e6dccb; }
.presque { position: absolute; left: 124px; top: 340px; width: 780px; font-size: 38px; line-height: 1.3; color: #d9cfbe; }
.bulle { position: absolute; left: 1010px; top: 290px; width: 470px; padding: 36px 40px; border-radius: 46px 46px 46px 8px; background: var(--creme); color: var(--encre); box-shadow: 0 20px 50px #0008; }
.bulle::after { content: ""; position: absolute; right: -28px; bottom: 34px; border: 18px solid transparent; border-left: 30px solid var(--creme); }
.bulle p { font: 500 italic 38px/1.22 var(--parole); }
.karim-k { left: 1560px; top: 150px; width: 250px; height: 462px; }
.pellicule-pays {
  position: absolute; left: 80px; top: 640px; display: flex; gap: 18px; padding: 40px 22px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='22'%3E%3Crect x='10' y='4' width='24' height='15' rx='4' fill='%23e9e2d2'/%3E%3C/svg%3E") 0 7px / 44px 22px repeat-x,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='22'%3E%3Crect x='10' y='4' width='24' height='15' rx='4' fill='%23e9e2d2'/%3E%3C/svg%3E") 0 calc(100% - 7px) / 44px 22px repeat-x,
    #0b0908;
}
.pellicule-pays li { width: 276px; height: 180px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: radial-gradient(circle at 50% 40%, #e9dcc0, #c9b28c); color: var(--encre); text-align: center; transition: filter .6s ease; }
.pellicule-pays b { font: 900 48px/1 var(--voix); }
.pellicule-pays span { font-size: 24px; color: #4c3a2c; }
.pellicule-pays .manque { background: #140808; outline: 4px dashed var(--rec); outline-offset: -12px; }
.pellicule-pays .manque b, .pellicule-pays .manque span { color: var(--rec); }
.slide.active .pellicule-pays.on .manque { animation: vacille 2.6s steps(1) .8s infinite; }
@keyframes vacille { 0%, 100% { opacity: 1; } 8% { opacity: .55; } 12% { opacity: 1; } 60% { opacity: .8; } 62% { opacity: 1; } }
.manquante { position: absolute; left: 0; width: 1920px; top: 930px; text-align: center; }

/* ---------- 5 · Chiffres : le mur d'archives ---------- */
.mur { position: absolute; inset: -20px; display: grid; grid-template-columns: repeat(24, 1fr); gap: 7px; }
.mur i { aspect-ratio: 4 / 3; background: center / cover; filter: grayscale(1) sepia(.45) brightness(.42); transition: filter 1s ease, opacity 1s ease, transform 1s ease; }
.s-chiffres[data-step="2"] .mur i.perdu, .s-chiffres[data-step="3"] .mur i.perdu { filter: grayscale(1) brightness(.04); opacity: .7; transform: scale(.86); transition-delay: calc(var(--d) * 1ms); }
.voile { position: absolute; inset: 0; background: linear-gradient(90deg, #070505f2 0, #070505d9 46%, #07050566 100%); }
.s-chiffres h2 { font-size: 118px; }
.stat { position: absolute; left: 120px; width: 880px; }
.stat b { display: block; font: 900 210px/.86 var(--voix); font-variant-numeric: tabular-nums; }
.stat b.rouge { color: var(--rec); }
.stat p { margin-top: 14px; font-size: 32px; line-height: 1.25; color: #e8dfce; }
.stat1 { top: 230px; }
.stat2 { top: 560px; }
.parole { position: absolute; left: 1080px; top: 610px; width: 720px; padding: 36px 42px; border-left: 6px solid var(--st); background: #070505cc; }
.parole p { font: 500 italic 40px/1.25 var(--parole); color: var(--creme); }
.parole cite { display: block; margin-top: 18px; font: 700 20px/1.3 var(--texte); font-style: normal; letter-spacing: 2.5px; text-transform: uppercase; color: var(--st); }
.sources { position: absolute; left: 120px; top: 980px; font-size: 21px; color: #b8ada0; }

/* ---------- 6 · Ce qui existe ---------- */
.s-existe h2 { font-size: 120px; }
.tableau-c { position: absolute; left: 110px; top: 226px; width: 1420px; }
.t-tete, .t-ligne { display: grid; grid-template-columns: 330px repeat(5, 1fr); align-items: center; }
.t-tete span { padding: 0 10px 14px; border-bottom: 2px solid #ffffff2a; margin: 0 8px; font: 700 19px/1.25 var(--texte); letter-spacing: 2.5px; text-transform: uppercase; text-align: center; color: #d9cfbe; }
.t-tete .col-sol { text-align: left; padding-left: 26px; color: var(--creme); }
.t-ligne { position: relative; margin-top: 16px; height: 118px; padding-left: 34px; border-radius: 12px; background: #120d0bcc; border: 1px solid #ffffff14; }
.t-ligne::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 8px; border-radius: 2px; background: var(--rec); }
.t-ligne b { font: 800 40px/1 var(--voix); }
.t-ligne i { display: flex; flex-direction: column; align-items: center; gap: 8px; font: 600 20px/1 var(--texte); font-style: normal; color: #8d8379; }
.t-ligne i::before { content: ""; width: 40px; height: 40px; border-radius: 50%; border: 3px dashed #ffffff40; box-sizing: border-box; display: flex; align-items: center; justify-content: center; font: 900 24px/1 var(--texte); }
.t-ligne i.oui { color: var(--creme); }
.t-ligne i.oui::before { content: "✓"; border: 0; background: var(--creme); color: var(--encre); }
.t-ligne i.part { color: var(--creme); }
.t-ligne i.part::before { border: 4px solid var(--creme); box-shadow: inset 0 0 0 6px #120d0b, inset 0 0 0 20px var(--creme); }
.t-ligne i.non { color: var(--rec); }
.t-ligne i.non::before { content: "×"; border: 0; background: var(--rec); color: #fff; font-size: 30px; }
.slide.active .t-ligne.on { transition-delay: calc(.15s + var(--i, 0) * .18s); }
.karim-m { left: 1600px; top: 330px; width: 250px; height: 462px; }
.conclusion { position: absolute; left: 120px; right: 120px; top: 904px; text-align: center; font: 500 italic 48px/1.2 var(--parole); color: var(--creme); }

/* ---------- 7 · Solution ---------- */
.s-solution .sous { position: absolute; left: 124px; top: 200px; font-size: 40px; color: #c9c2b6; }
.qui { position: absolute; left: 120px; font: 400 52px/1 var(--main); color: var(--st); }
.qui-a { top: 365px; transform: rotate(-4deg); }
.qui-c { top: 765px; transform: rotate(-4deg); }
.slide.active .qui.on { transform: rotate(-4deg); }
.rail-etapes {
  position: absolute; left: 450px; display: flex; gap: 14px; padding: 34px 20px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='20'%3E%3Crect x='9' y='4' width='22' height='12' rx='3' fill='%23e9e2d2'/%3E%3C/svg%3E") 0 6px / 40px 20px repeat-x,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='20'%3E%3Crect x='9' y='4' width='22' height='12' rx='3' fill='%23e9e2d2'/%3E%3C/svg%3E") 0 calc(100% - 6px) / 40px 20px repeat-x,
    #050403;
}
.rail-a { top: 320px; }
.rail-c { top: 720px; }
.rail-etapes li {
  position: relative; width: 210px; height: 128px; padding: 0 12px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: #1d1a17; color: #6d655c; border-radius: 6px;
  font: 800 38px/1 var(--voix);
  transition: background .4s ease, color .4s ease;
}
.rail-c li { width: 252px; }
.rail-etapes.on li { background: var(--creme); color: var(--encre); transition-delay: calc(.3s + var(--i) * .22s); }
.rail-etapes li i { position: absolute; top: 8px; left: 0; right: 0; font: 700 14px/1 var(--texte); font-style: normal; letter-spacing: 1px; text-transform: uppercase; color: var(--rec); }
.rail-etapes li.signe::after { content: ""; position: absolute; right: 12px; top: 12px; width: 16px; height: 16px; border-radius: 50%; background: var(--rec); }
.pivot { position: absolute; left: 450px; right: 100px; top: 556px; text-align: center; font: 900 92px/1 var(--voix); }
.pivot em { font-style: normal; color: var(--rec); }

/* ---------- 8 · Retrouvé ---------- */
.s-retrouve h2 { font-size: 112px; }
.recherche {
  position: absolute; left: 120px; top: 218px; width: 1680px; height: 104px;
  display: flex; align-items: center; gap: 22px; padding: 0 36px;
  background: #fbf8f2; border-radius: 52px; color: var(--encre); font: 500 40px/1 var(--texte); box-shadow: 0 18px 50px #0007;
}
.recherche svg { width: 44px; height: 44px; flex: none; fill: none; stroke: var(--encre); stroke-width: 2.4; stroke-linecap: round; }
.curseur { width: 3px; height: 46px; margin-left: -18px; background: var(--encre); animation: clignote 1s steps(1) infinite; }
@keyframes clignote { 50% { opacity: 0; } }
.fenetre { position: absolute; top: 250px; width: 740px; height: 540px; border-radius: 22px; background: #fbf8f2; color: var(--encre); box-shadow: 0 30px 80px #000a; overflow: hidden; }
.f-avant { left: 120px; }
.f-apres { left: 1060px; }
.barre { display: flex; align-items: center; gap: 16px; height: 84px; padding: 0 28px; border-bottom: 2px solid #1f141518; font: 500 28px/1 var(--texte); }
.barre svg { width: 32px; height: 32px; flex: none; fill: none; stroke: var(--encre); stroke-width: 2.4; stroke-linecap: round; }
.barre span { flex: 1; white-space: nowrap; overflow: hidden; }
.barre b { font: 400 34px/1 var(--texte); color: #7a6f68; }
.vide { height: 456px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; }
.vide b { font: 800 76px/1 var(--voix); color: var(--rec); }
.vide span { font-size: 26px; color: #7a6f68; }
.trouvee { display: flex; gap: 30px; padding: 30px 28px 0; }
.vignette { position: relative; flex: none; width: 260px; height: 190px; border-radius: 12px; background: radial-gradient(circle at 50% 45%, #2b2522, #0a0807); display: flex; align-items: center; justify-content: center; }
.vignette svg { width: 72px; height: 72px; fill: #fbf8f2; }
.vignette .tc-v { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; font: 500 24px/1 var(--mono); color: #fff; }
.trouve { display: block; font: 900 50px/1 var(--voix); color: var(--rec); white-space: nowrap; }
.phrase { margin-top: 14px; font: 500 italic 27px/1.3 var(--parole); }
.phrase mark { background: var(--st); color: var(--encre); padding: 0 5px; border-radius: 4px; }
.derja { display: block; margin-top: 10px; font-size: 22px; color: #6f6761; }
.droits { margin: 28px 28px 0; padding-top: 22px; border-top: 2px solid #1f141518; font-size: 28px; }
.actions { display: flex; align-items: center; gap: 24px; margin: 26px 28px 0; font-size: 22px; color: #6f6761; }
.bouton { padding: 20px 36px; border-radius: 60px; background: var(--encre); color: #fff; font: 700 26px/1 var(--texte); white-space: nowrap; }
.avec { position: absolute; left: 880px; top: 436px; font-size: 30px; white-space: nowrap; transform: rotate(-4deg); }
.slide.active .avec.on { transform: rotate(-4deg); }
.fleche { position: absolute; left: 896px; top: 490px; width: 140px; height: 56px; fill: none; stroke: var(--creme); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.cases { position: absolute; top: 826px; display: flex; gap: 12px; }
.c-avant { left: 120px; }
.c-apres { left: 1060px; }
.cases li { width: 113px; text-align: center; }
.cases i { display: flex; align-items: center; justify-content: center; height: 76px; border-radius: 6px; background: #fbf8f2; font: 500 21px/1 var(--mono); font-style: normal; color: #fff; }
.cases span { display: block; margin-top: 12px; font-size: 19px; color: #b8ada0; }
.cases .trou i { background: #070505; outline: 3px dashed var(--rec); outline-offset: -3px; }
.cases .trou span, .cases .ok span { color: var(--rec); font-weight: 700; }
.cases .ok i { background: var(--rec); }

/* ---------- 9 · Démo ---------- */
.kicker-demo { position: absolute; z-index: 3; left: 90px; top: 34px; transform: rotate(-6deg); font-size: 70px; }
.ecran-demo {
  position: absolute; left: 250px; top: 140px; width: 1420px; height: 820px; padding: 36px 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='22'%3E%3Crect x='10' y='4' width='24' height='15' rx='4' fill='%23e9e2d2'/%3E%3C/svg%3E") 0 7px / 44px 22px repeat-x,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='22'%3E%3Crect x='10' y='4' width='24' height='15' rx='4' fill='%23e9e2d2'/%3E%3C/svg%3E") 0 calc(100% - 7px) / 44px 22px repeat-x,
    #0b0908;
}
/* Viseur de caméra : quatre coins, REC qui clignote, mire au centre. */
.viseur { position: absolute; left: 190px; top: 100px; width: 1540px; height: 900px; pointer-events: none; z-index: 2; }
.viseur .c { position: absolute; width: 70px; height: 70px; border: 0 solid var(--creme); }
.viseur .hg { left: 0; top: 0; border-left-width: 5px; border-top-width: 5px; }
.viseur .hd { right: 0; top: 0; border-right-width: 5px; border-top-width: 5px; }
.viseur .bg { left: 0; bottom: 0; border-left-width: 5px; border-bottom-width: 5px; }
.viseur .bd { right: 0; bottom: 0; border-right-width: 5px; border-bottom-width: 5px; }
.rec-v { position: absolute; right: 30px; top: -46px; display: flex; align-items: center; gap: 12px; font: 700 26px/1 var(--texte); letter-spacing: 3px; color: var(--creme); }
.rec-v b { width: 18px; height: 18px; border-radius: 50%; background: var(--rec); animation: clignote 1.2s steps(1) infinite; }
.mire { position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; opacity: .5;
  background: linear-gradient(var(--creme), var(--creme)) center / 2px 100% no-repeat, linear-gradient(var(--creme), var(--creme)) center / 100% 2px no-repeat; }
.ecran-demo video, .ecran-demo .sans-video img { width: 100%; height: 100%; object-fit: contain; background: #000; }
.ecran-demo .sans-video { position: absolute; inset: 36px 0; display: none; }
body.sans-video .ecran-demo video { display: none; }
body.sans-video .ecran-demo .sans-video { display: block; }

/* ---------- 10 · Éthique ---------- */
.s-ethique h2 { left: 0; right: 0; text-align: center; top: 60px; font-size: 120px; }
.anneau { position: absolute; left: 700px; top: 320px; width: 520px; height: 520px; border: 10px solid #e2a84a; border-radius: 50%; display: flex; align-items: center; justify-content: center; padding: 70px; box-shadow: 0 0 120px #e2a84a33; }
.anneau p { font: 600 italic 44px/1.2 var(--parole); text-align: center; }
.regle { position: absolute; width: 540px; }
.regle b { display: block; font: 800 46px/1 var(--voix); color: var(--st); }
.regle p { margin-top: 8px; font-size: 29px; line-height: 1.24; }
.g1, .g2, .g3 { left: 110px; text-align: right; }
.d1, .d2, .d3 { left: 1270px; }
.g1, .d1 { top: 280px; } .g2, .d2 { top: 510px; } .g3, .d3 { top: 740px; }

/* ---------- 11 · Limites ---------- */
.s-limites h2 { font-size: 110px; }
.entetes { position: absolute; left: 120px; top: 236px; display: flex; gap: 60px; }
.entetes span { width: 520px; padding-bottom: 16px; border-bottom: 2px solid; font: 800 24px/1 var(--texte); letter-spacing: 5px; text-transform: uppercase; }
.entetes span::before { content: ""; display: inline-block; width: 16px; height: 16px; margin-right: 14px; border-radius: 50%; background: currentColor; vertical-align: 1px; }
.entetes .r { color: var(--rec); }
.entetes .b { color: var(--creme); }
.entetes .g { color: #a39889; }
.ligne { position: absolute; left: 120px; display: flex; gap: 60px; }
.ligne:nth-of-type(2) { top: 306px; } .ligne:nth-of-type(3) { top: 526px; } .ligne:nth-of-type(4) { top: 746px; }
.ligne p { position: relative; display: flex; align-items: center; gap: 26px; width: 520px; height: 180px; padding: 0 34px; border: 2px solid #ffffff22; border-left-width: 10px; border-radius: 14px; background: #151110; font-size: 32px; line-height: 1.2; }
.ligne svg { flex: none; width: 50px; height: 50px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ligne p.r { border-color: #d0382b88; border-left-color: var(--rec); }
.ligne p.r svg { stroke: var(--rec); }
.ligne p.b { border-left-color: var(--creme); }
.ligne p.g { border-left-color: #a39889; color: #e2d9c8; }
.ligne p.g svg { stroke: #a39889; }
.ligne p.g em { font-style: normal; font-weight: 800; color: var(--rec); }
.ligne p + p::before { content: "→"; position: absolute; left: -50px; top: 66px; color: #a39889; font-size: 34px; }

/* ---------- 12 · Revenus ---------- */
.s-revenus h2 { font-size: 112px; }
.titre-col { display: flex; align-items: baseline; gap: 26px; padding-bottom: 18px; border-bottom: 2px solid #ffffff22; font: 800 24px/1 var(--texte); letter-spacing: 5px; text-transform: uppercase; color: #d9cfbe; }
.titre-col span { font: 900 32px/1 var(--voix); letter-spacing: 0; color: #f6c99a; }
.col-abo { position: absolute; left: 120px; top: 250px; width: 800px; }
.col-abo ul { margin-top: 22px; }
.col-abo li { display: grid; grid-template-columns: 300px 1fr; align-items: center; margin-bottom: 18px; height: 150px; padding: 0 36px; border-radius: 16px; background: #ffffff0c; border-left: 8px solid #f6c99a; }
.col-abo li b { grid-row: 1; font: 900 104px/.9 var(--voix); }
.col-abo li small { grid-row: 2; grid-column: 1; margin-top: -26px; font-size: 20px; color: #b8ada0; }
.col-abo li p { grid-row: 1 / 3; grid-column: 2; font: 500 italic 38px/1.2 var(--parole); }
.col-com { position: absolute; left: 1000px; top: 250px; width: 800px; }
.parts { display: flex; gap: 18px; margin-top: 22px; height: 310px; }
.parts > div { border-radius: 18px; padding: 30px 34px; background: #ffffff0c; }
.p80 { flex: 1; border-left: 8px solid #f6c99a; }
.p80 b { display: block; font: 900 150px/.85 var(--voix); background: linear-gradient(90deg, #fff1b8, #f6b3cf); -webkit-background-clip: text; background-clip: text; color: transparent; }
.parts span { display: block; margin-top: 12px; font: 800 22px/1 var(--texte); letter-spacing: 5px; text-transform: uppercase; color: #f6c99a; }
.p80 p { margin-top: 14px; font: 500 italic 30px/1.2 var(--parole); color: #f6b3cf; }
.p20 { width: 230px; }
.p20 b { display: block; font: 900 92px/.9 var(--voix); }
.p20 span { color: #d9cfbe; }
.inclus { margin-top: 22px; font: 500 italic 26px/1.3 var(--parole); color: #b8ada0; }
.edu { position: absolute; left: 1000px; top: 720px; width: 800px; display: flex; gap: 34px; align-items: center; padding: 30px 36px; border-radius: 18px; background: #f5d5470f; border: 2px solid #f5d54744; }
.edu svg { flex: none; width: 120px; height: 120px; fill: none; stroke: var(--st); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.edu .titre-col { border: 0; padding: 0; margin-bottom: 12px; color: var(--st); }
.edu p:not(.titre-col) { font-size: 30px; line-height: 1.3; }

/* ---------- 13 · BMC ---------- */
.s-bmc h2 { top: 46px; font-size: 100px; }
.bmc {
  position: absolute; left: 70px; top: 180px; width: 1780px; height: 850px; display: grid; gap: 12px;
  grid-template-columns: repeat(10, 1fr); grid-template-rows: 1fr 1fr .82fr;
  grid-template-areas: "kp kp ka ka vp vp cr cr cs cs" "kp kp kr kr vp vp ch ch cs cs" "co co co co co re re re re re";
}
.bmc > div { padding: 20px 22px; border: 1px solid #ffffff1c; border-radius: 14px; background: #151110; font-size: 22px; line-height: 1.3; color: #e2d9c8; }
.bmc b { display: block; margin-bottom: 12px; font: 800 17px/1.2 var(--texte); letter-spacing: 3px; text-transform: uppercase; color: #f6c99a; }
.bmc b span { color: var(--rec); }
.bmc p + p { margin-top: 8px; }
.bmc em { display: block; font: 800 32px/1 var(--voix); font-style: normal; color: var(--creme); margin-bottom: 4px; }
.kp { grid-area: kp; } .ka { grid-area: ka; } .kr { grid-area: kr; } .cr { grid-area: cr; } .ch { grid-area: ch; } .cs { grid-area: cs; } .co { grid-area: co; } .re { grid-area: re; }
.bmc .vp { grid-area: vp; background: #efe8dc; color: #3a2f2a; }
.bmc .vp b { color: #7d0c14; }
.bmc .vp em { color: var(--encre); }
.bmc .co em { font-size: 36px; }
.re-parts { display: flex; gap: 60px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 4px solid; border-image: linear-gradient(90deg, #fff1b8, #f6b3cf) 1; }
.re-parts p { font-size: 22px; letter-spacing: 2px; text-transform: uppercase; }
.re-parts p + p { margin-top: 0; }
.re-parts strong { font: 900 56px/1 var(--voix); letter-spacing: 0; margin-right: 8px; }
.bmc .re > p { font: 800 28px/1.2 var(--voix); color: var(--creme); }

/* ---------- 14 · Croissance ---------- */
.s-croissance h2 { font-size: 112px; }
.icone-croissance { position: absolute; right: 120px; top: 46px; width: 170px; height: 142px; fill: #f3ead8; stroke: #f3ead8; stroke-width: 0; }
.icone-croissance path { fill: none; stroke: var(--rec); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.fil { position: absolute; left: 330px; right: 330px; top: 262px; height: 4px; background: #ffffff22; }
.fil i { position: absolute; inset: 0; background: var(--rec); transform-origin: 0 50%; transform: scaleX(0); transition: transform 1s ease; }
.s-croissance[data-step="1"] .fil i { transform: scaleX(.5); }
.s-croissance[data-step="2"] .fil i { transform: scaleX(1); }
.fil b { position: absolute; top: -14px; width: 32px; height: 32px; margin-left: -16px; border-radius: 50%; background: #2a2523; border: 3px solid #ffffff40; }
.fil .p1 { left: 0; background: var(--rec); border-color: var(--rec); } .fil .p2 { left: 50%; } .fil .p3 { left: 100%; }
.s-croissance[data-step="1"] .fil .p2, .s-croissance[data-step="2"] .fil .p2, .s-croissance[data-step="2"] .fil .p3 { background: var(--rec); border-color: var(--rec); transition: background .3s ease .7s; }
.an { position: absolute; top: 320px; width: 540px; height: 640px; padding: 40px 42px; border-radius: 26px; background: #ffffff0b; border: 2px solid #ffffff1a; border-left: 10px solid var(--rec); }
.a1 { left: 120px; } .a2 { left: 690px; border-left-color: #f6b3cf; } .a3 { left: 1260px; border-left-color: #b5d335; }
.an > b { display: block; font: 900 92px/1 var(--voix); }
.an .phase { display: block; margin: 6px 0 22px; padding-bottom: 22px; border-bottom: 2px solid #ffffff1a; font: 800 22px/1 var(--texte); letter-spacing: 6px; text-transform: uppercase; color: #a39889; }
.an small { display: block; margin-top: 18px; font: 700 17px/1 var(--texte); letter-spacing: 3px; text-transform: uppercase; color: #8d8379; }
.an .ca { margin-top: 6px; font: 900 72px/1 var(--voix); }
.an .rn { margin-top: 6px; font: 800 56px/1 var(--voix); color: #b5d335; }
.a2 .rn { background: linear-gradient(90deg, #fff1b8, #f6b3cf); -webkit-background-clip: text; background-clip: text; color: transparent; }
.an .rn.neg { color: var(--rec); }
.an .pa { margin-top: 8px; font-size: 27px; line-height: 1.25; }
.an .qui-an { margin-top: 6px; font: 500 italic 24px/1.2 var(--parole); color: #a39889; }

/* ---------- 15 · Impact ---------- */
.s-impact .gauche { position: absolute; left: 110px; top: 0; width: 830px; height: 1080px; }
.kicker-impact { position: absolute; left: 0; top: 90px; color: #f6c99a; }
.s-impact h2 { left: 0; top: 140px; font-size: 112px; }
.s-impact .intro { position: absolute; left: 0; top: 476px; font: 500 italic 34px/1.3 var(--parole); color: #d9cfbe; }
.trois { position: absolute; left: 0; top: 670px; display: flex; gap: 36px; }
.trois li { width: 252px; }
.trois span { display: block; font-size: 20px; color: #8d8379; }
.trois span::after { content: ""; display: block; width: 90px; height: 7px; margin: 12px 0 22px; background: var(--c); }
.trois b { display: block; font: 900 44px/1 var(--voix); }
.trois p { margin-top: 14px; font-size: 24px; line-height: 1.3; color: #d9cfbe; }
.s-impact .droite { position: absolute; left: 1010px; top: 70px; width: 820px; height: 940px; padding-left: 56px; border-left: 2px solid #ffffff22; }
.droite > .petit { margin: 26px 0 30px; }
.odd-l { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 26px 0; border-bottom: 2px solid #ffffff16; }
.odd-l span { font-size: 24px; line-height: 1.3; color: #b8ada0; }
.odd-l b { display: block; margin-bottom: 8px; font: 900 46px/1 var(--voix); color: var(--creme); }
.odd-l img { flex: none; width: 160px; height: 160px; border-radius: 6px; }

/* ---------- 16 · Conclusion ---------- */
.s-outro .st-bas { bottom: 150px; }
.etiquettes .ruban { font-size: 34px; }
.e1 { left: 90px; top: 196px; --r: -4deg; }
.e2 { left: 960px; top: 140px; --r: 3deg; }
.e3 { left: 230px; top: 600px; --r: 2deg; }
.e4 { left: 1100px; top: 620px; --r: -3deg; }
.fin { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 40px; }
.fin .symbole { width: 480px; height: 200px; }
.fin p { font: 900 96px/1 var(--voix); }
.fin em { font-style: normal; color: var(--st); }

/* ---------- 17 · Merci ---------- */
.merci { top: 90px; font-size: 300px; }
.questions { position: absolute; left: 140px; top: 390px; transform: rotate(-4deg); font-size: 68px; line-height: 1.1; }
.devise { position: absolute; left: 124px; top: 600px; font: 500 italic 52px/1.2 var(--parole); }
.org-merci { left: 124px; right: auto; top: 870px; }

/* ---------- Frise ---------- */
#frise { position: absolute; left: 0; right: 0; bottom: 0; height: 52px; z-index: 4; display: flex; align-items: center; gap: 28px; padding: 0 40px; font: 600 16px/1 var(--texte); letter-spacing: 2.5px; text-transform: uppercase; color: #ffffff80; transition: opacity .6s ease; }
body.claire #frise { color: #1f141599; }
body.sans-frise #frise { opacity: 0; }
.piste { position: relative; flex: 1; height: 2px; background: currentColor; opacity: .5; }
#tete { position: absolute; top: -12px; left: 0; width: 3px; height: 26px; background: var(--rec); transition: left .8s ease; }
#tete::before { content: ""; position: absolute; left: -6px; top: -4px; border: 7.5px solid transparent; border-top-color: var(--rec); }
#tc { font-family: var(--mono); letter-spacing: 0; }
.tc { display: flex; align-items: center; gap: 10px; font-variant-numeric: tabular-nums; }
.rec { width: 12px; height: 12px; border-radius: 50%; background: var(--rec); opacity: .25; }
body.enregistre .rec { opacity: 1; animation: clignote 1.2s steps(1) infinite; }

/* ---------- Commandes ---------- */
#rideau { position: fixed; inset: 0; z-index: 9; background: #000; }
#rideau[hidden], #aide[hidden] { display: none; }
#aide .tactile { display: none; }
@media (hover: none) and (pointer: coarse) { #aide .clavier { display: none; } #aide .tactile { display: inline; } }

/* Bouton plein écran : seulement sur les écrans tactiles, qui n'ont pas la touche F. */
#plein-ecran { position: fixed; right: max(12px, env(safe-area-inset-right)); top: max(12px, env(safe-area-inset-top)); z-index: 7; display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid #ffffff40; border-radius: 12px; background: #0009; cursor: pointer; }
#plein-ecran svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: none) and (pointer: coarse) { body:not(.plein) #plein-ecran { display: flex; } }

/* Téléphone tenu droit */
#tourner { position: fixed; inset: 0; z-index: 10; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 26px; padding: 24px; background: var(--nuit); color: var(--creme); text-align: center; font: 600 22px/1.35 var(--texte); }
#tourner svg { width: 120px; fill: none; stroke: var(--st); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; animation: tourne 2.4s ease-in-out infinite; }
#tourner circle { fill: var(--st); stroke: none; }
#tourner button { padding: 12px 24px; border: 2px solid #ffffff55; border-radius: 999px; background: none; color: var(--creme); font: 500 17px var(--texte); cursor: pointer; }
@keyframes tourne { 0%, 30% { transform: rotate(0); } 60%, 100% { transform: rotate(-90deg); } }
@media (orientation: portrait) and (max-width: 900px), (orientation: portrait) and (pointer: coarse), (orientation: portrait) and (hover: none) {
  body:not(.droit-ok) #tourner { display: flex; }
}
#aide { position: fixed; left: 0; right: 0; bottom: 0; z-index: 8; padding: 12px 20px; background: #000d; color: #fff; font: 500 17px/1.3 var(--texte); text-align: center; }
#toast { position: fixed; left: 24px; bottom: 70px; z-index: 8; padding: 10px 18px; border-radius: 12px; background: #000d; color: #fff; font: 500 17px var(--texte); opacity: 0; pointer-events: none; transition: opacity .2s; }
#toast.show { opacity: 1; }

body.immobile *, body.immobile *::before, body.immobile *::after { transition: none !important; animation: none !important; }
