/* Atterrir · feuille de style unique. Les valeurs viennent des jetons de :root (voir IDENTITE.md). */

@font-face { font-family: "Alegreya"; src: url("fonts/alegreya-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Alegreya"; src: url("fonts/alegreya-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Alegreya"; src: url("fonts/alegreya-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("fonts/alegreya-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("fonts/alegreya-sans-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("fonts/alegreya-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("fonts/alegreya-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  /* Palette de la Manche */
  --chaux: #f4f4f0;          /* enduit à la chaux, fond */
  --chaux-2: #e9e9e3;        /* panneau, pied de page */
  --granit-200: #d3d4ce;     /* joints, filets */
  --granit-300: #bcbeb8;     /* pierre claire (dessins) */
  --granit-400: #8f9497;     /* pierre moyenne (dessins, traits) */
  --granit-600: #575d62;     /* texte secondaire, 6,1:1 sur chaux */
  --ardoise: #262c31;        /* texte, toits d'ardoise */
  --volet: #2a5c7c;          /* bleu-gris des volets de la photo, assombri pour le texte : 7:1 sur blanc */
  --volet-fonce: #1b3f57;    /* ombre portée des boutons */
  --volet-pale: #dae6ec;     /* fond des encarts */
  --bocage: #4a5a2c;         /* vert olive des haies et des vestes de la photo */
  --bocage-pale: #e3e6cf;    /* fond des prés clairs */
  --pre: #cdd4ad;
  --pre-fonce: #b7c08f;
  --labour: #ddd3b8;
  --lumiere: #e9c46a;        /* lumière rasante des photos : le halo du marcheur seulement */
  --hortensia: #a8558a;      /* étape en cours, pilote : marques seulement */
  --hortensia-fonce: #87386b;/* texte hortensia, 6,7:1 sur chaux */
  --hortensia-pale: #f2e3ed;
  --ciel: #e3e8ec;
  --bois: #9a7a55;
  --pomme: #b8433a;
  --blanc: #ffffff;

  /* Typographie : échelle de quarte (1,333) autour de 18 px */
  --police-titre: "Alegreya", "Iowan Old Style", Georgia, serif;
  --police-texte: "Alegreya Sans", "Gill Sans", "Trebuchet MS", sans-serif;
  --t-0: 0.8125rem;
  --t-1: 0.9375rem;
  --t-2: 1.125rem;
  --t-3: 1.3125rem;
  --t-4: 1.75rem;
  --t-5: clamp(1.875rem, 1.3rem + 2.4vw, 3rem);
  --t-6: clamp(2.625rem, 1.6rem + 3.8vw, 4.625rem);
  --interligne-texte: 1.55;
  --interligne-titre: 1.06;
  --mesure: 62ch;

  /* Espacements */
  --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: 6rem;
  --e-10: 8rem;
  --goutiere: clamp(1rem, 0.5rem + 2.5vw, 3rem);
  --largeur: 78rem;

  /* Formes : le rayon dit la taille de l'objet */
  --r-commande: 6px;
  --r-panneau: 12px;
  --r-photo: 4px;
  --trait: 2px;
  --ombre-bouton: 0 3px 0 var(--volet-fonce);
  --ombre-bouton-appuye: 0 1px 0 var(--volet-fonce);
  --hauteur-entete: 4rem;

  /* Mouvement */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --duree-appui: 140ms;
  --duree-ui: 220ms;
  --duree-revele: 900ms;
}

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

html {
  color-scheme: light;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--hauteur-entete) + var(--e-4));
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--chaux);
  color: var(--ardoise);
  font-family: var(--police-texte);
  font-size: var(--t-2);
  line-height: var(--interligne-texte);
  font-variant-numeric: lining-nums;
  overflow-x: clip;
}

h1, h2, h3 {
  font-family: var(--police-titre);
  line-height: var(--interligne-titre);
  margin: 0;
  text-wrap: balance;
  font-variant-numeric: lining-nums;
}
h2 { font-size: var(--t-5); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: var(--t-3); font-weight: 700; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--volet); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: var(--trait); }
img, svg { display: block; max-width: 100%; }
strong { font-weight: 700; }

:focus-visible {
  outline: 3px solid var(--volet);
  outline-offset: 3px;
  border-radius: var(--r-commande);
}

.evitement {
  position: absolute;
  left: var(--e-4);
  top: calc(-1 * var(--e-9));
  padding: var(--e-2) var(--e-4);
  background: var(--ardoise);
  color: var(--chaux);
  border-radius: var(--r-commande);
  z-index: 30;
}
.evitement:focus { top: var(--e-4); }

/* ——— Notes de source ——— */
.note {
  display: inline-block;
  min-width: 1.35em;
  margin-left: 0.15em;
  padding: 0 0.3em;
  font-family: var(--police-texte);
  font-size: 0.68em;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  vertical-align: super;
  color: var(--volet);
  background: var(--volet-pale);
  border-radius: var(--r-commande);
  text-decoration: none;
}
.note:hover { background: var(--volet); color: var(--blanc); }

/* ——— Logo ——— */
.logo { width: 8.5rem; height: auto; overflow: visible; }
.logo__toit { fill: none; stroke: var(--volet); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.logo__sol { fill: none; stroke: var(--bocage); stroke-width: 4; stroke-linecap: round; }
.logo__mot { font-family: var(--police-titre); font-weight: 800; font-size: 28px; fill: var(--ardoise); letter-spacing: -0.01em; }

/* ——— Boutons ——— */
.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--e-2);
  min-height: 3rem;
  padding: var(--e-3) var(--e-5);
  border: 0;
  border-radius: var(--r-commande);
  background: var(--volet);
  color: var(--blanc);
  font: 700 var(--t-2) / 1.2 var(--police-texte);
  text-align: center;
  cursor: pointer;
  box-shadow: var(--ombre-bouton);
  transition: transform var(--duree-appui) var(--ease-out), box-shadow var(--duree-appui) var(--ease-out), background-color var(--duree-ui) ease;
}
.bouton:active { transform: translateY(2px); box-shadow: var(--ombre-bouton-appuye); }
@media (hover: hover) and (pointer: fine) {
  .bouton:hover { background: var(--volet-fonce); }
}
.bouton--petit { min-height: 2.5rem; padding: var(--e-2) var(--e-4); font-size: var(--t-1); }
.bouton--clair { background: var(--chaux); color: var(--volet-fonce); box-shadow: 0 3px 0 var(--ardoise); }
.bouton--clair:active { box-shadow: 0 1px 0 var(--ardoise); }
@media (hover: hover) and (pointer: fine) {
  .bouton--clair:hover { background: var(--blanc); }
}
.bouton--secondaire { background: var(--chaux-2); color: var(--ardoise); box-shadow: 0 3px 0 var(--granit-400); }
.bouton--secondaire:active { box-shadow: 0 1px 0 var(--granit-400); }
@media (hover: hover) and (pointer: fine) {
  .bouton--secondaire:hover { background: var(--granit-200); }
}

