/*
 * Page de vente b2send. Direction : docs/DA.md. Les jetons ci-dessous sont
 * COPIÉS de console/src/design/jetons.css (l'image Docker n'embarque pas
 * console/src) : mêmes noms, mêmes valeurs, vérifiés par
 * tests/test_vitrine_publique.py. En changer un, c'est le changer là-bas.
 */

@font-face {
  font-family: "Geist Variable";
  src: url("polices/geist-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono Variable";
  src: url("polices/geist-mono-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Chillax";
  src: url("polices/chillax-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Chillax";
  src: url("polices/chillax-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --fond: light-dark(#e4e7e2, #070809);
  --surface: light-dark(#ecefea, rgb(255 255 255 / 0.028));
  --surface-2: light-dark(#f1f2ee, rgb(255 255 255 / 0.04));
  --pilule: light-dark(#eef0eb, rgb(255 255 255 / 0.04));
  --pilule-survol: light-dark(#f7f8f5, rgb(255 255 255 / 0.08));
  --action: light-dark(#ffffff, rgb(255 255 255 / 0.04));
  --encre: light-dark(#15191a, #eceff3);
  --encre-2: light-dark(#3b4143, #c3c9d1);
  --encre-3: light-dark(#5f6664, #8e96a2);
  --fantome: light-dark(#cfd4d0, #262b32);
  --filet: light-dark(rgb(21 25 26 / 0.075), rgb(255 255 255 / 0.07));
  --filet-fort: light-dark(rgb(21 25 26 / 0.16), rgb(255 255 255 / 0.14));
  --plein: light-dark(#15191a, #f4f6f8);
  --sur-plein: light-dark(#f4f5f3, #0a0b0d);
  --accent: light-dark(#e8842c, #a9c8ff);
  --accent-doux: light-dark(rgb(232 132 44 / 0.14), rgb(169 200 255 / 0.16));
  --marque: #e8842c;
  --ok: light-dark(#197a42, #7fd9a3);
  --mal: light-dark(#b0372f, #f2978f);
  --mal-fond: light-dark(#f9e3e0, rgb(242 151 143 / 0.1));
  --ok-fond: light-dark(#ddf6e4, rgb(127 217 163 / 0.1));
  --chaud-fond: light-dark(#f8edd6, rgb(233 194 122 / 0.1));
  --repos-fond: light-dark(#e3e6e2, rgb(255 255 255 / 0.06));
  --chaud: light-dark(#8a5710, #e9c27a);
  --repos: light-dark(#5f6664, #9aa2ad);
  --pale: light-dark(#b8beba, #3a414b);
  --champ: light-dark(#fafbf9, #111214);
  --champ-bord: light-dark(#8c938f, #616873);
  --champ-bord-survol: light-dark(#5f6664, #8e96a2);
  --focus: light-dark(#c0600f, #a9c8ff);
  --trait-focus: 2px;
  --ombre-ligne: 0 14px 30px -22px light-dark(rgb(38 52 48 / 0.35), transparent),
    0 0 0 1px light-dark(transparent, rgb(255 255 255 / 0.07)) inset;
  --bulle: light-dark(#fafbf9, #14171c);
  --bulle-bord: light-dark(rgb(21 25 26 / 0.08), rgb(255 255 255 / 0.09));
  --ombre-bulle: 0 18px 40px -16px light-dark(rgb(38 52 48 / 0.3), rgb(0 0 0 / 0.8));
  --ombre-surface: 0 1px 0 light-dark(rgb(255 255 255 / 0.7), rgb(255 255 255 / 0.04)) inset,
    0 0 0 1px light-dark(transparent, rgb(255 255 255 / 0.045)) inset,
    0 24px 48px -32px light-dark(rgb(38 52 48 / 0.22), transparent);
  --police-texte: "Geist Variable", "Helvetica Neue", Arial, sans-serif;
  --police-code: "Geist Mono Variable", ui-monospace, Consolas, monospace;
  --police-titre: "Chillax", var(--police-texte);
  --police-logo: var(--police-titre);
  --graisse-titre: 500;
  --graisse-logo: 600;
  --interlettre-titre: -0.02em;
  --interlettre-logo: -0.018em;
  --graisse-fine: 300;
  --graisse-normale: 400;
  --graisse-appuyee: 500;
  --t-xs: 0.78125rem;
  --t-s: 0.84375rem;
  --t-m: 0.9375rem;
  --t-l: 1.1875rem;
  --t-xl: 1.5rem;
  --t-2xl: 2.25rem;
  --t-3xl: 2.75rem;
  --t-chiffre: 3.375rem;
  --t-chiffre-moyen: 1.875rem;
  --interlettre-chiffre: -0.045em;
  --e-1: 4px;
  --e-2: 8px;
  --e-3: 12px;
  --e-4: 16px;
  --e-5: 24px;
  --e-6: 32px;
  --e-7: 48px;
  --e-8: 64px;
  --e-9: 96px;
  --h-controle: 44px;
  --h-bouton: 48px;
  --h-tactile: 44px;
  --t-champ-tactile: 1rem;
  --r-carte: 24px;
  --r-ligne: 18px;
  --r-pilule: 14px;
  --r-controle: 12px;
  --r-rond: 999px;
  --trait: 1px;
  --trait-fort: 1.5px;
  --courbe: cubic-bezier(0.2, 0.7, 0.2, 1);
  --d-instant: 140ms;
  --d-court: 180ms;
  --d-moyen: 260ms;
  --d-long: 400ms;
  --d-arrivee: 900ms;
  --d-elan: 620ms;
  --pas-encre: 4px;
  --largeur-lecture: 64ch;
  --marge-page: clamp(16px, 3.2vw, 56px);
  --marge-page-haut: clamp(24px, 4vw, 52px);
}

:root,
[data-theme="clair"] {
  color-scheme: light;
}

[data-theme="sombre"] {
  color-scheme: dark;
}

:root:not([data-theme]) {
  color-scheme: light dark;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --d-instant: 1ms;
    --d-court: 1ms;
    --d-moyen: 1ms;
    --d-arrivee: 1ms;
  }
}

/* Propres à la page (pas de jeton console équivalent) */
:root {
  --largeur-page: 1200px;
  --hauteur-traits: 72px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  background: var(--fond);
}

body {
  margin: 0 auto;
  max-width: calc(var(--largeur-page) + 2 * var(--marge-page));
  padding: 0 var(--marge-page) var(--e-7);
  background: var(--fond);
  color: var(--encre);
  font-family: var(--police-texte);
  font-size: var(--t-m);
  font-weight: var(--graisse-normale);
  line-height: 1.55;
  font-feature-settings: "tnum";
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--police-titre);
  font-weight: var(--graisse-titre);
  letter-spacing: var(--interlettre-titre);
  line-height: 1.15;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

:focus-visible {
  outline: var(--trait-focus) solid var(--focus);
  outline-offset: 2px;
}

.evitement {
  position: absolute;
  left: var(--e-4);
  top: calc(-1 * var(--e-9));
  padding: var(--e-2) var(--e-4);
  border-radius: var(--r-controle);
  background: var(--plein);
  color: var(--sur-plein);
}

.evitement:focus {
  top: var(--e-4);
}

.visuellement-masque {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* --------------------------------------------------------------- en-tête */
.entete {
  display: flex;
  align-items: center;
  gap: var(--e-4);
  padding: var(--e-5) 0;
}

.logotype {
  display: inline-flex;
  align-items: baseline;
  gap: 0.211em;
  font-family: var(--police-logo);
  font-weight: var(--graisse-logo);
  letter-spacing: var(--interlettre-logo);
  font-size: var(--t-xl);
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  margin-right: auto;
  min-height: var(--h-tactile);
  align-content: center;
  align-items: center;
}

.logotype.petit {
  font-size: var(--t-l);
  margin-right: 0;
}

.fleche {
  width: 0.868em;
  height: 0.868em;
  overflow: visible;
}

.fleche .point {
  fill: var(--marque);
}

.navigation {
  display: flex;
  gap: var(--e-1);
}

.navigation a,
.pied nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--h-tactile);
  padding: 0 var(--e-3);
  border-radius: var(--r-pilule);
  color: var(--encre-2);
  text-decoration: none;
  transition: background-color var(--d-court) var(--courbe), color var(--d-court) var(--courbe);
}

.navigation a:hover,
.pied nav a:hover {
  background: var(--pilule-survol);
  color: var(--encre);
}

.navigation a[aria-current="page"] {
  color: var(--encre);
  font-weight: var(--graisse-appuyee);
  background: var(--pilule);
}

.theme {
  display: grid;
  place-items: center;
  width: var(--h-tactile);
  height: var(--h-tactile);
  border: 0;
  border-radius: var(--r-rond);
  background: var(--pilule);
  color: var(--encre-2);
  cursor: pointer;
  transition: background-color var(--d-court) var(--courbe);
}

.theme[hidden] {
  display: none;
}

.theme:hover {
  background: var(--pilule-survol);
  color: var(--encre);
}

.theme svg {
  width: 18px;
  height: 18px;
}

/* ---------------------------------------------------------------- cartes */
.carte {
  background: var(--surface);
  border-radius: var(--r-carte);
  box-shadow: var(--ombre-surface);
  padding: var(--e-5);
}

.note {
  color: var(--encre-3);
  font-size: var(--t-s);
}

.note.centre {
  text-align: center;
  margin-top: var(--e-5);
}

.sous-titre {
  margin-top: var(--e-3);
  color: var(--encre-2);
  font-size: var(--t-l);
  max-width: var(--largeur-lecture);
}

.section {
  margin-top: var(--e-8);
}

.titre-section {
  font-size: var(--t-xl);
  margin-bottom: var(--e-5);
}

.grille {
  display: grid;
  gap: var(--e-5);
}

.grille.trois {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.grille.deux {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  margin-top: var(--e-5);
}

/* ----------------------------------------------------------------- héros */
.heros {
  display: grid;
  gap: var(--e-6);
  align-items: center;
  padding-top: var(--marge-page-haut);
}

@media (min-width: 960px) {
  .heros {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: var(--e-7);
  }
}

.heros h1,
.en-tete-page h1 {
  font-size: var(--t-3xl);
  max-width: 16ch;
}

.formulaire {
  margin-top: var(--e-6);
  scroll-margin-top: var(--e-5);
}

.formulaire label {
  display: block;
  color: var(--encre-2);
  font-size: var(--t-s);
  margin-bottom: var(--e-2);
}

.ligne-champ {
  display: flex;
  flex-wrap: wrap;
  gap: var(--e-3);
}

.champ {
  flex: 1 1 220px;
  display: flex;
  min-height: var(--h-controle);
  border: var(--trait) solid var(--champ-bord);
  border-radius: var(--r-controle);
  background: var(--champ);
  transition: border-color var(--d-court) var(--courbe), box-shadow var(--d-court) var(--courbe);
}

.champ:hover {
  border-color: var(--champ-bord-survol);
}

.champ:focus-within {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px var(--accent-doux);
}

.champ.en-erreur {
  border-color: var(--mal);
}

.champ input {
  flex: 1;
  min-width: 0;
  padding: 0 var(--e-3);
  border: 0;
  background: transparent;
  color: var(--encre);
  font: inherit;
  font-size: var(--t-champ-tactile);
  outline: none;
}

.champ input::placeholder {
  color: var(--encre-3);
}

.champ input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px var(--champ) inset;
  -webkit-text-fill-color: var(--encre);
}

.erreur {
  margin-top: var(--e-2);
  color: var(--mal);
  font-size: var(--t-s);
}

.formulaire .note {
  margin-top: var(--e-3);
}

.succes {
  display: flex;
  align-items: center;
  gap: var(--e-2);
  color: var(--ok);
  font-weight: var(--graisse-appuyee);
}

.succes svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.piege {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --------------------------------------------------------------- boutons */
.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--e-2);
  min-height: var(--h-bouton);
  padding: 0 var(--e-5);
  border: 0;
  border-radius: var(--r-pilule);
  font: inherit;
  font-weight: var(--graisse-appuyee);
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--d-court) var(--courbe), transform var(--d-court) var(--courbe);
}

.bouton.plein {
  background: var(--plein);
  color: var(--sur-plein);
}

[data-theme="sombre"] .bouton.plein {
  border-radius: var(--r-rond);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .bouton.plein {
    border-radius: var(--r-rond);
  }
}

.bouton.plein:active {
  transform: scale(0.98);
}

.bouton.discret {
  background: var(--pilule);
  color: var(--encre);
  box-shadow: 0 0 0 var(--trait) var(--filet) inset;
}

.bouton.discret:hover {
  background: var(--pilule-survol);
}

.bouton[hidden] {
  display: none;
}

/* ---------------------------------------------------------------- agenda */
.agenda figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--e-2);
}

.agenda h2 {
  font-size: var(--t-l);
}

.legende {
  display: inline-flex;
  align-items: center;
  gap: var(--e-2);
  color: var(--encre-3);
  font-size: var(--t-xs);
}

.puce {
  width: 8px;
  height: 8px;
  border-radius: var(--r-rond);
  margin-left: var(--e-2);
}

.puce.envoye {
  background: var(--encre);
}

.puce.prevu {
  background: var(--fantome);
  box-shadow: 0 0 0 var(--trait) var(--filet-fort) inset;
}

.jours {
  display: grid;
  gap: var(--e-3);
  margin: var(--e-5) 0 var(--e-4);
}

.jour {
  display: grid;
  grid-template-columns: 3em minmax(0, 1fr);
  align-items: end;
  gap: var(--e-3);
}

.nom-jour {
  color: var(--encre-3);
  font-size: var(--t-xs);
  line-height: 1;
}

.jour.courant .nom-jour {
  color: var(--encre);
  font-weight: var(--graisse-appuyee);
}

.traits {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: calc(var(--hauteur-traits) / 2);
  border-bottom: var(--trait) solid var(--filet);
}

.jour.courant .traits {
  border-bottom-color: var(--accent);
}

.traits i {
  display: block;
  width: var(--trait-fort);
  border-radius: var(--r-rond);
  transform-origin: bottom;
  animation: monte var(--d-arrivee) var(--courbe) both;
}

.traits i.envoye {
  background: var(--encre);
}

.traits i.prevu {
  background: var(--fantome);
}

.traits .h1 { height: 30%; }
.traits .h2 { height: 44%; }
.traits .h3 { height: 58%; }
.traits .h4 { height: 72%; }
.traits .h5 { height: 86%; }
.traits .h6 { height: 100%; }

.jours:hover .traits i:hover {
  background: var(--accent);
}

@keyframes monte {
  from {
    transform: scaleY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .traits i {
    animation: none;
  }
}

/* ------------------------------------------------------------- avantages */
.avantage h3 {
  font-size: var(--t-l);
}

.avantage p {
  margin-top: var(--e-2);
  color: var(--encre-2);
}

/* ------------------------------------------------------------------ prix */
.prix-resume {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--e-5) var(--e-7);
  text-decoration: none;
  transition: background-color var(--d-court) var(--courbe);
}

.prix-resume:hover {
  background: var(--surface-2);
}

.prix-mini {
  display: grid;
}

.chiffre {
  font-family: var(--police-texte);
  font-weight: var(--graisse-fine);
  letter-spacing: var(--interlettre-chiffre);
  line-height: 1.05;
}

.prix-mini .chiffre {
  font-size: var(--t-chiffre-moyen);
}

.libelle {
  color: var(--encre-3);
  font-size: var(--t-s);
}

.lien-carte {
  display: inline-flex;
  align-items: center;
  gap: var(--e-1);
  margin-left: auto;
  font-weight: var(--graisse-appuyee);
}

.lien-carte svg {
  width: 18px;
  height: 18px;
  transition: transform var(--d-court) var(--courbe);
}

.prix-resume:hover .lien-carte svg {
  transform: translateX(3px);
}

.section > .note {
  margin-top: var(--e-3);
}

/* ------------------------------------------------------------ dépliants */
.questions {
  display: grid;
  gap: var(--e-3);
  max-width: 820px;
}

.depliant {
  padding: 0;
}

.depliant summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--e-1) var(--e-3);
  min-height: 56px;
  padding: var(--e-4) calc(var(--e-5) + 28px) var(--e-4) var(--e-5);
  position: relative;
  cursor: pointer;
  list-style: none;
  font-weight: var(--graisse-appuyee);
  border-radius: var(--r-carte);
  transition: background-color var(--d-court) var(--courbe);
}

.depliant summary::-webkit-details-marker {
  display: none;
}

.depliant summary:hover {
  background: var(--surface-2);
}

.depliant summary::after {
  content: "";
  position: absolute;
  right: var(--e-5);
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -6px;
  border-right: var(--trait-fort) solid var(--encre-3);
  border-bottom: var(--trait-fort) solid var(--encre-3);
  transform: rotate(45deg);
  transition: transform var(--d-moyen) var(--courbe);
}

.depliant[open] summary::after {
  transform: translateY(4px) rotate(225deg);
}

.depliant[open] {
  box-shadow: var(--ombre-surface), 0 0 0 var(--trait) var(--filet-fort) inset;
}

.depliant > p,
.depliant > .note,
.depliant > .defile {
  padding: 0 var(--e-5) var(--e-5);
  color: var(--encre-2);
}

.depliant .resume {
  color: var(--encre-3);
  font-size: var(--t-s);
  font-weight: var(--graisse-normale);
}

.depliant.large + .depliant.large {
  margin-top: var(--e-3);
}

/* ---------------------------------------------------------------- tarifs */
.en-tete-page {
  padding: var(--marge-page-haut) 0 var(--e-6);
}

.offres {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.offre {
  display: flex;
  flex-direction: column;
  gap: var(--e-2);
}

.offre h2 {
  font-size: var(--t-l);
}

.prix {
  display: flex;
  align-items: baseline;
  gap: var(--e-2);
  margin-top: var(--e-2);
}

.prix .chiffre {
  font-size: var(--t-chiffre);
}

.par-mois,
.annuel {
  color: var(--encre-3);
  font-size: var(--t-s);
}

.quotas {
  list-style: none;
  margin: var(--e-3) 0 var(--e-4);
  padding: var(--e-3) 0 0;
  border-top: var(--trait) solid var(--filet);
  display: grid;
  gap: var(--e-1);
  color: var(--encre-2);
}

.quotas .valeur {
  color: var(--encre);
  font-weight: var(--graisse-appuyee);
}

.offre .bouton {
  margin-top: auto;
}

.defile {
  overflow-x: auto;
}

.tableau {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--t-s);
}

.tableau th,
.tableau td {
  padding: var(--e-2) var(--e-3);
  text-align: left;
  border-bottom: var(--trait) solid var(--filet);
  white-space: nowrap;
}

.tableau thead th {
  color: var(--encre-3);
  font-weight: var(--graisse-appuyee);
}

.tableau tbody th {
  font-weight: var(--graisse-normale);
  color: var(--encre-2);
}

.tableau td {
  color: var(--encre);
}

/* ----------------------------------------------------------- développeurs */
.bloc-dev h2 {
  font-size: var(--t-l);
}

.bloc-dev > p {
  margin-top: var(--e-2);
  color: var(--encre-2);
}

.tete-bloc {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--e-4);
}

.chiffre-bloc {
  display: grid;
  justify-items: end;
}

.chiffre-bloc .chiffre {
  font-size: var(--t-chiffre);
}

.clients {
  color: var(--encre-2);
}

.code {
  position: relative;
  margin: var(--e-4) 0;
}

.code pre {
  margin: 0;
  padding: var(--e-4);
  overflow-x: auto;
  border-radius: var(--r-controle);
  background: var(--surface-2);
  box-shadow: 0 0 0 var(--trait) var(--filet) inset;
  font-family: var(--police-code);
  font-size: var(--t-s);
  line-height: 1.6;
}

.code {
  display: grid;
  justify-items: end;
  gap: var(--e-2);
}

.code pre {
  justify-self: stretch;
}

.code .copier {
  min-height: var(--h-controle);
  padding: 0 var(--e-4);
}

code {
  font-family: var(--police-code);
}

.bloc-dev .note {
  margin-top: var(--e-2);
}

.dialogue {
  margin: var(--e-5) 0 0;
  padding: var(--e-4);
  border-radius: var(--r-controle);
  box-shadow: 0 0 0 var(--trait) var(--filet) inset;
  display: grid;
  gap: var(--e-2);
}

.dialogue figcaption {
  color: var(--encre-3);
  font-size: var(--t-xs);
}

.dialogue .outil {
  color: var(--encre-3);
  font-size: var(--t-s);
}

.lien {
  display: inline-flex;
  align-items: center;
  min-height: var(--h-tactile);
  font-weight: var(--graisse-appuyee);
}

.appel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--e-4);
}

.appel .titre-section {
  margin: 0;
}

/* ------------------------------------------------------------------ pied */
.pied {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--e-4);
  margin-top: var(--e-8);
  padding-top: var(--e-5);
  border-top: var(--trait) solid var(--filet);
}

.pied nav {
  display: flex;
  flex-wrap: wrap;
}

.pied nav a {
  font-size: var(--t-s);
  color: var(--encre-3);
}

/* -------------------------------------------------------------- téléphone */
@media (max-width: 719px) {
  .heros h1,
  .en-tete-page h1 {
    font-size: var(--t-2xl);
  }

  .sous-titre {
    font-size: var(--t-m);
  }

  .section {
    margin-top: var(--e-7);
  }

  .carte {
    padding: var(--e-4);
  }

  .grille {
    gap: var(--e-3);
  }

  .bouton.plein {
    flex: 1 1 100%;
  }

  .masque-etroit {
    display: none !important;
  }

  .entete {
    gap: var(--e-2);
  }

  .navigation a {
    padding: 0 var(--e-2);
  }

  .prix-resume {
    gap: var(--e-4) var(--e-5);
  }

  .lien-carte {
    margin-left: 0;
    flex-basis: 100%;
  }

  .depliant summary {
    padding-left: var(--e-4);
  }

  .depliant > p,
  .depliant > .note,
  .depliant > .defile {
    padding: 0 var(--e-4) var(--e-4);
  }
}

/* Après les règles de téléphone : les figures n'ont pas de marge, un dépliant porte ses propres retraits. */
figure.carte {
  margin: 0;
}

.carte.depliant {
  padding: 0;
}

@media (max-width: 719px) {
  .section {
    margin-top: var(--e-6);
  }

  .titre-section {
    margin-bottom: var(--e-4);
  }

  .jours {
    gap: var(--e-2);
    margin: var(--e-4) 0 var(--e-3);
  }

  .formulaire {
    margin-top: var(--e-5);
  }

  .heros {
    gap: var(--e-5);
  }
}

/* ======================================================================
 * Grammaire de la console, en léger (docs/DA.md § 6 et § 7) :
 * au repos le minimum, le reste au survol, au focus et au toucher.
 * ==================================================================== */

@media (prefers-reduced-motion: reduce) {
  :root {
    --d-long: 1ms;
    --d-elan: 1ms;
  }
}

/* ------------------------------------------------------ l'élan du bouton */
.elan {
  position: relative;
  display: inline-flex;
  width: 18px;
  height: 18px;
  transition: transform var(--d-court) var(--courbe);
}

.elan svg {
  width: 100%;
  height: 100%;
}

.elan::before {
  content: "";
  position: absolute;
  top: 50%;
  right: calc(100% - 2px);
  width: 14px;
  height: var(--trait-fort);
  margin-top: calc(var(--trait-fort) / -2);
  border-radius: 1px;
  background: currentColor;
  opacity: 0;
  transform-origin: right center;
  transform: scaleX(0);
}

.bouton:is(:hover, :focus-visible) .elan {
  transform: translateX(3px);
}

.bouton:active .elan {
  animation: elan-avance var(--d-elan) var(--courbe);
}

.bouton:active .elan::before {
  animation: sillage var(--d-elan) var(--courbe) both;
}

@keyframes elan-avance {
  28% {
    transform: translateX(6px);
  }
}

@keyframes sillage {
  0% {
    opacity: 0;
    transform: scaleX(0);
  }

  26% {
    opacity: 0.8;
    transform: scaleX(1);
  }

  100% {
    opacity: 0;
    transform: scaleX(0);
  }
}

/* ------------------------------------------------------- agenda vivant */
.agenda {
  cursor: crosshair;  /* dans tout le cadre, pas seulement sur les traits */
  position: relative;
}

.agenda figcaption {
  align-items: flex-start;
}

.agenda-chiffre {
  display: flex;
  align-items: baseline;
  gap: var(--e-2);
  margin-top: var(--e-2);
}

.agenda-chiffre .chiffre {
  font-size: var(--t-chiffre);
}

.jours {
  position: relative;
  border-radius: var(--r-controle);
  outline-offset: 6px;
}

.traits i {
  cursor: crosshair;
  transition-property: background-color, transform, opacity;
  transition-duration: var(--d-instant);
  transition-timing-function: var(--courbe);
  animation-delay: calc(120ms + var(--rang, 0) * 6ms);
}

.traits i.actif {
  background: var(--accent);
  transform: scaleY(1.18);
}

.jours:has(i.actif) .traits i:not(.actif) {
  opacity: 0.55;
}

.bulle {
  position: absolute;
  z-index: 2;
  width: 250px;
  padding: var(--e-3) var(--e-4);
  border-radius: var(--r-controle);
  background: var(--bulle);
  box-shadow: var(--ombre-bulle), 0 0 0 var(--trait) var(--bulle-bord) inset;
  pointer-events: none;
  font-size: var(--t-s);
  line-height: 1.45;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity var(--d-instant) var(--courbe), transform var(--d-instant) var(--courbe);
}

.bulle[hidden] {
  display: none;
}

.bulle.visible {
  opacity: 1;
  transform: none;
}

.bulle .meta {
  display: block;
  color: var(--encre-3);
  font-size: var(--t-xs);
}

.bulle .heure {
  display: block;
  font-size: var(--t-chiffre-moyen);
  font-weight: var(--graisse-fine);
  letter-spacing: var(--interlettre-chiffre);
  line-height: 1.15;
}

.bulle .raison {
  display: block;
  margin-top: var(--e-2);
  padding-top: var(--e-2);
  border-top: var(--trait) solid var(--filet);
  color: var(--encre-2);
}

.si-toucher {
  display: none;
}

@media (hover: none) {
  .si-souris {
    display: none;
  }

  .si-toucher {
    display: inline;
  }
}

/* ------------------------------------------------------- le moment MCP */
.moment-mcp {
  display: grid;
  gap: var(--e-6);
  align-items: stretch;
}

@media (min-width: 960px) {
  .moment-mcp {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--e-7);
  }
}

.surtitre {
  color: var(--encre-3);
  font-size: var(--t-s);
  margin-bottom: var(--e-2);
}

.titre-moment {
  font-size: var(--t-3xl);
  max-width: 14ch;
}

.mcp-phrase {
  margin-top: var(--e-3);
  color: var(--encre-2);
  max-width: 44ch;
}

.mcp-chiffre {
  display: flex;
  align-items: baseline;
  gap: var(--e-2);
  margin: var(--e-5) 0;
}

.mcp-chiffre .chiffre {
  font-size: var(--t-chiffre);
}

/* Onglets au trait d'encre : une piste de traits, encrés sous l'onglet actif */
.onglets {
  position: relative;
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  gap: var(--e-5);
  padding-bottom: 14px;
}

.onglets button {
  flex: none;
  min-height: var(--h-tactile);
  padding: 0;
  border: 0;
  background: none;
  color: var(--encre-3);
  font: inherit;
  cursor: pointer;
  transition: color var(--d-court) var(--courbe);
}

.onglets button:hover {
  color: var(--encre-2);
}

.onglets button[aria-selected="true"] {
  color: var(--encre);
  font-weight: var(--graisse-appuyee);
}

.piste {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 10px;
  display: flex;
  align-items: flex-end;
  gap: calc(var(--pas-encre) - var(--trait-fort));
  pointer-events: none;
}

.piste i {
  flex: none;
  display: block;
  width: var(--trait-fort);
  height: 100%;
  border-radius: 1px;
  background: var(--fantome);
  transform-origin: bottom;
  transform: scaleY(0.45);
  transition: background-color var(--d-court) var(--courbe), transform var(--d-court) var(--courbe);
}

.piste i.encre {
  background: var(--encre);
  transform: none;
}

.piste i.apercu {
  background: var(--accent);
  transform: scaleY(0.8);
}

.moment-mcp .code {
  margin-top: var(--e-4);
}

/* La scène : un agent pilote b2send, jouée une fois à l'arrivée dans la vue */
.scene {
  position: relative;
  margin: 0;
  padding: var(--e-5);
  border-radius: var(--r-carte);
  background: var(--surface);
  box-shadow: var(--ombre-surface);
}

.scene-tete {
  display: flex;
  align-items: center;
  gap: var(--e-2);
  padding-bottom: var(--e-4);
  margin-bottom: var(--e-4);
  border-bottom: var(--trait) solid var(--filet);
  color: var(--encre-2);
  font-size: var(--t-s);
}

.fleche-scene {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: var(--r-rond);
  background: var(--pilule);
  color: var(--encre);
}

.fleche-scene .fleche {
  width: 13px;
  height: 13px;
}

.scene-exemple {
  margin-left: auto;
  color: var(--encre-3);
  font-size: var(--t-xs);
}

.fil {
  list-style: none;
  margin: 0;
  padding: 0 0 var(--e-7);
  display: grid;
  gap: var(--e-3);
}

.pas {
  transition: opacity var(--d-long) var(--courbe), transform var(--d-long) var(--courbe);
}

.pas.moi {
  justify-self: end;
  max-width: 85%;
  padding: var(--e-2) var(--e-4);
  border-radius: var(--r-pilule);
  background: var(--plein);
  color: var(--sur-plein);
}

.pas.agent {
  max-width: 92%;
}

.pas.outil {
  display: flex;
  align-items: center;
  gap: var(--e-3);
  color: var(--encre-3);
  font-size: var(--t-s);
}

.pas.outil code {
  color: var(--encre-2);
}

.pas.outil .etat::before {
  content: "· ";
}

/* Le trait qui part : accent, puis il se pose en encre (DUREE_ENVOI_MS de la console) */
.envoi {
  flex: none;
  width: var(--trait-fort);
  height: 16px;
  border-radius: 1px;
  background: var(--encre);
}

.scene.en-attente .pas {
  opacity: 0;
  transform: translateY(8px);
}

.scene.joue .pas {
  opacity: 1;
  transform: none;
  transition-delay: calc(var(--rang, 0) * 520ms);
}

.scene.joue .envoi {
  animation: part 700ms var(--courbe) both;
  animation-delay: calc(var(--rang, 0) * 520ms + 120ms);
}

@keyframes part {
  0% {
    background: var(--accent);
    transform: translateY(6px) scaleY(0.4);
  }

  50% {
    background: var(--accent);
    transform: translateY(-3px) scaleY(1.1);
  }

  100% {
    background: var(--encre);
    transform: none;
  }
}

.rejouer {
  position: absolute;
  right: var(--e-4);
  bottom: var(--e-4);
  display: grid;
  place-items: center;
  width: var(--h-tactile);
  height: var(--h-tactile);
  border: 0;
  border-radius: var(--r-rond);
  background: var(--pilule);
  color: var(--encre-2);
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--d-court) var(--courbe), background-color var(--d-court) var(--courbe);
}

.rejouer svg {
  width: 18px;
  height: 18px;
  transition: transform var(--d-moyen) var(--courbe);
}

.rejouer[hidden] {
  display: none;
}

.scene:is(:hover, :focus-within) .rejouer {
  opacity: 1;
}

.rejouer:hover {
  background: var(--pilule-survol);
}

.rejouer:hover svg {
  transform: rotate(-180deg);
}

@media (hover: none) {
  .rejouer {
    opacity: 1;
  }
}

.garde-fous {
  margin-top: var(--e-4);
}

@media (prefers-reduced-motion: reduce) {
  .scene.en-attente .pas,
  .scene.joue .pas {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .scene.joue .envoi,
  .bouton:active .elan,
  .bouton:active .elan::before {
    animation: none;
  }
}

@media (max-width: 719px) {
  .titre-moment {
    font-size: var(--t-2xl);
  }

  .scene {
    padding: var(--e-4);
  }

  .agenda-chiffre .chiffre,
  .mcp-chiffre .chiffre {
    font-size: var(--t-chiffre-moyen);
  }
}

.code[hidden] {
  display: none;
}

/* ======================================================================
 * v3 : page de vente (skill de conversion) : premier écran, preuves
 * animées, moment MCP inversé, comparatif, offre, second formulaire.
 * Apparitions : une fois par bloc, 450 ms, 12 px (--d-apparition).
 * ==================================================================== */

:root {
  --d-apparition: 450ms;
  --decalage-apparition: 12px;
  --t-titre-heros: clamp(2.5rem, 5.4vw, 4.75rem);
  --t-titre-grand: clamp(1.75rem, 3.2vw, 2.75rem);
  --t-titre-mobile: 1.75rem;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --d-apparition: 1ms;
    --decalage-apparition: 0px;
  }
}

/* Apparition d'un bloc à son entrée dans la vue (le script pose .attend puis .vu) */
.attend {
  opacity: 0;
  transform: translateY(var(--decalage-apparition));
}

.vu {
  opacity: 1;
  transform: none;
  transition: opacity var(--d-apparition) var(--courbe), transform var(--d-apparition) var(--courbe);
}

/* ------------------------------------------------------------ héros */
.heros h1 {
  font-size: var(--t-titre-heros);
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 15ch;
}

.heros .formulaire {
  margin-top: var(--e-6);
  max-width: 560px;
}

.formulaire {
  scroll-margin-top: var(--e-6);
}

.bulle .objet {
  display: block;
  margin-top: var(--e-1);
  color: var(--encre);
  font-weight: var(--graisse-appuyee);
}

/* ------------------------------------------------------- titres grands */
.titre-section.grand {
  font-size: var(--t-titre-grand);
  letter-spacing: -0.025em;
  max-width: 18ch;
  margin-bottom: var(--e-6);
}

.section > .sous-titre {
  margin: calc(-1 * var(--e-4)) 0 var(--e-6);
}

/* ---------------------------------------------------- moment MCP inversé */
.inverse {
  position: relative;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  margin-top: var(--e-9);
  padding: var(--e-9) var(--marge-page);
  color-scheme: dark;
  background: var(--fond);
  color: var(--encre);
}

[data-theme="sombre"] .inverse {
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .inverse {
    color-scheme: light;
  }
}

.inverse-contenu {
  max-width: var(--largeur-page);
  margin: 0 auto;
}

.inverse .titre-moment {
  font-size: var(--t-titre-heros);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.pas.resultat {
  display: grid;
  gap: var(--e-1);
  padding: var(--e-4);
  border-radius: var(--r-controle);
  background: var(--surface-2);
  box-shadow: 0 0 0 var(--trait) var(--filet-fort) inset;
}

.resultat-titre {
  font-family: var(--police-titre);
  font-size: var(--t-l);
}

.resultat-ligne {
  color: var(--encre-2);
  font-size: var(--t-s);
}

/* --------------------------------------------------------------- offres */
.offre.mise-en-avant {
  box-shadow: var(--ombre-surface), 0 0 0 var(--trait) var(--filet-fort) inset;
}

.offre .prix .chiffre {
  font-size: var(--t-chiffre);
}

.offre .bouton {
  margin-top: auto;
}

/* ------------------------------------------------------ appel final */
.appel-final {
  display: grid;
  justify-items: center;
  text-align: center;
  padding: var(--e-8) 0;
  border-top: var(--trait) solid var(--filet);
  border-bottom: var(--trait) solid var(--filet);
}

.appel-final .formulaire {
  width: min(100%, 560px);
  text-align: left;
}

.appel-final .titre-section.grand {
  max-width: none;
}

.formulaire .note {
  margin-top: var(--e-3);
}

@media (max-width: 719px) {
  

  .inverse {
    margin-top: var(--e-8);
    padding: var(--e-8) var(--marge-page);
  }

  .contact {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "adresse statut" "pistes pistes";
    row-gap: var(--e-2);
  }

  .contact .adresse { grid-area: adresse; }
  .contact .statut { grid-area: statut; }
  .contact .pistes { grid-area: pistes; }

  .appel-final {
    padding: var(--e-7) 0;
  }
}

@media (max-width: 719px) {
  .section .offres {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .offre .prix {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .offre .prix .chiffre {
    font-size: var(--t-chiffre-moyen);
  }

  .offre .quotas {
    font-size: var(--t-s);
  }

  .offre .bouton {
    padding: 0 var(--e-3);
  }

  

  

  
}

/* ======================================================================
 * v4 : cinq bénéfices, un bloc chacun : un titre, une phrase, une preuve.
 * La preuve se joue une fois à l'entrée dans la vue ; le détail se
 * révèle au survol, au focus et au toucher.
 * ==================================================================== */

.heros h1 {
  max-width: 12ch;
}

.benefice {
  display: grid;
  gap: var(--e-5);
  align-items: center;
  margin-top: var(--e-9);
}

@media (min-width: 960px) {
  .benefice {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: var(--e-8);
  }

  .benefice.inverse-ordre .benefice-texte {
    order: 2;
  }
}

.benefice h2 {
  font-size: var(--t-titre-grand);
  letter-spacing: -0.025em;
  line-height: 1.08;
  max-width: 14ch;
}

.benefice-texte > p {
  margin-top: var(--e-4);
  color: var(--encre-2);
  font-size: var(--t-l);
  line-height: 1.5;
  max-width: 36ch;
}

.benefice-texte .discret-lien {
  margin-top: var(--e-5);
  color: var(--encre-3);
  font-size: var(--t-s);
}

.demo {
  margin: 0;
  display: grid;
  gap: var(--e-4);
  transition: background-color var(--d-court) var(--courbe);
}

.demo > .note {
  justify-self: end;
}

.demo-tete {
  color: var(--encre-3);
  font-size: var(--t-s);
}

.mecanismes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--e-2) var(--e-5);
  color: var(--encre-2);
  font-size: var(--t-s);
}

.mecanismes li {
  display: inline-flex;
  align-items: center;
  gap: var(--e-2);
  transition: opacity var(--d-moyen) var(--courbe), transform var(--d-moyen) var(--courbe);
}

.mecanismes .puce {
  margin: 0;
}

@media (hover: hover) {
  .mecanismes li {
    opacity: 0.35;
  }

  .demo:is(:hover, :focus-within) .mecanismes li {
    opacity: 1;
  }

  .demo:is(:hover, :focus-within) .mecanismes li:nth-child(2) { transition-delay: 60ms; }
  .demo:is(:hover, :focus-within) .mecanismes li:nth-child(3) { transition-delay: 120ms; }
}

.reponses {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--e-2);
}

.action {
  padding: var(--e-1) var(--e-3);
  border-radius: var(--r-rond);
  background: var(--action);
  box-shadow: 0 0 0 var(--trait) var(--filet) inset;
  font-size: var(--t-xs);
  font-weight: var(--graisse-appuyee);
}

/* L'agent : le texte se tape, puis la campagne apparaît */
.benefice .scene .fil {
  padding-bottom: var(--e-6);
}

.frappe .texte-pas::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  vertical-align: -0.15em;
  background: currentColor;
  opacity: 0;
}

.frappe.en-cours .texte-pas::after {
  opacity: 1;
}

.scene.joue .pas.frappe {
  transition-delay: 0ms;
}

.scene.joue .pas:not(.frappe) {
  transition-delay: calc(var(--depart, 0ms) + var(--rang, 0) * 420ms);
}

.scene.joue .envoi {
  animation-delay: calc(var(--depart, 0ms) + var(--rang, 0) * 420ms + 120ms);
}

.reponse {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "de classe" "extrait repondre";
  gap: var(--e-1) var(--e-3);
  padding: var(--e-3) var(--e-4);
  border-radius: var(--r-ligne);
  background: var(--surface-2);
  outline-offset: 2px;
  transition: background-color var(--d-court) var(--courbe);
}

.reponse .de { grid-area: de; font-weight: var(--graisse-appuyee); }
.reponse .extrait { grid-area: extrait; color: var(--encre-2); font-size: var(--t-s); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.classe {
  grid-area: classe;
  justify-self: end;
  padding: 2px var(--e-3);
  border-radius: var(--r-rond);
  font-size: var(--t-xs);
  font-weight: var(--graisse-appuyee);
  transition: opacity var(--d-long) var(--courbe), transform var(--d-long) var(--courbe);
}

.classe-interesse { color: var(--ok); background: var(--ok-fond); }
.classe-absence { color: var(--repos); background: var(--repos-fond); }
.classe-pas_maintenant { color: var(--chaud); background: var(--chaud-fond); }

.repondre {
  grid-area: repondre;
  justify-self: end;
  font-size: var(--t-xs);
  font-weight: var(--graisse-appuyee);
  opacity: 0;
  transform: translateX(6px);
  transition: opacity var(--d-court) var(--courbe), transform var(--d-court) var(--courbe);
}

.reponse:is(:hover, :focus) {
  background: var(--pilule-survol);
}

.reponse:is(:hover, :focus) .repondre {
  opacity: 1;
  transform: none;
}

.attend-demo .classe { opacity: 0; transform: scale(0.9); }
.joue .reponse:nth-child(1) .classe { transition-delay: 300ms; }
.joue .reponse:nth-child(2) .classe { transition-delay: 600ms; }
.joue .reponse:nth-child(3) .classe { transition-delay: 900ms; }

/* Réassurance : une ligne */
.reassurance {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--e-2);
  margin-top: var(--e-8);
  padding: var(--e-5) 0;
  border-top: var(--trait) solid var(--filet);
  border-bottom: var(--trait) solid var(--filet);
  color: var(--encre-2);
  text-align: center;
}

.reassurance svg {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--ok);
}

@media (max-width: 719px) {
  .benefice {
    margin-top: var(--e-7);
    gap: var(--e-4);
  }

  .benefice-texte > p {
    margin-top: var(--e-2);
    font-size: var(--t-m);
  }

  .benefice h2 {
    font-size: var(--t-2xl);
  }

  

  .demo {
    gap: var(--e-3);
  }

  

  .agenda .jours {
    gap: var(--e-1);
  }

  .agenda .traits {
    height: 26px;
  }

  .agenda-chiffre .chiffre {
    font-size: var(--t-xl);
  }

  .reassurance {
    margin-top: var(--e-7);
    font-size: var(--t-s);
  }

  .reponse {
    padding: var(--e-2) var(--e-3);
  }
}

@media (max-width: 719px) {
  

  

  .offre .quotas {
    margin: var(--e-2) 0 var(--e-3);
  }

  .section .offres {
    gap: var(--e-2);
  }

  .scene .pas.outil {
    font-size: var(--t-xs);
  }

  .scene .scene-tete {
    padding-bottom: var(--e-3);
    margin-bottom: var(--e-3);
  }

  .heros .formulaire {
    margin-top: var(--e-5);
  }

  .section {
    margin-top: var(--e-7);
  }
}

/* Téléphone : les offres en lignes compactes, un seul bouton (l'offre mise en avant) */
@media (max-width: 719px) {
  .section .offres {
    grid-template-columns: minmax(0, 1fr);
  }

  .section .offre {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "nom prix" "quotas quotas" "bouton bouton";
    align-items: baseline;
    gap: var(--e-1) var(--e-3);
    padding: var(--e-3) var(--e-4);
  }

  .section .offre h3 { grid-area: nom; }
  .section .offre .prix { grid-area: prix; flex-direction: row; align-items: baseline; gap: var(--e-1); margin: 0; }
  .section .offre .quotas {
    grid-area: quotas;
    display: flex;
    flex-wrap: wrap;
    gap: 0 var(--e-3);
    margin: 0;
    padding: 0;
    border: 0;
  }
  .section .offre .bouton { grid-area: bouton; margin-top: var(--e-2); }
  .section .offre:not(.mise-en-avant) .bouton { display: none; }
  .section .offre .par-mois { font-size: var(--t-xs); }

  .demo > .note:not(.garder) {
    display: none;
  }

  .scene .pas.outil {
    display: none;
  }

  .appel-final {
    padding: var(--e-6) 0;
  }
}

@media (max-width: 719px) {
  .benefice {
    margin-top: var(--e-6);
  }

  .benefice h2 {
    font-size: var(--t-titre-mobile);
    max-width: none;
  }

  .titre-section.grand {
    font-size: var(--t-titre-mobile);
    margin-bottom: var(--e-4);
  }

  .section > .sous-titre {
    margin: calc(-1 * var(--e-2)) 0 var(--e-4);
  }
}

/* Au repos, les mécanismes restent lisibles (--encre-3, 4,7:1) ; le survol les encre */
@media (hover: hover) {
  .mecanismes li {
    opacity: 1;
    color: var(--encre-3);
    transition: color var(--d-moyen) var(--courbe);
  }

  .demo:is(:hover, :focus-within) .mecanismes li {
    color: var(--encre);
  }
}

/* ======================================================================
 * v5 : le héros montre les réponses qui reviennent ; quatre bénéfices
 * (montée d'une boîte, versions, planning, assistant). Chaque démo se joue
 * une fois à l'entrée dans la vue ; le détail se révèle au survol.
 * ==================================================================== */

.heros h1 {
  font-size: clamp(2.25rem, 3.9vw, 3.5rem);
  line-height: 1.06;
  max-width: 20ch;
}

.h1-doux {
  color: var(--encre-3);
}

/* Héros : les réponses, au même endroit */
.boite-tete {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--e-3);
}

.boite-chiffre {
  display: flex;
  align-items: baseline;
  gap: var(--e-2);
  margin-top: var(--e-2);
}

.boite-chiffre .chiffre {
  font-size: var(--t-chiffre);
}

.boite-chiffre .libelle {
  color: var(--encre-2);
  font-size: var(--t-s);
}

.reponse .de {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reponse .recue {
  font-weight: var(--graisse-normale);
  color: var(--encre-3);
  font-size: var(--t-xs);
  opacity: 0;
  transition: opacity var(--d-court) var(--courbe);
}

.reponse:is(:hover, :focus) .recue {
  opacity: 1;
}

.joue .reponse:nth-child(4) .classe { transition-delay: 1200ms; }

/* 1. La montée d'une boîte neuve : une barre par jour (signature « Traits ») */
.montee-tete {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--e-3);
}

.montee-lecture {
  color: var(--encre);
  font-size: var(--t-s);
  font-weight: var(--graisse-appuyee);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.barres {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3px;
  height: 120px;
  padding-bottom: var(--e-1);
  border-bottom: var(--trait) solid var(--filet);
  border-radius: var(--r-controle) var(--r-controle) 0 0;
  outline-offset: 6px;
}

.barres i {
  flex: 1 1 0;
  max-width: 10px;
  border-radius: var(--r-rond);
  background: var(--encre);
  transform-origin: bottom;
  cursor: crosshair;
  transition: transform var(--d-arrivee) var(--courbe), background-color var(--d-instant) var(--courbe),
    opacity var(--d-instant) var(--courbe);
  transition-delay: calc(var(--rang, 0) * 35ms), 0ms, 0ms;
}

.barres i.ralenti { background: var(--encre-3); }
.barres i.signe { background: var(--accent); }
.barres i.actif { background: var(--accent); }
.barres:has(i.actif) i:not(.actif) { opacity: 0.45; }

.barres .m1 { height: 10%; }
.barres .m2 { height: 20%; }
.barres .m3 { height: 30%; }
.barres .m4 { height: 40%; }
.barres .m5 { height: 50%; }
.barres .m6 { height: 60%; }
.barres .m7 { height: 70%; }
.barres .m8 { height: 80%; }
.barres .m9 { height: 90%; }
.barres .m10 { height: 100%; }

.attend-demo .barres i { transform: scaleY(0); }

.puce.signe { background: var(--accent); }

/* 2. Les versions d'une étape : le taux de réponse, le détail au survol */
.liste-versions {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--e-2);
}

.version {
  display: grid;
  grid-template-columns: 1.6em minmax(0, 1fr) auto;
  grid-template-areas: "cle objet taux" "cle barre barre" "cle detail detail";
  align-items: center;
  gap: var(--e-1) var(--e-3);
  padding: var(--e-3) var(--e-4);
  border-radius: var(--r-ligne);
  background: var(--surface-2);
  outline-offset: 2px;
  transition: background-color var(--d-court) var(--courbe);
}

.cle-version {
  grid-area: cle;
  align-self: start;
  color: var(--encre-3);
  font-weight: var(--graisse-appuyee);
}

.objet-version {
  grid-area: objet;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--encre-2);
  font-size: var(--t-s);
}

.taux {
  grid-area: taux;
  font-weight: var(--graisse-appuyee);
  font-variant-numeric: tabular-nums;
}

.barre-version {
  grid-area: barre;
  display: block;
  height: 4px;
  border-radius: var(--r-rond);
  background: var(--fantome);
  overflow: hidden;
}

.barre-version i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--encre-3);
  transform-origin: left;
  transition: transform 1100ms var(--courbe);
}

.version.meilleure .barre-version i { background: var(--encre); }
.version.meilleure .cle-version,
.version.meilleure .objet-version { color: var(--encre); }

.barre-version .l1 { width: 10%; }
.barre-version .l2 { width: 20%; }
.barre-version .l3 { width: 30%; }
.barre-version .l4 { width: 40%; }
.barre-version .l5 { width: 50%; }
.barre-version .l6 { width: 60%; }
.barre-version .l7 { width: 70%; }
.barre-version .l8 { width: 80%; }
.barre-version .l9 { width: 90%; }
.barre-version .l10 { width: 100%; }

.attend-demo .barre-version i { transform: scaleX(0); }
.joue .version:nth-child(2) .barre-version i { transition-delay: 80ms; }
.joue .version:nth-child(3) .barre-version i { transition-delay: 160ms; }
.joue .version:nth-child(4) .barre-version i { transition-delay: 240ms; }
.joue .version:nth-child(5) .barre-version i { transition-delay: 320ms; }

.marque-meilleure {
  margin-left: var(--e-2);
  padding: 1px var(--e-2);
  border-radius: var(--r-rond);
  background: var(--ok-fond);
  color: var(--ok);
  font-size: var(--t-xs);
  font-weight: var(--graisse-appuyee);
  transition: opacity var(--d-long) var(--courbe);
  transition-delay: 1200ms;
}

.attend-demo .marque-meilleure { opacity: 0; transition-delay: 0ms; }

.detail-version {
  grid-area: detail;
  color: var(--encre-3);
  font-size: var(--t-xs);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height var(--d-court) var(--courbe), opacity var(--d-court) var(--courbe);
}

.version:is(:hover, :focus) {
  background: var(--pilule-survol);
}

.version:is(:hover, :focus) .detail-version {
  max-height: 2em;
  opacity: 1;
}

/* 3. Le planning : la bulle dit à qui, et à quelle heure locale */
.agenda h3.demo-tete {
  font-size: var(--t-s);
  font-weight: var(--graisse-normale);
}

.exemple-etroit {
  display: none;
}

/* Offres : pour qui, et la recommandation */
.offre .pour {
  color: var(--encre-2);
  font-size: var(--t-s);
  margin-top: var(--e-1);
}

.recommande {
  margin-left: var(--e-2);
  padding: 1px var(--e-2);
  border-radius: var(--r-rond);
  background: var(--accent-doux);
  color: var(--encre);
  font-family: var(--police-texte);
  font-size: var(--t-xs);
  font-weight: var(--graisse-appuyee);
  letter-spacing: 0;
  vertical-align: middle;
}

.lien-offres {
  margin-top: var(--e-4);
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .barres i,
  .barre-version i,
  .marque-meilleure {
    transition: none;
  }
}

@media (max-width: 719px) {
  .heros h1 {
    font-size: 2rem;
  }

  .boite-chiffre .chiffre {
    font-size: var(--t-chiffre-moyen);
  }

  .barres {
    height: 72px;
    gap: 2px;
  }

  .version {
    padding: var(--e-2) var(--e-3);
  }

  .section .offre {
    grid-template-areas: "nom prix" "pour pour" "quotas quotas" "bouton bouton";
  }

  .section .offre .pour {
    grid-area: pour;
    margin: 0;
  }

  /* Cinq écrans au téléphone : chaque démo garde l'essentiel. */
  .reponse:nth-child(n+3),
  .reponse .recue,
  .version:nth-child(3),
  .version:nth-child(5),
  .benefice-texte .discret-lien,
  .scene .pas.agent,
  .scene .pas.moi:not(.frappe),
  .montee .mecanismes,
  .agenda-note,
  .section .offre:not(.mise-en-avant) .quotas {
    display: none;
  }

  .exemple-etroit {
    display: inline;
  }

  .benefice {
    margin-top: var(--e-5);
  }

  .section {
    margin-top: var(--e-6);
  }

  .reassurance {
    margin-top: var(--e-5);
    padding: var(--e-3) 0;
  }

  .appel-final {
    padding: var(--e-5) 0;
  }

  .benefice .scene .fil {
    padding-bottom: 0;
  }
}

/* ==== pages légales ==== */
/* Textes de b2send/vitrine_publique/textes/, rendus par legal.py : colonne de lecture, sommaire
 * repliable, tableaux qui défilent dans leur cadre. Aucune règle au-dessus de ce bloc n'est modifiée. */
.legal {
  /* Environ 70 caractères par ligne pour le corps (15 px) ; les tableaux gardent la largeur de lecture. */
  --mesure-legal: 48ch;
  max-width: var(--largeur-lecture);
}

.legal-tete,
.legal-sommaire,
.legal-texte > :not(.defile) {
  max-width: var(--mesure-legal);
}

.legal .en-tete-page h1 {
  font-size: var(--t-2xl);
  max-width: none;
}

.legal-statut {
  width: fit-content;
  margin-top: var(--e-4);
  padding: var(--e-2) var(--e-3);
  border-radius: var(--r-controle);
  background: var(--pilule);
  color: var(--encre-2);
  font-size: var(--t-s);
}

.legal-sommaire {
  margin-bottom: var(--e-6);
}

.legal-sommaire ul {
  margin: 0;
  padding: 0 var(--e-5) var(--e-4);
  list-style: none;
}

.legal-sommaire a {
  display: inline-block;
  padding: var(--e-1) 0;
  color: var(--encre-2);
  text-decoration: none;
}

.legal-sommaire a:hover {
  color: var(--encre);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 0.18em;
}

.legal-texte {
  line-height: 1.65;
  overflow-wrap: break-word;
}

.legal-texte > * + * {
  margin-top: var(--e-3);
}

.legal-texte h2 {
  margin-top: var(--e-7);
  font-size: var(--t-xl);
  scroll-margin-top: var(--e-5);
}

.legal-texte > h2:first-child {
  margin-top: 0;
}

.legal-texte h3 {
  margin-top: var(--e-6);
  font-size: var(--t-l);
  scroll-margin-top: var(--e-5);
}

.legal-texte ul,
.legal-texte ol {
  margin-bottom: 0;
  padding-left: 1.4em;
}

.legal-texte li + li {
  margin-top: var(--e-2);
}

.legal-texte li::marker {
  color: var(--encre-3);
}

.legal-texte strong {
  font-weight: var(--graisse-appuyee);
}

.legal-texte a {
  text-decoration-color: var(--accent);
  text-decoration-thickness: var(--trait);
  text-underline-offset: 0.18em;
}

.legal-texte a:hover {
  text-decoration-thickness: var(--trait-fort);
}

.legal-texte code {
  font-family: var(--police-code);
  font-size: 0.9em;
}

.legal-texte blockquote {
  margin: var(--e-4) 0 0;
  padding: var(--e-3) var(--e-4);
  border-radius: var(--r-controle);
  background: var(--surface);
  box-shadow: var(--ombre-surface);
  color: var(--encre-2);
}

.legal-texte blockquote > * + * {
  margin-top: var(--e-2);
}

.legal-texte hr {
  margin: var(--e-6) 0 0;
  border: 0;
  border-top: var(--trait) solid var(--filet);
}

.legal-texte .defile {
  margin-top: var(--e-4);
  border-radius: var(--r-controle);
  box-shadow: 0 0 0 var(--trait) var(--filet) inset;
}

.legal-texte .tableau th,
.legal-texte .tableau td {
  min-width: 14ch;
  vertical-align: top;
  white-space: normal;
  line-height: 1.5;
}

.legal-texte .tableau tbody th {
  color: var(--encre);
  font-weight: var(--graisse-appuyee);
}

.legal-texte .tableau tr:last-child > * {
  border-bottom: 0;
}

@media (max-width: 719px) {
  .legal .en-tete-page h1 {
    font-size: var(--t-xl);
  }

  .legal-texte h2 {
    margin-top: var(--e-6);
    font-size: var(--t-l);
  }

  .legal-texte h3 {
    margin-top: var(--e-5);
    font-size: var(--t-m);
  }

  .legal-sommaire ul {
    padding: 0 var(--e-4) var(--e-3);
  }

  /* Pied : dix liens sur quelques lignes, sans défilement de côté. */
  .pied {
    gap: var(--e-2);
  }

  .pied nav {
    margin-left: calc(-1 * var(--e-2));
  }

  .pied nav a {
    padding: 0 var(--e-2);
  }
}

/* ==== conformité, contact, agences ==== */
/* Trois pages de vente, mêmes composants : en-tête de page, bénéfice avec sa démonstration, cartes
 * titrées, gros chiffres légers ; le détail se révèle au survol, au focus et au toucher. */

/* Accueil : la ligne de réassurance mène à la page Conformité. */
.reassurance a {
  display: inline-flex;
  align-items: center;
  gap: var(--e-2);
  min-height: var(--h-tactile);
  text-decoration: none;
  text-underline-offset: 0.18em;
  text-decoration-color: var(--accent);
}

.reassurance a:hover {
  color: var(--encre);
  text-decoration-line: underline;
}

/* Cartes de fait : un titre court, une ou deux phrases, un lien discret. */
.fait {
  display: flex;
  flex-direction: column;
  gap: var(--e-2);
}

.fait h3 {
  font-size: var(--t-l);
}

.fait > p {
  color: var(--encre-2);
}

.fait > .note {
  color: var(--encre-3);
}

.fait .lien {
  align-self: flex-start;
  margin-top: auto;
  text-decoration-color: var(--accent);
  text-underline-offset: 0.18em;
}

.fait-chiffre {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--e-2);
}

.fait-chiffre .chiffre {
  font-size: var(--t-chiffre);
}

.section > .grille.deux {
  margin-top: 0;
}

.grille.quatre {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.titre-section.grand.large {
  max-width: 28ch;
}

.benefice.benefice-tete {
  margin-top: var(--e-6);
}

/* Conformité : les règles par pays, le détail au survol. */
.liste-regles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--e-2);
}

.regle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "pays resume" "detail detail";
  align-items: baseline;
  gap: var(--e-1) var(--e-4);
  padding: var(--e-3) var(--e-4);
  border-radius: var(--r-ligne);
  background: var(--surface-2);
  outline-offset: 2px;
  transition: background-color var(--d-court) var(--courbe);
}

.regle-pays {
  grid-area: pays;
  font-weight: var(--graisse-appuyee);
}

.regle-resume {
  grid-area: resume;
  justify-self: end;
  color: var(--encre-2);
  font-size: var(--t-s);
  text-align: right;
}

.regle-detail {
  grid-area: detail;
  color: var(--encre-3);
  font-size: var(--t-s);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height var(--d-moyen) var(--courbe), opacity var(--d-court) var(--courbe);
}

.regle:is(:hover, :focus) {
  background: var(--pilule-survol);
}

.regle:is(:hover, :focus) .regle-detail {
  max-height: 4.5em;
  opacity: 1;
}

/* Au toucher, rien n'est réservé au survol : le détail reste affiché. */
@media (hover: none) {
  .regle-detail {
    max-height: none;
    opacity: 1;
  }
}

/* Contact : une personne, son adresse, un bouton. */
.personne {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "pastille texte bouton" "editeur editeur editeur";
  align-items: center;
  gap: var(--e-4) var(--e-5);
  max-width: 820px;
}

.pastille-personne {
  grid-area: pastille;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: var(--r-rond);
  background: var(--pilule);
  box-shadow: 0 0 0 var(--trait) var(--filet-fort) inset;
  font-family: var(--police-titre);
  font-size: var(--t-l);
  font-weight: var(--graisse-titre);
}

.personne-texte {
  grid-area: texte;
  display: grid;
  gap: var(--e-1);
  min-width: 0;
}

.personne h2 {
  font-size: var(--t-xl);
}

.adresse-contact {
  justify-self: start;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: var(--encre-2);
  text-decoration-color: var(--accent);
  text-underline-offset: 0.18em;
}

.personne .bouton {
  grid-area: bouton;
}

.personne .editeur {
  grid-area: editeur;
  padding-top: var(--e-4);
  border-top: var(--trait) solid var(--filet);
}

/* Contact : une carte entière cliquable par question. */
.question {
  display: grid;
  gap: var(--e-2);
  text-decoration: none;
  transition: background-color var(--d-court) var(--courbe);
}

.question:hover {
  background: var(--surface-2);
}

.question-titre {
  font-family: var(--police-titre);
  font-weight: var(--graisse-titre);
  letter-spacing: var(--interlettre-titre);
  font-size: var(--t-l);
  line-height: 1.15;
}

.question-texte {
  color: var(--encre-2);
}

.question-lien {
  display: inline-flex;
  align-items: center;
  gap: var(--e-1);
  margin-top: var(--e-1);
  font-weight: var(--graisse-appuyee);
}

.question-lien::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: var(--e-1);
  border-right: var(--trait-fort) solid currentColor;
  border-top: var(--trait-fort) solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--d-court) var(--courbe);
}

.question:is(:hover, :focus-visible) .question-lien::after {
  transform: translateX(3px) rotate(45deg);
}

/* Agences : le prix et l'appel sous le titre. */
.appel-offre {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--e-4) var(--e-5);
  margin-top: var(--e-6);
}

.prix-offre {
  display: flex;
  align-items: baseline;
  gap: var(--e-2);
}

.prix-offre .chiffre {
  font-size: var(--t-chiffre-moyen);
}

/* Agences : les espaces de vos clients, qui y a accès au survol. */
.liste-espaces {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--e-2);
}

.espace {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "pastille nom meta" "pastille acces acces";
  align-items: center;
  gap: 0 var(--e-3);
  padding: var(--e-3) var(--e-4);
  border-radius: var(--r-ligne);
  background: var(--surface-2);
  outline-offset: 2px;
  transition: background-color var(--d-court) var(--courbe), opacity var(--d-long) var(--courbe),
    transform var(--d-long) var(--courbe);
}

.pastille-espace {
  grid-area: pastille;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-rond);
  background: var(--pilule);
  box-shadow: 0 0 0 var(--trait) var(--filet-fort) inset;
  font-size: var(--t-xs);
  font-weight: var(--graisse-appuyee);
}

.espace-nom {
  grid-area: nom;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: var(--graisse-appuyee);
}

.espace-meta {
  grid-area: meta;
  justify-self: end;
  color: var(--encre-3);
  font-size: var(--t-xs);
  white-space: nowrap;
}

.espace-acces {
  grid-area: acces;
  color: var(--encre-2);
  font-size: var(--t-s);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height var(--d-moyen) var(--courbe), opacity var(--d-court) var(--courbe);
}

.espace .invites {
  color: var(--encre-3);
}

.espace:is(:hover, :focus) {
  background: var(--pilule-survol);
}

.espace:is(:hover, :focus) .espace-acces {
  max-height: 3em;
  opacity: 1;
}

.attend-demo .espace {
  opacity: 0;
  transform: translateY(var(--decalage-apparition));
}

.joue .espace:nth-child(2) { transition-delay: 0ms, 90ms, 90ms; }
.joue .espace:nth-child(3) { transition-delay: 0ms, 180ms, 180ms; }
.joue .espace:nth-child(4) { transition-delay: 0ms, 270ms, 270ms; }

/* Agences : ce que comprend l'offre, en gros chiffres légers. */
.chiffres-offre {
  list-style: none;
  margin: 0;
  padding: var(--e-5) 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: var(--e-5);
  border-top: var(--trait) solid var(--filet);
  border-bottom: var(--trait) solid var(--filet);
}

.chiffres-offre li {
  display: grid;
  gap: var(--e-1);
}

.chiffres-offre .chiffre {
  font-size: var(--t-chiffre-moyen);
}

.appel-final > .note {
  margin-top: var(--e-4);
}

@media (prefers-reduced-motion: reduce) {
  .espace {
    transition: none;
  }
}

@media (max-width: 719px) {
  .benefice.benefice-tete {
    margin-top: var(--e-4);
  }

  .regle {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "pays" "resume" "detail";
    padding: var(--e-2) var(--e-3);
  }

  .regle-resume {
    justify-self: start;
    text-align: left;
  }

  .personne {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "pastille texte" "bouton bouton" "editeur editeur";
  }

  .pastille-personne {
    width: 52px;
    height: 52px;
  }

  .fait-chiffre .chiffre {
    font-size: var(--t-chiffre-moyen);
  }

  .appel-offre {
    margin-top: var(--e-5);
  }

  .espace {
    padding: var(--e-2) var(--e-3);
  }

  .chiffres-offre {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--e-4) var(--e-3);
    padding: var(--e-4) 0;
  }
}

/* ======================================================================
 * v5 : accueil en couleur et en mouvement (docs/AUDIT-VENTE.md § 5).
 * L'orange de marque porte les moments forts : fin du titre, trait du
 * parcours, chiffres des démos, bouton du haut, bloc final. Le bleu reste
 * l'accent du sombre (liens, focus). Tout l'état ci-dessous est l'état
 * FINAL : sans script ou en mouvement réduit, c'est ce qui s'affiche ;
 * vitrine.js (GSAP + ScrollTrigger) ne fait que partir d'un état initial.
 * ==================================================================== */

:root {
  /* Orange lisible : gros texte et traits (>= 3:1 sur --fond), petit texte (>= 4,5:1). */
  --marque-vif: light-dark(#c0600f, #e8842c);
  --marque-encre: light-dark(#a24e0b, #e8842c);
  --marque-doux: rgb(232 132 44 / 0.14);
  /* Sur un aplat --marque, dans les deux thèmes (6,6:1). */
  --sur-marque: #15191a;
  --sur-marque-clair: #f4f5f3;
  --trait-parcours: 2px;
  --point-jalon: 12px;
}

.mot-marque {
  color: var(--marque-vif);
}

.parcours .heros .bouton.plein {
  background: var(--marque);
  color: var(--sur-marque);
}

.parcours .heros .bouton.plein:hover {
  background: color-mix(in srgb, var(--marque), var(--sur-marque) 10%);
}

.boite-chiffre .chiffre,
.agenda-chiffre .chiffre {
  color: var(--marque-vif);
}

/* ------------------------------------------------ le parcours et ses jalons */
.parcours {
  position: relative;
  overflow-x: clip;
}

.parcours > :not(.trace-parcours) {
  position: relative;
  z-index: 1;
}

.trace-parcours {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 0;
}

.trace-parcours path {
  fill: none;
  stroke: var(--marque-vif);
  stroke-width: var(--trait-parcours);
  stroke-linecap: round;
}

.jalon {
  display: inline-flex;
  align-items: center;
  gap: var(--e-2);
  color: var(--marque-encre);
  font-size: var(--t-s);
  font-weight: var(--graisse-appuyee);
}

.point-jalon {
  flex: none;
  width: var(--point-jalon);
  height: var(--point-jalon);
  border-radius: var(--r-rond);
  background: var(--marque-vif);
  box-shadow: 0 0 0 4px var(--fond);
  transition: background-color var(--d-moyen) var(--courbe), transform var(--d-moyen) var(--courbe);
}

.point-jalon.a-venir:not(.atteint) {
  background: var(--fond);
  box-shadow: 0 0 0 4px var(--fond), 0 0 0 var(--trait-parcours) var(--marque-vif) inset;
  transform: scale(0.85);
}

.nom-jalon {
  padding: 2px var(--e-1);
  border-radius: var(--r-controle);
  background: var(--fond);  /* le trait passe derrière le nom, pas dessus */
}

.benefice.jalonne .jalon {
  order: -1;
  justify-self: start;
}

@media (min-width: 960px) {
  .benefice.jalonne {
    grid-template-columns: minmax(0, 5fr) var(--e-8) minmax(0, 6fr);
    gap: var(--e-5);
  }

  .benefice.jalonne.inverse-ordre {
    grid-template-columns: minmax(0, 6fr) var(--e-8) minmax(0, 5fr);
  }

  .benefice.jalonne .jalon {
    order: 0;
    justify-self: center;
    flex-direction: column;
    font-size: var(--t-xs);
  }

  .benefice.jalonne.inverse-ordre .benefice-texte { order: 3; }
  .benefice.jalonne.inverse-ordre .jalon { order: 2; }
  .benefice.jalonne.inverse-ordre figure { order: 1; }
}

/* ------------------------------------------- 1. Écrit : deux versions, B passe devant */
.liste-duel {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--e-3);
}

.concurrente {
  position: relative;
  display: grid;
  grid-template-columns: 1.6em minmax(0, 1fr) auto;
  grid-template-areas: "cle objet taux" "cle barre barre";
  align-items: center;
  gap: var(--e-2) var(--e-3);
  padding: var(--e-4);
  border-radius: var(--r-ligne);
  background: var(--surface-2);
}

.concurrente .barre-version {
  height: 8px;
}

.duel .barre-version i {
  transition: none;
}

.concurrente.gagnante .barre-version i {
  background: var(--marque-vif);
}

.concurrente.gagnante .cle-version,
.concurrente.gagnante .objet-version {
  color: var(--encre);
}

.concurrente.gagnante .taux {
  color: var(--marque-encre);
}

.coche {
  position: absolute;
  top: calc(-1 * var(--e-2));
  right: calc(-1 * var(--e-2));
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: var(--r-rond);
  background: var(--marque);
  color: var(--sur-marque);
  box-shadow: 0 0 0 3px var(--fond);
}

.coche svg {
  width: 16px;
  height: 16px;
}

/* --------------------------------------------- 2. Envoyé : le planning en plein écran */
.planning {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: var(--e-5);
  margin-top: var(--e-9);
  text-align: center;
}

.planning-texte h2 {
  font-size: var(--t-titre-grand);
  letter-spacing: -0.025em;
  line-height: 1.08;
  max-width: 18ch;
  margin: 0 auto;
}

.planning-texte p {
  margin: var(--e-4) auto 0;
  color: var(--encre-2);
  font-size: var(--t-l);
  max-width: 52ch;
}

.cadre-plein {
  position: relative;
  isolation: isolate;
  width: 100%;
  text-align: left;
}

/* Le voile : pendant l'agrandissement, il couvre la page autour de la carte. */
.cadre-plein::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  width: 100vw;
  height: 100vh;
  transform: translate(-50%, -50%);
  background: var(--fond);
  opacity: var(--voile, 0);
  pointer-events: none;
}

.cadre-plein .agenda {
  max-width: 1040px;
  margin: 0 auto;
  background-color: var(--fond);
  background-image: linear-gradient(var(--surface), var(--surface));
  transform-origin: 50% 50%;
}

/* -------------------------------------- 3. Ouvert : la jauge, et le ralentissement */
.jauge-tete {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--e-2);
}

