@charset "UTF-8";

/* =========================================================================
   Vitrine

   THÈSE      Un service professionnel d'information réglementaire : structuré,
              lisible, rassurant. Le contenu vit dans des CARTES posées sur un
              fond gris clair ; rien ne flotte.
   COULEURS   DEUX, et deux seulement, à rôle fixe :
                --marque (bleu pétrole) = la structure — en-têtes de carte,
                  bandeaux, icônes, titres.
                --action (orange)       = l'action et le signal — boutons,
                  puces, flèches, états actifs, soulignement de titre, chiffres.
              Aucune troisième couleur, et aucun accent qui change selon la
              section : c'est ce qui rendait la version précédente incohérente.
   RYTHME     Titre de section centré + soulignement orange court + sous-titre,
              puis une grille de cartes. Le même gabarit à chaque section.
   ILLUSTRE   Une icône par idée, au trait, en --marque. Toute image doit dire
              quelque chose : la planche du héros montre le trajet réel d'une
              pièce (facture → classement → texte cité), pas un décor.
   TITRES     Jamais plus de deux lignes. Les mesures sont plafonnées pour ça.
   ========================================================================= */

/* ---------- Polices auto-hébergées (aucun CDN tiers) --------------------- */

@font-face {
  font-family: 'Spartan';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/site/assets/fonts/LeagueSpartan-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Spartan';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/site/assets/fonts/LeagueSpartan-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'InterVar';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/site/assets/fonts/Inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'InterVar';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/site/assets/fonts/Inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Jetons ------------------------------------------------------- */

:root {
  /* Les surfaces */
  --page: oklch(0.962 0.003 240);
  --carte: oklch(1 0 0);
  --carte-douce: oklch(0.978 0.002 240);

  /* Couleur 1 — la marque. Structure, en-têtes, icônes, titres. */
  --marque: oklch(0.478 0.088 232);
  --marque-fonce: oklch(0.398 0.076 232);
  --marque-clair: oklch(0.665 0.09 232);
  --marque-lavis: oklch(0.955 0.016 232);

  /* Couleur 2 — l'action. Boutons, puces, flèches, états actifs. */
  --action: oklch(0.645 0.158 52);
  --action-encre: oklch(0.545 0.16 45);
  --action-lavis: oklch(0.965 0.022 62);
  /* L'orange vif ne tient pas le contraste sur le bandeau bleu (1,85:1).
     Cette variante claire y remplace --action pour tout ce qui est texte. */
  --action-clair: oklch(0.825 0.128 62);

  /* Encres */
  --encre: oklch(0.265 0.014 250);
  --encre-doux: oklch(0.435 0.012 250);
  --encre-faible: oklch(0.482 0.012 250);
  --filet: oklch(0.905 0.004 240);
  --filet-fort: oklch(0.845 0.006 240);

  /* Le pied de page */
  --nuit: oklch(0.285 0.008 250);
  --sur-nuit: oklch(0.975 0.002 250);
  --sur-nuit-doux: oklch(0.815 0.006 250);
  --sur-nuit-faible: oklch(0.7 0.007 250);
  --filet-nuit: oklch(0.4 0.01 250);

  /* Sur fond de marque */
  --sur-marque: oklch(1 0 0);
  --sur-marque-doux: oklch(0.895 0.03 232);
  --filet-marque: oklch(0.58 0.078 232);

  /* Typographie */
  --f-affiche: 'Spartan', 'Segoe UI', system-ui, sans-serif;
  --f-texte: 'InterVar', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --t-cartouche: 0.6875rem;
  --t-xs: 0.8125rem;
  --t-sm: 0.9375rem;
  --t-base: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --t-md: clamp(1.06rem, 1rem + 0.28vw, 1.2rem);
  --t-lg: clamp(1.1rem, 1.02rem + 0.36vw, 1.35rem);
  /* Plafonds volontairement bas : au-dessus, les titres passent à trois lignes. */
  --t-xl: clamp(1.55rem, 1.31rem + 1.05vw, 2.15rem);
  --t-2xl: clamp(1.7rem, 1.4rem + 1.3vw, 2.5rem);
  --t-3xl: clamp(2rem, 1.5rem + 2.1vw, 3.05rem);

  /* Rythme */
  --gutter: clamp(1.25rem, 4vw, 2.75rem);
  --shell: 75rem;
  --band: clamp(3.5rem, 6.5vw, 6rem);

  /* Le rayon des conteneurs. Discret — 4 px, pas 16. */
  --rayon: 4px;
  --rayon-lg: 6px;

  --z-base: 0;
  --z-raised: 10;
  --z-sticky: 100;
  --z-menu: 200;
  --z-skip: 300;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Base --------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  background: var(--page);
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--page);
  color: var(--encre);
  font-family: var(--f-texte);
  font-size: var(--t-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--f-affiche);
  font-weight: 700;
  letter-spacing: -0.018em;
  line-height: 1.15;
  text-wrap: balance;
}