.lien-fort {
  display: inline-flex;
  align-items: center;
  gap: var(--e-2);
  min-height: 3rem;
  color: var(--volet);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: var(--trait);
  text-underline-offset: 0.3em;
}
.lien-fort--bouton { border: 0; background: none; padding: 0; font: inherit; font-weight: 700; cursor: pointer; }
.lien-fort--bouton::after {
  content: "";
  width: 1.75rem;
  height: var(--trait);
  background: currentColor;
  transition: transform var(--duree-ui) var(--ease-out);
  transform-origin: left center;
}
@media (hover: hover) and (pointer: fine) {
  .lien-fort--bouton:hover::after { transform: scaleX(1.5); }
}

/* ——— En-tête ——— */
.entete {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--e-5);
  min-height: var(--hauteur-entete);
  padding: var(--e-2) var(--goutiere);
  background: var(--chaux);
  border-bottom: 1px solid transparent;
  transition: border-color var(--duree-ui) ease;
}
.entete[data-defile="oui"] { border-bottom-color: var(--granit-200); }
.entete__logo { display: block; border-radius: var(--r-commande); }
.entete__logo .logo { width: 7.25rem; }
.entete__nav { display: none; gap: var(--e-5); margin-left: auto; }
.entete__nav a { color: var(--ardoise); text-decoration: none; font-weight: 500; font-size: var(--t-1); padding: var(--e-2) 0; }
.entete__nav a:hover { color: var(--volet); text-decoration: underline; }
@media (min-width: 960px) {
  .entete__nav { display: flex; }
}

/* ——— Sections ——— */
.section {
  width: min(100% - 2 * var(--goutiere), var(--largeur));
  margin-inline: auto;
  padding-block: var(--e-9);
}
.section__tete { max-width: var(--mesure); display: grid; gap: var(--e-4); margin-bottom: var(--e-7); }
.section__tete p { color: var(--granit-600); font-size: var(--t-3); line-height: 1.45; }
.section + .section { border-top: 1px solid var(--granit-200); }