.ralenti {
  display: inline-flex;
  align-items: center;
  gap: var(--e-1);
  padding: 2px var(--e-3) 2px var(--e-2);
  border-radius: var(--r-rond);
  background: var(--marque-doux);
  color: var(--marque-encre);
  font-size: var(--t-xs);
  font-weight: var(--graisse-appuyee);
}

.ralenti svg {
  width: 14px;
  height: 14px;
}

.cadran {
  display: block;
  width: 100%;
  max-width: 340px;
  justify-self: center;
}

.zone {
  fill: none;
  stroke-width: 14;
}

.zone-ok { stroke: var(--ok); }
.zone-chaud { stroke: var(--marque-vif); }
.zone-mal { stroke: var(--mal); }

.aiguille path {
  stroke: var(--encre);
  stroke-width: 4;
  stroke-linecap: round;
}

.aiguille circle {
  fill: var(--encre);
}

.jauge-etat {
  display: grid;
  justify-items: center;
  margin-top: calc(-1 * var(--e-3));
  font-family: var(--police-titre);
  font-size: var(--t-xl);
  font-weight: var(--graisse-titre);
}

.etat-jauge {
  grid-area: 1 / 1;
}

.etat-ok { color: var(--ok); }
.etat-mal { color: var(--mal); opacity: 0; }

