/* ==========================================================================
   RANKLY — feuille de style unique
   Ordre : 1 polices · 2 tokens · 3 reset · 4 base · 5 mise en page
           6 composants · 7 sections · 8 mouvement · 9 responsive · 10 impression
   Règle de spécificité : un seul niveau de classe partout (BEM).
   Les blocs ne posent JAMAIS de marge extérieure : c'est .pile qui espace.
   ========================================================================== */

/* 1 — POLICES ============================================================= */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('../fonts/archivo-latin-900-normal.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: 'Instrument Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/instrument-sans-latin-400-normal.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: 'Instrument Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/instrument-sans-latin-500-normal.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: 'Space Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/space-mono-latin-400-normal.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: 'Space Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/space-mono-latin-700-normal.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;
}

/* 2 — TOKENS ============================================================== */

:root {
  color-scheme: light only;

  /* Couleurs — chaque couleur a UN rôle, voir commentaires */
  --blanc: #ffffff;          /* fond dominant                                */
  --encre: #101114;          /* texte, blocs pleins, bordures                */
  --jaune-promo: #ffd400;    /* PRIX uniquement — toujours en fond           */
  --rouge-solde: #e8321e;    /* "avant" : manques, barrés, perte — en aplat  */
  --rouge-fonce: #c1200f;    /* même rôle, pour texte < 24px (contraste AA)  */
  --bleu-enseigne: #1b4de4;  /* actions et liens, un seul par écran          */
  --bleu-fonce: #1540bd;     /* survol du bleu                               */
  --gris-store: #6e6e6e;     /* texte secondaire                             */
  --gris-fond: #f2f2f0;      /* alternance de sections                       */
  --gris-trait: #dedede;     /* séparations internes discrètes               */
  --vert-ok: #0b7a3b;        /* validation de formulaire uniquement          */

  /* Typographie */
  --f-display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --f-texte: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --f-mono: 'Space Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  --t-geant: clamp(2.5rem, 9vw, 5.25rem);
  --t-h1: clamp(2.125rem, 6.4vw, 4rem);
  --t-h2: clamp(1.75rem, 4.6vw, 2.875rem);
  --t-h3: clamp(1.25rem, 2.6vw, 1.625rem);
  --t-h4: clamp(1.0625rem, 2vw, 1.1875rem);
  --t-texte: 1.0625rem;      /* 17px plancher mobile */
  --t-petit: 0.9375rem;
  --t-mini: 0.8125rem;

  /* Rythme */
  --e-1: 0.25rem;
  --e-2: 0.5rem;
  --e-3: 0.75rem;
  --e-4: 1rem;
  --e-5: 1.5rem;
  --e-6: 2rem;
  --e-7: 3rem;
  --e-8: 4rem;
  --e-9: 5.5rem;

  --largeur: 1200px;
  --gouttiere: 1.25rem;
  --rayon: 4px;
  --trait: 2px;
  --trait-fort: 3px;

  --duree: 180ms;
  --courbe: cubic-bezier(0.2, 0.7, 0.3, 1);

  --h-entete: 64px;
}

/* 3 — RESET =============================================================== */

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

* { margin: 0; }

html {
  background: var(--blanc);
  color: var(--encre);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--h-entete) + 1rem);
}

body {
  color-scheme: light only;
  font-family: var(--f-texte);
  font-size: var(--t-texte);
  line-height: 1.55;
  color: var(--encre);
  background: var(--blanc);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

/* Toujours après les composants en display:grid/flex, sinon [hidden] est perdu */
[hidden] { display: none !important; }

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

button { cursor: pointer; }

ul,
ol { padding: 0; list-style: none; }

fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
legend { padding: 0; }

a { color: var(--bleu-enseigne); text-underline-offset: 3px; }
a:hover { color: var(--bleu-fonce); }

:focus-visible {
  outline: var(--trait-fort) solid var(--bleu-enseigne);
  outline-offset: 3px;
  border-radius: 1px;
}

::selection { background: var(--jaune-promo); color: var(--encre); }

/* Les grands conteneurs posent fond ET couleur de texte ensemble.
   Un fond hérité peut être écrasé par un navigateur ou une application tierce ;
   deux déclarations solidaires au même endroit ne se désynchronisent pas. */
main { background: var(--blanc); color: var(--encre); }
.entete { color: var(--encre); }
.panneau { color: var(--encre); }
.cookies { color: var(--encre); }

@media (prefers-color-scheme: dark) {
  /* Le site est un site clair, par choix de direction artistique.
     On réaffirme la palette pour qu'aucun assombrissement automatique
     ne laisse du texte foncé sur un fond foncé. */
  html, body, main { background: var(--blanc); color: var(--encre); }
  .section--gris { background: var(--gris-fond); }
  .carte, .entete, .panneau, .cookies, .demo__fiche, .fiche, .ticket { background: var(--blanc); }
}

/* 4 — BASE TYPO =========================================================== */

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

h1 { font-size: var(--t-h1); font-weight: 900; }
h2 { font-size: var(--t-h2); font-weight: 900; }
h3 { font-size: var(--t-h3); }
h4 { font-size: var(--t-h4); line-height: 1.2; }

p { text-wrap: pretty; }

strong { font-weight: 500; }
.texte-fort { font-weight: 500; background: var(--jaune-promo); padding: 0 0.2em; }

.plomb { color: var(--gris-store); }
.mono { font-family: var(--f-mono); }
.nb { font-family: var(--f-mono); font-weight: 700; font-variant-numeric: tabular-nums; }

.intro {
  font-size: clamp(1.0625rem, 2.2vw, 1.25rem);
  line-height: 1.5;
  max-width: 46ch;
}

.mesure { max-width: 62ch; }
.centre { text-align: center; margin-inline: auto; }

/* Lien d'évitement */
.evitement {
  position: absolute;
  left: 0.5rem;
  top: -6rem;
  z-index: 200;
  background: var(--encre);
  color: var(--blanc);
  padding: 0.75rem 1.25rem;
  font-family: var(--f-mono);
  font-size: var(--t-petit);
  text-decoration: none;
  transition: top var(--duree) var(--courbe);
}
.evitement:focus { top: 0.5rem; color: var(--blanc); }

/* Étiquette de section (mono, œil de section) */
.oeil {
  display: inline-block;
  justify-self: start;
  align-self: flex-start;
  width: fit-content;
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: var(--t-mini);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--encre);
  color: var(--blanc);
  padding: 0.3rem 0.6rem;
}
.oeil--jaune { background: var(--jaune-promo); color: var(--encre); }
.oeil--nu { background: none; color: var(--gris-store); padding-inline: 0; }