p {
  margin: 0;
}

ul,
ol,
dl,
dd {
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
}

[hidden] {
  display: none !important;
}

a {
  color: inherit;
  text-decoration-color: color-mix(in oklab, currentColor 35%, transparent);
  text-underline-offset: 0.22em;
}

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

button,
input,
select {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--action-encre);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: var(--z-skip);
}

.skip-link:focus {
  left: var(--gutter);
  top: 0.75rem;
  padding: 0.7rem 1.1rem;
  background: var(--marque);
  color: var(--sur-marque);
  border-radius: var(--rayon);
  font-family: var(--f-affiche);
  font-size: var(--t-cartouche);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  text-decoration: none;
}

/* ---------- Colonne ------------------------------------------------------ */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Le soulignement -----------------------------------------------
   Court, orange, sous le titre. Centré dans un en-tête de section, aligné à
   gauche partout ailleurs. C'est la seule marque décorative du système. */

.ligne {
  width: 4.25rem;
  height: 3px;
  background: var(--action);
  border-radius: 2px;
}

/* ---------- Cartouche ---------------------------------------------------- */

.cartouche {
  font-family: var(--f-affiche);
  font-size: var(--t-cartouche);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  line-height: 1.7;
}

/* ---------- Titres de section --------------------------------------------
   Gabarit unique : titre centré, soulignement orange, sous-titre centré. */

.section-head {
  display: grid;
  justify-items: center;
  gap: 1.1rem;
  max-width: 48rem;
  margin-inline: auto;
  margin-bottom: clamp(2.25rem, 4vw, 3.25rem);
  text-align: center;
}

.section-head--flush {
  margin-bottom: 0;
}

.section-title {
  font-size: var(--t-xl);
  max-width: 26ch;
}

.section-lede {
  max-width: 60ch;
  font-size: var(--t-md);
  line-height: 1.6;
  color: var(--encre-doux);
}

/* ---------- Boutons ------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.45rem;
  border: 1px solid transparent;
  border-radius: var(--rayon);
  font-family: var(--f-affiche);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s var(--ease-out), color 0.18s var(--ease-out),
    border-color 0.18s var(--ease-out);
}

.btn--lg {
  padding: 1rem 1.75rem;
  font-size: 0.85rem;
}

.btn--sm {
  padding: 0.62rem 1rem;
  font-size: 0.73rem;
}

/* L'action principale est orange — le seul repère d'action de la page. */
.btn--solid {
  background: var(--action-encre);
  border-color: var(--action-encre);
  color: var(--carte);
}

.btn--solid:hover {
  background: var(--marque);
  border-color: var(--marque);
}

.btn--ghost {
  background: var(--carte);
  border-color: var(--filet-fort);
  color: var(--encre);
}

.btn--ghost:hover {
  border-color: var(--marque);
  color: var(--marque-fonce);
}

/* Sur un fond de marque, le fantôme s'inverse. */
.field--marque .btn--ghost,
.stakes .btn--ghost {
  background: transparent;
  border-color: var(--filet-marque);
  color: var(--sur-marque);
}

.field--marque .btn--ghost:hover,
.stakes .btn--ghost:hover {
  background: var(--sur-marque);
  border-color: var(--sur-marque);
  color: var(--marque-fonce);
}

.btn__arrow {
  width: 1em;
  height: 1em;
  flex: none;
}

/* ---------- Champs ------------------------------------------------------- */

.field {
  padding-block: var(--band);
  position: relative;
}

.field--page {
  background: var(--page);
}

.field--blanc {
  background: var(--carte);
}

.field--marque {
  background: var(--marque);
  color: var(--sur-marque);
}

.field--marque .section-lede {
  color: var(--sur-marque-doux);
}

.field--marque .ligne,
.stakes .ligne {
  background: var(--action-clair);
}

/* ---------- En-tête ------------------------------------------------------ */

.masthead {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: var(--carte);
  color: var(--encre);
  border-bottom: 1px solid var(--filet);
  transition: border-color 0.3s var(--ease-out);
}

.masthead.is-scrolled {
  border-bottom-color: var(--filet-fort);
}

.masthead__inner {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  min-height: 4.5rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  flex: none;
}

.wordmark__mark {
  width: 1.6rem;
  height: 1.6rem;
  flex: none;
}

/* Les deux hémisphères de la marque : structure à gauche, action à droite. */
.mark__gauche {
  fill: var(--marque);
}

.mark__droit {
  fill: var(--action);
}

.wordmark__text {
  font-family: var(--f-affiche);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.005em;
  color: var(--marque);
}

.masthead__nav {
  display: flex;
  gap: clamp(0.9rem, 2.2vw, 1.9rem);
  margin-left: auto;
}