.puce.ok { background: var(--ok); }

/* ---------------------------------------------- Répondu : l'arrivée du parcours */
.arrivee {
  display: grid;
  justify-items: center;
  gap: var(--e-4);
  margin-top: var(--e-9);
  text-align: center;
}

.arrivee h2 {
  font-size: var(--t-titre-grand);
  letter-spacing: -0.025em;
  line-height: 1.08;
  max-width: 20ch;
}

/* ------------------------------------------------- l'agent : une phrase, une pause */
.invite-champ {
  display: flex;
  align-items: center;
  gap: var(--e-3);
  min-height: 56px;
  padding: var(--e-2) var(--e-2) var(--e-2) var(--e-4);
  border-radius: var(--r-pilule);
  background: var(--champ);
  box-shadow: 0 0 0 var(--trait) var(--champ-bord) inset;
}

.invite-texte {
  flex: 1;
  min-height: 1.55em;
}

.invite-texte.en-cours::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1.1em;
  margin-left: 2px;
  vertical-align: -0.18em;
  background: var(--marque-vif);
  animation: clignote 900ms steps(1) infinite;
}

@keyframes clignote {
  50% { opacity: 0; }
}

.invite-envoi {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-rond);
  background: var(--marque);
  color: var(--sur-marque);
}

.invite-envoi svg {
  width: 18px;
  height: 18px;
}

