/* ==========================================================================
   IMPRA — LE TUNNEL D'ESSAI (/essai), 25/10/2026

   Une page de paiement qui ressemble au produit qu'on achète : la saisie sur
   fond blanc à gauche, la commande sur le navy de la marque à droite, et,
   sous la commande, la vraie page Stock d'IMPRA. Le 0 € domine parce que
   c'est le seul montant que l'inscription engage.

   Les comportements restent ceux d'essai.impra.js : étapes (data-etape),
   formule (input[name=plan]), cycle (.bascule), commande (#resume),
   erreurs (.champ.is-invalide), envoi (.is-occupe). Aucune classe lue par le
   script n'a changé de nom.
   ========================================================================== */

:root {
  --t-scene: clamp(420px, 38vw, 600px);    /* largeur de la commande, ≥ 1024 px */
  --t-contenu: 640px;
  --t-pad: clamp(24px, 4vw, 64px);
  --t-tete: 80px;
}

.tunnel-page { background: var(--s-blanc); }

/* ── En-tête du tunnel : la marque et la sortie, rien d'autre ───────────── */
.tunnel-tete { height: var(--t-tete); padding-inline: var(--s-marge); }
.tunnel-tete__dedans {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: min(var(--t-contenu), 100%); height: 100%; margin-inline: auto;
}
.tunnel-tete__marque { display: inline-flex; align-items: center; min-height: 44px; }
.tunnel-tete__marque img { width: 128px; height: auto; }
.tunnel-tete__retour {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 4px;
  font-size: 15px; font-weight: 500; color: var(--s-doux);
  transition: color 0.2s var(--s-ease-ui);
}
.tunnel-tete__retour svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.25s var(--s-ease); }
.tunnel-tete__retour:hover { color: var(--s-encre); }
.tunnel-tete__retour:hover svg { transform: translateX(-3px); }

/* ── La scène : deux colonnes à partir de 1024 px ───────────────────────── */
.tunnel__contenu { width: min(var(--t-contenu), 100%); margin-inline: auto; }

/* L'étape 1 occupe toute la largeur utile, sur le gris de /tarifs : les trois
   formules côte à côte. La commande navy n'y figure pas — la bande de
   sélection la remplace — et revient aux étapes 2 et 3. */
.tunnel-page:has(.essai[data-etape="1"]) { background: var(--s-gris); }
.essai[data-etape="1"] .tunnel__scene { display: none; }
.essai[data-etape="1"] .tunnel__contenu, .essai[data-etape="1"] .tunnel-pied { width: min(1240px, 100%); }
.tunnel-page:has(.essai[data-etape="1"]) .tunnel-tete__dedans { width: min(1240px, 100%); }

@media (min-width: 1024px) {
  .tunnel-tete {
    position: absolute; top: 0; left: 0; z-index: 3;
    width: calc(100% - var(--t-scene)); padding-inline: var(--t-pad);
  }
  .tunnel { display: grid; grid-template-columns: minmax(0, 1fr) var(--t-scene); min-height: 100vh; min-height: 100svh; }
  .tunnel-page:has(.essai[data-etape="1"]) .tunnel-tete { width: 100%; }
  .essai.tunnel[data-etape="1"] { grid-template-columns: minmax(0, 1fr); }
  .tunnel__colonne {
    display: flex; flex-direction: column; min-width: 0;
    padding: calc(var(--t-tete) + clamp(24px, 4.5vh, 56px)) var(--t-pad) 0;
  }
  .tunnel-pied { margin-top: auto; }
}

/* ── Titre et fil ───────────────────────────────────────────────────────── */
.essai__head { display: grid; gap: 14px; }
.essai__titre { font-size: clamp(34px, 3.3vw, 48px); line-height: 1.06; }
.essai__titre-suite > span { display: block; }
/* Le choix à l'étape 1 ; la promesse aux étapes suivantes. */
.essai__titre-suite { display: none; }
.essai:not([data-etape="1"]) .essai__titre-choix { display: none; }
.essai:not([data-etape="1"]) .essai__titre-suite { display: block; }
.essai[data-etape="1"] .essai__titre { font-size: clamp(34px, 4vw, 58px); line-height: 1.04; letter-spacing: -0.03em; max-width: 15em; text-wrap: balance; }
.essai[data-etape="1"] .essai__sous-titre { max-width: 74ch; }
.essai__sous-titre { font-size: 17px; line-height: 27px; color: var(--s-doux-2); max-width: 46ch; }

