/* Bryan Web Clips — feuille de style
   Charte v2 (octobre 2026). Mobile d'abord : 360, puis 768 et 1280 px.
   Polices : fichiers officiels Fontshare, non modifiés (licence ITF FFL 2.0). */

@font-face {
  font-family: "Clash Display";
  src: url("../fonts/ClashDisplay-Semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("../fonts/Satoshi-Variable.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --marine: #0A2540;
  --brume: #F4F5F7;
  --blanc: #FFFFFF;
  --encre: #0F172A;
  --ardoise: #475569;
  --terracotta: #C8643F;
  --sur-marine: #C9D2DE;          /* texte secondaire sur marine */
  --filet: #D5DAE1;
  --ton-sur-ton: rgba(255, 255, 255, 0.09);

  --titre: "Clash Display", "Arial Black", system-ui, sans-serif;
  --texte: "Satoshi", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --marge: clamp(20px, 6.667vw, 96px);   /* environ 1/15 de la largeur */
  --max: 1200px;
  --pilule: 0 999px 999px 0;             /* plate à gauche, ronde à droite */
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--brume);
  color: var(--encre);
  font: 400 1rem/1.625 var(--texte);
  font-feature-settings: "kern";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--marine);
  outline-offset: 3px;
  border-radius: 2px;
}
.marine :focus-visible, .pied :focus-visible { outline-color: var(--blanc); }

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

.evitement {
  position: absolute; left: var(--marge); top: -100px; z-index: 50;
  background: var(--marine); color: var(--blanc);
  padding: 12px 20px; border-radius: var(--pilule);
  font-weight: 700; text-decoration: none;
}
.evitement:focus { top: 12px; }

/* ---------- Échelle typographique ---------- */
.display, h1, h2 {
  font-family: var(--titre);
  font-weight: 600;
  color: var(--marine);
  margin: 0;
  text-wrap: balance;
}
.display {
  font-size: clamp(3rem, 10.5vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
}
h2 {
  font-size: clamp(2rem, 4.4vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.h3, h3 {
  font: 700 1.5rem/1.25 var(--texte);
  color: var(--marine);
  margin: 0;
}
.lead {
  font-weight: 500;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--encre);
  margin: 0;
}
.small { font-size: 0.875rem; line-height: 1.5; color: var(--ardoise); }
.label {
  font-weight: 500;
  font-size: 0.75rem;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ardoise);
  margin: 0;
}
.data { font-weight: 500; font-variant-numeric: tabular-nums; }
p { margin: 0; text-wrap: pretty; }

@media (min-width: 768px) {
  .lead { font-size: 1.25rem; line-height: 1.45; }
}

/* ---------- Mise en page ---------- */
.contenu {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--marge));
  margin-inline: auto;
  padding-inline: var(--marge);
}
.bloc { padding-block: clamp(64px, 10vw, 120px); }
.blanc { background: var(--blanc); }
.marine { background: var(--marine); color: var(--blanc); }
.marine h2, .marine .h3, .marine h3 { color: var(--blanc); }
.marine .label, .marine .small { color: var(--sur-marine); }

.entete-bloc { display: grid; gap: 16px; max-width: 46rem; margin-bottom: clamp(40px, 6vw, 64px); }