.invite-reponse {
  display: flex;
  align-items: flex-start;
  gap: var(--e-2);
  color: var(--encre-2);
  font-size: var(--t-s);
  transition: opacity var(--d-long) var(--courbe), transform var(--d-long) var(--courbe);
}

.invite-reponse svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--ok);
}

.invite.attente .invite-reponse {
  opacity: 0;
  transform: translateY(6px);
}

.mini-planning {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--e-2);
}

.ligne-campagne {
  display: grid;
  grid-template-columns: 7.5em minmax(0, 1fr) 5.5em;
  align-items: center;
  gap: var(--e-3);
  padding: var(--e-3) var(--e-4);
  border-radius: var(--r-ligne);
  background: var(--surface-2);
  font-size: var(--t-s);
}

.nom-campagne {
  font-weight: var(--graisse-appuyee);
}

.traits-campagne {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 22px;
}

.traits-campagne i {
  flex: 1;
  max-width: 8px;
  height: 100%;
  border-radius: 2px;
  background: var(--fantome);
  box-shadow: 0 0 0 var(--trait) var(--filet-fort) inset;
  transition: background-color var(--d-moyen) var(--courbe), height var(--d-moyen) var(--courbe);
}

.salons .traits-campagne i {
  background: var(--marque-vif);
  box-shadow: none;
}