/* ——— Hero ——— */
.hero {
  display: grid;
  gap: var(--e-6);
  width: min(100% - 2 * var(--goutiere), var(--largeur));
  margin-inline: auto;
  padding-block: var(--e-6) var(--e-9);
}
.hero__texte { display: grid; gap: var(--e-5); align-content: start; }
.hero__titre {
  font-size: var(--t-6);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-wrap: initial;
}
.hero__chapo { font-size: var(--t-3); line-height: 1.5; max-width: 34em; color: var(--ardoise); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--e-4) var(--e-6); padding-top: var(--e-2); }
.hero__preuve {
  max-width: 34em;
  padding-left: var(--e-4);
  border-left: 4px solid var(--hortensia);
  font-size: var(--t-2);
}
.hero__preuve .chiffre { font-family: var(--police-titre); font-size: var(--t-3); }
.hero__contexte { font-size: var(--t-1); color: var(--granit-600); }
@media (max-width: 559px) {
  .hero__actions .bouton { width: 100%; }
}

@media (min-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: center;
    gap: var(--e-7);
    padding-top: var(--e-7);
    width: auto;
    margin-left: max(var(--goutiere), (100% - var(--largeur)) / 2);
    margin-right: 0;
  }
  .hero__texte { padding-block: var(--e-6); }
}

/* ——— Photos et replis dessinés ——— */
.photo { position: relative; margin: 0; }
.photo img,
.photo__repli {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--r-photo);
  background: var(--chaux-2);
}
.photo__repli { display: none; }
.photo--absente img { display: none; }
.photo--absente .photo__repli { display: block; }

.photo--hero { aspect-ratio: 16 / 9; margin-bottom: var(--e-6); }
.photo--hero img { object-position: 45% 50%; }
@media (min-width: 960px) {
  .photo--hero { aspect-ratio: 3 / 2; margin-bottom: 0; }
  .photo--hero img,
  .photo--hero .photo__repli { border-radius: var(--r-photo) 0 0 var(--r-photo); }
}

/* Étiquette de trousseau : elle pend sous les clés de la photo et renvoie au jour 40 du parcours */
.etiquette {
  position: absolute;
  left: 42%;
  top: calc(100% - var(--e-5));
  display: grid;
  gap: var(--e-1);
  max-width: 15rem;
  padding: var(--e-3) var(--e-4) var(--e-3) var(--e-6);
  background: var(--chaux);
  border: var(--trait) solid var(--ardoise);
  border-radius: var(--r-commande) var(--r-panneau) var(--r-panneau) var(--r-commande);
  font-size: var(--t-1);
  line-height: 1.35;
  box-shadow: 0 3px 0 var(--ardoise);
  transform: rotate(-2deg);
}
.etiquette::before {
  content: "";
  position: absolute;
  left: var(--e-3);
  top: 50%;
  width: 0.625rem;
  height: 0.625rem;
  margin-top: -0.3125rem;
  border: var(--trait) solid var(--ardoise);
  border-radius: 50%;
  background: var(--chaux-2);
}
.etiquette__jour { font-family: var(--police-titre); font-weight: 800; font-size: var(--t-3); color: var(--hortensia-fonce); line-height: 1; }
@media (min-width: 960px) {
  .etiquette { left: 46%; }
}
@media (max-width: 559px) {
  .etiquette { left: auto; right: var(--e-4); max-width: 13rem; }
}

/* Le seul moment orchestré au chargement : la photo se découvre, puis l'étiquette tombe */
@media (prefers-reduced-motion: no-preference) {
  .photo--hero img,
  .photo--hero .photo__repli { animation: decouvre var(--duree-revele) var(--ease-out) both; }
  .photo--hero .etiquette { animation: pose 520ms var(--ease-out) 620ms both; }
}
@keyframes decouvre {
  from { clip-path: inset(0 0 100% 0); }
  to { clip-path: inset(0 0 0 0); }
}
@keyframes pose {
  from { opacity: 0; transform: translateY(-10px) rotate(-6deg); }
  to { opacity: 1; transform: translateY(0) rotate(-2deg); }
}

