/* ═══════════════════════════════════════════════════════════════════════════
   PERÇUE — « Pourquoi ça ne décolle pas »
   Page autonome. Registre différent du site : pas de menu, une colonne, une
   question par écran. Les huit écrans de questions restent calmes (fond milk) ;
   le passage au fond sombre est réservé au résultat. C'est la récompense, et
   c'est ce qui rend la capture d'écran partageable.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --ink: #1d1016;
  --wine: #73152e;
  --red: #e74454;
  --pink: #ff6d98;
  --blush: #f4b4c3;
  --milk: #fff9f6;
  --paper: #f4ece7;
  --line: rgba(29, 16, 22, 0.16);
  --mono: "DM Mono", monospace;
  --sans: "Manrope", sans-serif;
  --serif: "Newsreader", serif;

  --t-label: 0.6875rem;
  --t-cta: 0.8125rem;
  --t-small: 0.875rem;
  --t-body: 1rem;

  /* Jetons de couleur commutés par le passage au fond sombre. Toute la page les
     utilise, donc le basculement se fait en une seule déclaration. */
  --fond: var(--milk);
  --texte: var(--ink);
  --filet: var(--line);
  --accent: var(--red);
  --duree: 0.42s;
  --courbe: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body.test-page {
  margin: 0;
  min-height: 100svh;
  font-family: var(--sans);
  font-size: var(--t-body);
  color: var(--texte);
  background: var(--fond);
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.9s var(--courbe), color 0.6s var(--courbe);
  overflow-x: hidden;
}

/* Grain. Même texture que le site, à la même opacité, pour que la page reste
   de la même matière même si elle n'a ni en-tête ni navigation. */
body.test-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 90;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

/* Halo chaud derrière la colonne. Il se déplace d'un écran à l'autre : c'est le
   seul mouvement de fond, assez faible pour ne jamais se remarquer, assez présent
   pour que la page ne paraisse pas figée pendant huit questions. */
body.test-page::after {
  content: "";
  position: fixed;
  z-index: -1;
  width: 120vmax;
  height: 120vmax;
  left: 50%;
  top: var(--halo-y, 10%);
  translate: -50% -50%;
  pointer-events: none;
  background: radial-gradient(closest-side, var(--blush) 0%, transparent 70%);
  opacity: 0.22;
  transition: top 1.1s var(--courbe), opacity 0.9s linear;
}