.masthead__nav a {
  font-family: var(--f-affiche);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--encre-doux);
  padding-block: 0.35rem;
  border-bottom: 3px solid transparent;
  transition: border-color 0.18s var(--ease-out), color 0.18s var(--ease-out);
}

.masthead__nav a:hover {
  color: var(--marque);
  border-bottom-color: var(--action);
}

.masthead__cta {
  flex: none;
}

.burger {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  margin-left: auto;
  padding: 0;
  background: none;
  border: 1px solid var(--filet-fort);
  border-radius: var(--rayon);
  color: var(--marque);
  cursor: pointer;
  position: relative;
}

.burger span {
  position: absolute;
  left: 0.6rem;
  right: 0.6rem;
  height: 2px;
  background: currentColor;
}

.burger span:first-child {
  top: 0.95rem;
}

.burger span:last-child {
  bottom: 0.95rem;
}

.menu-mobile {
  display: grid;
  gap: 0.2rem;
  padding: 0.75rem var(--gutter) 1.5rem;
  background: var(--carte);
  border-top: 3px solid var(--action);
  border-bottom: 1px solid var(--filet);
}

.menu-mobile a {
  font-family: var(--f-affiche);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--encre);
  padding-block: 0.8rem;
  border-bottom: 1px solid var(--filet);
}

.menu-mobile .btn {
  margin-top: 1rem;
  justify-content: center;
  border-bottom: 0;
}

/* ---------- 1. Héros -----------------------------------------------------
   Deux colonnes : la promesse à gauche, le trajet réel d'une pièce à droite.
   La planche n'est pas un décor — elle montre facture → classement → texte. */