/* ——— Le problème : trois portes sur un chemin ——— */
.portes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--e-6);
  position: relative;
}
.porte {
  position: relative;
  display: grid;
  gap: var(--e-3);
  align-content: start;
  padding-left: var(--e-7);
}
/* Le chemin vertical (mobile) puis horizontal (bureau), avec une sortie à chaque porte */
.porte::before {
  content: "";
  position: absolute;
  left: 0.6875rem;
  top: 0;
  bottom: calc(-1 * var(--e-6));
  width: var(--trait);
  background: var(--volet);
}
.porte:last-child::before { bottom: 0; }
.porte::after {
  content: "";
  position: absolute;
  left: 0.25rem;
  top: 0.35rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--chaux);
  border: 3px solid var(--hortensia);
}
.porte__titre { font-size: var(--t-4); }
.porte__chiffre { font-family: var(--police-titre); font-size: var(--t-3); font-weight: 500; line-height: 1.3; }
.porte p:last-child { color: var(--granit-600); }
.chiffre { font-weight: 800; color: var(--hortensia-fonce); white-space: nowrap; }

@media (min-width: 860px) {
  .portes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--e-6); padding-top: var(--e-7); }
  .porte { padding-left: 0; padding-right: var(--e-4); }
  .porte::before {
    left: 0;
    right: calc(-1 * var(--e-6));
    top: calc(-1 * var(--e-7) + 0.5rem);
    bottom: auto;
    width: auto;
    height: var(--trait);
  }
  .porte:last-child::before { right: 0; bottom: auto; }
  .porte::after { left: 0; top: calc(-1 * var(--e-7)); }
}

.probleme__chute {
  margin-top: var(--e-8);
  max-width: var(--mesure);
  font-family: var(--police-titre);
  font-size: var(--t-4);
  font-weight: 500;
  line-height: 1.25;
}

/* ——— Le parcours des 90 jours ——— */
.carte {
  border-radius: var(--r-panneau);
  overflow: hidden;
  background: var(--pre);
  border: var(--trait) solid var(--bocage);
}
.carte__svg { width: 100%; height: auto; aspect-ratio: 1200 / 380; }
@media (max-width: 640px) {
  /* Sur téléphone, on recadre la carte sur un ruban plus haut et on la fait défiler avec le marcheur */
  .carte { overflow-x: auto; scrollbar-width: none; }
  .carte::-webkit-scrollbar { display: none; }
  .carte__svg { width: 200%; max-width: none; }
}

.champ { stroke: none; }
.haie { fill: none; stroke: var(--bocage); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.arbre { fill: var(--bocage); }
.pommier { fill: var(--pre-fonce); }
.maison__mur { fill: var(--granit-300); stroke: var(--granit-400); stroke-width: 1.5; }
.maison__toit { fill: var(--ardoise); }
.maison__volet { fill: var(--volet); }
.halle__toit { fill: var(--ardoise); }
.halle__pilier { fill: var(--granit-400); }
.chemin__creux { fill: none; stroke: var(--chaux-2); stroke-width: 18; stroke-linecap: round; }
.chemin__trace { fill: none; stroke: var(--volet); stroke-width: 5; stroke-linecap: round; }
.repere__rond { fill: var(--chaux); stroke: var(--ardoise); stroke-width: 3; transition: fill var(--duree-ui) ease, stroke var(--duree-ui) ease; }
.repere[data-etat="passe"] .repere__rond { fill: var(--volet); stroke: var(--volet-fonce); }
.repere[data-etat="actuel"] .repere__rond { fill: var(--hortensia); stroke: var(--ardoise); }
.repere__texte { font: 700 18px var(--police-texte); fill: var(--ardoise); paint-order: stroke; stroke: var(--chaux); stroke-width: 5px; stroke-linejoin: round; }
.repere { cursor: pointer; }
.marcheur__halo { fill: var(--lumiere); opacity: 0.55; }
.marcheur__point { fill: var(--hortensia); stroke: var(--chaux); stroke-width: 3; }

.etapes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--e-2);
  margin-top: var(--e-4);
}
@media (min-width: 860px) {
  .etapes { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
.etape {
  display: grid;
  gap: 0.125rem;
  justify-items: start;
  min-height: 3.5rem;
  padding: var(--e-2) var(--e-3);
  border: var(--trait) solid var(--granit-200);
  border-radius: var(--r-commande);
  background: var(--chaux);
  color: var(--ardoise);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color var(--duree-ui) ease, background-color var(--duree-ui) ease, transform var(--duree-appui) var(--ease-out);
}
.etape:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .etape:hover { border-color: var(--volet); }
}
.etape__jour { font-size: var(--t-0); font-weight: 700; color: var(--granit-600); }
.etape__nom { font-family: var(--police-titre); font-weight: 700; font-size: var(--t-2); line-height: 1.15; }
.etape[data-etat="passe"] { border-color: var(--volet); }
.etape[aria-selected="true"] { border-color: var(--ardoise); background: var(--ardoise); color: var(--chaux); }
.etape[aria-selected="true"] .etape__jour { color: var(--hortensia-pale); }

.panneaux {
  margin-top: var(--e-5);
  padding: var(--e-6) var(--e-5);
  background: var(--chaux-2);
  border-radius: var(--r-panneau);
  min-height: 15rem;
}
@media (min-width: 860px) {
  .panneaux { padding: var(--e-7) var(--e-7) var(--e-6); }
}
.panneau { display: grid; gap: var(--e-5); }
.panneau[hidden] { display: none; }
.panneau__titre { font-size: var(--t-4); }
.panneau__grille { display: grid; gap: var(--e-5); margin: 0; }
@media (min-width: 860px) {
  .panneau__grille { grid-template-columns: 1.3fr 1fr 1fr; gap: var(--e-6); }
}
.panneau__grille div { display: grid; gap: var(--e-2); align-content: start; }
.panneau__grille dt { font-weight: 700; font-size: var(--t-1); color: var(--volet); }
.panneau__grille div:last-child dt { color: var(--hortensia-fonce); }
.panneau__grille dd { margin: 0; }
.panneaux__pied { display: flex; justify-content: flex-end; margin-top: var(--e-4); }

@media (prefers-reduced-motion: no-preference) {
  .panneau[data-entre] { animation: entre var(--duree-ui) var(--ease-out) both; }
}
@media (prefers-reduced-motion: reduce) {
  .panneau[data-entre] { animation: fondu var(--duree-ui) ease both; }
}
@keyframes entre { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes fondu { from { opacity: 0; } to { opacity: 1; } }

/* ——— Ce que vous achetez, ce que vous mesurez ——— */
.achat__colonnes { display: grid; gap: var(--e-7); }
@media (min-width: 960px) {
  .achat__colonnes { grid-template-columns: 1fr 1.15fr; gap: var(--e-9); }
}
.achat__achete,
.achat__mesure { display: grid; gap: var(--e-5); align-content: start; }
.liste-sobre { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--e-4); }
.liste-sobre li { padding-left: var(--e-6); position: relative; }
.liste-sobre li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.875rem;
  height: var(--trait);
  background: var(--volet);
}

