/* ==========================================================================
   Flambée — le site public
   Prolonge les tokens de style.css : même identité, échelle plus ample.
   ========================================================================== */

body.site { padding: 0; }

/* --------------------------------------------------------------- En-tête --- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 18px 36px;
  border-bottom: 1px solid var(--hairline);
  background: rgba(8, 9, 12, .72);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
}
.site-header .brand {
  font-family: var(--serif); font-size: 26px; color: var(--text);
  text-decoration: none; display: flex; align-items: center; gap: 9px;
}
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a {
  color: var(--text-soft); text-decoration: none;
  font-size: 14.5px; font-weight: 500;
  transition: color .2s;
}
.site-nav a:hover { color: var(--text); }
.site-nav a.courant { color: var(--ember-2); }
/* `.site-nav a` est plus spécifique que `.primary` : sans cette règle, le
   bouton hérite du gris de la navigation et devient illisible sur l'orange. */
.site-nav a.button.primary { color: #180d05; }
.site-nav a.button.ghost { color: var(--text); }
.button.petit { padding: 10px 20px; font-size: 13.5px; }
.button.grand { padding: 16px 32px; font-size: 15.5px; }

.menu-bouton {
  display: none; background: none; border: none; padding: 10px;
  flex-direction: column; gap: 5px; cursor: pointer;
}
.menu-bouton span {
  display: block; width: 22px; height: 2px; border-radius: 2px;
  background: var(--text); transition: transform .3s, opacity .2s;
}
.menu-bouton[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-bouton[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ------------------------------------------------------------------ Hero --- */
.hero {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr;
  align-items: center; gap: 60px;
  max-width: 1180px; margin: 0 auto; padding: 90px 36px 70px;
}
/* Un voile sous la colonne de texte. Le fond animé est beau, mais un titre se
   lit sur un appui, pas sur des volutes : le voile est dense à gauche, là où
   se trouve la copie, et s'efface vers le visuel pour ne pas l'éteindre. */
.hero::before {
  /* Débord vertical seulement : 60 px de chaque côté élargissaient la
     page de 60 px, et le dégradé s'estompe déjà de lui-même. */
  content: ""; position: absolute; inset: -40px 0; pointer-events: none;
  background: radial-gradient(112% 96% at 6% 50%,
              rgba(8, 9, 12, .92) 0%, rgba(8, 9, 12, .78) 30%,
              rgba(8, 9, 12, .34) 58%, transparent 78%);
}
.hero > * { position: relative; }
.hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(46px, 6.4vw, 82px); line-height: 1.02;
  letter-spacing: -.025em; margin: 0 0 24px;
}
.hero h1 em { font-style: italic; color: var(--gold); }
.hero-accroche {
  font-size: 18px; line-height: 1.65; color: var(--text-soft);
  max-width: 46ch; margin: 0 0 34px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin: 20px 0 0; font-size: 13px; color: var(--text-faint); }

/* Le téléphone : un cadre sobre, la vidéo respire dedans. */
.hero-visuel { display: flex; justify-content: center; }
.scene { position: relative; }

/* Deux étiquettes flottantes : elles disent ce que fait l'outil, sans texte
   supplémentaire dans la colonne de gauche. */
.jeton {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 9px;
  padding: 10px 15px; border-radius: 999px;
  border: 1px solid var(--hairline-2);
  background: rgba(14, 16, 22, .88);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 14px 34px -18px rgba(0, 0, 0, .95);
  font-size: 12.5px; font-weight: 500; color: var(--text);
  white-space: nowrap;
  animation: jeton-flotte 6s ease-in-out infinite;
}
.jeton-point {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ember); box-shadow: 0 0 10px var(--ember);
}
/* Le jeton du bas désigne les sous-titres : il se place sous eux, dans la
   bande vide du cadre. Le sortir entièrement du téléphone élargissait la page
   — débordement horizontal constaté de 1000 à 1280 px, et sur mobile. */
.jeton-haut { top: 58px; left: -86px; }
.jeton-bas { bottom: 26px; right: -104px; animation-delay: -3s; }
@keyframes jeton-flotte {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
.telephone {
  position: relative; width: 272px; padding: 11px;
  border-radius: 40px;
  background: linear-gradient(160deg, #2a2d36, #101116 55%, #24262e);
  box-shadow: 0 44px 90px -34px rgba(0, 0, 0, .95),
              0 0 0 1px rgba(255, 255, 255, .07),
              0 0 90px -30px rgba(255, 122, 47, .45);
  animation: flotte 7s ease-in-out infinite;
}
@keyframes flotte {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-11px); }
}
.telephone video {
  display: block; width: 100%; aspect-ratio: 9 / 16;
  border-radius: 30px; background: #0b0c10; object-fit: cover;
}
.telephone-reflet {
  position: absolute; inset: 11px; border-radius: 30px; pointer-events: none;
  background: linear-gradient(145deg, rgba(255, 255, 255, .12), transparent 42%);
}

/* ------------------------------------------------------------- Sections --- */
.bande {
  border-block: 1px solid var(--hairline);
  background: rgba(255, 255, 255, .015);
  padding: 40px 36px; text-align: center;
}
.bande p {
  font-family: var(--serif); font-size: clamp(21px, 3vw, 30px);
  font-style: italic; color: var(--text-soft); margin: 0;
}

.section {
  position: relative; z-index: 1;
  max-width: 1120px; margin: 0 auto; padding: 92px 36px;
}
.section-premiere { padding-top: 72px; }
.section.etroit { max-width: 700px; }
.section h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(38px, 5.4vw, 62px); line-height: 1.06;
  letter-spacing: -.02em; margin: 0 0 20px;
}
.section h1 em, .section h2 em, .appel h2 em { font-style: italic; color: var(--gold); }
.section h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(31px, 4.2vw, 46px); line-height: 1.1;
  letter-spacing: -.02em; margin: 0 0 18px;
}
.section-accroche {
  font-size: 17px; color: var(--text-soft); max-width: 62ch;
  margin: 0 0 44px; line-height: 1.65;
}