.hero {
  background: var(--carte);
  border-bottom: 1px solid var(--filet);
  padding-block: clamp(2.5rem, 5.5vw, 4.5rem) clamp(2.5rem, 5vw, 4rem);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

.hero__title {
  font-size: var(--t-3xl);
  line-height: 1.08;
  max-width: 15ch;
  color: var(--marque-fonce);
}

.hero__ligne {
  margin-top: 1.25rem;
}

.hero__lede {
  margin-top: 1.25rem;
  max-width: 48ch;
  font-size: var(--t-md);
  line-height: 1.62;
  color: var(--encre-doux);
}

.hero__lede strong {
  color: var(--encre);
  font-weight: 600;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.hero__pied {
  margin-top: 1.85rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--filet);
}

.hero__cartouche {
  color: var(--encre-faible);
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.15rem;
}

.hero__cartouche span::before {
  content: '';
  display: inline-block;
  width: 0.34rem;
  height: 0.34rem;
  margin-right: 0.5rem;
  border-radius: 1px;
  background: var(--action);
  vertical-align: 0.12em;
}

.hero__planche {
  width: 100%;
}

.hero__planche svg {
  width: 100%;
  height: auto;
}

/* ---------- La planche du héros ------------------------------------------
   Elle n'illustre rien : elle montre. Les pièces du dossier entrent à gauche,
   il en sort un classement, et sous le classement les textes qui le fondent.
   Les libellés sont du vrai texte SVG, dans les polices de la page. */

.pl-doc rect {
  fill: var(--carte);
  stroke: var(--filet-fort);
  stroke-width: 1.5;
}

.pl-doc-tete {
  fill: var(--marque-lavis) !important;
  stroke: none !important;
}

.pl-trait {
  fill: none;
  stroke: var(--filet-fort);
  stroke-width: 2.5;
  stroke-linecap: round;
}

.pl-fleche {
  fill: none;
  stroke: var(--action);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pl-carte {
  fill: var(--carte);
  stroke: var(--filet-fort);
  stroke-width: 1.5;
}

.pl-carte-tete {
  fill: var(--marque);
}

.pl-filet {
  fill: none;
  stroke: var(--filet);
  stroke-width: 1.5;
}

.pl-source rect {
  fill: var(--carte-douce);
  stroke: var(--filet);
  stroke-width: 1.5;
}

.pl-source-bord {
  fill: var(--action) !important;
  stroke: none !important;
}

.pl-sceau circle {
  fill: var(--action-lavis);
  stroke: var(--action);
  stroke-width: 1.5;
}

.pl-coche {
  fill: none;
  stroke: var(--action-encre);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pl-titre,
.pl-mini {
  font-family: var(--f-affiche);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.pl-titre {
  fill: var(--sur-marque);
}

.pl-mini {
  fill: var(--marque);
  font-size: 11px;
}

.pl-mini--sombre {
  fill: var(--encre-faible);
}

.pl-code {
  font-family: var(--f-affiche);
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.02em;
  fill: var(--marque-fonce);
}

.pl-legende {
  font-family: var(--f-texte);
  font-size: 15px;
  fill: var(--encre-doux);
}

.pl-cite {
  font-family: var(--f-texte);
  font-size: 14px;
  font-weight: 600;
  fill: var(--encre);
}

.pl-cite--doux {
  font-weight: 400;
  fill: var(--encre-faible);
}

/* ---------- 2. L'enjeu : le bandeau de marque ---------------------------- */

.stakes {
  background: var(--marque);
  color: var(--sur-marque);
  text-align: center;
}

.stakes__statement {
  font-family: var(--f-affiche);
  font-size: var(--t-2xl);
  font-weight: 700;
  line-height: 1.18;
  max-width: 24ch;
  margin-inline: auto;
  text-wrap: balance;
}

.stakes .ligne {
  margin-inline: auto;
  margin-top: 1.25rem;
}

.stakes__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr));
  gap: clamp(1.5rem, 3vw, 2.75rem);
  margin-top: clamp(1.75rem, 3.5vw, 2.75rem);
  max-width: 62rem;
  margin-inline: auto;
  text-align: left;
}

.stakes__grid p {
  max-width: 48ch;
  color: var(--sur-marque-doux);
}

/* Marques d'emphase */

.mark-underline {
  background-image: linear-gradient(to top, var(--action) 0.1em, transparent 0.1em);
}

.mark-highlight {
  background: linear-gradient(to top, var(--action) 0.62em, transparent 0.62em);
  padding-inline: 0.1em;
}

/* Barre tracée par un dégradé : un ::after absolu dans un élément inline se
   cale sur l'union des fragments de ligne et atterrit à côté du mot. */
.mark-strike {
  color: var(--sur-marque-doux);
  background-image: linear-gradient(var(--action), var(--action));
  background-size: 100% 0.09em;
  background-position: 0 54%;
  background-repeat: no-repeat;
}

/* ---------- 3. La démonstration ------------------------------------------ */

.demo__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.demo__intro {
  text-align: left;
  justify-items: start;
  margin-inline: 0;
  max-width: none;
}

.demo__intro .section-title {
  max-width: 20ch;
}

.demo__intro p {
  margin-top: 1.25rem;
  max-width: 44ch;
  color: var(--encre-doux);
}

.demo__intro .ligne {
  margin-top: 1.25rem;
}

.demo {
  margin: 0;
}

.demo__bloc {
  background: var(--carte);
  border: 1px solid var(--filet);
  border-radius: var(--rayon-lg);
  overflow: hidden;
}

.demo__bar {
  padding: 0.8rem 1.25rem;
  background: var(--marque);
  color: var(--sur-marque);
  font-family: var(--f-affiche);
  font-size: var(--t-cartouche);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.demo__question,
.demo__answer {
  padding: 1.25rem;
  border-bottom: 1px solid var(--filet);
}

.demo__who {
  display: block;
  margin-bottom: 0.45rem;
  font-family: var(--f-affiche);
  font-size: var(--t-cartouche);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--encre-faible);
}

.demo__who--ai {
  color: var(--marque);
}

.demo__text {
  font-size: var(--t-sm);
  line-height: 1.7;
}

.cite {
  display: inline-block;
  min-width: 1.35em;
  margin-inline: 0.16em;
  padding: 0 0.28em;
  background: var(--action-encre);
  border: 0;
  border-radius: 2px;
  color: var(--carte);
  font-family: var(--f-affiche);
  font-size: 0.68em;
  font-weight: 700;
  line-height: 1.55;
  text-align: center;
  vertical-align: 0.16em;
  cursor: pointer;
  transition: background-color 0.16s var(--ease-out);
}

.cite:hover,
.cite.is-active {
  background: var(--marque);
}

.demo__flag {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-top: 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--rayon);
  background: var(--action-lavis);
  font-size: var(--t-xs);
  color: var(--action-encre);
}

.demo__flag-icon {
  width: 1.1rem;
  height: 1.1rem;
  flex: none;
  margin-top: 0.1rem;
}

.demo__sources {
  padding: 1.25rem;
  background: var(--carte-douce);
  border-top: 1px solid var(--filet);
  display: grid;
  gap: 0.7rem;
}

.demo__sources-title {
  font-family: var(--f-affiche);
  font-size: var(--t-cartouche);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--encre-faible);
}

/* La barre gauche n'est pas un ornement : elle passe a l'orange quand la
   citation correspondante est active. C'est le seul indicateur d'etat de la
   demonstration. Tenue a 2 px pour rester discrete au repos. */
.src {
  padding: 0.8rem 0.95rem;
  background: var(--carte);
  border: 1px solid var(--filet);
  border-left: 2px solid var(--filet-fort);
  border-radius: var(--rayon);
  transition: border-color 0.2s var(--ease-out), background-color 0.2s var(--ease-out);
}

.src.is-active {
  border-left-color: var(--action);
  background: var(--action-lavis);
}