.salons.en-pause .traits-campagne i {
  height: 45%;
  background: transparent;
  box-shadow: 0 0 0 var(--trait) var(--marque-vif) inset;
}

.salons .traits-campagne i:nth-child(2) { transition-delay: 40ms; }
.salons .traits-campagne i:nth-child(3) { transition-delay: 80ms; }
.salons .traits-campagne i:nth-child(4) { transition-delay: 120ms; }
.salons .traits-campagne i:nth-child(5) { transition-delay: 160ms; }
.salons .traits-campagne i:nth-child(6) { transition-delay: 200ms; }
.salons .traits-campagne i:nth-child(7) { transition-delay: 240ms; }
.salons .traits-campagne i:nth-child(8) { transition-delay: 280ms; }
.salons .traits-campagne i:nth-child(9) { transition-delay: 320ms; }

.etat-campagne {
  justify-self: end;
  color: var(--encre-3);
  font-size: var(--t-xs);
}

.salons .si-pause,
.salons.en-pause .si-actif {
  display: none;
}

.salons.en-pause .si-pause {
  display: inline;
  color: var(--marque-encre);
  font-weight: var(--graisse-appuyee);
}

/* ------------------------------------------------------- ce qui change */
.change {
  display: grid;
  gap: var(--e-5);
  margin-top: var(--e-9);
}