/* ------------------------------------------------- Le test de l'accroche --- */
/* Trois manches, deux boutons chacune. Tant qu'on n'a pas répondu, la note et
   la raison restent repliées : sans cela le test se lit à l'avance et il n'y a
   plus rien à jouer. Le repli se fait par `grid-template-rows: 0fr → 1fr`,
   qui s'anime, là où `height: auto` ne s'anime pas. */
.duel-manches {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 26px;
}
.duel-manche { counter-increment: manche; }
.duel-sujet {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 12px; font-size: 14px; color: var(--text-soft);
}
.duel-sujet span {
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--hairline-2); background: var(--surface);
  font-size: 10.5px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-faint);
}
.duel-paire { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.duel-choix {
  /* Un bouton centre son contenu verticalement : dans une paire dont une
     carte est plus haute que l'autre, les deux phrases ne s'alignent plus.
     En colonne, elles repartent du haut. */
  position: relative; display: flex; flex-direction: column;
  align-items: stretch; justify-content: flex-start;
  width: 100%; text-align: left;
  padding: 22px 22px 20px; border-radius: 18px;
  border: 1px solid var(--hairline); background: var(--surface);
  color: var(--text); font: inherit; cursor: pointer;
  transition: border-color .25s, background .25s, transform .25s;
}
.duel-choix:hover { border-color: var(--hairline-2); background: var(--surface-2); }
.duel-choix:active { transform: scale(.994); }
.duel-texte {
  display: block; font-family: var(--serif); font-size: 20px;
  line-height: 1.35; letter-spacing: -.01em;
}
.duel-texte::before { content: "\00ab\00a0"; color: var(--text-faint); }
.duel-texte::after { content: "\00a0\00bb"; color: var(--text-faint); }

/* Le badge ne dit son verdict qu'une fois la manche jouée. */
.duel-badge {
  position: absolute; top: -10px; right: 18px;
  padding: 4px 11px; border-radius: 999px;
  font-size: 10px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--surface-2); color: var(--text-faint);
  border: 1px solid var(--hairline-2);
  opacity: 0; transform: translateY(4px);
  transition: opacity .3s .15s, transform .3s .15s;
}
.duel-manche.jouee .duel-badge { opacity: 1; transform: none; }
.duel-manche.jouee .gagnante .duel-badge {
  background: linear-gradient(135deg, var(--ember-2), var(--ember));
  border-color: transparent; color: #170d05;
}
.duel-manche.jouee .gagnante {
  border-color: rgba(255, 155, 74, .45);
  background: linear-gradient(165deg, rgba(255, 122, 47, .10), var(--surface));
}
/* Ce qu'on a choisi reste visible, même quand c'était la mauvaise. */
.duel-manche.jouee .choisi::after {
  content: "Ton choix"; position: absolute; left: 22px; bottom: -9px;
  padding: 3px 10px; border-radius: 999px;
  background: #0f1014; border: 1px solid var(--hairline-2);
  font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-soft);
}