.src__head {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  margin-bottom: 0.4rem;
}

.src__num {
  min-width: 1.35em;
  padding: 0 0.28em;
  border-radius: 2px;
  background: var(--encre-faible);
  color: var(--carte);
  font-family: var(--f-affiche);
  font-size: 0.66rem;
  font-weight: 700;
  text-align: center;
}

.src.is-active .src__num {
  background: var(--action-encre);
}

.src__file {
  font-size: var(--t-xs);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.src__page {
  margin-left: auto;
  font-family: var(--f-affiche);
  font-size: var(--t-cartouche);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--encre-faible);
  white-space: nowrap;
}

.src__quote {
  font-size: var(--t-xs);
  line-height: 1.62;
  color: var(--encre-doux);
}

.src__hit {
  font-style: normal;
  font-weight: 700;
  color: var(--encre);
  background-image: linear-gradient(to top, var(--action) 0.42em, transparent 0.42em);
}

/* La légende sort du registre « cartouche » : c'est une phrase, pas une cote. */
.demo__legende {
  margin-top: 1rem;
  font-family: var(--f-texte);
  font-size: var(--t-xs);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.6;
  color: var(--encre-faible);
}

/* ---------- Grille de cartes ---------------------------------------------
   Le gabarit partagé : irritants, capacités, garanties. Icône, intitulé,
   texte. Une seule primitive, trois usages. */

.pains__grid,
.manifeste,
.trust__list {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
}

/* Quatre irritants : deux colonnes. En trois, le quatrieme reste seul. */
.pains__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Six capacites : trois colonnes. */
.manifeste {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}

/* Quatre garanties : deux colonnes, comme les quatre irritants. En trois, la
   quatrieme carte reste seule sur sa rangee. */
.trust__list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pain,
.poste,
.trust__item {
  background: var(--carte);
  border: 1px solid var(--filet);
  border-radius: var(--rayon-lg);
  padding: clamp(1.35rem, 2.4vw, 1.85rem);
  transition: border-color 0.2s var(--ease-out);
}

.pain:hover,
.poste:hover,
.trust__item:hover {
  border-color: var(--marque-clair);
}

/* L'icône : au trait, en couleur de marque, dans une pastille de lavis. */
.icone {
  width: 3.1rem;
  height: 3.1rem;
  flex: none;
  padding: 0.62rem;
  margin-bottom: 1rem;
  border-radius: var(--rayon);
  background: var(--marque-lavis);
  fill: none;
  stroke: var(--marque);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pain__title,
.poste__nom,
.trust__item dt {
  font-family: var(--f-affiche);
  font-weight: 700;
  font-size: var(--t-lg);
  line-height: 1.2;
  max-width: 22ch;
  margin-bottom: 0.75rem;
  color: var(--marque-fonce);
}

.poste__texte,
.trust__item dd,
.pain__now,
.pain__fix {
  font-size: var(--t-sm);
  color: var(--encre-doux);
}

.pain__fix {
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--filet);
}

.pain__label {
  display: block;
  margin-bottom: 0.3rem;
  font-family: var(--f-affiche);
  font-size: var(--t-cartouche);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--encre-faible);
}

.pain__label--fix {
  color: var(--action-encre);
}

/* ---------- Le schéma d'échange ------------------------------------------ */

.feats__head {
  display: grid;
  justify-items: center;
  margin-bottom: clamp(2.25rem, 4vw, 3.25rem);
}

/* La planche gravée du portique appartenait à l'ancien monde. */
.feats__planche {
  display: none;
}

.bridge {
  margin-top: clamp(2rem, 4vw, 3.25rem);
  background: var(--carte);
  border: 1px solid var(--filet);
  border-radius: var(--rayon-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(1.75rem, 3.5vw, 3rem);
  align-items: center;
}

.bridge h3 {
  font-size: var(--t-lg);
  max-width: 20ch;
  margin-bottom: 0.85rem;
  color: var(--marque-fonce);
}

.bridge__copy p {
  max-width: 46ch;
  font-size: var(--t-sm);
  color: var(--encre-doux);
}

.bridge__flow {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: clamp(0.5rem, 1.5vw, 1.25rem);
  align-items: center;
}

.bridge__flow::before {
  content: '';
  position: absolute;
  left: 12%;
  right: 12%;
  top: 50%;
  height: 2px;
  background: var(--action);
}

.bridge__col,
.bridge__hub {
  position: relative;
}

.bridge__col {
  background: var(--carte-douce);
  border: 1px solid var(--filet);
  border-radius: var(--rayon);
  padding: 0.85rem 1rem;
}

.bridge__col-title {
  font-family: var(--f-affiche);
  font-size: var(--t-cartouche);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--marque);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--filet);
  margin-bottom: 0.6rem;
}

