/* ═══════════════════════════════════════════════════════════════════════════
   LA PRÉSENTATION NARRÉE — /presentation
   Quinze diapositives plein écran, une voix, des sous-titres qui la suivent.
   Feuille autonome (le gabarit est nu) : jetons repris de app.css/sable.css.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --nuit: #0F1733; --abysse: #070C1E; --marine: #1A2452;
  --or: #F5B41C; --or-vif: #FFCE4A; --or-fonce: #876104;
  --sable: #F5EFE3; --sable-2: #EDE4D1; --blanc: #FFFFFF;
  --encre: #0F1733; --doux: #5C6378; --trait: #E4DCC9;
  --titre: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --texte: Archivo, "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(.2, 0, 0, 1);
  --barre: 76px;
  --st: 92px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--abysse); color: var(--encre); }
body { font: 400 clamp(15px, 1.15vw, 19px)/1.5 var(--texte); -webkit-font-smoothing: antialiased; overflow: hidden; }
h1, h2, h3, .chiffre { font-family: var(--titre); font-weight: 900; margin: 0; line-height: .92; letter-spacing: -.01em; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }

/* ────────────────────────────────────────────────────────────── la scène ── */

.scene { position: fixed; inset: 0 0 var(--barre) 0; overflow: hidden; }
.dia {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  padding: clamp(18px, 3.2vw, 56px) clamp(18px, 4vw, 72px) calc(var(--st) + 16px);
  background: var(--sable);
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateX(3%) scale(.985);
  transition: opacity 700ms var(--ease), transform 900ms var(--ease), visibility 0s linear 700ms;
  overflow-y: auto; overscroll-behavior: contain;
}
.dia.active { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition-delay: 0s; z-index: 2; }
.dia.sortante { opacity: 0; transform: translateX(-3%) scale(.985); z-index: 1; }
.dia.nuit { background: var(--nuit); color: var(--blanc); }
.dia.photo { color: var(--blanc); }
.dia > .fond { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.dia > .fond img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.dia.active > .fond img { animation: kenburns 28s ease-out forwards; }
.dia > .fond .voile { position: absolute; inset: 0; }
.dia > .dedans { position: relative; z-index: 1; display: flex; flex-direction: column; flex: 1; min-height: 0; max-width: 1480px; width: 100%; margin: 0 auto; }
.dia .corps { flex: 1; display: flex; flex-direction: column; justify-content: center; min-height: 0; padding-block: clamp(8px, 1.6vw, 26px); }

.sur { font: 700 clamp(.66rem, .78vw, .86rem)/1 var(--texte); letter-spacing: .24em; text-transform: uppercase; color: var(--or-fonce); display: flex; align-items: center; gap: .7em; }
.sur::before { content: ""; width: 2.2em; height: 3px; background: var(--or); border-radius: 2px; }
.nuit .sur, .photo .sur { color: var(--or); }
h2 { font-size: clamp(1.9rem, 3.9vw, 4.1rem); color: var(--nuit); margin: .35em 0 .25em; letter-spacing: -.02em; }
.nuit h2, .photo h2 { color: var(--blanc); }
h2 em { font-style: normal; color: var(--or-fonce); }
.nuit h2 em, .photo h2 em { color: var(--or); }
.chapo { font-size: clamp(.98rem, 1.15vw, 1.3rem); line-height: 1.45; color: var(--doux); max-width: 62ch; }
.nuit .chapo, .photo .chapo { color: #C9D2EC; }
h3 { font-family: var(--texte); font-weight: 800; font-size: clamp(.95rem, 1.05vw, 1.2rem); line-height: 1.25; color: var(--nuit); letter-spacing: 0; }
.nuit h3, .photo h3 { color: var(--or-vif); }

.g { display: grid; gap: clamp(10px, 1.3vw, 22px); }
.g2 { grid-template-columns: 1fr 1fr; } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); }
.cote { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(16px, 2.6vw, 44px); align-items: center; }
.cote.haut { align-items: start; }