/* Le repli : `max-height` s'anime, `height: auto` non. La valeur haute est
   volontairement généreuse — elle borne l'animation, pas le contenu. */
.duel-verdict {
  display: grid; grid-template-columns: 1fr auto;
  column-gap: 12px; align-items: center;
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .45s cubic-bezier(.16, 1, .3, 1),
              opacity .3s, margin-top .45s cubic-bezier(.16, 1, .3, 1);
}
.duel-manche.jouee .duel-verdict {
  max-height: 240px; opacity: 1; margin-top: 16px;
}
.duel-jauge {
  height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .12);
  position: relative;
}
.duel-jauge i {
  position: absolute; inset: 0 auto 0 0; border-radius: 2px;
  width: calc(var(--part) * 100%);
  background: linear-gradient(90deg, var(--ember-2), var(--ember));
  transform: scaleX(0); transform-origin: left;
  transition: transform .7s .1s cubic-bezier(.16, 1, .3, 1);
}
.duel-manche.jouee .duel-jauge i { transform: scaleX(1); }
.duel-verdict b {
  font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums;
  color: var(--ember-2);
}
.duel-verdict em {
  grid-column: 1 / -1; margin-top: 10px;
  font-style: normal; font-size: 14px; line-height: 1.55;
  color: var(--text-soft);
}

.duel-bilan {
  margin: 30px 0 0; min-height: 26px;
  font-size: 16px; color: var(--text-soft);
}
.duel-bilan b { color: var(--gold); font-weight: 600; }
.duel-bilan a { color: var(--ember-2); }
.duel-final { margin: 18px 0 0; }
.duel-final[hidden] { display: none; }

@media (max-width: 760px) {
  .duel-paire { grid-template-columns: 1fr; gap: 12px; }
  .duel-texte { font-size: 18px; }
  .duel-choix { padding: 20px 18px 18px; }
  .duel-manche.jouee .choisi::after { left: 18px; }
}

/* Sans mouvement : les replis s'ouvrent sec, rien ne glisse. */
@media (prefers-reduced-motion: reduce) {
  .duel-choix, .duel-verdict, .duel-jauge i, .duel-badge { transition: none; }
}

/* --------------------------------------------------------------- Étapes --- */
.etapes {
  list-style: none; padding: 0; margin: 46px 0 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 30px;
}
.etapes li { position: relative; padding-top: 26px; border-top: 1px solid var(--hairline); }
.etape-numero {
  font-family: var(--serif); font-size: 15px; color: var(--ember);
  letter-spacing: .1em;
}
.etapes h3 { font-size: 17px; font-weight: 600; margin: 12px 0 8px; }
.etapes p { font-size: 14.5px; color: var(--text-soft); margin: 0; line-height: 1.6; }

/* --------------------------------------------------------------- Atouts --- */
.atouts-grille {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(288px, 1fr));
  gap: 22px; margin-top: 46px;
}
.atout {
  padding: 30px;
  border: 1px solid var(--hairline); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.012));
  transition: transform .3s cubic-bezier(.16,1,.3,1), border-color .3s;
}
.atout:hover { transform: translateY(-4px); border-color: var(--hairline-2); }
/* L'icône d'un atout : posée dans un jeton discret plutôt que nue, pour lui
   donner un point d'appui et aligner toutes les cartes sur la même hauteur. */