/* 5 — MISE EN PAGE ======================================================== */

.enveloppe {
  width: 100%;
  max-width: var(--largeur);
  margin-inline: auto;
  padding-inline: var(--gouttiere);
}
.enveloppe--etroite { max-width: 760px; }

/* .section ne gère QUE le rythme vertical et le fond. Rien d'autre. */
.section { padding-block: var(--e-7); }
.section--haute { padding-block: var(--e-8); }
.section--basse { padding-block: var(--e-6); }
.section--gris { background: var(--gris-fond); }
.section--encre { background: var(--encre); color: var(--blanc); }
.section--encre h2,
.section--encre h3 { color: var(--blanc); }
.section--encre .plomb { color: #b6b6b6; }
.section--encre a:not(.bouton):not(.tel-gros) { color: var(--jaune-promo); }

/* .pile : la seule chose qui pose des marges verticales entre blocs */
.pile > * + * { margin-top: var(--e-4); }
.pile-2 > * + * { margin-top: var(--e-2); }
.pile-5 > * + * { margin-top: var(--e-5); }
.pile-6 > * + * { margin-top: var(--e-6); }
.pile-7 > * + * { margin-top: var(--e-7); }

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

.rangee { display: flex; flex-wrap: wrap; gap: var(--e-3); align-items: center; }

.entete-section { display: grid; gap: var(--e-3); max-width: 58ch; }
.entete-section > .oeil { justify-self: start; }

/* 6 — COMPOSANTS ========================================================== */

/* 6.1 Perforation de ticket — séparateur signature ------------------------ */
.perfo {
  height: 16px;
  background: var(--encre);
  -webkit-mask: radial-gradient(circle 8px at 8px 100%, transparent 97%, #000 100%) 0 0 / 16px 16px repeat-x;
  mask: radial-gradient(circle 8px at 8px 100%, transparent 97%, #000 100%) 0 0 / 16px 16px repeat-x;
}
.perfo--jaune { background: var(--jaune-promo); }
.perfo--bleu { background: var(--bleu-enseigne); }
.perfo--rouge { background: var(--rouge-solde); }
.perfo--haut { transform: scaleY(-1); }

/* 6.2 Boutons ------------------------------------------------------------- */
.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 52px;
  padding: 0.8rem 1.35rem;
  border: var(--trait) solid var(--encre);
  border-radius: var(--rayon);
  background: var(--blanc);
  color: var(--encre);
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  text-align: center;
  box-shadow: 4px 4px 0 var(--encre);
  transition: transform var(--duree) var(--courbe), box-shadow var(--duree) var(--courbe),
    background-color var(--duree) var(--courbe);
}
.bouton:hover {
  color: var(--encre);
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--encre);
}
.bouton:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--encre); }

.bouton--principal { background: var(--bleu-enseigne); color: var(--blanc); border-color: var(--encre); }
.bouton--principal:hover { background: var(--bleu-fonce); color: var(--blanc); }

.bouton--jaune { background: var(--jaune-promo); }
.bouton--encre { background: var(--encre); color: var(--blanc); border-color: var(--encre); box-shadow: 4px 4px 0 var(--jaune-promo); }
.bouton--encre:hover { color: var(--blanc); box-shadow: 2px 2px 0 var(--jaune-promo); }
/* Sur fond encre, un bouton encre n'a plus de contour : on le lui rend. */
.section--encre .bouton--encre { border-color: var(--blanc); }
.bouton--blanc { background: var(--blanc); box-shadow: 4px 4px 0 var(--jaune-promo); }
.bouton--large { width: 100%; }
.bouton--petit { min-height: 42px; padding: 0.45rem 0.85rem; font-size: var(--t-petit); box-shadow: 3px 3px 0 var(--encre); }

/* Bouton carré, pour le seul cas où il n'y a pas la place d'écrire :
   l'appel direct depuis l'en-tête sur téléphone. */
.bouton--icone {
  width: 48px;
  min-width: 48px;
  min-height: 48px;
  padding: 0;
  box-shadow: 3px 3px 0 var(--encre);
}
.bouton--icone svg { display: block; }
.bouton--petit:hover,
.bouton--icone:hover { box-shadow: 1px 1px 0 var(--encre); }
.bouton--petit:active,
.bouton--icone:active { box-shadow: 0 0 0 var(--encre); }

.bouton[disabled],
.bouton[aria-disabled='true'] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: 4px 4px 0 var(--gris-store);
}

.lien-fleche {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 0.4rem;
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: var(--t-petit);
  color: var(--bleu-enseigne);
  text-decoration: underline;
  text-decoration-thickness: 2px;
}
.lien-fleche::after { content: '\2192'; transition: transform var(--duree) var(--courbe); }
.lien-fleche:hover::after { transform: translateX(4px); }

/* 6.3 Ligne de reçu (le prix, partout, toujours de la même façon) --------- */
.recu { display: grid; gap: 0.55rem; }

.ligne-prix {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
  font-family: var(--f-mono);
  font-size: var(--t-petit);
  line-height: 1.3;
}
.ligne-prix a { display: inline-flex; align-items: center; min-height: 24px; }
.ligne-prix__nom { flex: 0 1 auto; min-width: 0; overflow-wrap: anywhere; }
.ligne-prix__points {
  flex: 1 1 auto;
  min-width: 1.5rem;
  border-bottom: 2px dotted var(--gris-store);
  transform: translateY(-0.25em);
}
.ligne-prix__montant {
  flex: 0 0 auto;
  font-weight: 700;
  white-space: nowrap;
  background: var(--jaune-promo);
  color: var(--encre);
  padding: 0.1rem 0.4rem;
}
.ligne-prix--sobre .ligne-prix__montant { background: none; padding-inline: 0; }
.ligne-prix--incluse { padding-left: 1rem; color: var(--gris-store); }

/* Une ligne qui vient d'apparaître sort de gauche à droite, comme un ticket
   de caisse. Les lignes déjà présentes ne rejouent pas. */