.stations {
  list-style: none;
  margin: 0;
  padding: var(--e-5) 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  position: relative;
}
.stations::before {
  content: "";
  position: absolute;
  top: calc(var(--e-5) + 0.5625rem);
  left: 0.5625rem;
  right: 0.5625rem;
  height: var(--trait);
  background: var(--volet);
}
.station { position: relative; display: grid; gap: var(--e-1); padding-top: var(--e-6); }
.station::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 50%;
  background: var(--chaux);
  border: 3px solid var(--volet);
}
.station:last-child { justify-items: end; text-align: right; }
.station:last-child::before { left: auto; right: 0; }
.station:nth-child(2) { justify-items: center; text-align: center; }
.station:nth-child(2)::before { left: 50%; margin-left: -0.5625rem; }
.station--but::before { background: var(--hortensia); border-color: var(--ardoise); }
.station__quand { font-size: var(--t-0); font-weight: 700; color: var(--granit-600); }
.station__quoi { font-family: var(--police-titre); font-weight: 800; font-size: var(--t-4); line-height: 1; }

.encart {
  padding: var(--e-4) var(--e-5);
  background: var(--hortensia-pale);
  border-left: 4px solid var(--hortensia);
  border-radius: 0 var(--r-commande) var(--r-commande) 0;
}
.achat__repere {
  margin-top: var(--e-8);
  max-width: var(--mesure);
  font-family: var(--police-titre);
  font-size: var(--t-3);
  font-weight: 500;
  line-height: 1.4;
}

/* ——— L'existant ——— */
.tableau-defile { overflow-x: auto; border-radius: var(--r-panneau); }
.comparatif { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: var(--t-2); }
.comparatif th { text-align: left; font-family: var(--police-titre); font-size: var(--t-3); padding: var(--e-4) var(--e-5); }
.comparatif th:first-child { color: var(--granit-600); }
.comparatif th:last-child { color: var(--volet); }
.comparatif td { padding: var(--e-4) var(--e-5); border-top: 1px solid var(--granit-200); vertical-align: top; width: 50%; }
.comparatif td:first-child { color: var(--granit-600); }
.comparatif td:last-child { font-weight: 500; background: var(--volet-pale); }
.comparatif tbody tr:first-child td:last-child { border-top-right-radius: 0; }