.fil {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px;
  margin: 32px 0 40px;
}
.fil__etape { display: grid; gap: 10px; font-size: 14px; line-height: 18px; font-weight: 500; color: var(--s-doux); }
.fil__etape::before {
  content: ""; height: 4px; border-radius: 4px; background: var(--s-trait-2);
  transition: background-color 0.4s var(--s-ease);
}
.fil__etape.is-fait { color: var(--s-encre); }
.fil__etape.is-fait::before { background: var(--s-encre); }
.fil__etape[aria-current="step"] { color: var(--s-encre); font-weight: 600; }
.fil__etape[aria-current="step"]::before { background: var(--s-bleu); }
/* Le numéro reste lu par les lecteurs d'écran ; l'ordre se voit à la place. */
.fil__num { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Notes et erreurs ───────────────────────────────────────────────────── */
.essai-note { margin-bottom: 24px; }
.essai-note--bloc { display: grid; gap: 12px; margin: 20px 0 0; padding: 20px; background: var(--s-ambre-fond); }
.essai-note--bloc .etape__actions { margin-top: 4px; }

/* ── Une étape ──────────────────────────────────────────────────────────── */
.etape { animation: t-etape 0.5s var(--s-ease) both; }
@keyframes t-etape { from { opacity: 0; transform: translateY(10px); } }
.etape__tete { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 20px; }
.etape__titre { font-size: 22px; line-height: 30px; font-weight: 600; letter-spacing: -0.014em; }
.essai-sous { margin-top: 4px; font-size: 15px; line-height: 22px; color: var(--s-doux); max-width: 44ch; }
.etape__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 28px; }

/* ── Étape 1 · les formules ─────────────────────────────────────────────
   La même famille que les cartes de /tarifs : Traction en blanc, Propulsion
   en navy plein, Intégrale en acier clair, sur le gris de la page. Chaque
   carte est un vrai radio (input dans un label) : flèches au clavier,
   sélection nette, prix et date synchronisés par le script. */