.atout-icone {
  display: grid; place-items: center;
  width: 42px; height: 42px; margin-bottom: 18px;
  border-radius: 12px; color: var(--ember-2);
  background: rgba(255, 122, 47, .10);
  border: 1px solid rgba(255, 122, 47, .18);
}
.atout h3 { font-size: 18px; font-weight: 600; margin: 0 0 10px; }
.atout p { font-size: 14.5px; color: var(--text-soft); margin: 0; line-height: 1.65; }

/* ------------------------------------------------------- Styles vidéo ----- */
.styles-grille {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(292px, 1fr));
  gap: 22px; margin-top: 40px;
}
.style-carte {
  margin: 0; padding: 14px;
  border: 1px solid var(--hairline); border-radius: var(--radius);
  background: rgba(0, 0, 0, .3);
}
.style-carte video {
  width: 100%; aspect-ratio: 108 / 34; display: block;
  border-radius: 11px; background: #12131a;
}
.style-carte figcaption {
  padding: 14px 4px 2px; font-size: 13.5px; color: var(--text-soft);
  line-height: 1.55;
}
.style-carte figcaption b {
  display: block; font-family: var(--serif); font-weight: 400;
  font-size: 21px; color: var(--text); margin-bottom: 5px;
}

/* ------------------------------------------------------------------ FAQ --- */
.faq { margin-top: 36px; border-top: 1px solid var(--hairline); }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary {
  padding: 24px 40px 24px 0; cursor: pointer; position: relative;
  font-size: 17px; font-weight: 500; list-style: none;
  transition: color .2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%;
  transform: translateY(-50%); font-size: 22px; color: var(--ember);
  transition: transform .25s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq summary:hover { color: var(--ember-2); }
.faq details p {
  margin: 0; padding: 0 40px 26px 0;
  font-size: 15px; color: var(--text-soft); line-height: 1.7;
}

/* ----------------------------------------------------------- Formulaire --- */
.formulaire { margin-top: 34px; display: flex; flex-direction: column; gap: 4px; }
.formulaire .button, .formulaire button { margin-top: 20px; align-self: flex-start; }
.mention { font-size: 12.5px; color: var(--text-faint); margin: 16px 0 0; line-height: 1.6; }
.mention a, .texte-legal a, .carte p a {
  color: var(--ember-2); text-decoration: none;
  border-bottom: 1px solid rgba(255, 182, 72, .3);
}
.mention a:hover, .texte-legal a:hover { border-bottom-color: var(--ember-2); }

.avis {
  padding: 20px 24px; margin: 28px 0;
  border: 1px solid rgba(232, 200, 122, .3); border-radius: var(--radius-sm);
  background: rgba(232, 200, 122, .06);
  color: #e6dcc4; font-size: 14.5px; line-height: 1.65;
}
.avis b { color: var(--gold); display: block; margin-bottom: 5px; }
.avis.erreur {
  border-color: rgba(255, 107, 107, .3); background: rgba(255, 107, 107, .07);
  color: #ffb4b4;
}

.texte-legal { margin-top: 34px; }
.texte-legal h2 {
  font-family: var(--sans); font-size: 15px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ember);
  margin: 44px 0 14px;
}
.texte-legal p { font-size: 15px; color: var(--text-soft); line-height: 1.75; margin: 0 0 14px; }

/* ----------------------------------------------------------- Appel final --- */
.appel {
  position: relative; z-index: 1;
  max-width: 780px; margin: 0 auto; padding: 100px 36px 110px;
  text-align: center;
}
.appel h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(33px, 5vw, 52px); line-height: 1.08;
  letter-spacing: -.02em; margin: 0 0 16px;
}
.appel p { color: var(--text-soft); font-size: 17px; margin: 0 0 32px; }

/* ------------------------------------------------------------ Pied de page --- */
.site-footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--hairline);
  background: rgba(0, 0, 0, .3);
  padding: 64px 36px 30px;
}
.footer-grille {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 44px; max-width: 1120px; margin: 0 auto 48px;
}
.footer-marque .brand { font-family: var(--serif); font-size: 24px; margin-bottom: 14px; }
.footer-marque p { font-size: 14px; color: var(--text-faint); max-width: 34ch; line-height: 1.65; margin: 0; }
.site-footer h4 {
  font-size: 11px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-faint); margin: 0 0 16px;
}
.site-footer a {
  display: block; color: var(--text-soft); text-decoration: none;
  font-size: 14px; margin-bottom: 11px; transition: color .2s;
}
.site-footer a:hover { color: var(--ember-2); }
.footer-bas {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  max-width: 1120px; margin: 0 auto; padding-top: 26px;
  border-top: 1px solid var(--hairline);
  font-size: 12.5px; color: var(--text-faint);
}