/* ——— Prix ——— */
.prix__phrase { font-family: var(--police-titre); font-size: var(--t-4) !important; color: var(--ardoise) !important; line-height: 1.2 !important; }
.fourchette { margin: 0 0 var(--e-8); max-width: 56rem; }
.fourchette__piste {
  --echelle: 150;
  position: relative;
  height: 9.5rem;
  margin-inline: var(--e-5);
}
.fourchette__axe {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: var(--granit-400);
}
.fourchette__bande,
.fourchette__pilote {
  position: absolute;
  top: 50%;
  left: calc(var(--de) / var(--echelle) * 100%);
  width: calc((var(--a) - var(--de)) / var(--echelle) * 100%);
  border-radius: 999px;
  transform-origin: left center;
}
.fourchette__bande { height: 0.625rem; margin-top: -0.3125rem; background: var(--volet); }
.fourchette__pilote { height: 1.5rem; margin-top: -0.75rem; background: var(--hortensia-pale); border: var(--trait) solid var(--hortensia); border-radius: var(--r-commande); }
.fourchette__seuil {
  position: absolute;
  left: calc(var(--en) / var(--echelle) * 100%);
  top: 50%;
  bottom: 22%;
  border-left: var(--trait) dashed var(--hortensia-fonce);
}
.fourchette__mediane {
  position: absolute;
  left: calc(var(--en) / var(--echelle) * 100%);
  top: 50%;
  width: 1.25rem;
  height: 1.25rem;
  margin: -0.625rem 0 0 -0.625rem;
  border-radius: 50%;
  background: var(--chaux);
  border: 3px solid var(--ardoise);
}
.fourchette__marque {
  position: absolute;
  left: calc(var(--en) / var(--echelle) * 100%);
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  font-weight: 700;
  font-size: var(--t-1);
  line-height: 1.15;
  white-space: nowrap;
}
.fourchette__marque small { font-weight: 400; font-size: var(--t-0); color: var(--granit-600); }
.fourchette__marque--haut { bottom: calc(50% + 1rem); }
.fourchette__marque--fort { font-family: var(--police-titre); font-size: var(--t-3); }
.fourchette__marque--bas { top: calc(50% + 1.1rem); }
.fourchette__marque--pilote { color: var(--hortensia-fonce); }
.fourchette__graduation {
  position: absolute;
  left: calc(var(--en) / var(--echelle) * 100%);
  top: calc(50% + 0.5rem);
  transform: translateX(-50%);
  font-size: var(--t-0);
  color: var(--granit-600);
}
.fourchette__graduation:first-of-type { transform: none; }
.fourchette figcaption { margin-top: var(--e-2); font-size: var(--t-1); color: var(--granit-600); max-width: var(--mesure); }

@media (prefers-reduced-motion: no-preference) {
  .fourchette[data-vu="non"] .fourchette__bande,
  .fourchette[data-vu="non"] .fourchette__pilote { transform: scaleX(0); }
  .fourchette .fourchette__bande,
  .fourchette .fourchette__pilote { transition: transform 700ms var(--ease-in-out); }
  .fourchette .fourchette__pilote { transition-delay: 250ms; }
}

.prix__pilote {
  display: grid;
  gap: var(--e-4);
  justify-items: start;
  max-width: 44rem;
  padding: var(--e-6);
  border: var(--trait) solid var(--ardoise);
  border-radius: var(--r-panneau);
  box-shadow: 0 4px 0 var(--ardoise);
  background: var(--chaux);
}
.prix__pilote h3 { font-size: var(--t-4); }