.etape__tete--choix { align-items: center; justify-content: flex-start; gap: 12px 20px; margin-bottom: 28px; }
.bascule--tunnel { flex: none; background: #E2E7F0; }
.choix__regle { font-size: 14px; line-height: 20px; color: var(--s-doux); max-width: 46ch; }

.choix { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.choix__carte {
  --c-texte: var(--s-encre); --c-doux: var(--s-doux); --c-accent: var(--s-bleu); --c-trait: #C4CDDC; --c-anneau: var(--s-bleu);
  position: relative; display: flex; flex-direction: column; gap: 0;
  padding: clamp(24px, 2.2vw, 32px); border-radius: var(--s-r-panneau);
  background: var(--s-blanc); color: var(--c-texte);
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: transform 0.45s var(--s-ease), box-shadow 0.3s var(--s-ease-ui);
}
.choix__carte--lead {
  --c-texte: var(--s-sur-encre); --c-doux: rgba(244, 247, 250, 0.72); --c-accent: var(--s-bleu-encre); --c-trait: rgba(244, 247, 250, 0.34); --c-anneau: var(--s-bleu-encre);
  background: var(--s-encre);
}
.choix__carte--claire { --c-trait: #A9B4C7; background: #E9EDF5; }
.choix__carte input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.choix__carte:has(input:focus-visible) { outline: 2px solid var(--s-bleu); outline-offset: 4px; }
@media (hover: hover) {
  .choix__carte:hover { transform: translateY(-3px); box-shadow: 0 22px 44px -28px rgba(0, 0, 0, 0.32), 0 2px 6px -2px rgba(0, 0, 0, 0.08); }
}
/* Choisie : un anneau à l'intérieur de la carte, la pastille pleine, un léger
   battement. Les deux autres restent lisibles : rien ne s'éteint. */
.choix__carte:has(input:checked) { box-shadow: inset 0 0 0 2px var(--c-anneau), 0 22px 44px -30px rgba(0, 0, 0, 0.3); }
@media (prefers-reduced-motion: no-preference) {
  .choix__carte:has(input:checked) { animation: choix-choisie 0.36s var(--s-ease); }
  @keyframes choix-choisie { 40% { transform: translateY(-3px) scale(1.012); } }
}

.choix__haut { display: flex; align-items: center; gap: 12px; }
.choix__nom { flex: 1 1 auto; font-size: clamp(21px, 1.7vw, 24px); line-height: 1.2; font-weight: 600; letter-spacing: -0.018em; }
.choix__coche {
  flex: none; position: relative; width: 22px; height: 22px; border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--c-trait); transition: box-shadow 0.2s var(--s-ease-ui);
}
.choix__coche::after {
  content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--c-anneau);
  transform: scale(0); transition: transform 0.32s var(--s-ease);
}
.choix__carte:has(input:checked) .choix__coche { box-shadow: inset 0 0 0 2px var(--c-anneau); }
.choix__carte:has(input:checked) .choix__coche::after { transform: scale(1); }
.choix__transmission { flex: none; width: 24px; height: 30px; overflow: visible; }
.choix__transmission .tr-essieu, .choix__transmission .tr-arbre { fill: none; stroke: var(--c-trait); stroke-width: 1.6; stroke-linecap: round; }
.choix__transmission .tr-roue { fill: none; stroke: var(--c-trait); stroke-width: 1.4; }
.choix__transmission .est-motrice { stroke: var(--c-accent); }
.choix__transmission .tr-roue.est-motrice { fill: var(--c-accent); }
.choix__pour { margin-top: 8px; min-height: 44px; font-size: 15px; line-height: 22px; color: var(--c-doux); }

.choix__prix { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin-top: 24px; }
.choix__montant { font-size: clamp(38px, 3.2vw, 46px); line-height: 1; font-weight: 600; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.choix__periode { font-size: 15px; line-height: 20px; font-weight: 500; color: var(--c-doux); }
/* Deux lignes réservées : l'équivalent mensuel n'apparaît qu'en annuel, sans décaler le reste. */
.choix__suite { display: grid; align-content: start; gap: 2px; min-height: 42px; margin-top: 10px; font-size: 14px; line-height: 20px; color: var(--c-doux); }
.choix__eq { color: var(--c-texte); font-weight: 500; }
.choix__date { display: block; }

.choix__quotas { display: grid; gap: 8px; margin-top: 22px; padding-top: 0; }
.choix__quota { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 15px; line-height: 21px; color: var(--c-texte); }
.choix__quota b { font-weight: 600; }
.choix__quota svg { width: 18px; height: 18px; margin-top: 1px; fill: none; stroke: var(--c-accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* La bande de sélection : le choix, ce qu'il engage, l'action. */
.selection {
  display: flex; align-items: center; justify-content: space-between; gap: 16px 32px;
  margin-top: 20px; padding: 18px 18px 18px clamp(20px, 2.4vw, 32px);
  border-radius: var(--s-r-carte); background: var(--s-blanc);
}
.selection__texte { font-size: 16px; line-height: 24px; color: var(--s-doux); min-width: 0; }
.selection[data-vide="true"] .selection__choix, .selection[data-vide="false"] .selection__vide { display: none; }
.selection__nom { font-size: 18px; color: var(--s-encre); font-weight: 600; }
.selection__cycle { color: var(--s-doux); }
.selection__detail { display: block; }
.selection__detail b { color: var(--s-encre); font-weight: 600; }
.selection__cta { flex: none; min-width: 220px; }
/* Sur ordinateur, la bande reste à portée de main au bas de l'écran pendant
   tout le choix, puis se pose sous les cartes. Jamais sur téléphone : rien
   ne reste collé au bas de l'écran (décision du 25/09/2026, Safari iOS). */
@media (min-width: 1024px) {
  .selection { position: sticky; bottom: 16px; z-index: 5; box-shadow: 0 0 0 1px rgba(15, 23, 46, 0.08), 0 6px 20px -6px rgba(15, 23, 46, 0.11); }
}
/* Désactivé tant qu'aucune formule n'est choisie : gris, mais lisible (4,8:1). */
.selection__cta:disabled { background: #E2E7F0; color: #5B6478; box-shadow: none; cursor: not-allowed; }

.groupe-ligne {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px;
  margin-top: 16px; padding: 18px 20px; border-radius: 16px; background: var(--s-gris);
}
.essai[data-etape="1"] .groupe-ligne { background: transparent; padding-inline: 0; margin-top: 28px; }
.groupe-ligne__ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--s-blanc); color: var(--s-encre); }
.groupe-ligne__ic svg, .trust__ic svg, .resume__info-ic svg, .resume__sur-ic svg, .resume__coche svg, .essai-note-stripe svg, .moyens svg {
  fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}
.groupe-ligne__ic svg { width: 20px; height: 20px; }
.groupe-ligne__nom { font-size: 16px; line-height: 22px; font-weight: 600; }
.groupe-ligne__pour { font-size: 14px; line-height: 20px; color: var(--s-doux); }
.groupe-ligne__cta { min-height: 42px; font-size: 15px; }

/* ── Étape 2 · l'entreprise ─────────────────────────────────────────────── */
.champs__section {
  grid-column: 1 / -1; margin-top: 8px;
  font-size: 16px; line-height: 22px; font-weight: 600; color: var(--s-encre);
}
.champs__section:not(:first-child) { margin-top: 20px; }

/* ── Étape 3 · le récapitulatif ─────────────────────────────────────────── */
.recap { border-radius: 16px; background: var(--s-blanc); box-shadow: inset 0 0 0 1px var(--s-trait); overflow: hidden; }
.recap__ligne { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 18px 20px; }
.recap__ligne + .recap__ligne { box-shadow: inset 0 1px 0 var(--s-trait-2); }
.recap__cle { font-size: 13px; line-height: 18px; font-weight: 500; color: var(--s-doux); }
.recap__val { margin-top: 2px; font-size: 16px; line-height: 24px; font-weight: 600; overflow-wrap: anywhere; }
.recap__det { font-size: 14px; line-height: 21px; color: var(--s-doux); overflow-wrap: anywhere; }
.recap__modif {
  flex: none; min-height: 36px; padding: 0 10px; margin: -6px -10px 0 0; border: 0; border-radius: 8px; background: none;
  font-size: 14px; font-weight: 500; color: var(--s-lien);
  transition: background-color 0.2s var(--s-ease-ui);
}
.recap__modif:hover { background: var(--s-teinte); }
.recap__total { padding: 20px; background: var(--s-encre); color: var(--s-sur-encre); }
.recap__zero { font-size: 28px; line-height: 34px; font-weight: 600; letter-spacing: -0.02em; }
.recap__puis { margin-top: 6px; font-size: 15px; line-height: 22px; color: var(--s-sur-encre-doux); }
.recap__date { font-size: 15px; line-height: 22px; color: var(--s-sur-encre); font-weight: 500; }

.essai-accord {
  position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 14px; align-items: start;
  margin-top: 20px; padding: 18px 20px; border-radius: 14px; background: var(--s-gris);
  font-size: 15px; line-height: 23px; cursor: pointer;
}
.essai-accord input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.essai-accord__case {
  position: relative; width: 22px; height: 22px; margin-top: 1px; border-radius: 6px;
  background: var(--s-blanc); box-shadow: inset 0 0 0 1.5px #B8C3D6;
  transition: background-color 0.2s var(--s-ease-ui), box-shadow 0.2s var(--s-ease-ui);
}
.essai-accord__case::after {
  content: ""; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px;
  border: solid var(--s-blanc); border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0);
  transition: transform 0.25s var(--s-ease);
}
.essai-accord input:checked + .essai-accord__case { background: var(--s-encre); box-shadow: none; }
.essai-accord input:checked + .essai-accord__case::after { transform: rotate(45deg) scale(1); }
.essai-accord input:focus-visible + .essai-accord__case { outline: 2px solid var(--s-bleu); outline-offset: 3px; }
.essai-accord a { color: var(--s-lien); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(21, 95, 196, 0.35); }
.essai-accord a:hover { text-decoration-color: currentColor; }

@media (min-width: 621px) { .etape__actions--paiement #btn-stripe { flex: 1 1 280px; } }
.essai-note-stripe {
  display: flex; gap: 10px; align-items: flex-start; margin-top: 16px;
  font-size: 14px; line-height: 21px; color: var(--s-doux);
}
.essai-note-stripe svg { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--s-encre); }

/* ── Réassurance ────────────────────────────────────────────────────────── */
.trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 48px; padding-top: 28px; box-shadow: inset 0 1px 0 var(--s-trait-2); }
.trust__item { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; }
.trust__ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--s-gris); color: var(--s-encre); }
.trust__ic svg { width: 18px; height: 18px; }
.trust__texte { font-size: 14px; line-height: 20px; color: var(--s-doux); }
.trust__texte b { display: block; margin-bottom: 2px; font-size: 15px; color: var(--s-encre); }