/* ------------------------------------------------------------ Téléphone --- */
@media (max-width: 1080px) {
  .jeton-haut { left: -34px; }
  .jeton-bas { right: -40px; }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 46px; padding: 56px 20px 50px; text-align: center; }
  .jeton { font-size: 11.5px; padding: 8px 12px; }
  .jeton-haut { left: -12px; top: 36px; }
  .jeton-bas { right: -12px; bottom: 20px; }
  .hero-accroche { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .footer-grille { grid-template-columns: 1fr 1fr; gap: 34px; }
}

@media (max-width: 680px) {
  .site-header { padding: 14px 18px; }
  .site-header .brand { font-size: 22px; }
  .menu-bouton { display: flex; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 10px 18px 22px;
    background: rgba(8, 9, 12, .97);
    backdrop-filter: blur(22px);
    border-bottom: 1px solid var(--hairline);
    display: none;
  }
  .site-nav.ouvert { display: flex; }
  .site-nav a { padding: 15px 0; border-bottom: 1px solid var(--hairline); font-size: 16px; }
  .site-nav a.button { margin-top: 16px; border-bottom: none; text-align: center; }
  .section { padding: 62px 20px; }
  .appel { padding: 70px 20px 80px; }
  .hero-actions .button { flex: 1 1 100%; }
  .footer-grille { grid-template-columns: 1fr; gap: 30px; }
  .site-footer { padding: 46px 20px 24px; }
}

/* ------------------------------------------------- Formulaires de compte --- */
.carte-formulaire {
  margin-top: 30px; padding: 32px;
  border: 1px solid var(--hairline); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.012));
  box-shadow: var(--shadow);
}
.carte-formulaire .formulaire { margin-top: 0; }
.carte-formulaire .button,
.carte-formulaire button { width: 100%; margin-top: 26px; }
input[type=email], input[type=password] {
  width: 100%; padding: 14px 16px;
  border: 1px solid var(--hairline); border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, .32); color: var(--text);
  font: 400 15px/1.6 var(--sans);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
input[type=email]:focus, input[type=password]:focus {
  outline: none; border-color: rgba(255, 122, 47, .55);
  background: rgba(0, 0, 0, .45);
  box-shadow: 0 0 0 4px rgba(255, 122, 47, .1);
}
.sous-formulaire {
  margin-top: 26px; text-align: center;
  font-size: 14px; color: var(--text-soft);
}
.sous-formulaire a { color: var(--ember-2); text-decoration: none; font-weight: 500; }
.sous-formulaire a:hover { text-decoration: underline; }
.avis.reussite {
  border-color: rgba(95, 214, 164, .3); background: rgba(95, 214, 164, .06);
  color: #a5ead0;
}
.avis.reussite b { color: var(--ok); }
@media (max-width: 680px) { .carte-formulaire { padding: 22px; } }

/* ------------------------------------------------ Révélation au défilement --- */
.a-reveler {
  opacity: 0; transform: translateY(18px);
  transition: opacity .7s cubic-bezier(.16, 1, .3, 1) var(--retard, 0ms),
              transform .7s cubic-bezier(.16, 1, .3, 1) var(--retard, 0ms);
}
.a-reveler.revele { opacity: 1; transform: none; }

.site-header.pose {
  background: rgba(8, 9, 12, .9);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .05), 0 12px 40px -24px rgba(0, 0, 0, .9);
}

@media (prefers-reduced-motion: reduce) {
  .a-reveler { opacity: 1; transform: none; transition: none; }
}