.ligne-prix--impression { animation: impression 200ms linear backwards; }
@keyframes impression { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.ligne-prix--incluse .ligne-prix__montant { background: none; padding-inline: 0; font-weight: 400; }
.ligne-prix--barre .ligne-prix__montant {
  background: none;
  text-decoration: line-through;
  text-decoration-color: var(--rouge-solde);
  text-decoration-thickness: 2px;
  color: var(--gris-store);
}
.ligne-prix--total { font-size: 1.0625rem; font-weight: 700; }
.ligne-prix--total .ligne-prix__points { border-bottom-style: solid; border-color: var(--encre); }

/* Prix en gros (cartes d'offre) */
.prix {
  display: inline-flex;
  justify-self: start;
  align-self: flex-start;
  width: fit-content;
  align-items: baseline;
  gap: 0.25rem;
  font-family: var(--f-mono);
  font-weight: 700;
  background: var(--jaune-promo);
  color: var(--encre);
  padding: 0.3rem 0.6rem;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}
.prix__unite { font-size: 0.8125rem; font-weight: 400; }
.prix--gros { font-size: clamp(1.75rem, 5vw, 2.25rem); }


/* 6.4 Cartes -------------------------------------------------------------- */
.carte {
  display: flex;
  flex-direction: column;
  gap: var(--e-3);
  background: var(--blanc);
  border: var(--trait) solid var(--encre);
  border-radius: var(--rayon);
  padding: var(--e-5);
  height: 100%;
}
.carte--phare { border-width: var(--trait-fort); box-shadow: 8px 8px 0 var(--jaune-promo); }
.carte--gris { background: var(--gris-fond); }
.carte__titre { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--e-3); flex-wrap: wrap; }
.carte__liste { display: grid; gap: 0.45rem; font-size: var(--t-petit); }
.carte__liste li { display: grid; grid-template-columns: 1.1rem 1fr; gap: 0.5rem; align-items: start; }
.carte__liste li::before {
  content: '\2713';
  font-family: var(--f-mono);
  font-weight: 700;
  color: var(--bleu-enseigne);
  line-height: 1.5;
}
.carte__pied { margin-top: auto; padding-top: var(--e-3); }
.carte__garantie { display: block; margin-top: 0.5rem; font-family: var(--f-mono); font-size: var(--t-mini); color: var(--gris-store); text-align: center; }
.liste-large { max-width: 40rem; }

.ruban {
  display: inline-block;
  justify-self: start;
  align-self: flex-start;
  width: fit-content;
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: var(--t-mini);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--rouge-fonce);
  color: var(--blanc);
  padding: 0.25rem 0.55rem;
  transform: rotate(-2deg);
}
.ruban--jaune { background: var(--jaune-promo); color: var(--encre); }
.ruban--encre { background: var(--encre); color: var(--blanc); }

/* 6.5 Constats / chiffres ------------------------------------------------- */
.constat {
  display: grid;
  gap: var(--e-2);
  border-top: var(--trait-fort) solid var(--encre);
  padding-top: var(--e-3);
}
.constat__cle {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(2rem, 6vw, 2.75rem);
  letter-spacing: -0.04em;
  line-height: 1;
}
.constat__cle--rouge { color: var(--rouge-fonce); }

/* 6.6 En-tête et navigation ---------------------------------------------- */
.entete {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--blanc);
  border-bottom: var(--trait) solid var(--encre);
}
.entete__barre {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--e-4);
  height: var(--h-entete);
}
.logo {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--encre);
  text-decoration: none;
  line-height: 1;
}
.logo--etiquette {
  background: var(--jaune-promo);
  padding: 0.25rem 0.5rem;
  transform: rotate(-2deg);
  display: inline-block;
}
.logo:hover { color: var(--encre); }

.nav { display: none; }
.nav__liste { display: flex; align-items: center; gap: var(--e-5); }
.nav__lien {
  font-size: var(--t-petit);
  font-weight: 500;
  color: var(--encre);
  text-decoration: none;
  padding-block: 0.4rem;
  border-bottom: var(--trait) solid transparent;
}
.nav__lien:hover { color: var(--encre); border-bottom-color: var(--encre); }
.nav__lien[aria-current='page'] { border-bottom-color: var(--jaune-promo); border-bottom-width: var(--trait-fort); }

.entete__actions { display: flex; align-items: center; gap: 0.45rem; flex: 0 0 auto; }
.entete__audit { white-space: nowrap; min-height: 48px; }
.entete__audit-court { display: none; }
.entete__tel { display: none; }

.burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 0 10px;
  background: var(--blanc);
  border: var(--trait) solid var(--encre);
  border-radius: var(--rayon);
  box-shadow: 3px 3px 0 var(--encre);
  transition: transform var(--duree) var(--courbe), box-shadow var(--duree) var(--courbe);
}
.burger:hover { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--encre); }
.burger:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--encre); }
.burger__trait { display: block; height: 3px; background: var(--encre); }

/* 6.7 Menu mobile plein écran -------------------------------------------- */
.panneau {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--blanc);
  display: flex;
  flex-direction: column;
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform 260ms var(--courbe), visibility 0s linear 260ms;
}
.panneau[data-ouvert='true'] {
  transform: translateY(0);
  visibility: visible;
  transition: transform 260ms var(--courbe), visibility 0s;
}
.panneau__barre {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--h-entete);
  border-bottom: var(--trait) solid var(--encre);
}
.panneau__corps { flex: 1; overflow-y: auto; padding-block: var(--e-5); }
.panneau__liste { display: grid; }
.panneau__lien {
  display: flex;
  align-items: baseline;
  gap: var(--e-3);
  padding: var(--e-4) 0;
  border-bottom: var(--trait) solid var(--gris-trait);
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  color: var(--encre);
  text-decoration: none;
}
.panneau__lien:hover { color: var(--encre); background: var(--gris-fond); }
.panneau__num { font-family: var(--f-mono); font-size: var(--t-mini); color: var(--gris-store); font-weight: 400; }
.panneau__lien[aria-current='page'] .panneau__num { background: var(--jaune-promo); color: var(--encre); font-weight: 700; padding: 0.15rem 0.35rem; }
.panneau__pied { display: grid; gap: var(--e-3); padding-block: var(--e-5); border-top: var(--trait) solid var(--encre); }