body.sur-fond-sombre {
  --fond: var(--ink);
  --texte: var(--milk);
  --filet: rgba(255, 249, 246, 0.18);
}
body.sur-fond-sombre::after { opacity: 0.1; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

/* L'attribut `hidden` vient d'une feuille de style du navigateur, donc toute
   déclaration `display` de notre côté le bat en silence. `.cap-form` est en
   `display: grid` : le formulaire restait affiché sous le message de
   remerciement, bouton « Envoi… » compris. La règle ci-dessous remet `hidden`
   au-dessus de tout, pour ce formulaire comme pour ce qu'on cachera plus tard. */
[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  padding: 0.8rem 1rem;
  background: var(--ink);
  color: #fff;
}
.skip-link:focus { top: 1rem; }

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

.sans-js {
  margin: 0;
  padding: 1rem 1.4rem;
  background: var(--paper);
  font-size: var(--t-small);
  border-bottom: 1px solid var(--line);
}

/* ─────────────────────────── En-tête et jauge ─────────────────────────── */

.test-header {
  position: sticky;
  top: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1rem;
  height: 62px;
  padding: 0 clamp(1.1rem, 5vw, 2.5rem);
  background: color-mix(in srgb, var(--fond) 88%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--filet);
  transition: background-color 0.9s var(--courbe), border-color 0.6s var(--courbe);
}
.brand {
  font-weight: 800;
  letter-spacing: -0.08em;
  font-size: 1.25rem;
}
.brand span { color: var(--accent); }
.test-header-note {
  justify-self: end;
  margin: 0;
  font-family: var(--mono);
  font-size: var(--t-label);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.45;
}
.jauge {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: transparent;
}
.jauge-fil {
  display: block;
  height: 100%;
  width: 0%;
  /* Le filet chauffe à mesure qu'on avance : blush au départ, rouge à la fin.
     C'est la seule indication de « on approche » et elle ne demande aucun chiffre. */
  background: linear-gradient(90deg, var(--blush), var(--pink) 55%, var(--red));
  transition: width 0.55s var(--courbe);
}

/* ─────────────────────────────── Écrans ─────────────────────────────── */

.test {
  display: grid;
  padding: clamp(2.2rem, 7vh, 4.5rem) clamp(1.1rem, 5vw, 2rem) 4rem;
  min-height: calc(100svh - 62px);
  align-content: start;
  justify-items: stretch;
}
.ecran {
  width: 100%;
  max-width: 36rem;
  margin: 0 auto;
}
.ecran-resultat, .ecran-capture { max-width: 40rem; }

/* Une question seule dans un écran se cale au centre : collée en haut avec un
   tiers de vide dessous, elle a l'air inachevée. L'accueil et le résultat, eux,
   sont des pages longues et restent ancrés en haut. */
@media (min-height: 680px) {
  .test.est-question { align-content: center; }
}

/* Sans JavaScript les huit écrans restent empilés et lisibles. Avec JS, un seul
   est monté à la fois. */
.js .ecran { display: none; }
.js .ecran.est-actif { display: block; }

@keyframes monte {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.js .ecran.est-actif { animation: monte var(--duree) var(--courbe) both; }

/* Décalage d'entrée. Le titre arrive avant ses réponses : c'est ce qui donne
   l'impression qu'on vous parle plutôt qu'on vous affiche un formulaire. */
.js .est-actif .q-rang { animation: monte 0.38s var(--courbe) both; }
.js .est-actif .q-texte { animation: monte 0.46s var(--courbe) 0.06s both; }
.js .est-actif .q-aide { animation: monte 0.46s var(--courbe) 0.13s both; }
.js .est-actif .options > * { animation: monte 0.44s var(--courbe) both; }
.js .est-actif .options > :nth-child(1) { animation-delay: 0.18s; }
.js .est-actif .options > :nth-child(2) { animation-delay: 0.24s; }
.js .est-actif .options > :nth-child(3) { animation-delay: 0.3s; }
.js .est-actif .options > :nth-child(4) { animation-delay: 0.36s; }
.js .est-actif .options > :nth-child(5) { animation-delay: 0.42s; }
.js .est-actif .options > :nth-child(6) { animation-delay: 0.48s; }

/* ─────────────────────────────── Accueil ─────────────────────────────── */

.sur-titre {
  margin: 0 0 1.6rem;
  font-family: var(--mono);
  font-size: var(--t-label);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.sur-titre span { color: var(--accent); }

.ecran-intro h1 {
  margin: 0 0 1.2rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 11vw, 4.1rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.lead {
  margin: 0 0 2.4rem;
  font-size: clamp(1.0625rem, 4vw, 1.1875rem);
  line-height: 1.58;
  max-width: 30rem;
  opacity: 0.82;
}

.etages-apercu {
  list-style: none;
  margin: 0 0 1.6rem;
  padding: 0;
  border-top: 1px solid var(--filet);
}
.etages-apercu li {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.82rem 0;
  border-bottom: 1px solid var(--filet);
  font-size: var(--t-small);
  line-height: 1.4;
}
.etages-apercu b {
  font-family: var(--mono);
  font-weight: 400;
  font-size: var(--t-label);
  color: var(--accent);
  letter-spacing: 0.06em;
}

.intro-these {
  margin: 0 0 2.6rem;
  font-family: var(--serif);
  font-size: 1.1875rem;
  font-style: italic;
  line-height: 1.5;
  padding-left: 1.1rem;
  border-left: 2px solid var(--accent);
}

.promesses {
  list-style: none;
  margin: 1.8rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.promesses li {
  position: relative;
  padding-left: 1.3rem;
  font-size: var(--t-small);
  opacity: 0.6;
}
.promesses li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
  opacity: 0.9;
}

/* ────────────────────────────── Questions ────────────────────────────── */

.q-rang {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
  font-family: var(--mono);
  font-size: var(--t-label);
  letter-spacing: 0.1em;
}
.q-n {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--accent);
}
.q-tot { opacity: 0.4; }

.q-texte {
  margin: 0 0 0.85rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.75rem, 7.4vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.q-aide {
  margin: 0 0 2.2rem;
  font-size: var(--t-small);
  line-height: 1.5;
  opacity: 0.58;
  max-width: 26rem;
}

.options {
  display: grid;
  border-top: 1px solid var(--filet);
}
.option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  width: 100%;
  min-height: 62px;
  padding: 1rem 2.6rem 1rem 0;
  border: 0;
  border-bottom: 1px solid var(--filet);
  background: transparent;
  text-align: left;
  font-size: 1.0625rem;
  line-height: 1.32;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: padding-left 0.3s var(--courbe), color 0.25s ease;
}
/* Le repère alphabétique est aussi le raccourci clavier affiché. */
.option::before {
  content: attr(data-touche);
  position: absolute;
  left: 0;
  width: 1.5rem;
  font-family: var(--mono);
  font-size: var(--t-label);
  opacity: 0;
  color: var(--accent);
  transition: opacity 0.25s ease;
}
/* La flèche n'apparaît qu'au survol : au repos, la liste doit rester une liste,
   pas une rangée de boutons qui crie. */
.option::after {
  content: "→";
  position: absolute;
  right: 0.3rem;
  font-size: 0.95rem;
  opacity: 0;
  translate: -8px 0;
  color: var(--accent);
  transition: opacity 0.28s ease, translate 0.28s var(--courbe);
}
.option:is(:hover, :focus-visible) {
  padding-left: 1.9rem;
  color: var(--accent);
}
.option:is(:hover, :focus-visible)::before { opacity: 0.75; }
.option:is(:hover, :focus-visible)::after { opacity: 1; translate: 0 0; }

/* Confirmation de choix : le rouge remplit la rangée le temps du passage à la
   question suivante. Un clic doit s'entendre. */
.option.est-choisie {
  color: var(--ink);
  padding-left: 1.9rem;
  background: var(--red);
  border-bottom-color: var(--red);
}
.option.est-choisie::before { opacity: 0.55; color: var(--ink); }
.option.est-choisie::after { opacity: 1; translate: 0 0; color: var(--ink); }

/* Choix multiple : case carrée, pas de départ automatique. */
.options-multi .option { padding-left: 2.4rem; }
.options-multi .option::before {
  content: "";
  left: 0.1rem;
  width: 15px;
  height: 15px;
  border: 1.5px solid var(--filet);
  opacity: 1;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.options-multi .option[aria-pressed="true"] { color: var(--accent); padding-left: 2.4rem; }
.options-multi .option[aria-pressed="true"]::before {
  background: var(--red);
  border-color: var(--red);
}
.options-multi .option::after { content: none; }
.options-multi .option:is(:hover, :focus-visible) { padding-left: 2.9rem; }

/* ─────────────────────────────── Boutons ─────────────────────────────── */

.bouton {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 2rem;
  padding: 0 1.5rem;
  min-height: 56px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: transparent;
  font-family: var(--mono);
  font-size: var(--t-cta);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background-color 0.3s var(--courbe), color 0.3s var(--courbe), opacity 0.3s ease;
}
.bouton span { transition: translate 0.3s var(--courbe); }
.bouton:is(:hover, :focus-visible) {
  background: var(--texte);
  color: var(--fond);
}
.bouton:is(:hover, :focus-visible) span { translate: 4px 0; }
.bouton[disabled] { opacity: 0.3; cursor: not-allowed; }
.bouton[disabled]:hover { background: transparent; color: inherit; }
.bouton-grand {
  min-height: 62px;
  padding: 0 1.9rem;
  background: var(--red);
  border-color: var(--red);
  color: var(--ink);
}
.bouton-grand:is(:hover, :focus-visible) {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--milk);
}
body.sur-fond-sombre .bouton-grand:is(:hover, :focus-visible) {
  background: var(--milk);
  border-color: var(--milk);
  color: var(--ink);
}

.retour {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.9rem;
  padding: 0.4rem 0;
  border: 0;
  background: transparent;
  font-family: var(--mono);
  font-size: var(--t-label);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.45;
  cursor: pointer;
  transition: opacity 0.25s ease;
}
.retour:is(:hover, :focus-visible) { opacity: 1; }

.aide-clavier {
  margin: 1.4rem 0 0;
  font-family: var(--mono);
  font-size: var(--t-label);
  letter-spacing: 0.06em;
  opacity: 0.32;
}
@media (hover: none) { .aide-clavier { display: none; } }

/* ─────────────────────────────── Calcul ─────────────────────────────── */

.ecran-calcul {
  display: grid;
  place-content: center;
  min-height: 58svh;
  text-align: center;
}
.calcul-mot {
  margin: 0 0 2.4rem;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 5vw, 1.55rem);
  line-height: 1.35;
  font-style: italic;
  opacity: 0.75;
}
.calcul-barres {
  display: grid;
  gap: 7px;
  justify-items: center;
}
.calcul-barres i {
  display: block;
  height: 3px;
  width: 190px;
  background: var(--accent);
  transform-origin: left;
  scale: 0 1;
  opacity: 0.25;
  animation: tracer 1.5s var(--courbe) infinite;
}
.calcul-barres i:nth-child(2) { width: 164px; animation-delay: 0.1s; }
.calcul-barres i:nth-child(3) { width: 138px; animation-delay: 0.2s; }
.calcul-barres i:nth-child(4) { width: 112px; animation-delay: 0.3s; }
.calcul-barres i:nth-child(5) { width: 86px; animation-delay: 0.4s; }
@keyframes tracer {
  0% { scale: 0 1; opacity: 0.2; }
  45% { scale: 1 1; opacity: 1; }
  100% { scale: 1 1; opacity: 0.2; }
}

/* ────────────────────────────── Résultat ────────────────────────────── */

.res-tete { margin-bottom: 2.6rem; }
.res-sur {
  margin: 0 0 1.1rem;
  font-family: var(--mono);
  font-size: var(--t-label);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--pink);
}
.res-titre {
  margin: 0 0 0.6rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 10.5vw, 3.6rem);
  line-height: 0.98;
  letter-spacing: -0.028em;
  text-wrap: balance;
}
.res-sous {
  margin: 0;
  font-size: clamp(1.1rem, 4.4vw, 1.3125rem);
  line-height: 1.4;
  color: var(--pink);
}