@media (min-width: 960px) {
  .change {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: var(--e-8);
    align-items: start;
  }

  .change .titre-section.grand {
    position: sticky;
    top: var(--e-7);
    margin: 0;
  }
}

.changements {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: var(--trait) solid var(--filet-fort);
}

.changements li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  grid-template-areas: "coche titre" ". texte";
  column-gap: var(--e-3);
  row-gap: 2px;
  padding: var(--e-4) 0;
  border-bottom: var(--trait) solid var(--filet);
}

.changements strong {
  grid-area: titre;
  font-family: var(--police-titre);
  font-size: var(--t-l);
  font-weight: var(--graisse-titre);
  letter-spacing: var(--interlettre-titre);
}

.changements li > span:last-child {
  grid-area: texte;
  color: var(--encre-2);
}

.coche-change {
  grid-area: coche;
  width: 24px;
  height: 24px;
  color: var(--marque-vif);
}

.coche-change svg {
  display: block;
  width: 100%;
  height: 100%;
}

.changements li.vu:nth-child(2) { transition-delay: 70ms; }
.changements li.vu:nth-child(3) { transition-delay: 140ms; }
.changements li.vu:nth-child(4) { transition-delay: 210ms; }
.changements li.vu:nth-child(5) { transition-delay: 280ms; }

