/* Accueil — « le film d'une séance ».
   Générique d'ouverture (la photo des fondateurs, l'affiche), rideau qui se
   lève sur la page, séance racontée au défilement, casting, générique de fin.
   Un seul accent : le violet. Pas de lueurs, pas de verre, pas de chiffres
   animés. Les dégradés sur la photo ne servent qu'à la lisibilité. */

@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/fonts/inter-normal-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/fonts/inter-normal-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --fond: #12101D;
  --fond-2: #181524;
  --carte: #1D1A2A;
  --carte-2: #232034;
  --bord: rgba(236, 232, 244, .09);
  --bord-fort: rgba(236, 232, 244, .16);
  --texte: #F2EFF8;
  --texte-2: #DDD7E8;
  --sous: #ABA4BE;
  --mute: #8F88A6;
  --violet: #A681F2;
  --violet-clair: #BCA0F7;
  --violet-fonce: #8B5FE6;
  --violet-dim: rgba(166, 129, 242, .14);
  --encre: #15131A;
  --H: clamp(640px, 100svh, 1000px);
  --scene-h: calc(var(--H) - 96px);
  --g: clamp(20px, 4vw, 56px);
  --max: 1200px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
/* Défilement doux après la première interaction (voir accueil.js). */
html.lisse { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  background: var(--fond);
  color: var(--texte);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--violet-clair); outline-offset: 3px; border-radius: 4px; }
[id] { scroll-margin-top: 90px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ── Boutons ─────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--violet);
  color: var(--encre);
  font-weight: 600;
  line-height: 1.2;
  transition: background .2s, transform .2s var(--ease);
}
.btn:hover { background: var(--violet-clair); }
.btn:active { transform: scale(.98); }
.btn-grand { padding: 17px 32px; font-size: 17px; }
.btn-grand .fl { transition: transform .25s var(--ease); }
.btn-grand:hover .fl { transform: translateX(4px); }
.btn-contour {
  background: transparent;
  color: var(--texte);
  border: 1px solid var(--bord-fort);
}
.btn-contour:hover { background: rgba(255, 255, 255, .06); border-color: rgba(236, 232, 244, .3); }
.lien {
  font-weight: 600;
  border-bottom: 1px solid rgba(242, 239, 248, .35);
  padding-bottom: 2px;
  transition: border-color .2s;
}
.lien:hover { border-color: var(--texte); }
.lien-violet { color: var(--violet-clair); font-weight: 600; }
.lien-violet:hover { color: var(--texte); }