/* ------------------------------------------------------------- Chiffres --- */
.chiffres {
  border-block: 1px solid var(--hairline);
  background: rgba(255, 255, 255, .012);
  padding: 44px 36px;
}
.chiffres-grille {
  max-width: 1000px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 34px; text-align: center;
}
.chiffres-grille b {
  display: block; font-family: var(--serif); font-weight: 400;
  font-size: clamp(34px, 4.5vw, 46px); line-height: 1;
  background: linear-gradient(135deg, var(--ember-2), var(--ember));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--ember);
  margin-bottom: 9px;
}
.chiffres-grille span {
  font-size: 11.5px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-faint);
}

/* ------------------------------------------------------------ Franchise --- */
.franchise {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: 22px; margin-top: 40px;
}
.franchise > div {
  padding: 28px; border-radius: var(--radius);
  border: 1px solid var(--hairline);
  border-left: 2px solid rgba(255, 122, 47, .4);
  background: rgba(0, 0, 0, .22);
}
.franchise h3 { font-size: 17px; font-weight: 600; margin: 0 0 10px; }
.franchise p { font-size: 14.5px; color: var(--text-soft); margin: 0; line-height: 1.65; }

.appel-note { margin-top: 20px; font-size: 13px; color: var(--text-faint); }

.erreur-page { text-align: center; padding-block: 110px 130px; }
.erreur-page .section-accroche { margin-inline: auto; }
.erreur-page .row { justify-content: center; }

/* ---------------------------------------------- Essayage des sous-titres --- */
.essayage { margin-top: 38px; }

.essayage-champ { position: relative; display: block; margin-bottom: 22px; }
.essayage-champ input {
  width: 100%; padding: 20px 92px 20px 24px;
  font: 500 19px/1.4 var(--sans); color: var(--text);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border: 1px solid var(--hairline); border-radius: 16px;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.essayage-champ input::placeholder { color: var(--text-faint); }
.essayage-champ input:focus {
  outline: none; border-color: rgba(255, 122, 47, .55);
  background: rgba(255, 122, 47, .05);
  box-shadow: 0 0 0 4px rgba(255, 122, 47, .10),
              0 22px 60px -34px rgba(255, 122, 47, .8);
}
.essayage-compteur {
  position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font: 600 12px var(--sans); letter-spacing: .04em;
  color: var(--text-faint); pointer-events: none;
  font-variant-numeric: tabular-nums;
}
.essayage-compteur.proche { color: var(--ember-2); }

.essayage-styles {
  display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 24px;
}
.puce {
  padding: 10px 18px; border-radius: 999px; cursor: pointer;
  font: 500 13.5px var(--sans); color: var(--text-soft);
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--hairline);
  transition: color .2s, background .2s, border-color .2s, transform .2s;
}
.puce:hover { color: var(--text); border-color: rgba(255, 255, 255, .18); }
.puce:active { transform: scale(.97); }
.puce.actif {
  background: linear-gradient(135deg, var(--ember-2), var(--ember));
  border-color: transparent; color: #150d05; font-weight: 650;
  box-shadow: 0 14px 34px -18px rgba(255, 122, 47, .9);
}

/* La scène : un cadre sombre où le clip occupe toute la largeur. Le fond du
   clip étant lui-même un dégradé, le cadre reste neutre pour ne pas jurer. */
.essayage-scene {
  position: relative; margin: 0; border-radius: 20px; overflow: hidden;
  border: 1px solid var(--hairline);
  background: #07080b;
  box-shadow: 0 40px 90px -50px rgba(0, 0, 0, .95);
}
.essayage-scene video {
  display: block; width: 100%; height: auto;
  /* Le clip est une bande : on réserve sa place pour éviter le saut de page. */
  aspect-ratio: 540 / 170; object-fit: cover; background: #07080b;
}
.essayage-scene figcaption {
  padding: 16px 22px 18px; font-size: 13.5px; color: var(--text-soft);
  border-top: 1px solid var(--hairline);
  background: rgba(255, 255, 255, .015);
}