/* ——— Manche ——— */
.manche { display: grid; gap: var(--e-7); }
.manche__texte { display: grid; gap: var(--e-4); max-width: var(--mesure); }
.manche__texte p { font-size: var(--t-3); line-height: 1.45; color: var(--granit-600); }
.plaque {
  margin: 0;
  display: grid;
  gap: 1px;
  background: var(--granit-400);
  border-radius: var(--r-panneau);
  overflow: hidden;
  border: 1px solid var(--granit-400);
}
@media (min-width: 760px) {
  .plaque { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.plaque div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: var(--e-2);
  padding: var(--e-5) var(--e-5) var(--e-6);
  background-color: var(--granit-200);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cg fill='%238f9497' fill-opacity='.35'%3E%3Ccircle cx='7' cy='9' r='1.2'/%3E%3Ccircle cx='31' cy='4' r='.8'/%3E%3Ccircle cx='50' cy='17' r='1.4'/%3E%3Ccircle cx='19' cy='28' r='.9'/%3E%3Ccircle cx='42' cy='36' r='1.1'/%3E%3Ccircle cx='9' cy='47' r='1.5'/%3E%3Ccircle cx='28' cy='52' r='.8'/%3E%3Ccircle cx='55' cy='50' r='1'/%3E%3C/g%3E%3Cg fill='%23262c31' fill-opacity='.22'%3E%3Ccircle cx='24' cy='14' r='.9'/%3E%3Ccircle cx='46' cy='27' r='.7'/%3E%3Ccircle cx='14' cy='38' r='.8'/%3E%3Ccircle cx='37' cy='57' r='.9'/%3E%3C/g%3E%3C/svg%3E");
}
.plaque dd { margin: 0; font-family: var(--police-titre); font-weight: 800; font-size: var(--t-5); line-height: 1; }
.plaque dt { font-size: var(--t-2); line-height: 1.35; max-width: 18em; }
.manche__pied { color: var(--granit-600); max-width: var(--mesure); }

/* ——— Objections ——— */
.questions__liste { display: grid; max-width: 52rem; border-top: var(--trait) solid var(--ardoise); }
.objection { border-bottom: 1px solid var(--granit-200); }
.objection summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--e-5);
  min-height: 3rem;
  padding: var(--e-4) 0;
  font-family: var(--police-titre);
  font-weight: 700;
  font-size: var(--t-3);
  line-height: 1.25;
  cursor: pointer;
  list-style: none;
}
.objection summary::-webkit-details-marker { display: none; }
.objection summary::after {
  content: "+";
  flex: none;
  font-family: var(--police-texte);
  font-weight: 500;
  font-size: var(--t-4);
  line-height: 1;
  color: var(--volet);
  transition: transform var(--duree-ui) var(--ease-out);
}
.objection[open] summary::after { transform: rotate(45deg); }
.objection p { max-width: var(--mesure); padding-bottom: var(--e-5); color: var(--granit-600); }

/* ——— Pour les actifs ——— */
.venir { display: grid; gap: var(--e-7); align-items: center; }
@media (min-width: 960px) {
  .venir { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--e-9); }
}
.photo--marche { aspect-ratio: 4 / 5; max-width: 32rem; }
.venir__texte { display: grid; gap: var(--e-5); max-width: var(--mesure); }
.venir__texte > p { font-size: var(--t-3); line-height: 1.5; }
.frein { display: grid; gap: var(--e-4); padding-top: var(--e-4); border-top: 1px solid var(--granit-200); }
.frein__question { font-family: var(--police-titre); font-weight: 700; font-size: var(--t-3); }
.frein__choix { display: flex; flex-wrap: wrap; gap: var(--e-2); }
.choix {
  min-height: 3rem;
  padding: var(--e-2) var(--e-4);
  border: var(--trait) solid var(--volet);
  border-radius: var(--r-commande);
  background: var(--chaux);
  color: var(--volet-fonce);
  font: 500 var(--t-2) / 1.2 var(--police-texte);
  cursor: pointer;
  transition: background-color var(--duree-ui) ease, color var(--duree-ui) ease, transform var(--duree-appui) var(--ease-out);
}
.choix:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .choix:hover { background: var(--volet-pale); }
}
.choix[aria-pressed="true"] { background: var(--volet); color: var(--blanc); }
.frein__merci:empty { display: none; }
.frein__merci { padding: var(--e-3) var(--e-4); background: var(--volet-pale); border-radius: var(--r-commande); }