/* ── Pied ───────────────────────────────────────────────────────────────── */
.tunnel-pied {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  width: min(var(--t-contenu), 100%); margin-inline: auto; padding: 40px 0 32px;
  font-size: 14px; line-height: 20px; color: var(--s-doux);
}
.tunnel-pied nav { display: flex; flex-wrap: wrap; gap: 0 18px; }
.tunnel-pied a { display: inline-flex; align-items: center; min-height: 32px; transition: color 0.2s var(--s-ease-ui); }
.tunnel-pied a:hover { color: var(--s-encre); }

/* ══ LA COMMANDE ═══════════════════════════════════════════════════════════
   Sur le navy : le 0 € en blanc, très grand ; le montant futur et sa date
   dans une plaque à part ; l'action en clair, comme sur la carte finale de
   l'accueil. Les textes secondaires sont teintés du navy, jamais gris. */
.tunnel__scene {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--s-encre); color: var(--s-sur-encre);
}
.tunnel__scene :focus-visible { outline-color: var(--s-bleu-encre); }
.resume { position: relative; z-index: 1; display: grid; gap: 22px; width: min(440px, 100%); }
.resume__titre { font-size: 15px; line-height: 20px; font-weight: 600; color: var(--s-sur-encre-doux); }

.resume__plan { display: grid; }
.resume__plan[data-vide="false"] .resume__vide { display: none; }
.resume__vide {
  padding: 20px; border-radius: 14px; background: rgba(244, 247, 250, 0.06);
  font-size: 16px; line-height: 24px; color: var(--s-sur-encre-doux);
}
.resume__corps { display: grid; gap: 20px; transition: opacity 0.13s var(--s-ease-ui); }
.resume__corps.is-maj { opacity: 0.35; }
.resume__nom { display: flex; align-items: center; gap: 10px; font-size: 26px; line-height: 32px; font-weight: 600; letter-spacing: -0.02em; color: #FFFFFF; }
.resume__coche { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--s-bleu); color: #FFFFFF; }
.resume__coche svg { width: 18px; height: 18px; stroke-width: 2.2; }
.resume__cycle { margin-top: -14px; font-size: 15px; line-height: 22px; color: var(--s-sur-encre-doux); }
.resume__k { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--s-sur-encre-doux); }
.resume__zero {
  font-size: clamp(64px, 5.8vw, 88px); line-height: 0.95; font-weight: 600; letter-spacing: -0.05em; color: #FFFFFF;
}
.resume__sous { margin-top: 6px; font-size: 15px; line-height: 22px; color: var(--s-sur-encre-doux); }
.resume__temps--apres { padding: 16px 18px; border-radius: 14px; background: rgba(244, 247, 250, 0.07); }
.resume__prix { margin-top: 2px; font-size: 20px; line-height: 28px; font-weight: 600; color: #FFFFFF; }
.resume__eq { font-size: 14px; line-height: 20px; color: var(--s-sur-encre-doux); }

.resume__cta:disabled { background: rgba(244, 247, 250, 0.12); color: rgba(244, 247, 250, 0.5); }
.resume__cta:not(:disabled) { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset; }

.resume__info, .resume__sur { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 14px; line-height: 21px; color: var(--s-sur-encre-doux); }
.resume__info-ic, .resume__sur-ic { color: var(--s-bleu-encre); padding-top: 1px; }
.resume__info-ic svg, .resume__sur-ic svg { width: 20px; height: 20px; }
.resume__sur-titre { font-size: 15px; line-height: 21px; font-weight: 600; color: var(--s-sur-encre); }
.resume__moyens { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.resume__moyens-titre { font-size: 14px; line-height: 20px; color: var(--s-sur-encre-doux); }
.moyens { display: flex; flex-wrap: wrap; gap: 8px; }
.moyens li { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 8px; background: rgba(244, 247, 250, 0.08); font-size: 14px; color: var(--s-sur-encre); }
.moyens svg { width: 18px; height: 18px; }

/* Le produit, sous la commande : la page Stock, posée comme une fenêtre
   ouverte qui déborde de la scène. Seulement quand la hauteur le permet. */
.scene-produit { display: none; }

@media (min-width: 1024px) {
  .tunnel__scene {
    position: sticky; top: 0; height: 100vh; height: 100svh;
    display: flex; flex-direction: column;
    padding: calc(var(--t-tete) + clamp(24px, 4.5vh, 56px)) clamp(32px, 4.2vw, 72px) 0;
  }
  .scene-produit {
    display: block; position: relative; margin-top: auto; padding-top: 40px;
    width: 860px; max-width: none;
  }
  .scene-produit img {
    width: 100%; height: auto; border-radius: 14px 14px 0 0;
    box-shadow: 0 0 0 1px rgba(244, 247, 250, 0.10), 0 -30px 80px -40px rgba(0, 0, 0, 0.8);
  }
  /* Le produit ne prend jamais la place de la commande : sous 860 px de haut,
     la scène ne montre que la commande. */
  @media (max-height: 859px) {
    .scene-produit { display: none; }
    .tunnel__scene { overflow-y: auto; padding-bottom: 40px; }
  }
}
@media (min-width: 1024px) and (min-height: 860px) and (prefers-reduced-motion: no-preference) {
  .scene-produit img { animation: t-produit 1.1s var(--s-ease) 0.2s both; }
  @keyframes t-produit { from { opacity: 0; transform: translateY(40px); } }
}

/* L'étape 3 : à partir de 1024 px, la commande garde le total à droite ;
   en dessous, le récapitulatif porte son propre total et la commande se
   retire — deux fois la même chose à l'écran vaudrait moins qu'une. */
@media (min-width: 1024px) {
  .essai[data-etape="3"] .recap__total { display: none; }
}

/* ══ UNE SEULE COLONNE (< 1024 px) ═══════════════════════════════════════
   L'ordre de lecture : titre, fil, étape, puis la commande et son action,
   puis la réassurance et le pied. Les deux enveloppes s'effacent pour que
   ces blocs se rangent dans une seule grille. */
@media (max-width: 1023px) {
  .tunnel { display: flex; flex-direction: column; padding: 8px var(--s-marge) 0; }
  .tunnel__colonne, .tunnel__contenu { display: contents; }
  .tunnel > *, .tunnel__contenu > *, .tunnel__colonne > * { width: min(var(--t-contenu), 100%); margin-inline: auto; }
  .tunnel__scene { order: 1; margin-top: 28px; padding: 28px 24px; border-radius: var(--s-r-carte); }
  .trust { order: 2; }
  .tunnel-pied { order: 3; }
  .essai[data-etape="3"] .essai-aside { display: none; }
  .resume { width: 100%; }
  .essai[data-etape="1"] .tunnel__contenu > *, .essai[data-etape="1"] .tunnel-pied { width: min(720px, 100%); }
  .choix { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .choix__pour { min-height: 0; }
}
/* Tablette : chaque carte sur toute la largeur, le prix à gauche, ce que
   la formule contient à droite. */
@media (min-width: 621px) and (max-width: 1023px) {
  .choix__carte { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 28px; align-items: start; grid-template-areas: "haut quotas" "pour quotas" "prix quotas" "suite quotas"; }
  .choix__haut { grid-area: haut; }
  .choix__pour { grid-area: pour; }
  .choix__prix { grid-area: prix; margin-top: 18px; }
  .choix__suite { grid-area: suite; }
  .choix__quotas { grid-area: quotas; margin-top: 2px; }
}

@media (max-width: 620px) {
  .tunnel-tete { height: 64px; }
  .essai__titre { font-size: clamp(30px, 8.6vw, 36px); }
  .essai__sous-titre { font-size: 16px; line-height: 25px; }
  .fil { margin: 24px 0 32px; gap: 6px; }
  .fil__etape { font-size: 13px; }
  .etape__tete { align-items: stretch; }
  .bascule--tunnel { width: 100%; }

  .choix__carte { padding: 22px 20px; }
  .choix__prix { margin-top: 18px; }
  .choix__montant { font-size: 36px; }
  .choix__quotas { gap: 6px; margin-top: 16px; }
  .choix__quota { font-size: 14px; line-height: 20px; grid-template-columns: 16px minmax(0, 1fr); gap: 8px; }
  /* Deux lignes au plus, à toutes les largeurs : 7,4 vw garde « Choisissez comment faire / avancer votre négoce. » */
  .essai[data-etape="1"] .essai__titre { font-size: clamp(22px, 7.3vw, 34px); line-height: 1.08; }
  .choix__quota svg { width: 16px; height: 16px; }
  .etape__tete--choix { align-items: stretch; }
  .selection { flex-direction: column; align-items: stretch; padding: 18px; }
  .selection__cta { min-width: 0; width: 100%; }
  .groupe-ligne { grid-template-columns: auto minmax(0, 1fr); }
  .groupe-ligne__cta { grid-column: 1 / -1; width: 100%; }

  .etape__actions { flex-direction: column-reverse; align-items: stretch; }
  .etape__actions .s-btn { width: 100%; }
  .trust { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 36px; }
  .tunnel-pied { flex-direction: column; }
}

/* Aux étapes 2 et 3, la promesse est déjà lue : le titre se resserre pour que
   le formulaire, puis le bouton de paiement, arrivent dans le premier écran. */
.essai:is([data-etape="2"], [data-etape="3"]) .essai__titre { font-size: clamp(24px, 2.2vw, 30px); line-height: 1.15; letter-spacing: -0.024em; }
.essai:is([data-etape="2"], [data-etape="3"]) .essai__titre-suite > span { display: inline; }
.essai:is([data-etape="2"], [data-etape="3"]) .essai__sous-titre { display: none; }
.essai:is([data-etape="2"], [data-etape="3"]) .fil { margin-top: 24px; }

/* ══ /groupe et /essai/succes — même tunnel, autres contenus ═══════════════ */
#demande form { margin-top: 36px; }
#demande .etape__actions { margin-top: 28px; }

.scene-liste { display: grid; gap: 12px; padding: 18px 20px; border-radius: 14px; background: rgba(244, 247, 250, 0.07); }
.scene-liste li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 15px; line-height: 22px; color: var(--s-sur-encre); }
.scene-liste svg { width: 20px; height: 20px; color: var(--s-bleu-encre); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.resume__zero--mot { font-size: clamp(48px, 4.6vw, 68px); letter-spacing: -0.04em; }

/* Confirmation, attente, problème */
.succes { display: grid; gap: 16px; justify-items: start; margin-top: 8px; }
.succes__coche { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--s-vert-fond); color: var(--s-vert); }
.succes .essai-sous { font-size: 17px; line-height: 27px; max-width: 52ch; }
.succes__fiche { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: 100%; margin: 8px 0; }
.succes__fiche div { padding: 16px; border-radius: 14px; background: var(--s-gris); }
.succes__fiche dt { font-size: 13px; line-height: 18px; font-weight: 500; color: var(--s-doux); }
.succes__fiche dd { margin: 2px 0 0; font-size: 17px; line-height: 24px; font-weight: 600; overflow-wrap: anywhere; }
.succes__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.succes__spinner {
  width: 40px; height: 40px; border-radius: 50%;
  border: 3px solid var(--s-trait-2); border-top-color: var(--s-bleu);
  animation: s-tourne 0.9s linear infinite;
}
.succes__stores { display: grid; gap: 12px; margin-top: 12px; }
.succes__badges { display: flex; flex-wrap: wrap; gap: 12px; }
.succes__badges img { height: 40px; width: auto; }
.store-badge__light { display: none; }

.essai[data-etape="4"] .fil { margin-bottom: 32px; }
@media (max-width: 620px) {
  .succes__fiche { grid-template-columns: minmax(0, 1fr); }
  .succes__actions .s-btn { width: 100%; }
}