body[data-defilement='bloque'] { overflow: hidden; }

/* 6.9 Démo fiche Google (élément signature) ------------------------------- */
.demo {
  --pos: 15%;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  display: grid;
  gap: var(--e-3);
  background: var(--gris-fond);
  border: var(--trait-fort) solid var(--encre);
  border-radius: var(--rayon);
  padding: var(--e-4);
}
.demo__chapeau { display: flex; align-items: center; justify-content: space-between; gap: var(--e-3); flex-wrap: wrap; }

.demo__classement {
  display: grid;
  gap: 0;
  position: relative;
  background: var(--blanc);
  border: var(--trait) solid var(--encre);
  border-radius: var(--rayon);
  padding: 0.35rem;
  overflow: hidden;
  --hr: 30px;
  height: calc(7 * var(--hr) + 0.7rem);
}
.demo__rang {
  --off: 0;
  position: absolute;
  left: 0.35rem;
  right: 0.35rem;
  top: 0.35rem;
  height: var(--hr);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-inline: 0.4rem;
  font-size: var(--t-mini);
  border-radius: 2px;
  transform: translateY(calc((var(--i) + var(--off)) * var(--hr)));
  transition: transform 120ms linear;
}
/* Position de départ de chaque ligne. Passer par des classes plutôt que par
   des attributs style= permet de garder une CSP sans 'unsafe-inline'. */
.demo__rang--i0 { --i: 0; }
.demo__rang--i1 { --i: 1; }
.demo__rang--i2 { --i: 2; }
.demo__rang--i3 { --i: 3; }
.demo__rang--i4 { --i: 4; }
.demo__rang--i5 { --i: 5; }
.demo__rang--i6 { --i: 6; }

.demo__rang--vous {
  background: var(--jaune-promo);
  border: var(--trait) solid var(--encre);
  font-weight: 500;
  z-index: 2;
}
.demo__rang__num {
  flex: 0 0 auto;
  width: 1.35rem;
  font-family: var(--f-mono);
  font-weight: 700;
  color: var(--gris-store);
}
.demo__rang--vous .demo__rang__num { color: var(--encre); }

/* Le numéro bascule comme un compteur : l'ancien monte, le nouveau arrive
   par le bas. Deux étages superposés dans une fenêtre à débordement caché. */
.demo__rang__num--bascule { position: relative; height: 1.5em; overflow: hidden; }
.demo__rang__num--bascule > span { position: absolute; inset: 0; display: grid; place-items: center; }
.demo__rang__num--bascule > .sort { animation: rangSort 170ms ease-in forwards; }
.demo__rang__num--bascule > .entre { animation: rangEntre 170ms ease-out backwards; }
@keyframes rangSort { to { transform: translateY(-110%); opacity: 0; } }
@keyframes rangEntre { from { transform: translateY(110%); opacity: 0; } }
.demo__rang__nom { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo__rang__note { flex: 0 0 auto; font-family: var(--f-mono); font-size: 0.75rem; color: var(--gris-store); }
.demo__rang--vous .demo__rang__note { color: var(--encre); }

.demo__fiche {
  position: relative;
  /* Les deux états occupent la MÊME cellule de grille : la carte prend donc
     la hauteur de la plus haute des deux, et aucun des deux n'est sorti du
     flux. Avec l'ancien `position: absolute` sur l'état « après », c'est
     l'état « avant » seul qui donnait la hauteur, et le contenu le plus long
     débordait — d'où les deux moitiés qui ne tombaient pas au même niveau. */
  display: grid;
  border: var(--trait) solid var(--encre);
  border-radius: var(--rayon);
  overflow: hidden;
  background: var(--blanc);
  isolation: isolate;
}
.demo__etat { display: grid; grid-area: 1 / 1; }
.demo__etat--avant { z-index: 1; }  /* calque du dessous */
.demo__etat--apres {
  z-index: 2;
  /* On révèle la fiche tenue à jour depuis la GAUCHE, au fur et à mesure que
     la poignée avance : à 0 % rien, à 100 % toute la fiche. */
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
/* Surface qui capte les gestes : une bande centrée sur la hauteur de la carte.
   `pan-y` laisse le défilement vertical au navigateur ; le script tranche à
   partir de la direction des premiers millimètres. */
.demo__prise {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 76px;
  z-index: 8;
  touch-action: pan-y;
  cursor: ew-resize;
  -webkit-tap-highlight-color: transparent;
}

.demo__poignee {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: var(--trait-fort);
  background: var(--encre);
  z-index: 5;
  pointer-events: none;
}
.demo__poignee::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  background: var(--jaune-promo);
  border: var(--trait-fort) solid var(--encre);
  border-radius: 50%;
}
.demo__poignee::before {
  content: '\2039  \203A';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 6;
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.1em;
  color: var(--encre);
}
.demo__curseur {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 7;
  width: 100%;
  height: 76px;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  -webkit-appearance: none;
  appearance: none;
  /* L'input ne sert plus qu'au clavier et aux lecteurs d'écran : il ne reçoit
     aucun pointeur, sinon son pilote natif attraperait les gestes verticaux
     destinés au défilement. C'est .demo__prise qui capte les gestes. */
  pointer-events: none;
  opacity: 0;
  -webkit-tap-highlight-color: transparent;
}
.demo__curseur::-webkit-slider-runnable-track { background: transparent; height: 100%; }
.demo__curseur::-moz-range-track { background: transparent; height: 100%; }
.demo__curseur::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 1px;
  height: 76px;
  background: transparent;
  border: 0;
  cursor: ew-resize;
}
.demo__curseur::-moz-range-thumb { width: 1px; height: 76px; background: transparent; border: 0; cursor: ew-resize; }
.demo__curseur:focus-visible + .demo__poignee::after {
  outline: var(--trait-fort) solid var(--bleu-enseigne);
  outline-offset: 4px;
}