/* L'escalier. Trois états : franchi, fuite, non atteint. Le rétrécissement
   progressif dit « entonnoir » sans qu'on ait à écrire le mot. */
.etages {
  list-style: none;
  margin: 0 0 2.8rem;
  padding: 0;
  display: grid;
  gap: 6px;
}
.etage {
  position: relative;
  display: grid;
  grid-template-columns: 2.4rem 1fr auto;
  gap: 0.75rem;
  align-items: center;
  min-height: 54px;
  padding: 0.7rem 0.95rem;
  width: var(--large, 100%);
  border: 1px solid transparent;
  font-size: 0.9375rem;
  line-height: 1.25;
}
.etage[data-n="1"] { --large: 100%; }
.etage[data-n="2"] { --large: 95%; }
.etage[data-n="3"] { --large: 90%; }
.etage[data-n="4"] { --large: 85%; }
.etage[data-n="5"] { --large: 80%; }

.etage-num {
  font-family: var(--mono);
  font-size: var(--t-label);
  letter-spacing: 0.06em;
  opacity: 0.5;
}
.etage-nom { letter-spacing: -0.005em; }
.etage-val {
  font-family: var(--mono);
  font-size: var(--t-label);
  letter-spacing: 0.04em;
  white-space: nowrap;
  opacity: 0.75;
}