/* ---------- La pilule ---------- */
.pilule {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px;
  padding: 14px 30px 14px 22px;
  border-radius: var(--pilule);
  background: var(--marine);
  color: var(--blanc);
  font: 700 1rem/1.2 var(--texte);
  text-decoration: none;
  text-align: left;
  transition: background-color .15s ease, transform .15s ease;
}
.pilule:hover { background: #12345A; }
.pilule:active { transform: translateY(1px); }
.pilule--blanche { background: var(--blanc); color: var(--marine); }
.pilule--blanche:hover { background: var(--brume); }
.pilule--contour { background: transparent; color: var(--marine); box-shadow: inset 0 0 0 2px var(--marine); }
.pilule--contour:hover { background: var(--blanc); }
.pilule--petite { min-height: 44px; padding: 10px 22px 10px 16px; font-size: 0.9375rem; }

.numero {
  display: inline-flex; align-items: center;
  height: 40px; min-width: 72px;
  padding: 0 24px 0 18px;
  border-radius: var(--pilule);
  background: var(--marine); color: var(--blanc);
  font: 600 1.125rem/1 var(--titre);
}
.marine .numero { background: var(--blanc); color: var(--marine); }

.etiquette {
  display: inline-flex; align-items: center;
  height: 30px; padding: 0 14px 0 10px;
  border-radius: var(--pilule);
  background: var(--blanc); color: var(--marine);
  font: 700 0.875rem/1 var(--texte);
  font-variant-numeric: tabular-nums;
}

/* ---------- En-tête ---------- */
.entete {
  position: sticky; top: 0; z-index: 20;
  background: rgba(244, 245, 247, 0.94);
  border-bottom: 1px solid transparent;
}
@supports (backdrop-filter: blur(8px)) {
  .entete { background: rgba(244, 245, 247, 0.82); backdrop-filter: blur(8px); }
}
.entete .contenu {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 72px;
}
.entete__logo { display: block; flex-shrink: 0; padding-block: 12px; }
.entete__logo img { width: 168px; height: auto; }
.entete__actions { display: flex; align-items: center; gap: 20px; }
.entete__lien { font-weight: 500; font-size: 0.9375rem; color: var(--marine); text-decoration: none; padding: 12px 0; }
.entete__lien:hover { text-decoration: underline; }
@media (min-width: 768px) { .entete__logo img { width: 200px; } }
@media (max-width: 379px) { .entete__logo img { width: 140px; } .entete .pilule--petite { padding: 10px 16px 10px 12px; font-size: 0.875rem; } }

/* ---------- Héros ---------- */
.heros { padding-block: clamp(40px, 8vw, 96px) clamp(64px, 10vw, 120px); }
.heros .contenu { display: grid; gap: 48px; align-items: center; }
.heros__texte { display: grid; gap: 24px; justify-items: start; }
.heros__surtitre { font-weight: 500; font-size: 1.0625rem; color: var(--marine); }
.accent {
  text-decoration: underline;
  text-decoration-color: var(--terracotta);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.22em;
}
.heros__lead { max-width: 34rem; }
.heros__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 8px; }
.lien-fleche {
  display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 700; color: var(--marine); text-decoration: none;
}
.lien-fleche::after { content: "↓"; margin-left: 8px; }
.lien-fleche:hover { text-decoration: underline; }
.petits-mots { font-size: 0.875rem; color: var(--ardoise); }

/* La timeline : une vidéo, cinq clips */
.timeline { width: 100%; max-width: 30rem; margin-top: 8px; }
.timeline__piste { position: relative; height: 24px; }
.timeline__piste::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%;
  height: 2px; transform: translateY(-50%); background: var(--filet);
}
.timeline__clip {
  position: absolute; top: 2px; height: 20px;
  border-radius: var(--pilule); background: var(--marine);
}
.timeline__legende { display: flex; justify-content: space-between; margin-top: 8px; font-size: 0.875rem; color: var(--ardoise); }

/* Le cadre 9:16 du héros */
.heros__visuel { display: flex; justify-content: center; }
.cadre-clip {
  position: relative;
  width: min(260px, 70vw);
  aspect-ratio: 9 / 16;
  background: var(--marine);
  color: var(--blanc);
  display: grid; grid-template-rows: auto 1fr auto;
  padding: 22px 20px 24px;
  overflow: hidden;
}
.cadre-clip__fond { position: absolute; inset: 0; opacity: 1; pointer-events: none; }
.cadre-clip__haut, .cadre-clip__bas { position: relative; }
.cadre-clip__haut { display: flex; justify-content: space-between; align-items: center; }
.cadre-clip__haut .label { color: var(--sur-marine); }
.cadre-clip__sigle { width: 18px; }
.cadre-clip__bas { display: grid; gap: 14px; justify-items: start; }
.cadre-clip__soustitre {
  font: 600 1.625rem/1.05 var(--titre);
  letter-spacing: -0.01em;
}
.cadre-clip__note { font-size: 0.8125rem; color: var(--sur-marine); }

@media (min-width: 900px) {
  .heros .contenu { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 64px; }
  .heros__visuel { justify-content: flex-end; }
  .cadre-clip { width: 300px; padding: 26px 24px 28px; }
  .cadre-clip__soustitre { font-size: 1.875rem; }
}