.bridge__items li {
  font-size: var(--t-xs);
  padding-block: 0.28rem;
  color: var(--encre-doux);
}

.bridge__hub {
  align-self: center;
  padding: 0.65rem 0.85rem;
  border-radius: var(--rayon);
  background: var(--marque);
  color: var(--sur-marque);
  font-family: var(--f-affiche);
  font-size: var(--t-cartouche);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

/* ---------- 6. Les quatre étapes -----------------------------------------
   Quatre cartes, icône en haut, séparées par une flèche orange posée dans
   la gouttière. */

.flow__ligne {
  display: none;
}

.flow__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(2rem, 3.2vw, 3rem);
}

.step {
  position: relative;
  background: var(--carte);
  border: 1px solid var(--filet);
  border-radius: var(--rayon-lg);
  padding: clamp(1.35rem, 2.4vw, 1.75rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 100%;
  width: clamp(2rem, 3.2vw, 3rem);
  height: 1.4rem;
  transform: translateY(-50%);
  background: var(--action);
  -webkit-mask: no-repeat center / 1.4rem 1.4rem
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12h13m-5-6 6 6-6 6' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  mask: no-repeat center / 1.4rem 1.4rem
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12h13m-5-6 6 6-6 6' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.step .icone {
  margin-bottom: 0.85rem;
}

.step__cote {
  font-family: var(--f-affiche);
  font-size: var(--t-cartouche);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--action-encre);
  margin-bottom: 0.45rem;
}

.step h3 {
  font-size: var(--t-lg);
  margin-bottom: 0.65rem;
  color: var(--marque-fonce);
}

.step p {
  font-size: var(--t-sm);
  color: var(--encre-doux);
}

.step strong {
  color: var(--encre);
  font-weight: 600;
}

/* ---------- 7. La défendabilité ------------------------------------------ */

.trust__inner {
  display: grid;
  gap: clamp(1.75rem, 3.5vw, 2.75rem);
}

/* ---------- 8. Repères : le bandeau chiffré ------------------------------ */

.proof__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  text-align: center;
}

.stat {
  padding-inline: 0.5rem;
}

.stat__value {
  font-family: var(--f-affiche);
  font-size: clamp(1.9rem, 1.4rem + 1.9vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--action-clair);
}

.stat__label {
  margin-top: 0.7rem;
  font-size: var(--t-xs);
  line-height: 1.6;
  color: var(--sur-marque-doux);
}

.stat__src {
  display: block;
  margin-top: 0.55rem;
  font-family: var(--f-affiche);
  font-size: var(--t-cartouche);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sur-marque-doux);
}

.verbatim {
  margin: clamp(2.5rem, 5vw, 4rem) auto 0;
  max-width: 48rem;
  text-align: center;
}

.verbatim__quote {
  margin: 0;
}

.verbatim__quote p {
  font-family: var(--f-affiche);
  font-size: var(--t-xl);
  font-weight: 600;
  line-height: 1.28;
  text-wrap: balance;
  color: var(--sur-marque);
  max-width: 34ch;
  margin-inline: auto;
}

.verbatim__who {
  margin-top: 1.1rem;
  font-family: var(--f-affiche);
  font-size: var(--t-cartouche);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--sur-marque-doux);
}

/* Le pilote : une carte blanche posée sur le bandeau. */
.pilote {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--carte);
  border-radius: var(--rayon-lg);
  color: var(--encre);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: center;
}

.pilote__eyebrow {
  font-family: var(--f-affiche);
  font-size: var(--t-cartouche);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 0.7rem;
  color: var(--action-encre);
}

.pilote__title {
  font-size: var(--t-lg);
  max-width: 26ch;
  margin-bottom: 0.8rem;
  color: var(--marque-fonce);
}

.pilote__text {
  max-width: 56ch;
  font-size: var(--t-sm);
  color: var(--encre-doux);
}

.pilote__anchor {
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--filet);
  font-size: var(--t-xs);
  color: var(--encre-faible);
}

.pilote__cta {
  flex: none;
}

/* ---------- 9. Tarifs ---------------------------------------------------- */

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  align-items: start;
}

.plan {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 5;
  gap: 0;
  background: var(--carte);
  border: 1px solid var(--filet);
  border-radius: var(--rayon-lg);
  overflow: hidden;
}

/* L'en-tête de forfait EST l'en-tête de carte du système. */
.plan__head {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  padding: 0.9rem 1.1rem;
  background: var(--marque);
  color: var(--sur-marque);
}

.plan--featured {
  border-color: var(--action);
}

.plan--featured .plan__head {
  background: var(--action-encre);
}

.plan__name {
  font-size: 1.02rem;
}

.plan__flag {
  font-family: var(--f-affiche);
  font-size: var(--t-cartouche);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--carte);
}

.plan__price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  padding: 1.25rem 1.25rem 0;
}