/* Pendant le rendu : le clip se retire légèrement et une barre progresse. */
.essayage.charge .essayage-scene video { opacity: .38; filter: saturate(.5); }
.essayage-scene video { transition: opacity .35s, filter .35s; }
.essayage.charge .essayage-scene::after {
  content: ""; position: absolute; inset-inline: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--ember), transparent);
  animation: balayage 1.15s ease-in-out infinite;
}
@keyframes balayage {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.essayage-etat {
  margin: 14px 0 0; min-height: 20px;
  font-size: 13.5px; color: var(--text-faint);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

@media (max-width: 680px) {
  .essayage-champ input { padding: 17px 78px 17px 18px; font-size: 16.5px; }
  .puce { padding: 9px 15px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .essayage.charge .essayage-scene::after { animation: none; opacity: .6; }
}

/* =============================================================== Séquence ===
   Cinq actes, un seul décor. Le conteneur est haut et la scène y reste
   collée : ce qu'on fait défiler n'est pas la page, c'est le temps du récit.
   Les positions sont toutes posées par le script, en transformations — ni
   largeur ni marge ne changent, donc aucune remise en page à calculer.
   ========================================================================= */
.sequence { height: 460vh; position: relative; }
.sequence-piste {
  position: sticky; top: 0; height: 100vh;
  display: grid; place-items: center; overflow: hidden;
}
.sequence-cadre {
  width: min(1180px, 100%); padding: 0 36px;
  display: grid; grid-template-columns: .92fr 1.08fr;
  align-items: center; gap: 48px;
}
.sequence-texte h2 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 4.2vw, 54px);
  line-height: 1.06; letter-spacing: -.015em; margin: 12px 0 28px;
}
.sequence-texte h2 em { font-style: italic; color: var(--gold); }

/* La liste des étapes : celle en cours s'éclaire, les autres s'effacent sans
   disparaître — on doit voir d'où l'on vient et où l'on va. */
.sequence-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.sequence-liste li {
  display: grid; grid-template-columns: 34px 1fr; gap: 14px;
  padding: 11px 14px; border-radius: 12px;
  opacity: .34; transition: opacity .45s, background .45s;
}
.sequence-liste li.actif {
  opacity: 1;
  background: linear-gradient(90deg, rgba(255,122,47,.10), transparent 76%);
}
.sequence-numero {
  font-family: var(--serif); font-size: 17px; color: var(--text-faint);
  transition: color .45s;
}
.sequence-liste li.actif .sequence-numero { color: var(--ember-2); }
.sequence-liste b {
  display: block; font-size: 15px; font-weight: 600; color: var(--text);
  margin-bottom: 2px;
}
.sequence-liste span:not(.sequence-numero) {
  font-size: 13.5px; color: var(--text-soft); line-height: 1.5;
}
/* La description ne se déplie que pour l'étape en cours : sans cela, cinq
   paragraphes empilés font une page de texte, pas un récit. */
.sequence-liste li:not(.actif) div span { display: none; }

/* Le plateau porte la perspective : sans profondeur déclarée ici, les
   rotations des enfants resteraient plates. */
.sequence-plateau {
  position: relative; height: min(66vh, 540px);
  perspective: 1400px; perspective-origin: 50% 46%;
  transform-style: preserve-3d;
}

.source, .montage {
  position: absolute; top: 50%; left: 50%;
  will-change: transform, opacity;
}

.source {
  width: 168px; aspect-ratio: 9 / 16;
  border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  background:
    radial-gradient(120% 80% at 30% 12%, rgba(255,255,255,.10), transparent 60%),
    linear-gradient(165deg, var(--teinte-a), var(--teinte-b));
  box-shadow: 0 34px 70px -30px rgba(0, 0, 0, .95);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 12px;
}
.source-1 { --teinte-a: #3b2a53; --teinte-b: #12131c; }
.source-2 { --teinte-a: #5a3418; --teinte-b: #16120f; }
.source-3 { --teinte-a: #14364a; --teinte-b: #0f1419; }

.source-etiquette {
  align-self: flex-start;
  padding: 4px 9px; border-radius: 999px;
  background: rgba(8, 9, 12, .62); backdrop-filter: blur(8px);
  font-size: 10px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-soft);
}
/* La note d'accroche : une jauge, parce qu'un chiffre seul ne se compare pas
   d'un coup d'œil. */
.source-note {
  display: flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 700; color: var(--text);
  font-variant-numeric: tabular-nums;
  opacity: 0; transition: opacity .4s;
}
.acte-1 .source-note, .acte-2 .source-note,
.acte-3 .source-note { opacity: 1; }
.source-note i {
  flex: 1; height: 3px; border-radius: 2px;
  background: rgba(255, 255, 255, .16); position: relative;
}
.source-note i::after {
  content: ""; position: absolute; inset: 0 auto 0 0;
  width: calc(var(--part) * 100%); border-radius: 2px;
  background: linear-gradient(90deg, var(--ember-2), var(--ember));
}
/* Le verdict de l'acte 2 : la source la mieux notée ouvre le montage. */
.source-retenue {
  position: absolute; inset: auto 10px 42px;
  padding: 5px 0; border-radius: 999px; text-align: center;
  background: linear-gradient(135deg, var(--ember-2), var(--ember));
  color: #170d05; font-size: 10px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .4s;
}
/* Le verdict tombe à l'acte du choix, pas à celui d'après. */
.acte-1 .source-2 .source-retenue,
.acte-2 .source-2 .source-retenue { opacity: 1; transform: none; }
.source-retenue i { font-style: normal; }

.montage { width: 196px; }
.montage-cadre {
  position: relative; aspect-ratio: 9 / 16;
  border-radius: 20px; overflow: hidden;
  border: 1px solid rgba(255, 155, 74, .35);
  background: linear-gradient(170deg, #2a1a10, #0a0b10 62%);
  box-shadow: 0 48px 90px -34px rgba(255, 122, 47, .55),
              0 0 0 1px rgba(255, 255, 255, .06);
}
.montage-bande {
  position: absolute; inset: 0;
  background: radial-gradient(90% 58% at 50% 26%,
              rgba(255, 150, 60, .30), transparent 72%);
}
/* Le script de l'acte 4 : trois lignes qui s'écrivent l'une après l'autre. */
.montage-script {
  position: absolute; inset: auto 16px 96px; display: grid; gap: 7px;
}
.montage-script span {
  height: 4px; border-radius: 2px;
  background: rgba(255, 255, 255, .26);
  transform: scaleX(0); transform-origin: left;
  transition: transform .5s cubic-bezier(.16, 1, .3, 1);
}
.montage-script span:nth-child(2) { transition-delay: .12s; width: 82%; }
.montage-script span:nth-child(3) { transition-delay: .24s; width: 58%; }
.acte-3 .montage-script span, .acte-4 .montage-script span { transform: scaleX(1); }

.montage-soustitre {
  position: absolute; inset: auto 12px 42px; text-align: center;
  font: 700 13px/1.25 var(--sans); letter-spacing: -.01em;
  color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, .85);
  opacity: 0; transition: opacity .45s;
}
.acte-4 .montage-soustitre { opacity: 1; }
.montage-soustitre b { color: var(--gold); }
.montage-etiquette {
  display: block; margin-top: 14px; text-align: center;
  font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-faint);
  opacity: 0; transition: opacity .45s;
}
.acte-4 .montage-etiquette { opacity: 1; }

@media (max-width: 900px) {
  .sequence { height: 420vh; }
  .sequence-cadre { grid-template-columns: 1fr; gap: 22px; }
  .sequence-texte h2 { font-size: clamp(28px, 7vw, 38px); margin-bottom: 16px; }
  .sequence-liste li { padding: 8px 10px; gap: 10px; grid-template-columns: 26px 1fr; }
  .sequence-liste b { font-size: 14px; }
  .sequence-plateau { height: min(38vh, 320px); }
  .source { width: 108px; }
  .montage { width: 128px; }
  /* « Accroche retenue » passe sur deux lignes dans une carte de 108 px et
     l'écrase : le premier mot disparaît, le sens reste. */
  .source-retenue { inset: auto 6px 30px; font-size: 8.5px; letter-spacing: .04em; }
  .source-retenue i { display: none; }
}

/* Sans mouvement : on montre l'aboutissement, qui est le propos, et les cinq
   étapes se lisent comme une liste ordinaire. */
@media (prefers-reduced-motion: reduce) {
  .sequence { height: auto; }
  .sequence-piste { position: static; height: auto; padding: 80px 0; }
  .sequence-liste li { opacity: 1; }
  .sequence-liste li div span { display: block; }
}