/* ---------- Avant / après ---------- */
.avant-apres { display: grid; gap: 32px; align-items: center; }
.ecran {
  background: var(--marine); color: var(--blanc);
  aspect-ratio: 16 / 9;
  display: grid; grid-template-rows: auto 1fr auto;
  padding: clamp(16px, 3vw, 28px);
  position: relative; overflow: hidden;
}
.ecran .label { color: var(--sur-marine); }
.ecran__rushes { display: grid; gap: 8px; align-content: center; }
.ecran__ligne { display: flex; gap: 8px; }
.ecran__ligne span { height: 10px; border-radius: var(--pilule); background: var(--ton-sur-ton); }
.ecran__ligne span.garde { background: var(--blanc); }
.ecran__bas { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.fleche { font: 500 2rem/1 var(--texte); color: var(--marine); justify-self: center; transform: rotate(90deg); }
.vertical {
  width: min(220px, 60vw); justify-self: center;
  aspect-ratio: 9 / 16;
  border: 2px solid var(--marine);
  background: var(--blanc);
  display: grid; grid-template-rows: auto 1fr auto;
  padding: 18px 16px 20px;
}
.vertical__titre { font: 600 1.5rem/1.05 var(--titre); color: var(--marine); align-self: end; margin-bottom: 14px; }
.vertical .etiquette { background: var(--marine); color: var(--blanc); }
.vertical__bas { display: flex; justify-content: space-between; align-items: center; }
.vertical__bas img { width: 14px; }
.legende-illustration { margin-top: 20px; }
.choix { display: grid; gap: 20px; margin: 48px 0 0; padding: 0; list-style: none; }
.choix li { display: grid; gap: 4px; padding-left: 26px; position: relative; }
.choix li::before, .liste-pilules li::before {
  content: ""; position: absolute; left: 0; top: 0.5em;
  width: 14px; height: 9px; border-radius: var(--pilule); background: var(--marine);
}
@media (min-width: 900px) {
  .avant-apres { grid-template-columns: minmax(0, 1.6fr) auto minmax(0, 1fr); gap: 40px; }
  .fleche { transform: none; }
  .vertical { width: 240px; }
  .choix { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}

/* ---------- Étapes ---------- */
.etapes { display: grid; gap: 40px; margin: 0; padding: 0; list-style: none; counter-reset: etape; }
.etapes li { display: grid; gap: 16px; align-content: start; }
.etapes p { font-size: 1.125rem; line-height: 1.5; color: var(--encre); max-width: 22rem; }
.delai { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }
.delai .etiquette { background: var(--marine); color: var(--blanc); }
@media (min-width: 768px) { .etapes { grid-template-columns: repeat(3, 1fr); gap: 32px; } }

/* ---------- Ce que tu reçois ---------- */
.recois { display: grid; gap: 40px; }
.liste-pilules { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.liste-pilules li { position: relative; padding-left: 28px; font-size: 1.125rem; line-height: 1.5; }
@media (min-width: 900px) { .recois { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; } }

/* ---------- Pourquoi moi (marine, motif rushes) ---------- */
.pourquoi { position: relative; overflow: hidden; }
.pourquoi .contenu { position: relative; }
.rushes {
  position: absolute; left: 0; right: 0; bottom: 0;
  width: 100%; height: auto; min-width: 900px;
  opacity: 1; pointer-events: none;
}
.preuves { display: grid; gap: 40px; margin: 0; padding: 0; list-style: none; }
.preuves li { display: grid; gap: 14px; align-content: start; }
.preuves p { color: var(--sur-marine); font-size: 1.0625rem; }
.signature-phrase { margin-top: clamp(48px, 8vw, 88px); display: grid; gap: 10px; justify-items: start; padding-bottom: clamp(40px, 8vw, 120px); }
.signature-phrase__l1 { font: 600 clamp(1.75rem, 5vw, 2.5rem)/1.05 var(--titre); color: var(--blanc); }
.signature-phrase__l2 {
  font: 600 clamp(1.75rem, 5vw, 2.5rem)/1.05 var(--titre);
  background: var(--terracotta); color: var(--marine);
  padding: 4px 22px 8px 12px; border-radius: var(--pilule);
}
@media (min-width: 768px) { .preuves { grid-template-columns: repeat(3, 1fr); gap: 32px; } }

/* ---------- FAQ ---------- */
.faq { max-width: 52rem; border-top: 1px solid var(--filet); }
.faq details { border-bottom: 1px solid var(--filet); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 64px; padding: 16px 0;
  font: 700 1.125rem/1.35 var(--texte); color: var(--marine);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex-shrink: 0; width: 22px; height: 14px;
  border-radius: var(--pilule); background: var(--marine);
  transition: transform .15s ease;
}
.faq details[open] summary::after { transform: scaleX(0.6); transform-origin: left; }
.faq details p { padding: 0 0 22px; max-width: 42rem; font-size: 1.0625rem; }

/* ---------- Démo offerte ---------- */
.demo-carte {
  background: var(--blanc);
  padding: clamp(28px, 6vw, 64px);
  display: grid; gap: 22px; justify-items: start;
  max-width: 52rem;
}
.demo-carte .lead { max-width: 36rem; }
.demo-carte__actions { display: flex; flex-wrap: wrap; gap: 14px 16px; margin-top: 6px; }
.demo-carte__mail { font-weight: 500; }
.demo-carte__mail a { color: var(--marine); font-weight: 700; }
.demo-carte__info { max-width: 36rem; border-top: 1px solid var(--filet); padding-top: 18px; }
.demo-carte .label--valide { color: var(--ardoise); }

/* ---------- Pied de page ---------- */
.pied { background: var(--marine); color: var(--blanc); padding-block: 64px 40px; }
.pied .contenu { display: grid; gap: 40px; }
.signature { display: grid; gap: 14px; justify-items: start; }
.signature img { width: 220px; }
.signature__filet { width: 220px; height: 2px; background: var(--blanc); opacity: .9; }
.signature .label { color: var(--sur-marine); }
.pied__liens { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.pied__liens a { display: inline-flex; align-items: center; min-height: 44px; color: var(--blanc); text-decoration: none; font-weight: 500; }
.pied__liens a:hover { text-decoration: underline; }
.pied__bas { display: grid; gap: 10px; border-top: 1px solid rgba(255,255,255,.18); padding-top: 24px; }
.pied__bas, .pied__bas a { color: var(--sur-marine); font-size: 0.875rem; }
.pied__bas a { display: inline-flex; align-items: center; min-height: 44px; }
.pied__legal { display: flex; flex-wrap: wrap; gap: 0 24px; }
@media (min-width: 768px) {
  .pied .contenu { grid-template-columns: 1fr auto; align-items: start; }
  .pied__bas { grid-column: 1 / -1; grid-template-columns: 1fr auto; align-items: center; }
}

/* ---------- Pages de texte (mentions, confidentialité, 404) ---------- */
.page-texte { padding-block: clamp(40px, 8vw, 96px); }
.page-texte .contenu { max-width: calc(48rem + 2 * var(--marge)); margin-inline: 0; }
.page-texte h1 {
  font-family: var(--titre); font-weight: 600; color: var(--marine);
  font-size: clamp(2.5rem, 6vw, 4rem); line-height: 1; letter-spacing: -0.015em;
  margin: 0 0 16px;
}
.page-texte h2 { margin: 48px 0 14px; font-size: clamp(1.5rem, 3.4vw, 2rem); }
.page-texte p, .page-texte li { font-size: 1.0625rem; line-height: 1.65; }
.page-texte p + p { margin-top: 12px; }
.page-texte ul { padding-left: 1.2em; margin: 12px 0 0; }
.page-texte li + li { margin-top: 6px; }
.page-texte address { font-style: normal; }
.page-texte .retour { margin-top: 48px; }
.maj { color: var(--ardoise); font-size: 0.9375rem; }

.introuvable { min-height: 70vh; display: grid; align-content: center; }
.introuvable .contenu { display: grid; gap: 24px; justify-items: start; }

/* Positions de la timeline (vidéo de 20:00 ; clips à 02:10, 06:05, 09:40, 13:20, 17:30) */
.timeline__clip.c1 { left: 10.8%; width: 7%; }
.timeline__clip.c2 { left: 30.4%; width: 8%; }
.timeline__clip.c3 { left: 48.3%; width: 5.5%; }
.timeline__clip.c4 { left: 66.7%; width: 9%; }
.timeline__clip.c5 { left: 87.5%; width: 7.5%; }

/* Largeurs des rushes dans l'écran 16:9 */
.ecran__ligne .f1 { flex: 1; } .ecran__ligne .f2 { flex: 2; } .ecran__ligne .f3 { flex: 3; }
.ecran__ligne .f4 { flex: 4; } .ecran__ligne .f5 { flex: 5; }
.ecran__ligne.decale { padding-left: 6%; }

/* ---------- Corrections après relecture visuelle ---------- */
.numero { justify-self: start; }
figure.avant-apres { margin: 0; }
.pied .small { color: var(--sur-marine); }
.insecable { white-space: nowrap; }
#demo { padding-top: 0; }
.cadre-clip { width: min(220px, 62vw); }
.cadre-clip__rushes { gap: 10px; padding-block: 12px; }
.cadre-clip__rushes .ecran__ligne span { height: 9px; }
.display { font-size: clamp(3rem, 7.6vw, 6.25rem); }
@media (min-width: 900px) {
  .heros .contenu { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
  .cadre-clip { width: 300px; }
}
@media (max-width: 479px) {
  .demo-carte__actions { width: 100%; }
  .demo-carte__actions .pilule { width: 100%; }
}
/* Le motif « rushes » occupe le bas du bloc : on lui réserve sa hauteur exacte */
.pourquoi { padding-bottom: 0; }
.signature-phrase { padding-bottom: calc(max(900px, 100vw) * 0.1575 + 56px); }
.rushes { left: 50%; right: auto; width: max(900px, 100vw); min-width: 0; transform: translateX(-50%); }
.rushes { max-width: none; }

/* ---------- Avatar (images virtuelles), cadre 9:16 ---------- */
.avatar { margin: 0; display: grid; gap: 10px; justify-items: start; align-content: start; }
.avatar__image, .avatar__cadre { width: min(220px, 62vw); aspect-ratio: 9 / 16; height: auto; background: #E6E6E8; }
.avatar__mention { font-size: 0.875rem; line-height: 1.5; color: var(--ardoise); }
.avatar--heros { justify-self: center; }
@media (min-width: 900px) {
  .avatar__image, .avatar__cadre { width: 300px; }
  .avatar--heros { justify-self: end; }
}

/* Ce que tu reçois */
.recois { align-items: center; }
.recois__texte .entete-bloc { margin-bottom: 32px; }
.recois .avatar { justify-self: center; }
@media (min-width: 900px) { .recois { grid-template-columns: 1fr auto; } .recois .avatar { justify-self: end; } }

/* Reels */
.reels { display: grid; gap: 40px; align-items: center; }
.reels__liens { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 8px; }
.lien-simple { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--marine); }
.reel { margin: 0; display: grid; gap: 10px; justify-items: start; justify-self: center; }
.reel__video { display: block; width: min(300px, 80vw); height: auto; aspect-ratio: 9 / 16; background: var(--marine); }
@media (min-width: 900px) { .reels { grid-template-columns: 1fr auto; } .reel { justify-self: end; } .reel__video { width: 320px; } }

/* Démo offerte */
.demo-grille { display: grid; gap: 40px; align-items: center; }
.avatar--demo { display: none; }
@media (min-width: 900px) {
  .demo-grille { grid-template-columns: 1fr auto; }
  .avatar--demo { display: grid; }
}

/* 404 : la pancarte */
.introuvable__grille { display: grid; gap: 40px; align-items: center; }
.introuvable__texte { display: grid; gap: 24px; justify-items: start; }
.avatar--pancarte .avatar__cadre { position: relative; width: 240px; }
.avatar--pancarte .avatar__image { width: 100%; }
.pancarte {
  position: absolute; left: 23.5%; top: 43.3%; width: 56.1%; height: 16.9%;
  display: flex; align-items: center; justify-content: center;
  font: 600 2.9rem/1 var(--titre); letter-spacing: -0.02em; color: var(--marine);
}
@media (min-width: 900px) {
  .introuvable__grille { grid-template-columns: 1fr auto; }
  .avatar--pancarte .avatar__cadre { width: 280px; }
  .pancarte { font-size: 3.4rem; }
}

/* ---------- Version courte (13 octobre, 17 h) ---------- */
#etapes .recois { display: grid; gap: 20px; margin-top: clamp(48px, 7vw, 72px); padding-top: clamp(32px, 5vw, 48px); border-top: 1px solid var(--filet); }
#etapes .recois .delai { margin-top: 8px; }
@media (min-width: 900px) {
  #etapes .recois { grid-template-columns: 16rem 1fr; column-gap: 32px; align-items: start; }
  #etapes .recois .liste-pilules { grid-template-columns: 1fr 1fr; column-gap: 32px; }
  #etapes .recois .delai { grid-column: 2; }
}

/* ---------- Haut de page façon « Univers » (planche 20) ---------- */
.heros__avatar { margin: 0; display: grid; gap: 6px; justify-items: center; }
.heros__avatar img {
  width: min(340px, 86vw); height: auto;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 14%);
  mask-image: linear-gradient(to right, transparent 0, #000 14%);
}
.heros__avatar .avatar__mention { justify-self: end; }
@media (min-width: 900px) {
  .heros .contenu { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .heros__avatar { justify-items: end; }
  .heros__avatar img { width: 460px; }
}
/* La pilule part du bord gauche de l'écran, comme dans la charte */
.pilule--bord {
  --decalage: calc(var(--marge) + max(0px, (100vw - var(--max) - 2 * var(--marge)) / 2));
  margin-left: calc(-1 * var(--decalage));
  padding-left: var(--decalage);
}
/* L'image fond déjà vers le brume : plus besoin de masque CSS */
.heros__avatar img { -webkit-mask-image: none; mask-image: none; }
.heros .display { font-size: clamp(3rem, 7vw, 6rem); }
@media (min-width: 900px) {
  .heros .contenu { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .heros__avatar img { width: min(100%, 460px); }
}
/* Pose de référence de la charte, grande et à droite */
.heros__avatar img { width: min(360px, 92vw); }
@media (min-width: 900px) {
  .heros .contenu { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
  .heros .display { font-size: clamp(3rem, 6.2vw, 5.5rem); }
  .heros__avatar img { width: min(100%, 560px); }
}
/* Sur téléphone, le personnage apparaît dès l'arrivée, en haut à droite */
@media (max-width: 899px) {
  .heros { padding-top: 16px; }
  .heros .contenu { gap: 20px; }
  .heros__avatar { order: -1; justify-items: end; justify-self: end; }
  .heros__avatar img { width: min(270px, 70vw); }
}

/* Accès rapide aux sections, sous le bouton principal */
.raccourcis { display: flex; flex-wrap: wrap; gap: 10px; }
.heros__actions { margin-top: 4px; }
@media (max-width: 899px) { .heros .timeline { display: none; } }

/* Page d'attente de bryan-web.fr */
.attente { min-height: 100vh; min-height: 100svh; display: grid; grid-template-rows: 1fr auto; }
.attente__corps { display: grid; align-content: center; gap: 22px; justify-items: start; padding-block: 64px; }
.attente__marque { font: 600 1.5rem/1 var(--titre); letter-spacing: -0.01em; color: var(--marine); }
.attente__pied { padding-block: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; font-size: 0.875rem; color: var(--ardoise); }
.attente__pied span, .attente__pied a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ardoise); }
@media (max-width: 599px) { .attente__pied span { flex-basis: 100%; min-height: 0; } }


/* ---------- Mise en page v2 (21 octobre) : le personnage en deux calques, les étapes sur une piste, les preuves en clips ---------- */

/* Le personnage : corps + tête sur un calque à part (pivot au cou), tout en pourcentages de l'image 797 × 816 */
.heros__avatar .perso { position: relative; display: block; width: min(360px, 92vw); }
.heros__avatar .perso img { display: block; width: 100%; height: auto; -webkit-mask-image: none; mask-image: none; }
.perso__tete { position: absolute; left: 22.083%; top: 6.863%; width: 23.338%; transform-origin: 38.17% 94.06%;
  transition: transform .7s cubic-bezier(.16, 1, .3, 1); }
.perso__tete img { transform-origin: 38.17% 94.06%; }
.perso__bulle { position: absolute; left: 54%; top: 15%; display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px 8px 12px; border-radius: 0 999px 999px 0; background: var(--marine); color: var(--blanc);
  font: 700 .8125rem/1 var(--texte); white-space: nowrap; opacity: 0; pointer-events: none; }
.perso__bulle::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--blanc); }
.perso__vibre { position: absolute; left: 58.5%; top: 27%; width: 7%; aspect-ratio: 1; opacity: 0; pointer-events: none;
  border: 2px solid var(--marine); border-left-color: transparent; border-bottom-color: transparent; border-radius: 50%; }
@media (min-width: 900px) { .heros__avatar .perso { width: min(100%, 560px); } }
@media (max-width: 899px) {
  .heros__avatar .perso { width: min(270px, 70vw); }
  .perso__bulle { left: 50%; top: 13%; font-size: .6875rem; padding: 5px 12px 6px 9px; }
}

/* Comment ça marche : les 3 étapes sont 3 clips posés sur une piste */
.piste-etapes { position: relative; view-timeline: --etapes block; }
.piste-etapes__fil { position: absolute; left: 0; right: 0; top: 18px; height: 4px; border-radius: 2px; background: var(--filet); }
.piste-etapes__rempli { position: absolute; inset: 0; border-radius: 2px; background: var(--marine); transform-origin: left center; transform: scaleX(1); }
.piste-etapes__tete { position: absolute; top: -10px; left: 100%; width: 4px; height: 24px; border-radius: 2px; background: var(--marine); opacity: 0; }   /* terracotta : une seule fois par page */
.piste-etapes .etapes { position: relative; }
.piste-etapes .numero { position: relative; z-index: 1; box-shadow: 0 0 0 6px var(--blanc); }
@media (max-width: 767px) {   /* sur téléphone : une piste verticale, le numéro à gauche, le texte à droite */
  .piste-etapes__fil { display: none; }
  .piste-etapes .etapes li { position: relative; grid-template-columns: 72px 1fr; column-gap: 16px; align-items: start; }
  .piste-etapes .etapes p { padding-top: 6px; }
  .piste-etapes .etapes li:not(:last-child)::before { content: ""; position: absolute; left: 18px; top: 46px; bottom: -34px;
    width: 4px; border-radius: 2px; background: var(--filet); }
  .piste-etapes .etapes li:not(:last-child)::after { content: ""; position: absolute; left: 18px; top: 46px; bottom: -34px;
    width: 4px; border-radius: 2px; background: var(--marine); transform-origin: center top; }
}

/* Pourquoi moi : chaque preuve est un clip vertical, sous-titre compris */
.preuves-defile { outline-offset: 6px; }
.pourquoi .preuves { align-items: start; }
.carte-clip { display: grid; gap: 18px; align-content: start; }
.carte-clip__ecran { position: relative; width: min(100%, 250px); aspect-ratio: 9 / 16; display: flex; flex-direction: column;
  justify-content: space-between; align-items: flex-start; padding: 18px 16px 22px; overflow: hidden;
  background: linear-gradient(170deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .03));
  border: 1px solid rgba(255, 255, 255, .16); border-radius: 0 28px 28px 0; }
.carte-clip__haut { display: flex; width: 100%; justify-content: space-between; align-items: center; }
.carte-clip__format { font: 700 .75rem/1 var(--texte); letter-spacing: .08em; color: var(--sur-marine); }
.pourquoi .carte-clip__st { margin: 0 0 22%; max-width: 100%; padding: 9px 18px 11px 14px; border-radius: 0 999px 999px 0;
  background: var(--blanc); color: var(--marine); font: 700 1.1875rem/1.2 var(--texte); }
.carte-clip__barre { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, .18); }
.carte-clip__barre::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--avance, 40%); background: var(--blanc); }
.carte-clip:nth-child(1) { --avance: 28%; } .carte-clip:nth-child(2) { --avance: 62%; } .carte-clip:nth-child(3) { --avance: 88%; }
.carte-clip p { max-width: 22rem; }
@media (min-width: 768px) {
  .pourquoi .preuves { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .carte-clip:nth-child(2) { margin-top: 64px; }   /* les clips se décalent comme sur une pellicule */
}
@media (max-width: 767px) {   /* sur téléphone, les clips défilent du doigt, comme des Reels */
  .preuves-defile { overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--marge));
    padding: 4px var(--marge) 12px; scroll-padding-inline: var(--marge); scrollbar-width: none; }
  .preuves-defile::-webkit-scrollbar { display: none; }
  .pourquoi .preuves { display: flex; gap: 16px; width: max-content; }
  .carte-clip { width: min(72vw, 260px); scroll-snap-align: start; }
  .carte-clip__ecran { width: 100%; }
  .preuves-indice { display: block; margin-top: 4px; font-size: .875rem; color: var(--sur-marine); }
}
@media (min-width: 768px) { .preuves-indice { display: none; } }