.carte { background: var(--blanc); border-radius: clamp(14px, 1.3vw, 22px); padding: clamp(14px, 1.4vw, 24px) clamp(16px, 1.5vw, 26px); box-shadow: 0 14px 40px rgba(15, 23, 51, .08); }
.nuit .carte, .photo .carte { background: rgba(255, 255, 255, .07); color: #EDF1FC; box-shadow: none; border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(8px); }
.carte h3 { margin-bottom: .45em; }
.carte p { font-size: clamp(.86rem, .95vw, 1.05rem); line-height: 1.45; color: var(--doux); }
.nuit .carte p, .photo .carte p { color: #C9D2EC; }
.chiffre { font-family: var(--titre); font-weight: 900; font-size: clamp(2rem, 3.6vw, 4rem); color: var(--nuit); font-variant-numeric: tabular-nums; line-height: .9; }
.nuit .chiffre, .photo .chiffre { color: var(--or); }
.chiffre small { display: block; font: 700 clamp(.6rem, .7vw, .8rem)/1.3 var(--texte); letter-spacing: .14em; text-transform: uppercase; color: var(--doux); margin-top: .5em; }
.nuit .chiffre small, .photo .chiffre small { color: #9BA6C8; }
.cle { background: var(--nuit); color: #EDF1FC; border-radius: clamp(14px, 1.3vw, 22px); padding: clamp(14px, 1.5vw, 26px) clamp(16px, 1.7vw, 30px); }
.cle .titre { font: 900 clamp(1.1rem, 1.5vw, 1.7rem)/1 var(--titre); color: var(--or); margin-bottom: .45em; text-transform: uppercase; }
.cle p { font-size: clamp(.9rem, 1vw, 1.1rem); line-height: 1.5; }
.cle strong { color: var(--or-vif); }
.liste li { position: relative; padding-left: 1.5em; margin-bottom: .55em; font-size: clamp(.88rem, .98vw, 1.08rem); line-height: 1.42; }
.liste li::before { content: ""; position: absolute; left: 0; top: .5em; width: .55em; height: .55em; border-radius: 50%; background: var(--or); }
.liste li b { color: var(--nuit); } .nuit .liste li b, .photo .liste li b { color: var(--blanc); }
.liste.serre li { margin-bottom: .35em; font-size: clamp(.82rem, .9vw, 1rem); }
.cita { font-family: var(--titre); font-weight: 800; font-size: clamp(1.4rem, 2.4vw, 2.6rem); line-height: 1.02; color: var(--blanc); }
.cita em { font-style: normal; color: var(--or); }
.qui { font: 600 clamp(.66rem, .74vw, .82rem)/1.4 var(--texte); letter-spacing: .12em; text-transform: uppercase; color: #9BA6C8; margin-top: .7em; }
.punch { font: 900 clamp(1.15rem, 1.6vw, 1.8rem)/1.05 var(--titre); color: var(--or-fonce); letter-spacing: -.005em; text-transform: uppercase; }
.nuit .punch, .photo .punch { color: var(--or); }
.bulle { position: relative; background: var(--blanc); border-radius: 18px; padding: 14px 18px; font-size: clamp(.9rem, 1vw, 1.1rem); line-height: 1.5; color: var(--encre); box-shadow: 0 14px 40px rgba(15, 23, 51, .08); }
.bulle::after { content: ""; position: absolute; left: 28px; bottom: -12px; border: 12px solid transparent; border-top-color: var(--blanc); border-bottom: 0; }
.bulle b { color: var(--nuit); }
.bulle .qui { color: var(--doux); margin-top: .5em; }

.tels { display: flex; gap: clamp(10px, 1.4vw, 24px); justify-content: center; align-items: flex-end; }
.tel { border-radius: clamp(14px, 1.5vw, 26px); border: 5px solid #0B1020; background: #0B1020; overflow: hidden; box-shadow: 0 26px 50px rgba(15, 23, 51, .32); flex: none; }
.tel img { width: 100%; margin: -4.5% 0 -6.2%; }
.tel.p { width: clamp(88px, 9vw, 150px); } .tel.m { width: clamp(100px, 10.5vw, 176px); } .tel.g { width: clamp(120px, 12.5vw, 210px); }
figure { margin: 0; text-align: center; }
figcaption { font: 600 clamp(.72rem, .8vw, .9rem)/1.35 var(--texte); color: var(--doux); margin-top: .7em; }
.nuit figcaption, .photo figcaption { color: #B9C4E4; }
figcaption b { color: var(--nuit); } .nuit figcaption b, .photo figcaption b { color: var(--blanc); }
.nav { border-radius: 12px; overflow: hidden; background: var(--blanc); box-shadow: 0 22px 44px rgba(15, 23, 51, .16); }
.nav .barre { height: 20px; background: #E8E3D5; display: flex; align-items: center; gap: 6px; padding: 0 11px; }
.nav .barre i { width: 8px; height: 8px; border-radius: 50%; background: #C9C2B0; }
.nav img { width: 100%; object-fit: cover; object-position: top; }
.nav.court img { max-height: clamp(90px, 11vw, 150px); } .nav.moyen img { max-height: clamp(130px, 15vw, 200px); } .nav.haut img { max-height: clamp(160px, 20vw, 270px); }
.nuit .nav .barre, .photo .nav .barre { background: #1E2A5A; } .nuit .nav .barre i, .photo .nav .barre i { background: #3B4A86; }
.tv { border-radius: 12px; overflow: hidden; border: 4px solid #0B1020; background: #0B1020; box-shadow: 0 22px 44px rgba(0, 0, 0, .35); }
.tv img { width: 100%; }
.etapes { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.5vw, 24px); }
.etape .num { font: 900 clamp(1.8rem, 2.6vw, 3rem)/1 var(--titre); color: var(--or); }
.etape h3 { margin: .35em 0 .4em; }
.etape p { font-size: clamp(.86rem, .95vw, 1.05rem); line-height: 1.4; color: #C9D2EC; }
.niveaux { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(10px, 1.2vw, 20px); }
.niveau { border-radius: clamp(14px, 1.3vw, 22px); padding: clamp(12px, 1.3vw, 20px) clamp(14px, 1.4vw, 24px); background: var(--blanc); box-shadow: 0 14px 40px rgba(15, 23, 51, .08); }
.niveau .rang { font: 900 clamp(.62rem, .7vw, .8rem)/1 var(--texte); letter-spacing: .2em; text-transform: uppercase; color: var(--or-fonce); }
.niveau .nom { font: 900 clamp(1.1rem, 1.5vw, 1.7rem)/1 var(--titre); color: var(--nuit); margin: .45em 0 .5em; text-transform: uppercase; }
.niveau p { font-size: clamp(.82rem, .88vw, 1rem); line-height: 1.4; color: var(--doux); }
.niveau.or { background: var(--nuit); } .niveau.or .nom { color: var(--or); } .niveau.or p { color: #C9D2EC; } .niveau.or .rang { color: var(--or); }
.icone { width: clamp(56px, 6vw, 96px); height: auto; border-radius: 22%; box-shadow: 0 18px 40px rgba(0, 0, 0, .45); }
.gestes { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(10px, 1.2vw, 20px); }
.geste { background: var(--blanc); border-radius: clamp(14px, 1.3vw, 22px); padding: clamp(12px, 1.3vw, 20px) clamp(14px, 1.4vw, 24px); box-shadow: 0 14px 40px rgba(15, 23, 51, .08); }
.geste .n { font: 900 clamp(1.7rem, 2.4vw, 2.8rem)/1 var(--titre); color: var(--or); margin-bottom: .3em; }
.geste h3 { margin-bottom: .4em; }
.geste p { font-size: clamp(.84rem, .92vw, 1.02rem); line-height: 1.4; color: var(--doux); }
.couv h1 { font-size: clamp(3rem, 8vw, 8.5rem); color: #fff; margin: .1em 0; }
.couv h1 em { font-style: normal; color: var(--or); }
.couv .accroche { font: 600 clamp(1rem, 1.5vw, 1.7rem)/1.35 var(--texte); color: #E4E9F8; max-width: 30ch; border-left: 3px solid var(--or); padding-left: .9em; margin-top: 1.2em; }
.couv .note { margin-top: 1.6em; font: 600 clamp(.8rem, .95vw, 1.05rem)/1.5 var(--texte); color: #B9C4E4; }
.equipe .nom { font: 900 clamp(1.2rem, 1.7vw, 1.9rem)/1 var(--titre); color: var(--or); margin-bottom: .3em; text-transform: uppercase; }
.equipe .qui { margin: 0 0 .6em; }
.fin-site { margin-top: clamp(14px, 2vw, 30px); text-align: center; font: 900 clamp(1.3rem, 2.2vw, 2.4rem)/1 var(--titre); color: #fff; }
.fin-site small { display: block; font: 600 clamp(.72rem, .85vw, .95rem)/1.5 var(--texte); color: #B9C4E4; margin-top: .5em; }

/* ─────────────────────────────────────────────── les apparitions en cascade ── */

.rev { opacity: 0; transform: translateY(18px); }
.dia.active .rev { animation: rev 720ms var(--ease) forwards; animation-delay: calc(240ms + var(--i, 0) * 110ms); }
.dia.active .rev.zoom { animation-name: rev-zoom; }
@keyframes rev { to { opacity: 1; transform: none; } }
@keyframes rev-zoom { from { opacity: 0; transform: scale(.92) translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes kenburns { from { transform: scale(1.04); } to { transform: scale(1.14) translate(-1.2%, -1%); } }
.dia.active .tel { animation: tel-monte 1100ms var(--ease) both; animation-delay: calc(380ms + var(--i, 0) * 140ms); }
@keyframes tel-monte { from { opacity: 0; transform: translateY(40px) rotate(-1.5deg); } to { opacity: 1; transform: none; } }

/* ─────────────────────────────────────────────────────────── l'ouverture ── */

.ouverture {
  position: fixed; inset: 0; z-index: 40;
  display: grid; place-items: center; text-align: center;
  background: radial-gradient(120% 90% at 50% 100%, rgba(245, 180, 28, .18), transparent 60%), var(--abysse);
  color: #fff; padding: 24px;
  transition: opacity 600ms var(--ease), visibility 0s linear 600ms;
}
.ouverture[hidden] { display: grid; opacity: 0; visibility: hidden; pointer-events: none; }
.ouverture .boule { width: clamp(64px, 9vw, 110px); aspect-ratio: 1; border-radius: 50%; margin: 0 auto 22px;
  background: radial-gradient(circle at 34% 30%, #fff 0 9%, #E7EBF2 10% 26%, #8A93A6 62%, #1B2233 100%);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .6), inset 0 -8px 18px rgba(0, 0, 0, .35);
  animation: flotte 5s ease-in-out infinite; }
@keyframes flotte { 50% { transform: translateY(-10px); } }
.ouverture .sur { justify-content: center; color: var(--or); }
.ouverture h1 { font-size: clamp(2.6rem, 7vw, 6.5rem); margin: .2em 0 .15em; }
.ouverture h1 em { font-style: normal; color: var(--or); }
.ouverture p { color: #B9C4E4; max-width: 46ch; margin: 0 auto; font-size: clamp(.95rem, 1.1vw, 1.2rem); }
.ouverture .lancer {
  margin: 30px auto 12px; display: inline-flex; align-items: center; gap: 12px;
  min-height: 64px; padding: 0 34px; border: 0; border-radius: 999px;
  background: var(--or); color: var(--nuit); font: 800 clamp(1rem, 1.2vw, 1.25rem)/1 var(--texte);
  box-shadow: 0 18px 44px rgba(245, 180, 28, .35);
  transition: transform 160ms var(--ease), box-shadow 160ms var(--ease);
}
.ouverture .lancer:hover { transform: translateY(-2px); box-shadow: 0 24px 54px rgba(245, 180, 28, .45); }
.ouverture .lancer svg { width: 22px; height: 22px; }
.ouverture .sans { background: none; border: 0; color: #B9C4E4; text-decoration: underline; text-underline-offset: 4px; font-size: .92rem; padding: 10px; }
.ouverture .duree { margin-top: 26px; font: 600 .78rem/1.5 var(--texte); letter-spacing: .12em; text-transform: uppercase; color: #6F7B9E; }

/* ────────────────────────────────────────────────────────── sous-titres ── */

.sous-titres {
  position: fixed; left: 0; right: 0; bottom: var(--barre); z-index: 20;
  padding: 10px clamp(16px, 5vw, 80px) 14px;
  pointer-events: none;
}
.sous-titres[hidden] { display: none; }
.sous-titres p {
  margin: 0 auto; max-width: 62ch; text-align: center;
  font: 600 clamp(1rem, 1.35vw, 1.5rem)/1.35 var(--texte);
  color: #fff; background: rgba(7, 12, 30, .78); border-radius: 14px; padding: .55em .9em;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
  backdrop-filter: blur(10px);
  transition: opacity 240ms var(--ease);
}
.sous-titres p:empty { opacity: 0; }

/* ─────────────────────────────────────────────────────────────── la barre ── */

.barre-lecture {
  position: fixed; left: 0; right: 0; bottom: 0; height: var(--barre); z-index: 30;
  background: rgba(7, 12, 30, .96); color: #fff;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
  padding: 0 clamp(12px, 2vw, 28px);
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.barre-lecture .groupe { display: flex; align-items: center; gap: 6px; }
.barre-lecture button {
  width: 46px; height: 46px; border-radius: 50%; border: 0; background: transparent; color: #fff;
  display: grid; place-items: center; transition: background 140ms linear;
}
.barre-lecture button:hover { background: rgba(255, 255, 255, .1); }
.barre-lecture button:focus-visible { outline: 3px solid var(--or); outline-offset: 2px; }
.barre-lecture button svg { width: 22px; height: 22px; }
.barre-lecture button[aria-pressed="true"] { color: var(--or); }
.barre-lecture .lire { width: 54px; height: 54px; background: var(--or); color: var(--nuit); }
.barre-lecture .lire:hover { background: var(--or-vif); }
.progression { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.progression .segments { display: flex; gap: 4px; height: 6px; }
.progression .segments span { flex: 1; border-radius: 999px; background: rgba(255, 255, 255, .16); overflow: hidden; cursor: pointer; }
.progression .segments span i { display: block; height: 100%; width: 0; background: var(--or); border-radius: inherit; }
.progression .segments span.vu i { width: 100%; }
.progression .legende { display: flex; justify-content: space-between; font: 600 .74rem/1 var(--texte); letter-spacing: .06em; color: #9BA6C8; }
.progression .legende b { color: #fff; font-weight: 700; }
.progression .legende .titre-dia { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ─────────────────────────────────────────────────────────── les chapitres ── */

.chapitres {
  position: fixed; top: 0; right: 0; bottom: var(--barre); z-index: 35; width: min(380px, 90vw);
  background: rgba(7, 12, 30, .97); color: #fff; padding: 22px 18px;
  overflow: auto; transform: translateX(100%); transition: transform 320ms var(--ease);
  border-left: 1px solid rgba(255, 255, 255, .08);
}
.chapitres.ouvert { transform: none; }
.chapitres h2 { font-size: 1.5rem; color: var(--or); margin: 0 0 12px; text-transform: uppercase; }
.chapitres ol { margin: 0; padding: 0; list-style: none; }
.chapitres li button {
  width: 100%; text-align: left; border: 0; background: transparent; color: #fff;
  display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center;
  padding: 10px 8px; border-radius: 10px; font: 600 .95rem/1.25 var(--texte);
}
.chapitres li button:hover { background: rgba(255, 255, 255, .08); }
.chapitres li button[aria-current="true"] { background: rgba(245, 180, 28, .16); color: var(--or-vif); }
.chapitres li button b { font: 900 1.1rem/1 var(--titre); color: var(--or); }
.chapitres li button small { display: block; font-weight: 400; color: #9BA6C8; font-size: .78rem; }

.fin {
  position: fixed; inset: 0 0 var(--barre) 0; z-index: 25; display: grid; place-items: center; text-align: center;
  background: rgba(7, 12, 30, .92); color: #fff; padding: 24px;
  opacity: 0; visibility: hidden; transition: opacity 500ms var(--ease);
}
.fin.visible { opacity: 1; visibility: visible; }
.fin h2 { color: #fff; font-size: clamp(2rem, 5vw, 4.5rem); }
.fin h2 em { font-style: normal; color: var(--or); }
.fin .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.fin .actions a, .fin .actions button { display: inline-flex; align-items: center; min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0; font: 800 1rem/1 var(--texte); text-decoration: none; }
.fin .actions .or { background: var(--or); color: var(--nuit); }
.fin .actions .vide { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .3); }

/* ─────────────────────────────────────────────────────────────── mobile ── */

@media (max-width: 900px) {
  :root { --barre: 68px; --st: 110px; }
  .cote, .g2, .g3, .g4, .niveaux, .gestes, .etapes { grid-template-columns: 1fr 1fr; }
  .cote { align-items: start; }
  .dia .corps { justify-content: flex-start; }
  .tels { flex-wrap: wrap; }
  .barre-lecture .cache-mobile { display: none; }
}
@media (max-width: 600px) {
  .cote, .g2, .g3, .g4, .niveaux, .gestes, .etapes { grid-template-columns: 1fr; }
  .tel.p, .tel.m, .tel.g { width: 30vw; }
  .sous-titres p { font-size: 1rem; }
  .progression .legende .titre-dia { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .dia { transition-duration: 200ms; transform: none; }
  .dia.active > .fond img, .dia.active .tel, .ouverture .boule { animation: none; }
  .dia.active .rev { animation-duration: 200ms; animation-delay: 0s; }
}