.plan__amount {
  font-family: var(--f-affiche);
  font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.55rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--marque-fonce);
}

.plan__amount--devis {
  font-size: clamp(1.5rem, 1.25rem + 1vw, 1.95rem);
}

.plan__period {
  font-family: var(--f-affiche);
  font-size: var(--t-cartouche);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--encre-faible);
}

.plan__for {
  padding: 0.7rem 1.25rem 1rem;
  font-size: var(--t-xs);
  text-align: center;
  color: var(--encre-doux);
  border-bottom: 1px solid var(--filet);
}

.plan__list {
  display: grid;
  gap: 0.5rem;
  align-content: start;
  padding: 1.15rem 1.25rem;
}

.plan__list li {
  position: relative;
  padding-left: 1.35rem;
  font-size: var(--t-xs);
  color: var(--encre-doux);
}

/* La puce est une coche orange : c'est une liste d'inclusions. */
.plan__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.28em;
  width: 0.85rem;
  height: 0.85rem;
  background: var(--action);
  -webkit-mask: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 13 4.5 4.5L19 7' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  mask: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 13 4.5 4.5L19 7' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.plan__cta {
  justify-content: center;
  align-self: end;
  margin: 0 1.25rem 1.35rem;
}

.pricing__note {
  margin: clamp(1.75rem, 3vw, 2.5rem) auto 0;
  max-width: 54ch;
  font-size: var(--t-sm);
  text-align: center;
  color: var(--encre-doux);
}

/* ---------- 10. Questions ------------------------------------------------ */

.faq__inner {
  display: grid;
  gap: clamp(1.75rem, 3vw, 2.5rem);
}

.faq__list {
  max-width: 56rem;
  width: 100%;
  margin-inline: auto;
  background: var(--carte);
  border: 1px solid var(--filet);
  border-radius: var(--rayon-lg);
  overflow: hidden;
}

.qa {
  border-bottom: 1px solid var(--filet);
}

.qa:last-child {
  border-bottom: 0;
}

.qa summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.05rem 1.25rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--f-affiche);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--marque-fonce);
  transition: background-color 0.16s var(--ease-out);
}

.qa summary:hover {
  background: var(--carte-douce);
}

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

.qa summary::after {
  content: '';
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  margin-left: auto;
  background: var(--action);
  transition: transform 0.2s var(--ease-out);
  -webkit-mask: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  mask: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.qa[open] summary::after {
  transform: rotate(180deg);
}

.qa__body {
  padding: 0 1.25rem 1.25rem;
}

.qa__body p {
  max-width: 68ch;
  font-size: var(--t-sm);
  color: var(--encre-doux);
}

/* ---------- 11. Appel final ---------------------------------------------- */

.closing__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

/* La phrase de cloture fait 69 signes dans une colonne de 520 px : au-dessus
   de 1.75rem elle passe a trois lignes, voire quatre. */
.closing__title {
  font-family: var(--f-affiche);
  font-size: clamp(1.4rem, 1.15rem + 1.05vw, 1.75rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--marque-fonce);
}

.closing__ligne {
  margin-top: 1.25rem;
}

.closing__lede {
  margin-top: 1.25rem;
  max-width: 46ch;
  font-size: var(--t-md);
  color: var(--encre-doux);
}

.closing__alt {
  margin-top: 1.25rem;
  font-size: var(--t-sm);
  color: var(--encre-doux);
}

.closing__alt a {
  color: var(--action-encre);
  font-weight: 600;
}

/* La bande d'horizon gravée appartenait à l'ancien monde. */
.closing__horizon {
  display: none;
}

/* ---------- Formulaire --------------------------------------------------- */

.ask {
  background: var(--carte);
  border: 1px solid var(--filet);
  border-radius: var(--rayon-lg);
  overflow: hidden;
  display: grid;
  gap: 1rem;
  padding: 0 clamp(1.25rem, 2.5vw, 1.85rem) clamp(1.25rem, 2.5vw, 1.85rem);
}

/* Le titre du formulaire est l'en-tête de carte : il déborde le rembourrage. */
.ask__title {
  margin-inline: calc(-1 * clamp(1.25rem, 2.5vw, 1.85rem));
  padding: 0.9rem 1.25rem;
  background: var(--marque);
  color: var(--sur-marque);
  font-family: var(--f-affiche);
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
}

.ask__field {
  display: grid;
  gap: 0.3rem;
}

.ask__field label {
  font-family: var(--f-affiche);
  font-size: var(--t-cartouche);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--encre-doux);
}

.ask__opt {
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--encre-faible);
}

.ask__field input,
.ask__field select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  background: var(--carte);
  border: 1px solid var(--filet-fort);
  border-radius: var(--rayon);
  font-size: var(--t-sm);
  transition: border-color 0.16s var(--ease-out);
}