/* ---------- Mouvement v2 (21 octobre) ----------
   CSS seul (la CSP interdit tout script). Tout reste lisible sans animation : chaque animation finit sur l'état normal.
   Moins de 5 s de mouvement automatique (WCAG 2.2.2). Tout est coupé par « réduire les animations » et à l'impression. */
@keyframes bwc-monte { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes bwc-ligne { from { transform: translateY(105%); } to { transform: none; } }
@keyframes bwc-fondu { from { opacity: 0; } to { opacity: 1; } }
@keyframes bwc-depuis-le-bord { from { transform: translateX(-100%); } to { transform: none; } }
@keyframes bwc-entre { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes bwc-pivote { 0%, 100% { transform: none; } 22%, 78% { transform: rotate(-3deg); } }
@keyframes bwc-regarde {
  0% { transform: none; }
  18%, 34% { transform: rotate(-13deg); }
  42% { transform: rotate(-6deg); } 50% { transform: rotate(-13deg); }
  58% { transform: rotate(-7deg); } 66%, 82% { transform: rotate(-13deg); }
  100% { transform: none; }
}
@keyframes bwc-vibre { 0% { opacity: 0; transform: scale(.7); } 40% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.25); } }
@keyframes bwc-bulle {
  0% { opacity: 0; transform: translateY(10px) scale(.9); }
  12%, 86% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateY(-8px); }
}
@keyframes bwc-coupe { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes bwc-tete-de-lecture { 0% { left: 0; opacity: 1; } 88% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
@keyframes bwc-apparait { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }
@keyframes bwc-carte { from { opacity: 0; transform: translateY(60px) rotate(-3deg); } to { opacity: 1; transform: none; } }
@keyframes bwc-balaie { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes bwc-derive { from { translate: 2% 0; } to { translate: -2% 0; } }
@keyframes bwc-deplie { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes bwc-filet { to { border-bottom-color: var(--filet); } }
@keyframes bwc-remplit-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes bwc-remplit-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes bwc-avance-x { from { left: 0; opacity: 1; } to { left: 100%; opacity: 1; } }
@keyframes bwc-allume { from { opacity: .3; } to { opacity: 1; } }

@media (prefers-reduced-motion: no-preference) {
  /* Arrivée, plus lente et plus douce : le titre monte ligne par ligne derrière un cache */
  .heros .display .l { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
  .heros .display .l > span { display: block; animation: bwc-ligne 1.05s cubic-bezier(.16, 1, .3, 1) both; }
  .heros .display .l:nth-child(1) > span { animation-delay: .15s; }
  .heros .display .l:nth-child(2) > span { animation-delay: .27s; }
  .heros__surtitre { animation: bwc-monte .9s cubic-bezier(.16, 1, .3, 1) .02s both; }
  .heros__lead { animation: bwc-monte 1s cubic-bezier(.16, 1, .3, 1) .42s both; }
  .heros .pilule--bord { animation: bwc-depuis-le-bord 1.1s cubic-bezier(.16, 1, .3, 1) .5s both; }
  .petits-mots { animation: bwc-fondu .9s ease-out .75s both; }
  .raccourcis .pilule { animation: bwc-monte .8s cubic-bezier(.16, 1, .3, 1) both; }
  .raccourcis .pilule:nth-child(1) { animation-delay: .8s; }
  .raccourcis .pilule:nth-child(2) { animation-delay: .88s; }
  .raccourcis .pilule:nth-child(3) { animation-delay: .96s; }
  .heros .timeline { animation: bwc-fondu .8s ease-out .85s both; }

  /* Le personnage : il arrive, son téléphone vibre, il lève la tête vers toi, acquiesce deux fois, se remet au travail */
  .heros__avatar .perso { transform-origin: 44% 86%;
    animation: bwc-entre 1s cubic-bezier(.16, 1, .3, 1) .1s both, bwc-pivote 2.6s cubic-bezier(.45, 0, .2, 1) 1.5s; }
  .perso__vibre { animation: bwc-vibre .28s ease-out 1.05s 2 both; }
  .perso__bulle { animation: bwc-bulle 2.9s cubic-bezier(.16, 1, .3, 1) 1.15s both; }
  .perso__tete img { animation: bwc-regarde 2.5s cubic-bezier(.45, 0, .2, 1) 1.55s both; }
  .perso:hover .perso__tete { transform: rotate(-12deg); }   /* au survol, il relève la tête vers toi */

  /* La frise du haut : une tête de lecture passe et découpe les 5 clips */
  .timeline__clip { transform-origin: left center; animation: bwc-coupe .3s cubic-bezier(.2, .7, .2, 1) both; }
  .timeline__clip.c1 { animation-delay: 1.13s; }
  .timeline__clip.c2 { animation-delay: 1.47s; }
  .timeline__clip.c3 { animation-delay: 1.77s; }
  .timeline__clip.c4 { animation-delay: 2.08s; }
  .timeline__clip.c5 { animation-delay: 2.44s; }
  .timeline__piste::after {
    content: ""; position: absolute; top: -3px; bottom: -3px; left: 0; width: 2px;
    border-radius: 1px; background: var(--terracotta); opacity: 0;
    animation: bwc-tete-de-lecture 1.7s linear .95s both;
  }

  .pilule { transition: background-color .15s ease, transform .25s cubic-bezier(.16, 1, .3, 1); }
  .pilule:hover { transform: translateX(3px); }
  .pilule:active { transform: translateX(3px) translateY(1px); }
  .faq details[open] p { animation: bwc-deplie .3s ease-out both; }

  @supports (animation-timeline: view()) {
    .pourquoi { overflow: clip; view-timeline: --pourquoi block; }
    .entete-bloc, #etapes .recois, .faq, .demo-carte {
      animation: bwc-apparait linear both; animation-timeline: view(); animation-range: entry 5% cover 25%;
    }
    /* La piste des étapes se remplit au défilement ; chaque étape s'allume quand la tête de lecture l'atteint */
    .piste-etapes__rempli { animation: bwc-remplit-x linear both; animation-timeline: --etapes; animation-range: cover 22% cover 52%; }
    .piste-etapes__tete { animation: bwc-avance-x linear both; animation-timeline: --etapes; animation-range: cover 22% cover 52%; }
    .piste-etapes .etapes li { animation: bwc-allume linear both; animation-timeline: --etapes; }
    .piste-etapes .etapes li:nth-child(1) { animation-range: cover 18% cover 24%; }
    .piste-etapes .etapes li:nth-child(2) { animation-range: cover 31% cover 37%; }
    .piste-etapes .etapes li:nth-child(3) { animation-range: cover 44% cover 50%; }
    @media (max-width: 767px) {
      .piste-etapes .etapes li:nth-child(1) { animation-range: cover 14% cover 22%; }
      .piste-etapes .etapes li:nth-child(2) { animation-range: cover 30% cover 38%; }
      .piste-etapes .etapes li:nth-child(3) { animation-range: cover 46% cover 54%; }
      .piste-etapes .etapes li:not(:last-child)::after { animation: bwc-remplit-y linear both; animation-timeline: --etapes; }
      .piste-etapes .etapes li:nth-child(1)::after { animation-range: cover 22% cover 30%; }
      .piste-etapes .etapes li:nth-child(2)::after { animation-range: cover 38% cover 46%; }
    }
    /* Les 3 clips de « Pourquoi moi » arrivent l'un après l'autre (repère : le bloc entier, pas le défilement du doigt) */
    .carte-clip { animation: bwc-carte linear both; animation-timeline: --pourquoi; }
    .carte-clip:nth-child(1) { animation-range: entry 30% cover 34%; }
    .carte-clip:nth-child(2) { animation-range: entry 45% cover 38%; }
    .carte-clip:nth-child(3) { animation-range: entry 60% cover 42%; }
    .signature-phrase__l2 { animation: bwc-balaie linear both; animation-timeline: view(); animation-range: entry 50% cover 30%; }
    .rushes { animation: bwc-derive linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
  }
  @supports (animation-timeline: scroll()) {
    .entete { animation: bwc-filet linear both; animation-timeline: scroll(); animation-range: 0 80px; }
  }
}
/* Sans animation (réduction demandée, navigateur ancien) : la piste est pleine, rien n'est caché */
@media (prefers-reduced-motion: reduce) { .perso__bulle, .perso__vibre, .piste-etapes__tete { display: none; } }
/* À l'impression, aucune animation : toute la page s'imprime telle quelle */
@media print { *, *::before, *::after { animation: none !important; transition: none !important; } .perso__bulle { display: none; } }