/* La fiche Google reproduite */
.fiche { display: grid; gap: 0.5rem; padding: 0.85rem; background: var(--blanc); min-height: 330px; align-content: start; }
.fiche__bandeau { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.fiche__bandeau .fiche__meta { text-align: right; }
.fiche__pos {
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: var(--t-mini);
  white-space: nowrap;
  padding: 0.15rem 0.45rem;
  background: var(--rouge-fonce);
  color: var(--blanc);
}
.fiche__pos--haut { background: var(--jaune-promo); color: var(--encre); }
.fiche__nom { font-family: var(--f-display); font-weight: 900; font-size: 1.0625rem; letter-spacing: -0.02em; }
.fiche__note { display: flex; align-items: center; gap: 0.35rem; font-family: var(--f-mono); font-size: 0.8125rem; }
.fiche__etoiles { display: inline-flex; gap: 1px; }
.fiche__etoiles svg { width: 13px; height: 13px; }
.fiche__meta { font-size: 0.75rem; color: var(--gris-store); line-height: 1.4; }
.fiche__manque { color: var(--rouge-fonce); font-weight: 500; }
.fiche__ok { color: var(--vert-ok); font-weight: 500; }
.fiche__photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.fiche__photo { aspect-ratio: 4 / 3; background: var(--gris-fond); border: 1px dashed var(--gris-trait); display: grid; place-items: center; font-size: 0.625rem; color: var(--gris-store); text-align: center; padding: 2px; }
.fiche__photo--p1,
.fiche__photo--p2,
.fiche__photo--p3 { border-style: solid; border-color: var(--encre); }
.fiche__photo--p1 { background: var(--encre); }
.fiche__photo--p2 { background: var(--bleu-enseigne); }
.fiche__photo--p3 { background: var(--jaune-promo); }
.puce--dept span { font-weight: 400; opacity: 0.8; }
.fiche__actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.fiche__action { font-family: var(--f-mono); font-size: 0.625rem; text-align: center; padding: 0.3rem 0.1rem; border: 1px solid var(--gris-trait); border-radius: 2px; color: var(--gris-store); }
.fiche__action--vif { border-color: var(--bleu-enseigne); color: var(--bleu-enseigne); font-weight: 700; }
.fiche__avis { border-top: 1px solid var(--gris-trait); padding-top: 0.4rem; font-size: 0.6875rem; line-height: 1.35; display: grid; gap: 0.25rem; }
.fiche__reponse { border-left: 2px solid var(--bleu-enseigne); padding-left: 0.4rem; color: var(--gris-store); }

.demo__legende { font-size: var(--t-mini); color: var(--gris-store); line-height: 1.4; }

/* 6.10 Simulateur --------------------------------------------------------- */
.simu { display: grid; gap: var(--e-5); }
.simu__reglages { display: grid; gap: var(--e-5); }
.champ-curseur { display: grid; gap: 0.4rem; }
.champ-curseur__haut { display: flex; align-items: baseline; justify-content: space-between; gap: var(--e-3); }
.champ-curseur__nom { font-weight: 500; font-size: var(--t-petit); }
.champ-curseur__valeur { font-family: var(--f-mono); font-weight: 700; background: var(--jaune-promo); padding: 0.1rem 0.4rem; }

.curseur {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 44px;
  background: transparent;
  cursor: pointer;
}
.curseur::-webkit-slider-runnable-track { height: 8px; background: var(--encre); border-radius: 0; }
.curseur::-moz-range-track { height: 8px; background: var(--encre); border-radius: 0; }
.curseur::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 30px;
  height: 30px;
  margin-top: -11px;
  background: var(--jaune-promo);
  border: var(--trait-fort) solid var(--encre);
  border-radius: 50%;
}
.curseur::-moz-range-thumb {
  width: 24px;
  height: 24px;
  background: var(--jaune-promo);
  border: var(--trait-fort) solid var(--encre);
  border-radius: 50%;
}
.curseur:focus-visible { outline: var(--trait-fort) solid var(--bleu-enseigne); outline-offset: 4px; }