.etage.est-franchi {
  background: rgba(255, 249, 246, 0.1);
  border-color: rgba(255, 249, 246, 0.14);
}
.etage.est-inatteint {
  border: 1px dashed rgba(255, 249, 246, 0.2);
  opacity: 0.4;
}
.etage.est-fuite {
  /* Le repère « la fuite » se pose au-dessus de la rangée sur téléphone : il lui
     faut l'espace, sinon il mord sur l'étage précédent. */
  margin-top: 12px;
  background: var(--red);
  border-color: var(--red);
  color: var(--ink);
  font-weight: 600;
}
.etage.est-fuite .etage-num,
.etage.est-fuite .etage-val { opacity: 0.72; }
/* Le repère « la fuite ». Posé à gauche, hors de la rangée sur grand écran,
   au-dessus sur téléphone — jamais par-dessus le texte. */
.etage.est-fuite::before {
  content: "la fuite";
  position: absolute;
  left: 0.95rem;
  top: -0.78rem;
  padding: 0 0.4rem;
  background: var(--ink);
  color: var(--red);
  font-family: var(--mono);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.js .ecran-resultat.est-actif .etage {
  animation: deplie 0.5s var(--courbe) both;
}
.js .ecran-resultat.est-actif .etage[data-n="1"] { animation-delay: 0.1s; }
.js .ecran-resultat.est-actif .etage[data-n="2"] { animation-delay: 0.2s; }
.js .ecran-resultat.est-actif .etage[data-n="3"] { animation-delay: 0.3s; }
.js .ecran-resultat.est-actif .etage[data-n="4"] { animation-delay: 0.4s; }
.js .ecran-resultat.est-actif .etage[data-n="5"] { animation-delay: 0.5s; }
/* Les rangées arrivent par la gauche, l'une après l'autre. Une version
   antérieure les dépliait en scale(0, 1) : pendant la demi-seconde d'animation,
   le texte était comprimé à l'horizontale et illisible. Un glissement ne
   déforme rien. */
@keyframes deplie {
  from { opacity: 0; translate: -16px 0; }
  to { opacity: 1; translate: 0 0; }
}

.res-blocs { display: grid; gap: 2.2rem; }
.res-bloc {
  padding-top: 1.5rem;
  border-top: 1px solid var(--filet);
}
.res-bloc h3 {
  margin: 0 0 0.7rem;
  font-family: var(--mono);
  font-weight: 400;
  font-size: var(--t-label);
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--pink);
}
.res-bloc p {
  margin: 0 0 0.85rem;
  font-size: 1.0625rem;
  line-height: 1.58;
}
.res-bloc p:last-child { margin-bottom: 0; }
.res-bloc strong { font-weight: 600; color: var(--blush); }
/* Le bloc d'ouverture porte la phrase qui doit rester en mémoire. */
.res-bloc.est-verdict p {
  font-family: var(--serif);
  font-size: clamp(1.1875rem, 4.8vw, 1.4375rem);
  line-height: 1.42;
}
.res-bloc.est-verdict strong { color: var(--red); font-weight: 500; }