/* ── Navigation ──────────────────────────────── */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0 var(--g);
  font-size: 15px;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s;
}
.nav.pleine { background: var(--fond); border-color: var(--bord); }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; margin-right: auto; white-space: nowrap; }
.logo img { width: 28px; height: 28px; }
.nav-liens { display: flex; gap: 28px; color: #CFC8DE; }
.nav-liens a:hover, .nav-connexion:hover { color: #fff; }
.nav-connexion { color: #CFC8DE; }
.nav-menu { display: none; width: 44px; height: 44px; margin-right: -10px; place-items: center; }
.nav-menu span, .nav-menu span::before, .nav-menu span::after {
  display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--texte);
  transition: transform .25s var(--ease), background .2s;
}
.nav-menu span { position: relative; }
.nav-menu span::before, .nav-menu span::after { content: ''; position: absolute; left: 0; }
.nav-menu span::before { top: -6px; }
.nav-menu span::after { top: 6px; }
.nav.ouvert .nav-menu span { background: transparent; }
.nav.ouvert .nav-menu span::before { transform: translateY(6px) rotate(45deg); }
.nav.ouvert .nav-menu span::after { transform: translateY(-6px) rotate(-45deg); }

/* ── Générique d'ouverture ───────────────────── */
.hero {
  position: sticky;
  top: 0;
  z-index: 0;
  height: var(--H);
  overflow: hidden;
  isolation: isolate;
}
.scene {
  position: absolute;
  bottom: 0;
  left: 50%;
  z-index: -3;
  height: var(--scene-h);
  width: calc(var(--scene-h) * 1.7919);
  transform: translateX(-50%);
  transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.scene img { width: 100%; height: 100%; object-fit: cover; }
.voile {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(180deg, var(--fond) 0, var(--fond) 90px, rgba(18, 16, 29, 0) 230px),
    linear-gradient(0deg, var(--fond) 0%, rgba(18, 16, 29, .95) 21%, rgba(18, 16, 29, .8) 29%, rgba(18, 16, 29, 0) 46%);
}
.rideau {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--fond);
  opacity: 0;
  pointer-events: none;
}

.hero-haut {
  position: absolute;
  inset: calc(88px + (var(--H) - 680px) * .1) 0 auto;
  text-align: center;
  padding: 0 var(--g);
}
.affiche {
  position: relative;
  height: 40px;
}
.affiche li {
  position: absolute;
  top: 0;
  left: calc(50% + var(--d) * var(--scene-h) * .38);
  transform: translateX(-50%);
  white-space: nowrap;
  text-align: center;
}
.affiche b {
  display: block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  /* Les lettres espacées décalent le centre : on compense la dernière. */
  margin-right: -.22em;
}
.affiche span { display: block; margin-top: 3px; font-size: 13px; font-weight: 500; color: var(--sous); }
.hero-titre {
  margin-top: 18px;
  font-size: min(5.6vw, 8.6vh, 88px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.ligne { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.ligne > span { display: block; }
.hero-titre em { font-style: normal; color: var(--violet); }

.hero-bas {
  position: absolute;
  inset: auto 0 0;
  padding: 0 var(--g) clamp(28px, 5vh, 56px);
  text-align: center;
}
.hero-sous {
  max-width: 640px;
  margin: 0 auto 26px;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.5;
  color: #E2DCEC;
  text-shadow: 0 1px 14px rgba(18, 16, 29, .9);
}
.hero-actions { display: flex; justify-content: center; align-items: center; gap: 14px 30px; flex-wrap: wrap; }
.direct {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 14px;
  color: var(--sous);
}
.direct-heure { display: inline-flex; align-items: center; gap: 9px; color: var(--texte); font-weight: 500; }
.direct-heure::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--violet);
}
.direct.en-cours .direct-heure::before { animation: pouls 2s ease-in-out infinite; }
.direct-sep { width: 1px; height: 14px; background: var(--bord-fort); }
.hero-risque { margin-top: 10px; font-size: 12.5px; color: var(--mute); }

@keyframes pouls { 50% { opacity: .35; } }

@media (prefers-reduced-motion: no-preference) {
  .scene img { animation: photo 2.6s var(--ease) both; }
  .rideau.intro { opacity: 1; animation: lever 1.9s ease-out .05s both; }
  .ligne > span { animation: monte 1.15s var(--ease) .45s both; }
  .ligne + .ligne > span { animation-delay: .6s; }
  .affiche li { animation: apparait 1s ease-out 1.05s both; }
  .affiche li:nth-child(2) { animation-delay: 1.17s; }
  .affiche li:nth-child(3) { animation-delay: 1.29s; }
  .hero-bas-in { animation: apparait 1s ease-out 1.25s both; }
}
@keyframes photo { from { transform: scale(1.12); } }
@keyframes lever { to { opacity: 0; } }
@keyframes monte { from { transform: translateY(108%); } }
@keyframes apparait { from { opacity: 0; transform: translateY(10px); } }
.affiche li { --d: 0; }
.affiche li:nth-child(1) { --d: -1; }
.affiche li:nth-child(3) { --d: 1; }

/* ── La feuille qui monte sur le générique ───── */
.feuille {
  position: relative;
  z-index: 2;
  background: var(--fond);
  border-top: 1px solid var(--bord-fort);
  border-radius: 32px 32px 0 0;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(96px, 11vw, 160px) var(--g) 0;
}
.section:first-child { padding-top: clamp(80px, 9vw, 128px); }
.surtitre {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--violet-clair);
}
.h2 {
  margin-top: 14px;
  max-width: 820px;
  font-size: clamp(36px, 4.6vw, 64px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.042em;
  text-wrap: balance;
}
.h2 em { font-style: normal; color: var(--violet); }
.intro {
  margin-top: 20px;
  max-width: 620px;
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.55;
  color: var(--sous);
}

/* Apparition au défilement (le script ajoute .js sur <html>). */
.js .rv { opacity: 0; transform: translateY(28px); transition: opacity .9s ease-out, transform 1s var(--ease); }
.js .rv.vu { opacity: 1; transform: none; }
.js .rv.d1 { transition-delay: .08s; }
.js .rv.d2 { transition-delay: .16s; }
.js .rv.d3 { transition-delay: .24s; }

/* ── La séance, racontée au défilement ───────── */
.st {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(40px, 6vw, 96px);
  margin-top: 40px;
}
.st-etapes { position: relative; padding-left: 40px; }
.st-rail { position: absolute; left: 6px; top: 12vh; bottom: 12vh; width: 1px; background: var(--bord-fort); }
.st-rail i { position: absolute; inset: 0 0 auto; height: 0; background: var(--violet); }
.st-etape {
  position: relative;
  min-height: 76vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: .3;
  transition: opacity .5s;
}
.st-etape.actif { opacity: 1; }
.st-quand { position: relative; font-size: 14px; font-weight: 600; color: var(--violet-clair); }
.st-quand::before {
  content: '';
  position: absolute;
  left: -40px;
  top: 50%;
  width: 13px; height: 13px;
  margin-top: -6.5px;
  border-radius: 50%;
  background: var(--fond);
  border: 2px solid var(--violet);
  transition: background .3s;
}
.st-etape.actif .st-quand::before { background: var(--violet); }
.st-etape h3 {
  margin-top: 10px;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.035em;
}
.st-etape p { margin-top: 14px; max-width: 440px; font-size: 17px; line-height: 1.6; color: var(--sous); }
.st-etape p strong { color: var(--texte); font-weight: 600; }

.st-scene-fixe {
  position: sticky;
  top: max(88px, calc(50vh - 300px));
  height: 600px;
}
.st-scene {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(28px) scale(.98);
  transition: opacity .55s ease-out, transform .8s var(--ease), visibility 0s linear .55s;
}
.st-scene.actif { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.st-scene-mobile { display: none; }

/* Fenêtre de discussion (illustration, pas une capture) */
.chat {
  width: 100%;
  background: #16141F;
  border: 1px solid var(--bord-fort);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8);
}
.chat-tete {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--bord);
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
}
.chat-tete > b { color: var(--mute); font-weight: 400; font-size: 19px; line-height: 1; }
.chat-tete small {
  margin-left: auto;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--bord-fort);
  font-size: 12px;
  font-weight: 500;
  color: var(--sous);
}
.chat-fil { display: grid; gap: 18px; padding: 18px 18px 20px; }
.msg { display: grid; grid-template-columns: 38px 1fr; gap: 12px; min-width: 0; }
.msg-av {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--violet-dim);
  display: grid;
  place-items: center;
}
.msg-av img { width: 22px; height: 22px; }
.msg-av.toi { background: #2A2638; font-size: 13px; font-weight: 700; color: var(--sous); }
.msg-corps { min-width: 0; }
.msg-qui { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; font-size: 14.5px; font-weight: 600; color: var(--violet-clair); }
.msg-qui.toi { color: var(--texte); }
.badge {
  position: relative;
  top: -1px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--violet-dim);
  color: var(--violet-clair);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
}
.msg-h { font-size: 12px; font-weight: 500; color: var(--mute); }
.msg-txt { margin-top: 3px; font-size: 14.5px; line-height: 1.5; color: var(--texte-2); }
.msg-cite { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; font-size: 12.5px; color: var(--mute); }
.msg-cite::before { content: ''; width: 18px; height: 9px; border: 1.5px solid #3A3548; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; margin-left: -28px; margin-top: 6px; }
.embed {
  margin-top: 10px;
  padding: 12px 14px 14px;
  border-radius: 10px;
  background: #1B1926;
  border-left: 3px solid var(--violet);
}
.embed-titre { font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.embed svg { width: 100%; height: auto; border-radius: 6px; background: #16141B; }
.embed .mg-txt { font-size: 14px; }
.points { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; margin-top: 12px; }
.points dt { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.points dd { margin-top: 2px; font-size: 14px; font-weight: 500; line-height: 1.35; }

.trade { display: grid; grid-template-columns: 1.25fr 1fr; gap: 12px; margin-top: 10px; }
.trade-graph { border-radius: 10px; background: #16141B; border: 1px solid var(--bord); padding: 8px; display: grid; align-items: center; }
.trade-graph svg { width: 100%; height: auto; }
.trade-graph .mg-txt { font-size: 12px; }
.ticket { border-radius: 10px; background: #1B1926; border: 1px solid var(--bord); padding: 14px; display: grid; gap: 9px; align-content: start; }
.ticket dl { display: grid; gap: 9px; }
.ticket-statut { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--violet-clair); }
.ticket-statut::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--violet); }
.ticket-ligne { display: flex; justify-content: space-between; gap: 10px; padding-top: 9px; border-top: 1px solid var(--bord); font-size: 13px; }
.ticket-ligne dt { color: var(--mute); }
.ticket-ligne dd { font-weight: 600; text-align: right; }

.vignette { width: 230px; margin-top: 8px; padding: 8px; border-radius: 8px; background: #16141B; border: 1px solid var(--bord); }
.vignette svg { width: 100%; height: auto; }
.verdict { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.verdict span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  border: 1px solid var(--bord-fort);
  color: var(--sous);
}
.verdict .garder { border-color: rgba(166, 129, 242, .45); color: var(--violet-clair); }

.ecran-corps { position: relative; padding: 10px; background: #16141B; }
.ecran-corps svg { width: 100%; height: auto; }
.cam {
  position: absolute;
  top: 16px; right: 16px;
  width: 24%;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--bord-fort);
  background: #1E1A28;
}
.cam img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; }
.cam span {
  position: absolute;
  left: 6px; bottom: 6px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(18, 16, 29, .85);
  font-size: 10px;
  font-weight: 600;
}
.live-pied { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px 16px; border-top: 1px solid var(--bord); }
.live-question { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 13.5px; color: var(--texte-2); }
.live-question .msg-av { width: 28px; height: 28px; font-size: 11px; flex: none; }
.live-question b { font-weight: 600; margin-right: 4px; }
.concepts { display: flex; gap: 6px; flex: none; }
.concepts span { padding: 4px 9px; border-radius: 999px; background: rgba(255, 255, 255, .05); font-size: 12px; color: var(--sous); }
.point-direct { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--violet); margin-right: 2px; }

/* Graphiques SVG */
.mg-grille { stroke: #221F29; stroke-width: 1; }
.mg-niv { stroke: #6E687E; stroke-width: 1; stroke-dasharray: 4 5; }
.mg-txt { font: 600 10px 'Inter', sans-serif; letter-spacing: .06em; fill: #8A8399; }
.mg-fvg { fill: rgba(166, 129, 242, .14); stroke: rgba(166, 129, 242, .5); stroke-width: 1; }
.mg-inval { stroke: #6E687E; stroke-width: 1; stroke-dasharray: 2 4; }
.mg-h line { stroke: #CFC9DD; stroke-width: 1.2; } .mg-h rect { fill: #CFC9DD; }
.mg-b line { stroke: #5F596E; stroke-width: 1.2; } .mg-b rect { fill: #5F596E; }
.mg-rond { fill: none; stroke: var(--violet); stroke-width: 1.5; }
.mg-entree { fill: var(--violet); }
.mg-maint { stroke: #4A4556; stroke-width: 1; stroke-dasharray: 2 3; }
.mg-scenario { fill: none; stroke: var(--violet); stroke-width: 1.6; stroke-dasharray: 5 5; stroke-linejoin: round; }
.mg-fleche { fill: none; stroke: var(--violet); stroke-width: 1.6; stroke-linecap: round; }
.mg-acc { fill: var(--violet-clair); }
.mg-bulle { fill: var(--violet); }
.mg-bulle-t { font: 700 10px 'Inter', sans-serif; letter-spacing: .06em; fill: var(--encre); }
.mt-gain { fill: rgba(166, 129, 242, .10); }
.mt-risque { fill: rgba(255, 255, 255, .05); }
.mt-l-acc { stroke: var(--violet); stroke-width: 1.5; }
.mt-l { stroke: #CFC9DD; stroke-width: 1.2; }
.mt-l-mut { stroke: #6E687E; stroke-width: 1.2; stroke-dasharray: 3 4; }
.mt-l-acc-t { fill: var(--violet-clair); }
.mt-l-t { fill: #CFC9DD; }
.mt-l-mut-t { fill: var(--mute); }

.st-note { margin-top: 28px; font-size: 13px; color: var(--mute); }

/* ── Méthode ─────────────────────────────────── */
.frise {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 64px;
  padding-top: 40px;
}
.frise::before { content: ''; position: absolute; top: 6px; left: 0; right: 0; border-top: 1px solid var(--bord-fort); }
.frise li { position: relative; }
.frise li::before {
  content: '';
  position: absolute;
  top: -40px; left: 0;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--fond);
  border: 2px solid var(--violet);
}
.frise li:first-child::before { background: var(--violet); }
.frise-num { font-size: 14px; font-weight: 600; color: var(--violet-clair); font-variant-numeric: tabular-nums; }
.frise h3 { margin-top: 8px; font-size: 22px; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; }
.frise p { margin-top: 10px; font-size: 15.5px; color: var(--sous); }

.checklist {
  margin-top: 72px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px 36px;
  padding: 32px 36px;
  border-radius: 24px;
  background: var(--carte);
  border: 1px solid var(--bord);
}
.checklist-ico {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--violet-dim);
  color: var(--violet-clair);
}
.ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.checklist h3 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.checklist p { margin-top: 6px; font-size: 15.5px; color: var(--sous); max-width: 560px; }
.checklist-actions { display: grid; justify-items: end; gap: 12px; }
.checklist-liens { font-size: 14px; color: var(--mute); }
.checklist-liens a { color: var(--sous); border-bottom: 1px solid var(--bord-fort); }
.checklist-liens a:hover { color: var(--texte); }

/* ── Casting ─────────────────────────────────── */
.casting { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 64px; }
.fondateur {
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  overflow: hidden;
  background: var(--carte);
  border: 1px solid var(--bord);
}
.fondateur figure { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #1E1A28; }
.fondateur figure img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; transition: transform 1.2s var(--ease); }
.fondateur:hover figure img { transform: scale(1.04); }
.fondateur figure::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 30%;
  background: linear-gradient(0deg, var(--carte), rgba(29, 26, 42, 0));
}
.fondateur-num {
  position: absolute;
  top: 16px; left: 18px;
  z-index: 1;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--texte);
}
.fondateur-corps { display: flex; flex-direction: column; flex: 1; padding: 0 28px 28px; margin-top: -30px; position: relative; z-index: 1; }
.fondateur h3 { font-size: clamp(36px, 3.4vw, 48px); font-weight: 700; line-height: 1; letter-spacing: -.045em; }
.fondateur h3 i { font-style: normal; color: var(--violet); }
.fondateur-poste { margin-top: 8px; font-size: 15px; font-weight: 600; color: var(--violet-clair); }
.fondateur-texte { margin-top: 14px; font-size: 15.5px; color: var(--sous); }
.equipe-suite { display: inline-block; margin-top: 32px; }

/* ── Pour qui ────────────────────────────────── */
.pourqui { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 56px; }
.panneau { padding: clamp(28px, 3.4vw, 44px); border-radius: 24px; border: 1px solid var(--bord); }
.panneau-oui { background: var(--carte); border-color: rgba(166, 129, 242, .32); }
.panneau h3 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.panneau ul { margin-top: 22px; display: grid; gap: 16px; }
.panneau li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; font-size: 16.5px; line-height: 1.5; color: var(--texte-2); }
.panneau-non li { color: var(--sous); }
.puce { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; margin-top: 1px; }
.puce svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.panneau-oui .puce { background: var(--violet); color: var(--encre); }
.panneau-non .puce { background: rgba(255, 255, 255, .07); color: var(--mute); }

/* ── Offre ───────────────────────────────────── */
.offre {
  margin-top: 56px;
  border-radius: 28px;
  overflow: hidden;
  background: var(--carte);
  border: 1px solid rgba(166, 129, 242, .32);
}
.offre-corps {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 40px clamp(40px, 5vw, 80px);
  padding: clamp(32px, 4vw, 52px);
}
.offre-nom { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.offre-tag { padding: 4px 11px; border-radius: 999px; border: 1px solid var(--bord-fort); font-size: 12.5px; font-weight: 600; letter-spacing: 0; color: var(--sous); }
.prix { margin-top: 22px; font-size: clamp(72px, 8vw, 112px); font-weight: 700; line-height: .9; letter-spacing: -.06em; }
.prix-sous { margin-top: 12px; font-size: 16px; color: var(--sous); }
.offre-cta { margin-top: 28px; }
.offre-note { margin-top: 16px; display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--mute); }
.offre-note svg { width: 15px; height: 15px; flex: none; }
.atouts { display: grid; gap: 14px; }
.atouts li { display: grid; grid-template-columns: 24px 1fr; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--bord); font-size: 15.5px; line-height: 1.5; color: var(--sous); }
.atouts li:last-child { border-bottom: 0; padding-bottom: 0; }
.atouts strong { color: var(--texte); font-weight: 600; }
.atouts .puce { background: var(--violet); color: var(--encre); }

.rassurance { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.rassurance li { padding-top: 20px; border-top: 1px solid var(--bord-fort); }
.rassurance h4 { font-size: 16.5px; font-weight: 700; }
.rassurance p { margin-top: 6px; font-size: 15px; color: var(--sous); }

.risque { margin: 40px auto 0; max-width: 640px; text-align: center; font-size: 13px; color: var(--mute); }

/* ── Programme ───────────────────────────────── */
.modules { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; margin-top: 56px; }
.module { padding: 28px 0 32px; border-top: 1px solid var(--bord-fort); }
.module-tete { display: flex; align-items: baseline; gap: 16px; }
.module-num { font-size: 15px; font-weight: 600; color: var(--violet-clair); font-variant-numeric: tabular-nums; }
.module h3 { font-size: 23px; font-weight: 700; letter-spacing: -.025em; }
.module-nb { margin-left: auto; font-size: 13px; color: var(--mute); white-space: nowrap; }
.module-notions { margin-top: 12px; padding-left: 36px; font-size: 15px; line-height: 1.75; color: var(--sous); }
.programme-suite { margin-top: 14px; max-width: 640px; font-size: 15.5px; color: var(--sous); }

/* ── FAQ ─────────────────────────────────────── */
.faq-grille { display: grid; grid-template-columns: 4fr 7fr; gap: 40px clamp(40px, 6vw, 96px); }
.faq-grille .h2 { font-size: clamp(36px, 4vw, 54px); }
.faq-tout { display: inline-block; margin-top: 28px; }
.faq-liste { border-bottom: 1px solid var(--bord-fort); }
.faq-liste details { border-top: 1px solid var(--bord-fort); }
.faq-liste summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  font-size: 18.5px;
  font-weight: 600;
  letter-spacing: -.01em;
  cursor: pointer;
  list-style: none;
}
.faq-liste summary::-webkit-details-marker { display: none; }
.faq-liste summary:hover { color: #fff; }
.plus { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--bord-fort); transition: transform .3s var(--ease), background .2s; }
.plus::before, .plus::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -.75px 0 0 -6px; background: currentColor; border-radius: 1px; }
.plus::after { transform: rotate(90deg); }
details[open] .plus { transform: rotate(45deg); background: var(--violet); color: var(--encre); border-color: var(--violet); }
.faq-liste details p { padding: 0 56px 26px 0; font-size: 16px; line-height: 1.65; color: var(--sous); }

/* ── Générique de fin ────────────────────────── */
.fin {
  position: relative;
  margin-top: clamp(110px, 12vw, 170px);
  height: clamp(640px, 100vh, 960px);
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}
.fin-scene {
  position: absolute;
  bottom: 0;
  left: 50%;
  z-index: -2;
  height: 64%;
  aspect-ratio: 1679 / 937;
  transform: translateX(-50%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.fin-scene img { width: 100%; height: 100%; object-fit: cover; }
.fin::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, var(--fond) 0%, var(--fond) 22%, rgba(18, 16, 29, .3) 50%, rgba(18, 16, 29, .55) 100%),
    linear-gradient(0deg, var(--fond) 0%, rgba(18, 16, 29, 0) 30%);
}
.fin-contenu { position: relative; padding: clamp(40px, 7vh, 80px) var(--g) 0; }
.fin-quand { font-size: 15px; font-weight: 600; color: var(--violet-clair); }
.fin h2 {
  margin: 16px auto 0;
  max-width: 900px;
  font-size: clamp(42px, 6vw, 88px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.05em;
  text-wrap: balance;
}
.fin-sous { margin-top: 20px; font-size: clamp(17px, 1.5vw, 20px); color: var(--texte-2); }
.fin-actions { margin-top: 32px; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 14px 28px; }

/* ── Pied de page ────────────────────────────── */
.pied { max-width: var(--max); margin: 0 auto; padding: 56px var(--g) 40px; border-top: 1px solid var(--bord); }
.pied-haut { display: grid; grid-template-columns: 1.2fr 2fr; gap: 40px; }
.pied-marque p { margin-top: 12px; font-size: 15px; color: var(--sous); }
.pied-liens { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.pied-liens h4 { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.pied-liens ul { margin-top: 14px; display: grid; gap: 10px; font-size: 15px; color: var(--texte-2); }
.pied-liens a:hover { color: #fff; }
.pied-legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--bord); font-size: 13px; color: var(--mute); line-height: 1.7; }
.pied-liens-court { grid-template-columns: repeat(3, auto); justify-content: end; gap: 32px 64px; }

/* ── En construction (build.py, TEASER) ──────── */
.chantier { padding-bottom: clamp(88px, 10vw, 140px); }
.chantier-actions { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }

/* ── Barre d'inscription, mobile ─────────────── */
.barre-mobile {
  position: fixed;
  left: 12px; right: 12px;
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 10px 10px 18px;
  border-radius: 18px;
  background: #221E31;
  border: 1px solid var(--bord-fort);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .5);
  transform: translateY(140%);
  transition: transform .4s var(--ease);
}
.barre-mobile.visible { transform: none; }
.barre-mobile strong { display: block; font-size: 15px; }
.barre-mobile span { display: block; font-size: 13px; color: var(--sous); }
.barre-mobile .btn { padding: 12px 18px; }

/* ── Écrans moyens ───────────────────────────── */
@media (max-width: 1100px) {
  .nav-liens { gap: 22px; }
  .frise { grid-template-columns: 1fr 1fr; row-gap: 56px; }
  .frise::before { display: none; }
  .frise li { padding-top: 28px; }
  .frise li::before { top: 0; }
  .checklist { grid-template-columns: auto 1fr; }
  .checklist-actions { grid-column: 1 / -1; justify-items: start; grid-auto-flow: column; align-items: center; gap: 24px; }
  .live-pied { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 960px) {
  .nav-liens, .nav-connexion { display: none; }
  .nav-menu { display: grid; }
  .nav.ouvert { background: var(--fond); border-color: var(--bord); }
  .nav.ouvert .nav-liens {
    display: grid;
    position: absolute;
    top: 72px; left: 0; right: 0;
    padding: 8px var(--g) 24px;
    gap: 0;
    background: var(--fond);
    border-bottom: 1px solid var(--bord);
    font-size: 18px;
  }
  .nav.ouvert .nav-liens a { padding: 14px 0; border-bottom: 1px solid var(--bord); }
  .nav-liens .nav-connexion-m { display: block; }
  .casting { grid-template-columns: 1fr; max-width: 560px; }
  .fondateur { display: grid; grid-template-columns: 200px 1fr; }
  .fondateur figure { aspect-ratio: auto; height: 100%; min-height: 260px; }
  .fondateur figure::after { display: none; }
  .fondateur-corps { margin-top: 0; padding: 24px; }
  .offre-corps { grid-template-columns: 1fr; }
  .modules { grid-template-columns: 1fr; }
  .faq-grille { grid-template-columns: 1fr; }
  .pied-haut { grid-template-columns: 1fr; }
  .pied-liens-court { justify-content: start; }
}
.nav-connexion-m { display: none; }

/* ── Mobile ──────────────────────────────────── */
@media (max-width: 760px) {
  .nav { gap: 12px; height: 64px; }
  .nav.ouvert .nav-liens { top: 64px; }
  .nav > .btn { padding: 10px 16px; font-size: 14px; }
  .logo span { display: none; }

  .hero {
    position: relative;
    height: auto;
    display: flex;
    flex-direction: column;
    padding-top: 92px;
  }
  .hero-haut { position: relative; inset: auto; z-index: 1; order: 1; display: flex; flex-direction: column; }
  .hero-titre { order: 1; margin-top: 0; font-size: clamp(36px, 10.4vw, 60px); }
  .affiche { order: 2; margin: 26px calc(var(--g) * -1) 0; height: 38px; }
  .affiche li { left: calc(50% + var(--d) * 29.7vw); }
  .affiche b { font-size: 12px; letter-spacing: .18em; margin-right: -.18em; }
  .affiche span { font-size: 11.5px; }
  .scene {
    order: 2;
    position: relative;
    left: auto;
    bottom: auto;
    width: 140vw;
    height: auto;
    aspect-ratio: 1679 / 937;
    margin: -15vw 0 0 -20vw;
    transform: none;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent), linear-gradient(180deg, transparent 12%, #000 30%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent), linear-gradient(180deg, transparent 12%, #000 30%);
    mask-composite: intersect;
  }
  .voile { display: none; }
  .rideau { display: none; }
  .hero-bas {
    position: relative;
    order: 3;
    margin-top: -18vw;
    padding-top: 22vw;
    background: linear-gradient(0deg, var(--fond) 62%, rgba(18, 16, 29, 0));
  }
  .hero-sous { font-size: 17px; }
  .hero-actions { flex-direction: column; gap: 18px; }
  .hero-actions .btn { width: 100%; }
  .direct-sep { display: none; }
  .direct { flex-direction: column; gap: 4px; }

  .feuille { border-radius: 24px 24px 0 0; }
  .st { grid-template-columns: 1fr; margin-top: 24px; }
  .st-scene-fixe { display: none; }
  .st-etapes { padding-left: 32px; }
  .st-rail { top: 0; bottom: 0; left: 6px; }
  .st-quand::before { left: -32px; }
  .st-etape { min-height: 0; opacity: 1; padding: 40px 0 8px; }
  .st-scene-mobile { display: block; margin-top: 24px; }
  .st-etape p { font-size: 16px; }
  .points { grid-template-columns: 1fr 1fr; }
  .trade { grid-template-columns: 1fr; }
  .chat-tete small { display: none; }
  .chat-fil { padding: 14px; }
  .msg { grid-template-columns: 32px 1fr; gap: 10px; }
  .msg-av { width: 32px; height: 32px; }
  .msg-cite::before { margin-left: -24px; }
  .msg-corps .embed, .msg-corps .trade { margin-left: -42px; }
  .embed .mg-txt { font-size: 20px; }
  .trade-graph .mg-txt { font-size: 13px; }
  .vignette { width: 100%; max-width: 230px; }
  .concepts { flex-wrap: wrap; }

  .frise { grid-template-columns: 1fr; }
  .checklist { grid-template-columns: 1fr; padding: 26px; }
  .checklist-actions { grid-auto-flow: row; }
  .fondateur { grid-template-columns: 1fr; }
  .fondateur figure { aspect-ratio: 4 / 4.2; height: auto; min-height: 0; }
  .fondateur figure::after { display: block; }
  .fondateur-corps { margin-top: -30px; padding: 0 22px 24px; }
  .pourqui { grid-template-columns: 1fr; }
  .offre-cta { width: 100%; }
  .rassurance { grid-template-columns: 1fr; gap: 0; }
  .rassurance li { padding: 18px 0; }
  .module-notions { padding-left: 0; }
  .faq-liste summary { font-size: 17px; padding: 20px 0; }
  .faq-liste details p { padding-right: 0; }
  .fin { height: auto; padding-bottom: 62vw; }
  .fin-scene { height: auto; width: 150vw; }
  .fin-actions { flex-direction: column; }
  .fin-actions .btn { width: 100%; }
  .pied-liens { grid-template-columns: 1fr 1fr; }
  .pied-liens-court { grid-template-columns: 1fr; justify-content: stretch; gap: 28px; }
  .barre-mobile { display: flex; }
  body { padding-bottom: 84px; }
  body.accueil-chantier { padding-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html.lisse { scroll-behavior: auto; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .st-scene { transition: none; transform: none; }
  .st-etape { transition: none; }
  .direct.en-cours .direct-heure::before { animation: none; }
}