/* ——— Appel final ——— */
.appel {
  display: grid;
  align-items: center;
  gap: var(--e-6);
  padding-inline: max(var(--goutiere), (100% - var(--largeur)) / 2);
  background: var(--volet);
  color: var(--chaux);
}
@media (min-width: 960px) {
  .appel { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.appel__contenu {
  padding-block: var(--e-9);
  display: grid;
  gap: var(--e-5);
  justify-items: start;
}
.appel__motif { display: none; width: 100%; max-width: 28rem; justify-self: end; overflow: visible; }
@media (min-width: 960px) {
  .appel__motif { display: block; }
}
.appel__trajectoire { fill: none; stroke: var(--lumiere); stroke-width: 4; stroke-dasharray: 2 12; stroke-linecap: round; }
.appel__toit,
.appel__mur { fill: none; stroke: var(--chaux); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.appel__sol { fill: none; stroke: var(--pre); stroke-width: 6; stroke-linecap: round; }
.appel__pose { fill: var(--hortensia); stroke: var(--chaux); stroke-width: 3; }
.appel h2 { max-width: 20ch; font-size: var(--t-5); }
.appel p { font-size: var(--t-3); color: var(--volet-pale); }

/* ——— Pied de page et sources ——— */
.pied {
  background: var(--chaux-2);
  padding: var(--e-8) var(--goutiere) var(--e-7);
  font-size: var(--t-1);
}
.pied > * { max-width: var(--largeur); margin-inline: auto; }
.pied__haut { display: grid; gap: var(--e-4); padding-bottom: var(--e-6); border-bottom: 1px solid var(--granit-200); }
.pied__haut p { max-width: var(--mesure); margin: 0; color: var(--granit-600); }
.pied__haut p:first-of-type { color: var(--ardoise); }
.logo--pied { width: 8rem; }
.pied__titre { margin-top: var(--e-6); margin-bottom: var(--e-4); font-size: var(--t-4); }
.sources { display: grid; gap: var(--e-3); padding-left: var(--e-6); margin-top: 0; margin-bottom: 0; }
.sources li { max-width: 80ch; overflow-wrap: anywhere; padding-left: var(--e-1); }
.sources li::marker { font-weight: 700; color: var(--volet); }
.sources li:target { background: var(--volet-pale); outline: var(--trait) solid var(--volet-pale); border-radius: var(--r-commande); }

/* ——— Fausse porte ——— */
.pilote {
  width: min(100% - 2 * var(--e-4), 40rem);
  max-height: calc(100dvh - 2 * var(--e-4));
  padding: 0;
  border: var(--trait) solid var(--ardoise);
  border-radius: var(--r-panneau);
  background: var(--chaux);
  color: var(--ardoise);
  box-shadow: 0 6px 0 var(--ardoise);
  overflow: auto;
  overscroll-behavior: contain;
}
.pilote::backdrop { background: rgb(38 44 49 / 0.55); }
@media (prefers-reduced-motion: no-preference) {
  .pilote[open] { animation: ouvre 240ms var(--ease-out); }
  .pilote[open]::backdrop { animation: fondu 240ms ease; }
}
@keyframes ouvre { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }
.pilote__form { display: grid; }
.pilote__tete {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--e-4);
  padding: var(--e-5) var(--e-5) var(--e-4);
  background: var(--chaux);
  border-bottom: 1px solid var(--granit-200);
}
.pilote__tete h2 { font-size: var(--t-4); }
.pilote__fermer {
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border: var(--trait) solid var(--granit-200);
  border-radius: var(--r-commande);
  background: var(--chaux);
  cursor: pointer;
}
.pilote__fermer svg { width: 1.25rem; height: 1.25rem; stroke: var(--ardoise); stroke-width: 2.5; stroke-linecap: round; }
.pilote__fermer:hover { border-color: var(--ardoise); }
.pilote__etape { display: grid; gap: var(--e-5); padding: var(--e-5); }
.pilote__etape[hidden] { display: none; }
.pilote__franchise {
  padding: var(--e-4);
  background: var(--hortensia-pale);
  border-left: 4px solid var(--hortensia);
  border-radius: 0 var(--r-commande) var(--r-commande) 0;
  font-size: var(--t-1);
}
.question { margin: 0; padding: 0; border: 0; display: grid; gap: var(--e-3); }
.question legend { padding: 0; margin-bottom: var(--e-3); font-family: var(--police-titre); font-weight: 700; font-size: var(--t-3); line-height: 1.2; }
.question__choix { display: flex; flex-wrap: wrap; gap: var(--e-2); }
.question__choix label { position: relative; cursor: pointer; }
.question__choix input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.question__choix span {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding: var(--e-2) var(--e-4);
  border: var(--trait) solid var(--granit-200);
  border-radius: var(--r-commande);
  background: var(--blanc);
  font-size: var(--t-1);
  font-weight: 500;
  transition: border-color var(--duree-ui) ease, background-color var(--duree-ui) ease, color var(--duree-ui) ease;
}
.question__choix label:hover span { border-color: var(--volet); }
.question__choix input:checked + span { background: var(--volet); border-color: var(--volet); color: var(--blanc); }
.question__choix input:focus-visible + span { outline: 3px solid var(--volet); outline-offset: 2px; }
.question[data-manque="oui"] legend { color: var(--hortensia-fonce); }
.pilote__erreur:empty { display: none; }
.pilote__erreur { color: var(--hortensia-fonce); font-weight: 700; }
.pilote__actions { display: flex; justify-content: flex-end; }
.pilote__merci-titre { font-family: var(--police-titre); font-weight: 800; font-size: var(--t-4); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 1ms !important; }
}