.res-signature {
  margin: -1.9rem 0 2.6rem;
  text-align: right;
  font-family: var(--mono);
  font-size: var(--t-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.3;
}
.relance {
  display: block;
  margin: 1.4rem 0 0;
  padding: 0.4rem 0;
  border: 0;
  background: transparent;
  font-family: var(--mono);
  font-size: var(--t-label);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.4;
  cursor: pointer;
}
.relance:is(:hover, :focus-visible) { opacity: 1; }

/* ─────────────────────────────── Capture ─────────────────────────────── */

.cap-titre {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 8vw, 2.75rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
}
.cap-texte {
  margin: 0 0 2.4rem;
  font-size: 1.0625rem;
  line-height: 1.58;
  opacity: 0.82;
  max-width: 30rem;
}
.cap-form { display: grid; gap: 1.5rem; max-width: 27rem; }
.cap-form label { display: grid; gap: 0.5rem; }
.cap-form label span {
  font-family: var(--mono);
  font-size: var(--t-label);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.6;
}
.cap-form input {
  min-height: 54px;
  padding: 0 0.1rem;
  border: 0;
  border-bottom: 1px solid var(--filet);
  background: transparent;
  color: inherit;
  font-family: var(--sans);
  font-size: 1.0625rem;
  border-radius: 0;
  transition: border-color 0.25s ease;
}
.cap-form input::placeholder { color: inherit; opacity: 0.28; }
.cap-form input:focus {
  outline: 0;
  border-bottom-color: var(--red);
  border-bottom-width: 2px;
}
.cap-form .bouton-grand { justify-self: start; }
/* Piège à robots. Hors champ plutôt que display:none : certains automates
   ignorent ce qui est masqué, aucun n'ignore ce qu'il croit visible. */
.piege {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.cap-erreur {
  margin: 0;
  padding: 0.7rem 0.9rem;
  background: var(--red);
  color: var(--ink);
  font-size: var(--t-small);
}
.cap-note {
  margin: 0;
  font-size: var(--t-small);
  line-height: 1.5;
  opacity: 0.48;
}
.cap-merci h3 {
  margin: 0 0 0.9rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.75rem, 7vw, 2.25rem);
  letter-spacing: -0.02em;
}
.cap-merci p { margin: 0 0 1.6rem; font-size: 1.0625rem; line-height: 1.58; opacity: 0.82; }

/* ─────────────────────────────── Pied ─────────────────────────────── */

.test-footer {
  padding: 2.5rem clamp(1.1rem, 5vw, 2.5rem) 3rem;
  border-top: 1px solid var(--filet);
  font-size: var(--t-small);
  opacity: 0.45;
}
.test-footer p { margin: 0; }
.test-footer a { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 0.2em; }

/* ─────────────────────── Grands écrans et réglages ─────────────────────── */

@media (min-width: 760px) {
  .test { padding-top: clamp(3rem, 11vh, 7rem); }
  .etage { grid-template-columns: 3rem 1fr auto; font-size: 1rem; padding: 0.85rem 1.1rem; }
  .etage.est-fuite { margin-top: 0; }
  .etage.est-fuite::before { left: auto; right: calc(100% + 0.8rem); top: 50%; translate: 0 -50%; background: transparent; }
  .option { font-size: 1.125rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .calcul-barres i { scale: 1 1; opacity: 1; }
}