.segments { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.segments__option { position: relative; }
.segments__radio { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.segments__libelle {
  display: block;
  padding: 0.55rem 0.8rem;
  border: var(--trait) solid var(--encre);
  border-radius: var(--rayon);
  font-family: var(--f-mono);
  font-size: var(--t-mini);
  background: var(--blanc);
  cursor: pointer;
}
.segments__radio:checked + .segments__libelle { background: var(--encre); color: var(--blanc); }
.segments__radio:focus-visible + .segments__libelle { outline: var(--trait-fort) solid var(--bleu-enseigne); outline-offset: 3px; }

.simu__sortie {
  display: grid;
  gap: var(--e-3);
  background: var(--encre);
  color: var(--blanc);
  border-radius: var(--rayon);
  padding: var(--e-5);
}
.simu__chiffre {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(2.5rem, 11vw, 4.25rem);
  letter-spacing: -0.045em;
  line-height: 0.95;
  color: var(--jaune-promo);
  font-variant-numeric: tabular-nums;
}
.simu__legende { font-size: var(--t-mini); color: #b6b6b6; line-height: 1.45; }
.simu__hypothese { font-family: var(--f-mono); font-size: 0.75rem; color: #b6b6b6; line-height: 1.5; border-top: 1px solid #35363a; padding-top: var(--e-3); }

/* 6.11 Configurateur ------------------------------------------------------ */
.config { display: grid; gap: var(--e-5); }
.config__liste { display: grid; gap: 0.6rem; }
.option {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem 1rem;
  border: var(--trait) solid var(--encre);
  border-radius: var(--rayon);
  background: var(--blanc);
  cursor: pointer;
}
.option:has(input:checked) { background: var(--jaune-promo); }
.option:has(input:focus-visible) { outline: var(--trait-fort) solid var(--bleu-enseigne); outline-offset: 3px; }
.option__case { width: 24px; height: 24px; accent-color: var(--encre); cursor: pointer; }
.option__nom { font-weight: 500; font-size: var(--t-petit); line-height: 1.3; }
.option__detail { display: block; font-weight: 400; color: var(--gris-store); font-size: var(--t-mini); }
.option:has(input:checked) .option__detail { color: #4a4a4a; }
.option__prix { font-family: var(--f-mono); font-weight: 700; font-size: var(--t-petit); white-space: nowrap; }

.ticket {
  background: var(--blanc);
  border: var(--trait) solid var(--encre);
  border-radius: var(--rayon);
  padding: var(--e-5);
  display: grid;
  gap: var(--e-3);
  position: sticky;
  top: calc(var(--h-entete) + 1rem);
}
.ticket__titre { font-family: var(--f-mono); font-weight: 700; font-size: var(--t-mini); letter-spacing: 0.1em; text-transform: uppercase; }
.ticket__separateur { border: 0; border-top: 2px dashed var(--gris-store); }
.ticket__vide { font-size: var(--t-petit); color: var(--gris-store); }
.suggestion {
  background: var(--jaune-promo);
  border: var(--trait) solid var(--encre);
  border-radius: var(--rayon);
  padding: var(--e-4);
  display: grid;
  gap: var(--e-3);
  font-size: var(--t-petit);
}
.suggestion[hidden] { display: none; }

.formule-active {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--e-3);
  background: var(--encre);
  color: var(--blanc);
  border-radius: var(--rayon);
  padding: 0.6rem 0.85rem;
  font-family: var(--f-mono);
  font-size: var(--t-mini);
}
.formule-active__retirer {
  background: none;
  border: 1px solid #55565a;
  border-radius: var(--rayon);
  color: var(--blanc);
  font-family: var(--f-mono);
  font-size: var(--t-mini);
  padding: 0.25rem 0.55rem;
}
.formule-active__retirer:hover { border-color: var(--jaune-promo); color: var(--jaune-promo); }

/* 6.12 Tableau comparatif ------------------------------------------------- */
.tableau-enveloppe { overflow-x: auto; border: var(--trait) solid var(--encre); border-radius: var(--rayon); }
/* La règle :focus-visible globale remet un rayon de 1px : on garde ici
   celui du cadre, sinon les angles s'équerrent au moment du focus. */
.tableau-enveloppe:focus-visible { border-radius: var(--rayon); }
.tableau { width: 100%; border-collapse: collapse; min-width: 640px; font-size: var(--t-petit); }
.tableau th,
.tableau td { padding: 0.75rem 0.85rem; text-align: left; border-bottom: 1px solid var(--gris-trait); vertical-align: top; }
.tableau thead th { background: var(--encre); color: var(--blanc); font-family: var(--f-mono); font-size: var(--t-mini); letter-spacing: 0.04em; text-transform: uppercase; position: sticky; top: 0; }
.tableau tbody th { font-weight: 500; }
.tableau tbody tr:nth-child(even) { background: var(--gris-fond); }
.tableau td.oui { color: var(--vert-ok); font-family: var(--f-mono); font-weight: 700; }
.tableau td.non { color: var(--gris-store); font-family: var(--f-mono); }
.tableau tbody tr:has(> .ligne-vous) { background: var(--jaune-promo); }
.tableau .ligne-vous .puce { margin-left: 0.4rem; }

/* 6.13 Étapes de méthode -------------------------------------------------- */
.etapes { display: grid; gap: var(--e-4); counter-reset: etape; }
.etapes--rangee { grid-template-columns: minmax(0, 1fr); gap: 0.6rem; }
.etapes--rangee .etape { padding: var(--e-3) var(--e-4); align-items: center; }
.etape {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: var(--e-4);
  align-items: start;
  background: var(--blanc);
  border: var(--trait) solid var(--encre);
  border-radius: var(--rayon);
  padding: var(--e-4);
}
.etape__num {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  background: var(--encre);
  color: var(--jaune-promo);
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 1.25rem;
}
.etape__corps { display: grid; gap: 0.35rem; }
/* Un titre d'étape reste un titre d'étape : à la taille d'un h2 de page il
   pesait autant que le h1 et chaque étape mangeait un écran entier. */
.etape h2 { font-size: var(--t-h3); }
.etape__delai { font-family: var(--f-mono); font-size: var(--t-mini); color: var(--gris-store); }

/* 6.14 FAQ ---------------------------------------------------------------- */
.faq { display: grid; gap: 0.6rem; }
.question {
  border: var(--trait) solid var(--encre);
  border-radius: var(--rayon);
  background: var(--blanc);
  overflow: hidden;
}
.question[open] { background: var(--gris-fond); }
.question__titre {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--e-4);
  padding: var(--e-4);
  cursor: pointer;
  list-style: none;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.question__titre::-webkit-details-marker { display: none; }
.question__titre:hover { background: var(--gris-fond); }
.question__signe {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: var(--trait) solid var(--encre);
  background: var(--jaune-promo);
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
}
.question__signe::before { content: '+'; }
.question[open] .question__signe::before { content: '\2212'; }
.question__corps { overflow: hidden; transition: height 260ms var(--courbe); }
.question__texte { padding: 0 var(--e-4) var(--e-4); font-size: var(--t-petit); display: grid; gap: 0.6rem; }

/* 6.15 Formulaires -------------------------------------------------------- */
.formulaire { display: grid; gap: var(--e-4); }
.champ { display: grid; gap: 0.35rem; }
.champ__label { font-weight: 500; font-size: var(--t-petit); }
/* L'astérisque des champs obligatoires. aria-hidden dans le HTML : la
   contrainte est déjà portée par l'attribut required, et « étoile » lu à
   voix haute n'apprend rien. Le rouge sert ici de repère, pas d'erreur. */
.obligatoire { color: var(--rouge-fonce); font-weight: 700; }
.champ__aide { font-size: var(--t-mini); color: var(--gris-store); }

.saisie {
  width: 100%;
  min-height: 52px;
  padding: 0.7rem 0.85rem;
  background: var(--blanc);
  border: var(--trait) solid var(--encre);
  border-radius: var(--rayon);
  font-size: 1rem;
}
textarea.saisie { min-height: 120px; resize: vertical; line-height: 1.5; }
select.saisie {
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--encre) 50%), linear-gradient(135deg, var(--encre) 50%, transparent 50%);
  background-position: calc(100% - 20px) 22px, calc(100% - 14px) 22px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
}
.saisie:focus-visible { outline: var(--trait-fort) solid var(--bleu-enseigne); outline-offset: 0; border-color: var(--bleu-enseigne); }
.saisie[aria-invalid='true'] { border-color: var(--rouge-solde); background-color: #fff5f4; }

.champ__erreur { font-size: var(--t-mini); font-weight: 500; color: var(--rouge-fonce); min-height: 0; }
.champ__erreur:empty { display: none; }

.consentement { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; align-items: start; font-size: var(--t-petit); line-height: 1.4; }
.consentement input { width: 24px; height: 24px; margin-top: 2px; accent-color: var(--encre); }

/* Piège anti-spam : un robot le remplit, un humain ne le voit pas. */
.pot-de-miel,
/* Texte destiné aux seuls lecteurs d écran. */
.hors-ecran { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.retour { border: var(--trait) solid var(--encre); border-radius: var(--rayon); padding: var(--e-4); display: grid; gap: 0.5rem; font-size: var(--t-petit); }
.retour[hidden] { display: none; }
.retour--succes { background: #ecfaf1; border-color: var(--vert-ok); }
.retour--erreur { background: #fff2f0; border-color: var(--rouge-solde); }
.retour__titre { font-family: var(--f-display); font-weight: 900; font-size: 1.125rem; }

/* 6.16 Bandeau cookies ---------------------------------------------------- */
.cookies {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  background: var(--blanc);
  border-top: var(--trait-fort) solid var(--encre);
  padding: var(--e-4) 0 calc(var(--e-4) + env(safe-area-inset-bottom, 0));
  transform: translateY(110%);
  transition: transform 260ms var(--courbe);
}
.cookies[data-ouvert='true'] { transform: translateY(0); }
.cookies__corps { display: grid; gap: var(--e-3); }
.cookies__texte { font-size: var(--t-petit); line-height: 1.45; }
.cookies__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.cookies__lien { font-size: var(--t-mini); display: inline-flex; align-items: center; min-height: 26px; }

/* 6.17 Pied de page ------------------------------------------------------- */
.pied { background: var(--encre); color: var(--blanc); padding-block: var(--e-6) var(--e-5); }
.pied .plomb { color: #b6b6b6; }
.pied a { color: var(--blanc); text-decoration: none; font-size: var(--t-petit); }
.pied__liste a { display: inline-flex; align-items: center; min-height: 26px; }
.pied a:hover { color: var(--jaune-promo); text-decoration: underline; }
.pied__grille { display: grid; gap: var(--e-5); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pied__grille > :first-child { grid-column: 1 / -1; }
.pied__titre { font-family: var(--f-mono); font-weight: 700; font-size: var(--t-mini); letter-spacing: 0.1em; text-transform: uppercase; color: #b6b6b6; margin-bottom: var(--e-3); }
.pied__liste { display: grid; gap: 0.5rem; }
.pied__bas a { display: inline-flex; align-items: center; min-height: 24px; font-size: inherit; }
.pied__bas { border-top: 1px solid #35363a; margin-top: var(--e-6); padding-top: var(--e-4); display: grid; gap: var(--e-3); font-size: var(--t-mini); color: #b6b6b6; }
.pied__bouton-cookies { background: none; border: 1px solid #55565a; border-radius: var(--rayon); color: var(--blanc); font-size: var(--t-mini); padding: 0.4rem 0.7rem; justify-self: start; }
.pied__bouton-cookies:hover { border-color: var(--jaune-promo); color: var(--jaune-promo); }

/* 6.18 Divers ------------------------------------------------------------- */
.bloc-signature {
  border: var(--trait-fort) solid var(--encre);
  border-radius: var(--rayon);
  padding: var(--e-5);
  background: var(--blanc);
  display: grid;
  gap: var(--e-4);
}
.signature { font-family: var(--f-display); font-weight: 900; font-size: 1.125rem; letter-spacing: -0.02em; }
.signature__role { display: block; font-family: var(--f-mono); font-weight: 400; font-size: var(--t-mini); color: var(--gris-store); letter-spacing: 0; }

.puces-villes { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.puce {
  font-family: var(--f-mono);
  font-size: var(--t-mini);
  border: var(--trait) solid var(--encre);
  border-radius: var(--rayon);
  padding: 0.25rem 0.55rem;
  background: var(--blanc);
}
.puce--dept { background: var(--encre); color: var(--blanc); font-weight: 700; }

.appel-final { display: grid; gap: var(--e-4); justify-items: start; }
.tel-gros {
  display: inline-block;
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: clamp(1.375rem, 5.5vw, 2rem);
  letter-spacing: -0.02em;
  color: var(--encre);
  text-decoration: none;
  border-bottom: var(--trait-fort) solid var(--jaune-promo);
}
.tel-gros:hover { color: var(--encre); background: var(--jaune-promo); }
.section--encre .tel-gros { color: var(--blanc); }
.section--encre .tel-gros:hover { color: var(--encre); background: var(--jaune-promo); }

/* Carte entièrement cliquable (page 404) */
.carte--lien { text-decoration: none; color: inherit; transition: box-shadow var(--duree) var(--courbe), transform var(--duree) var(--courbe); }
.carte--lien:hover { color: inherit; transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--jaune-promo); }

.contenu-legal { display: grid; gap: var(--e-5); }
.contenu-legal h2 { font-size: var(--t-h3); margin-top: var(--e-4); }
.contenu-legal h3 { font-size: var(--t-h4); }
.contenu-legal p,
.contenu-legal li { font-size: var(--t-petit); }
.contenu-legal li > a { display: inline-flex; align-items: center; min-height: 24px; }
.contenu-legal ul { display: grid; gap: 0.4rem; padding-left: 1.1rem; list-style: disc; }
.contenu-legal ol { display: grid; gap: 0.4rem; padding-left: 1.3rem; list-style: decimal; }
.a-remplir {
  display: inline-block;
  background: var(--rouge-fonce);
  color: var(--blanc);
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: var(--t-mini);
  padding: 0.15rem 0.45rem;
  border-radius: 2px;
}
.avertissement {
  border: var(--trait-fort) dashed var(--rouge-solde);
  border-radius: var(--rayon);
  background: #fff5f4;
  padding: var(--e-4);
  display: grid;
  gap: 0.5rem;
  font-size: var(--t-petit);
}

.fil a { display: inline-flex; align-items: center; min-height: 24px; }
.fil { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; font-family: var(--f-mono); font-size: var(--t-mini); color: var(--gris-store); }
.fil a { color: var(--gris-store); }

.temoignages-vide {
  border: var(--trait) dashed var(--gris-store);
  border-radius: var(--rayon);
  padding: var(--e-5);
  display: grid;
  gap: 0.5rem;
  font-size: var(--t-petit);
  color: var(--gris-store);
  background: var(--blanc);
}

.hero { padding-block: var(--e-6) var(--e-7); }
.hero__grille { display: grid; gap: var(--e-6); align-items: start; }
.hero__texte { display: grid; gap: var(--e-4); justify-items: start; }
.hero__boutons { display: grid; gap: 0.75rem; width: 100%; }
.hero__preuves {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  font-family: var(--f-mono);
  font-size: var(--t-mini);
  color: var(--gris-store);
}
.hero__preuves li { display: flex; align-items: center; gap: 0.75rem; }
.hero__preuves li:not(:last-child)::after { content: '\00B7'; font-weight: 700; }

.bande {
  background: var(--jaune-promo);
  color: var(--encre);
  padding-block: 0.7rem;
  overflow: hidden;
}
.bande__texte {
  display: flex;
  gap: 2.5rem;
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: var(--t-mini);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  justify-content: center;
  flex-wrap: wrap;
}

.duo { display: grid; gap: var(--e-6); align-items: start; }

.avant-apres { display: grid; gap: var(--e-4); }
.colonne-etat { border: var(--trait) solid var(--encre); border-radius: var(--rayon); padding: var(--e-4); display: grid; gap: 0.6rem; }
.colonne-etat--avant { background: #fff5f4; border-color: var(--rouge-solde); }
.colonne-etat--apres { background: #f7fbf8; border-color: var(--vert-ok); }
.colonne-etat__titre { font-family: var(--f-mono); font-weight: 700; font-size: var(--t-mini); letter-spacing: 0.08em; text-transform: uppercase; }
.colonne-etat__liste { display: grid; gap: 0.35rem; font-size: var(--t-petit); }
.colonne-etat__liste li { display: grid; grid-template-columns: 1.2rem 1fr; gap: 0.4rem; }
.colonne-etat--avant .colonne-etat__liste li::before { content: '\00D7'; font-family: var(--f-mono); font-weight: 700; color: var(--rouge-fonce); }
.colonne-etat--apres .colonne-etat__liste li::before { content: '\2713'; font-family: var(--f-mono); font-weight: 700; color: var(--vert-ok); }

/* 7 — MOUVEMENT =========================================================== */

/* Les révélations au défilement ne masquent le contenu QUE si le script tourne.
   Sans JavaScript, aucun attribut n'est posé et tout reste visible. */
body[data-revele='actif'] .revele { opacity: 0; transform: translateY(18px); }
body[data-revele='actif'] .revele[data-vu='true'] {
  opacity: 1;
  transform: none;
  transition: opacity 520ms var(--courbe), transform 520ms var(--courbe);
}

/* Séquence d'ouverture du hero : CSS seul, aucun risque d'écran blanc. */
.hero__texte > *,
.hero__visuel { animation: apparition 620ms var(--courbe) backwards; }
.hero__texte > *:nth-child(1) { animation-delay: 40ms; }
.hero__texte > *:nth-child(2) { animation-delay: 130ms; }
.hero__texte > *:nth-child(3) { animation-delay: 210ms; }
.hero__texte > *:nth-child(4) { animation-delay: 290ms; }
.hero__texte > *:nth-child(5) { animation-delay: 360ms; }
.hero__visuel { animation-delay: 430ms; }

@keyframes apparition {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* 8 — RESPONSIVE ========================================================== */

@media (min-width: 560px) {
  .hero__boutons { display: flex; flex-wrap: wrap; width: auto; }
  .cookies__actions { grid-template-columns: auto auto 1fr; align-items: center; }
  .grille--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .etapes--rangee { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .avant-apres { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 720px) {
  :root { --gouttiere: 2rem; --h-entete: 72px; }
  .section { padding-block: var(--e-8); }
  .section--haute { padding-block: var(--e-9); }
  .section--basse { padding-block: var(--e-7); }
  .grille--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grille--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grille { gap: var(--e-5); }
  .pied { padding-block: var(--e-7) var(--e-6); }
  .pied__grille { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: var(--e-6); }
  .pied__grille > :first-child { grid-column: auto; }
  .pied__bas { grid-template-columns: 1fr auto; align-items: center; }
  .config { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; gap: var(--e-6); }
  .simu { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--e-6); align-items: start; }
  .etape { grid-template-columns: 64px minmax(0, 1fr); padding: var(--e-5); }
  .etapes--rangee { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .etapes--rangee .etape { grid-template-columns: 44px minmax(0, 1fr); padding: var(--e-4); gap: var(--e-3); }
  .etapes--rangee .etape__num { width: 44px; height: 44px; font-size: 1.125rem; }
  .etape__num { width: 64px; height: 64px; font-size: 1.5rem; }
}

/* « gratuit » est le mot qui accroche : on le garde le plus longtemps
   possible. En dessous de 380 px, il n'y a plus la place à côté du bouton
   d'appel et du menu. */
@media (max-width: 379px) {
  .entete__audit { padding-inline: 0.7rem; }
  .entete__audit-long { display: none; }
  .entete__audit-court { display: inline; }
}

@media (min-width: 900px) {
  .nav { display: block; }
  .burger { display: none; }
  .bouton--icone { display: none; }
  .entete__tel {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--f-mono);
    font-weight: 700;
    font-size: var(--t-petit);
    color: var(--encre);
    text-decoration: none;
  }
  .entete__tel:hover { color: var(--encre); text-decoration: underline; }
  .hero { padding-block: var(--e-7) var(--e-8); }
  .hero__grille { grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: var(--e-7); align-items: center; }
  .duo { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--e-7); }
  .demo { padding: var(--e-5); }
  .demo__scene { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: var(--e-4); align-items: start; }
  .fiche { min-height: 360px; }
}

@media (min-width: 1100px) {
  .demo__scene { grid-template-columns: 250px minmax(0, 1fr); }
}

@media (max-width: 899px) {
  .demo__scene { display: grid; gap: var(--e-3); }
}

/* 9 — MOUVEMENT RÉDUIT ==================================================== */

@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;
    scroll-behavior: auto !important;
  }
  body[data-revele='actif'] .revele { opacity: 1; transform: none; }
  .hero__texte > *,
  .hero__visuel { animation: none; }
  .panneau { transition: none; }
}

/* 10 — IMPRESSION ========================================================= */

@media print {
  .entete, .cookies, .panneau, .bande, .perfo { display: none !important; }
  .bouton { box-shadow: none; }
  a[href^='http']::after { content: ' (' attr(href) ')'; font-size: 0.75em; }
}