.ask__field select {
  appearance: none;
  cursor: pointer;
}

.ask__field input:focus-visible,
.ask__field select:focus-visible {
  outline: 2px solid var(--action-encre);
  outline-offset: 2px;
  border-color: var(--action-encre);
}

.ask__field input[aria-invalid='true'],
.ask__field select[aria-invalid='true'] {
  border-color: var(--action-encre);
  background: var(--action-lavis);
}

.ask__submit {
  justify-content: center;
  margin-top: 0.25rem;
}

.ask__note {
  font-size: var(--t-xs);
  line-height: 1.6;
  color: var(--encre-doux);
}

.ask__erreur:not(:empty) {
  padding: 0.65rem 0.85rem;
  border-radius: var(--rayon);
  background: var(--action-encre);
  color: var(--carte);
  font-size: var(--t-xs);
  font-weight: 600;
}

/* ---------- Pied de page ------------------------------------------------- */

.foot {
  background: var(--nuit);
  color: var(--sur-nuit);
  padding-block: clamp(2.5rem, 5vw, 4rem) 2rem;
}

.foot__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 0.7fr)) minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
}

.foot__brand .wordmark__text {
  display: block;
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
  color: var(--sur-nuit);
}

.foot__brand p {
  max-width: 34ch;
  font-size: var(--t-xs);
  color: var(--sur-nuit-doux);
}

.foot__nav {
  display: grid;
  align-content: start;
  gap: 0.5rem;
}

.foot__nav-title {
  font-family: var(--f-affiche);
  font-size: var(--t-cartouche);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--filet-nuit);
  margin-bottom: 0.3rem;
}

.foot__nav a {
  font-size: var(--t-xs);
  text-decoration: none;
  color: var(--sur-nuit-doux);
  justify-self: start;
  border-bottom: 1px solid transparent;
}

.foot__nav a:hover {
  color: var(--sur-nuit);
  border-bottom-color: var(--action);
}

.foot__badges {
  display: grid;
  align-content: start;
  gap: 0.5rem;
}

.foot__badges li {
  position: relative;
  padding-left: 1.35rem;
  font-size: var(--t-xs);
  color: var(--sur-nuit-doux);
}

.foot__badges li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.28em;
  width: 0.85rem;
  height: 0.85rem;
  background: var(--action);
  -webkit-mask: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 13 4.5 4.5L19 7' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  mask: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 13 4.5 4.5L19 7' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.foot__legal {
  grid-column: 1 / -1;
  margin-top: clamp(1.75rem, 3.5vw, 2.75rem);
  padding-top: 1.35rem;
  border-top: 1px solid var(--filet-nuit);
  max-width: 80ch;
  font-size: var(--t-xs);
  color: var(--sur-nuit-faible);
}

.foot .mark__gauche {
  fill: var(--sur-nuit);
}

.foot .mark__droit {
  fill: var(--action);
}

/* ---------- Mouvement ---------------------------------------------------- */

.js-reveal .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 80ms);
}

.js-reveal .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- Adaptation --------------------------------------------------- */

@media (max-width: 68rem) {
  .flow__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
  }

  /* En deux colonnes, la flèche latérale ne tombe plus dans une gouttière. */
  .step:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 64rem) {
  /* Seuil répliqué dans main.js — les deux doivent bouger ensemble. */
  .masthead__nav,
  .masthead__cta {
    display: none;
  }

  .burger {
    display: block;
  }

  .hero__inner,
  .demo__grid,
  .closing__grid,
  .bridge {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__title {
    max-width: 18ch;
  }

  .hero__planche {
    max-width: 34rem;
    margin-inline: auto;
  }

  .demo__intro .section-title {
    max-width: 26ch;
  }

  .pilote {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .pilote__cta {
    justify-self: start;
  }

  .foot__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 46rem) {
  .flow__list,
  .pains__grid,
  .trust__list {
    grid-template-columns: minmax(0, 1fr);
  }

  .plan {
    grid-row: auto;
    grid-template-rows: none;
  }

  .bridge__flow {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.85rem;
  }

  .bridge__flow::before {
    display: none;
  }

  .bridge__hub {
    justify-self: center;
  }

  .foot__inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 46rem) {
  /* La planche est mise a l'echelle avec la fenetre : sous 46 rem, son texte
     tomberait a 8 px. On le grossit dans les unites du viewBox, sans depasser
     la largeur des cadres qui le portent. */
  .pl-titre {
    font-size: 15px;
  }

  .pl-legende {
    font-size: 20px;
  }

  .pl-cite {
    font-size: 19px;
  }
}

@media (max-width: 30rem) {
  .btn--lg {
    padding: 0.95rem 1.2rem;
    font-size: 0.76rem;
    letter-spacing: 0.05em;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .js-reveal .reveal {
    opacity: 1;
    transform: none;
  }
}