/* --------------------------------------------------------------- offres */
.parcours ~ .section .offre.mise-en-avant {
  box-shadow: var(--ombre-surface), 0 0 0 var(--trait-fort) var(--marque-vif) inset;
}

.offres .offre.vu:nth-child(2) { transition-delay: 80ms; }
.offres .offre.vu:nth-child(3) { transition-delay: 160ms; }
.offres .offre.vu:nth-child(4) { transition-delay: 240ms; }

/* ------------------------------------------ le seul aplat orange : l'appel final */
.appel-final.plein-marque {
  --focus: var(--sur-marque);
  padding: var(--e-8) var(--e-5);
  border: 0;
  border-radius: var(--r-carte);
  background: var(--marque);
  color: var(--sur-marque);
}

.plein-marque .note,
.plein-marque .erreur,
.plein-marque .succes {
  color: var(--sur-marque);
}

.plein-marque .erreur {
  font-weight: var(--graisse-appuyee);
}

.plein-marque .bouton.plein {
  background: var(--sur-marque);
  color: var(--sur-marque-clair);
}

.plein-marque .champ {
  border-color: var(--sur-marque);
}

/* --------------------------------------------------------------- mobile */
@media (max-width: 959px) {
  .trace-parcours {
    display: none;
  }
}

@media (max-width: 719px) {
  .planning,
  .arrivee,
  .change {
    margin-top: var(--e-7);
  }

  .planning {
    justify-items: start;
    text-align: left;
  }

  .planning-texte h2,
  .planning-texte p {
    margin-left: 0;
  }

  .arrivee {
    justify-items: start;
    text-align: left;
  }

  .concurrente {
    padding: var(--e-3);
  }

  .ligne-campagne {
    grid-template-columns: 6em minmax(0, 1fr) auto;
    padding: var(--e-3);
  }

  .appel-final.plein-marque {
    padding: var(--e-6) var(--e-4);
  }

  .changements strong {
    font-size: var(--t-m);
  }
}
