/* =========================================================
   AXIS — Compositeur de site · interface de l'outil (v5, sombre)
   Décision client du 2026-10-28 : retour au MODE SOMBRE, avec le fond géométrique
   AXIS (filets dorés diagonaux), sur tout le compositeur. L'ergonomie reste celle du
   modèle Shopify / Polaris (cartes de choix à rond ou case à gauche et badge de prix à
   droite, barre de progression fine, Retour / Suivant à droite, estimation en encart
   résumé, rails latéraux, tailles et rayons 8 / 12 px, cibles de 44 px) ; seule la
   peau change : noir AXIS, filets 1 px, aucune ombre, lime pour le focus, le choix
   retenu et la progression.
   Le site fictif au centre de l'aperçu garde ses propres thèmes (jetons --s-* de
   css/configurateur.css) ; la fenêtre de navigateur (--bw-*) et les cadres iPhone / iPad
   ne changent pas.

   UN seul système de jetons, défini ici et lu par :
   css/apercu-edition.css (barre, tiroirs, fenêtres), css/apercu-device.css (rails),
   css/apercu-suggest.css (idées de pages et de sections).
   - polices : Chivo pour tout l'outil ; Martian Mono pour les prix et les chiffres seulement
   - tailles 12 / 13 / 14 / 16 / 20 / 24 px, interlignage 1,4 à 1,5
   - espacements 4 / 8 / 12 / 16 / 20 / 24 / 32
   - rayons : 8 px (boutons, champs, options) · 12 px (cartes, fenêtres)
   - surfaces : fond #050507, cartes #0A0A0E, creux #101017 ; filets 1 px #2E2E39 / #1B1B22
   - boutons : primaire clair (survol lime), secondaire à filet, plain, destructif ;
     hauteurs 28 / 32 / 36 px, 44 px au tactile et sous 1100 px
   - lime #CEFB06 : anneau de focus, filet de l'option choisie, case / rond coché,
     progression, survol du primaire, lien survolé. Jamais en aplat au repos, jamais > 14 px
   - focus : anneau de 2 px lime
   - mouvement : 0,15 s, aucune animation décorative
   ========================================================= */

:root{
  /* espacements */
  --u1: 4px;
  --u2: 8px;
  --u3: 12px;
  --u4: 16px;
  --u5: 20px;
  --u6: 24px;
  --u8: 32px;

  /* surfaces : noir AXIS */
  --p-bg: #050507;            /* fond de l'outil (jamais #000) */
  --p-surface: #0A0A0E;       /* cartes, rails, tiroirs, fenêtres : surfaces pleines */
  --p-surface-2: #101017;     /* carte dans une carte, creux, lignes de titre */
  --p-surface-3: #1B1B22;     /* badges de prix, appui, pistes */
  --p-hover: #101017;
  --p-sel: #101017;           /* option choisie : fond + filet lime 1 px */
  --p-plate: #EDEDEA;         /* plaque claire sous un logo livré pour fond clair */
  /* filets */
  --p-line: #2E2E39;          /* filet visible : cartes, options, séparateurs de panneau */
  --p-line-2: #1B1B22;        /* filet discret : lignes dans une carte */
  --p-line-input: #8C8C97;    /* contour des champs, ronds et cases : 5,9:1 sur #0A0A0E */
  --p-dash: rgba(128, 128, 128, .5);   /* pointillé posé sur le site fictif (clair ou sombre) */
  /* texte */
  --p-title: #FFFFFF;
  --p-text: #EDEDEA;
  --p-text-2: #8C8C97;        /* 5,9:1 sur #0A0A0E, 5,1:1 sur #1B1B22 */
  --p-text-3: #868692;        /* aide discrète : 5,5:1 sur #0A0A0E, 4,8:1 sur #1B1B22 (le #585862 de la charte ne passe pas 4,5:1) */
  --p-off: #787884;           /* désactivé, poignées : atténué mais lisible (4,4:1 sur #101017) */
  --p-ink: #050507;           /* encre posée sur un aplat clair */
  /* interaction : le lime ne sert qu'ici */
  --p-accent: #CEFB06;
  --p-accent-soft: rgba(206, 251, 6, .5);
  --p-focus: #CEFB06;
  --p-check: #CEFB06;         /* rond ou case cochés, progression */
  --p-check-ink: #050507;
  --p-primary: #EDEDEA;       /* bouton principal : plein clair, texte noir ; survol lime (jamais en aplat au repos) */
  --p-primary-ink: #050507;
  --p-primary-hv: #CEFB06;
  --p-primary-dn: #CEFB06;
  --p-link: #EDEDEA;
  --p-link-hv: #CEFB06;
  /* états : fonds sombres teintés, textes clairs */
  --p-ok: #3DCB8B;
  --p-ok-bg: #0F2A1F;
  --p-ok-text: #7BE3B0;
  --p-crit: #FF6B5A;
  --p-crit-bg: #2A1210;
  --p-crit-bg-dn: #3A1915;
  --p-crit-line: #5A2520;
  --p-crit-text: #FF9F94;
  --p-warn: #FFB800;
  --p-warn-bg: #2A2008;
  --p-warn-text: #FFD566;
  --p-info-bg: #0E131C;
  --p-info-line: #25324A;
  --p-info-bar: #6F8FC4;
  --p-info-text: #C9D6EC;
  --p-badge-on: #2E2E39;      /* badge de prix d'une option choisie */
  --p-badge-on-text: #FFFFFF;
  /* formes : des filets de 1 px ; relief par l'ombre noire portée commune (décision client 2026-11-05,
     jetons --shadow-* de css/style.css) sur les cartes et les fenêtres, jamais sur les boutons ni les champs */
  --p-r-1: 8px;
  --p-r-2: 12px;
  --p-sh-card: var(--shadow-card);
  --p-sh-ring: 0 0 0 1px var(--p-line);                  /* contour seul, sans ombre : petites commandes flottantes */
  --p-sh-pop: 0 0 0 1px var(--p-line), var(--shadow-pop);   /* fenêtre, menu, info-bulle */
  --p-sh-btn: inset 0 0 0 1px var(--p-line);
  --p-sh-btn-hv: inset 0 0 0 1px var(--p-line-input);
  --p-sh-btn-dn: inset 0 0 0 1px var(--p-line-input);
  --p-sh-main: none;
  --p-sh-main-dn: inset 0 0 0 2px rgba(5, 5, 7, .35);
  --p-scrim: rgba(5, 5, 7, .78);       /* voile derrière une fenêtre */
  /* commutateur appareil / thème (vit dans la fenêtre de navigateur claire, voir .bw plus bas) */
  --p-track: #1B1B22;
  --p-dv-hv: rgba(255, 255, 255, .06);
  --p-dv-dn: rgba(255, 255, 255, .1);
  --p-dv-on-sh: inset 0 0 0 1px var(--p-line);
  /* fond géométrique AXIS : l'image des filets dorés sous un voile noir (nette, jamais floutée) */
  --p-fond-veil: rgba(5, 5, 7, .42);
  --p-fond: linear-gradient(var(--p-fond-veil), var(--p-fond-veil)), url("../public/images/Desktop/Fond/fondaxisdigitalsportbandeauderechercheN2.webp") center / cover no-repeat, #050507;
  --p-t: .15s ease;           /* tout retour visuel de l'outil */

  /* gabarits */
  --ui-col: 640px;            /* colonne de lecture des questions */
  --ui-aside: 360px;          /* colonne d'estimation */
  --cfg-dock-h: 132px;        /* barre du bas (téléphone, tablette) */
  --ui-tap: 44px;             /* cible tactile minimale */
}

@media (max-width: 999px){
  :root{ --p-fond-veil: rgba(5, 5, 7, .62); }
}

/* la fenêtre de navigateur simulée (--bw-*) reste grise : les commandes qu'elle porte (thème, appareil, plein écran,
   « Recevoir ce devis ») gardent donc des jetons clairs, sinon le bouton principal clair disparaîtrait sur le gris.
   Focus : anneau noir, le lime est invisible sur gris clair. */
.bw{
  --p-surface: #FFFFFF; --p-surface-2: #F7F7F7; --p-surface-3: #EBEBEB; --p-hover: #F7F7F7; --p-sel: #F2F2F2;
  --p-line: #D4D4D4; --p-line-2: #E3E3E3; --p-line-input: #8A8A8A;
  --p-text: #303030; --p-text-2: #616161; --p-text-3: #6B6B6B; --p-off: #9A9A9A;
  --p-focus: #050507; --p-link: #303030; --p-link-hv: #000000;
  --p-primary: #303030; --p-primary-ink: #FFFFFF; --p-primary-hv: #CEFB06; --p-primary-dn: #CEFB06;
  --p-sh-btn: inset 0 0 0 1px #D4D4D4; --p-sh-btn-hv: inset 0 0 0 1px #8A8A8A; --p-sh-btn-dn: inset 0 0 0 1px #8A8A8A;
  --p-sh-main-dn: inset 0 0 0 2px rgba(5, 5, 7, .35);
  --p-track: #E3E3E3; --p-dv-hv: rgba(255, 255, 255, .6); --p-dv-dn: rgba(255, 255, 255, .85); --p-dv-on-sh: inset 0 0 0 1px #D4D4D4;
}

/* repères de lecture du détail : une couleur par famille de postes (barre de répartition et filets) */
[data-g="socle"]{  --gc: #EDEDEA; }
[data-g="pages"]{  --gc: #8FB2E8; }
[data-g="fonct"]{  --gc: #B79CFF; }
[data-g="visi"]{   --gc: #4FCB9A; }
[data-g="design"]{ --gc: #E8B13A; }
[data-g="live"]{   --gc: #FF7A66; }

/* ---------------------------------------------------------
   1. Fond et mise en page de la composition
   --------------------------------------------------------- */
.cfg-work, .cfg-recap{
  color-scheme: dark;
  font-family: var(--font-text); font-size: 14px; line-height: 1.5; color: var(--p-text);
  -webkit-font-smoothing: antialiased;
}
.cfg-work :focus-visible, .cfg-recap :focus-visible, .need-zoom:focus-visible{ outline: 2px solid var(--p-focus); outline-offset: 2px; }
.cfg-work{
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr);
  min-height: 100svh; background: var(--p-fond);
}
.cfg-work .cfg__preview, .cfg-resize{ display: none; }
.cfg-work.has-preview .cfg__preview, .cfg-work.is-reveal .cfg__preview{ display: flex; }
.cfg-work .cfg__steps{ max-width: var(--ui-col); margin: 0 auto; width: 100%; box-sizing: border-box; }
.cfg-work.has-preview .cfg__steps{ max-width: none; }

.cfg__steps{ padding: calc(var(--header-h) + var(--u6)) var(--cfg-gut) var(--u8); min-width: 0; }
.cfg__preview{
  position: sticky; top: var(--header-h); height: calc(100svh - var(--header-h));
  padding: var(--u4) var(--cfg-gut); display: flex; flex-direction: column; gap: var(--u2); min-width: 0; box-sizing: border-box;
}
/* la progression et la navigation, quand elles voyagent dans le volet d'aperçu, n'ont pas besoin de marge propre */
.cfg__preview .cfg-prog{ margin-bottom: 0; }
.cfg__preview .cfg-move{ margin-top: 0; }
.step[hidden]{ display: none; }
/* Transition entre étapes et entre questions (uniquement l'outil, jamais l'aperçu #stage) :
   la page sortante s'efface vers le haut (cfg-leave, css/configurateur.css), la suivante monte en
   fondu, puis ses choix apparaissent l'un après l'autre. En revenant en arrière, le sens s'inverse.
   Montée en fondu + apparition séquencée du §4 : --dur, --ease, transform/opacity seulement. */
.step.is-new, .decl.is-new{ animation: p-in var(--dur) var(--ease) backwards; }
.step.is-new.is-back, .decl.is-new.is-back{ animation-name: p-in-back; }
/* la page sortante garde parfois « is-new » d'une entrée précédente : sa sortie doit l'emporter */
.step.is-new.cfg-out, .decl.is-new.cfg-out{ animation: cfg-leave .42s var(--ease) both; }
.step.is-new.cfg-out.is-back, .decl.is-new.cfg-out.is-back, .cfg-out.is-back{ animation-name: cfg-leave-back; }
.decl.is-new .seg:not(#seg-depart) > button,
.decl.is-new .seg__grid > button{ animation: p-in-s var(--dur) var(--ease) backwards; }
.decl.is-new .seg:not(#seg-depart) > :nth-child(1), .decl.is-new .seg__grid > :nth-child(1){ animation-delay: .10s }
.decl.is-new .seg:not(#seg-depart) > :nth-child(2), .decl.is-new .seg__grid > :nth-child(2){ animation-delay: .16s }
.decl.is-new .seg:not(#seg-depart) > :nth-child(3), .decl.is-new .seg__grid > :nth-child(3){ animation-delay: .22s }
.decl.is-new .seg:not(#seg-depart) > :nth-child(4), .decl.is-new .seg__grid > :nth-child(4){ animation-delay: .28s }
.decl.is-new .seg:not(#seg-depart) > :nth-child(5), .decl.is-new .seg__grid > :nth-child(5){ animation-delay: .34s }
.decl.is-new .seg:not(#seg-depart) > :nth-child(n+6), .decl.is-new .seg__grid > :nth-child(n+6){ animation-delay: .40s }
@keyframes p-in{ from{ opacity: 0; transform: translateY(18px); } to{ opacity: 1; transform: none; } }
@keyframes p-in-back{ from{ opacity: 0; transform: translateY(-18px); } to{ opacity: 1; transform: none; } }
@keyframes p-in-s{ from{ opacity: 0; transform: translateY(12px); } to{ opacity: 1; transform: none; } }
@keyframes cfg-leave-back{ from{ opacity: 1; transform: none; } to{ opacity: 0; transform: translateY(14px); } }

@media (min-width: 1000px){
  /* étape 01 : la carte des questions et, à côté, l'estimation qui reste en vue */
  .cfg-work:not(.has-preview){
    grid-template-columns: minmax(0, var(--ui-col)) minmax(300px, var(--ui-aside));
    justify-content: center; align-items: start;
    column-gap: clamp(20px, 3vw, 40px);
    padding-inline: var(--cfg-gut);
  }
  .cfg-work:not(.has-preview) .cfg__steps{
    max-width: none; margin: calc(var(--header-h) + clamp(24px, 5vh, 56px)) 0 clamp(32px, 6vh, 72px);
    padding: var(--u8); align-self: start;
    background: var(--p-surface); border: 1px solid var(--p-line); border-radius: var(--p-r-2); box-shadow: var(--p-sh-card);
  }
  .cfg-work:not(.has-preview) .cfg__preview{
    display: block; order: 0; position: sticky; top: calc(var(--header-h) + var(--u6));
    height: auto; max-height: calc(100svh - var(--header-h) - var(--u8));
    margin-top: calc(var(--header-h) + clamp(24px, 5vh, 56px)); padding: 0; overflow-y: auto; overscroll-behavior: contain;
    scrollbar-width: thin; scrollbar-color: var(--p-line-input) transparent;
  }
  .cfg-work:not(.has-preview) .prev__h,
  .cfg-work:not(.has-preview) .screen,
  .cfg-work:not(.has-preview) .prev__c,
  .cfg-work:not(.has-preview) .prev__sum,
  .cfg-work:not(.has-preview) .pbar--mini{ display: none; }
  /* étapes suivantes : la colonne d'outils à gauche (panneau blanc), l'aperçu à droite */
  .cfg-work.has-preview{ grid-template-columns: minmax(340px, .56fr) minmax(0, 1.44fr); align-items: start; }
  .cfg-work.has-preview .cfg__steps{
    margin: 0; min-height: 100svh; background: var(--p-surface); border-right: 1px solid var(--p-line);
    padding: calc(var(--header-h) + var(--u6)) clamp(20px, 2.2vw, 32px) 72px;
  }
  .cfg-work.has-preview .cfg__preview{
    display: flex; justify-content: center; gap: var(--u2);
    top: var(--header-h); height: calc(100svh - var(--header-h)); padding: var(--u4) clamp(16px, 2.4vw, 36px);
  }
}
@media (max-width: 999px){
  .cfg-work:not(.has-preview) .cfg__steps{
    margin: calc(var(--header-h) + var(--u4)) auto var(--u4); width: calc(100% - 2 * var(--cfg-gut)); padding: var(--u5) var(--u4);
    background: var(--p-surface); border: 1px solid var(--p-line); border-radius: var(--p-r-2); box-shadow: var(--p-sh-card);
  }
  .cfg-work:not(.has-preview) .cfg__preview{ display: none; }
  .cfg-work.has-preview .cfg__steps{
    padding: calc(var(--header-h) + var(--u4)) var(--cfg-gut) var(--u4); background: var(--p-surface); border-bottom: 1px solid var(--p-line);
  }
  .cfg-work{ padding-bottom: calc(var(--cfg-dock-h) + env(safe-area-inset-bottom, 0px)); }
}

/* ---------------------------------------------------------
   2. Progression : où j'en suis, en phrase normale
   --------------------------------------------------------- */
.cfg-prog{ margin: 0 0 var(--u5); }
.cfg-prog__t{
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--u1) var(--u4);
  margin: 0 0 var(--u2); font-size: 13px; line-height: 1.4; color: var(--p-text-2);
}
.cfg-prog__t b{ font-weight: 600; color: var(--p-text); }
.cfg-prog__q{ font-variant-numeric: tabular-nums; }
.cfg-prog__bar{ display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 6px; }
.cfg-prog__bar button{
  position: relative; display: block; min-width: 0; min-height: var(--ui-tap); padding: 14px 0 0;
  border: 0; border-radius: 0; background: none; text-align: left;
  font: 500 12px/1.3 var(--font-text); letter-spacing: 0; text-transform: none; color: var(--p-text-3);
  cursor: pointer; transition: color var(--p-t);
}
/* le rail et son remplissage : deux filets de 4 px, la progression se lit sans le texte */
.cfg-prog__bar button::before,
.cfg-prog__bar button::after{ content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 4px; border-radius: 999px; }
.cfg-prog__bar button::before{ background: var(--p-line); }
.cfg-prog__bar button::after{ background: var(--p-accent); transform: scaleX(0); transform-origin: left center; transition: transform .25s ease; }
.cfg-prog__bar button.is-done{ color: var(--p-text-2); }
.cfg-prog__bar button.is-done::after{ transform: scaleX(1); }
.cfg-prog__bar button.is-now{ color: var(--p-text); font-weight: 600; }
.cfg-prog__bar button.is-now::after{ transform: scaleX(var(--p, .08)); }
.cfg-prog__bar button:disabled{ cursor: default; }
.cfg-prog__bar button:not(:disabled):hover{ color: var(--p-text); }
.cfg-prog__n{ display: none; }
.cfg-prog__l{ display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: var(--u1); }
@media (max-width: 560px){
  .cfg-prog__l{ display: none; }
  .cfg-prog__bar button{ padding-top: 0; }
  .cfg-prog__bar button::before, .cfg-prog__bar button::after{ top: 20px; }
}
/* colonne d'outils étroite : la phrase au-dessus suffit, les noms d'étapes ne tiendraient pas */
@media (min-width: 1000px){
  .cfg-work.has-preview .cfg-prog__l{ display: none; }
  .cfg-work.has-preview .cfg-prog__bar button{ padding-top: 0; }
  .cfg-work.has-preview .cfg-prog__bar button::before,
  .cfg-work.has-preview .cfg-prog__bar button::after{ top: 20px; }
}
/* refonte : une barre sans libellés (huit repères) */
#rfProgBar{ --n: 8; }
#rfProgBar .cfg-prog__l{ display: none; }
#rfProgBar button{ padding-top: 0; }
#rfProgBar button::before, #rfProgBar button::after{ top: 20px; }

/* ---------------------------------------------------------
   3. La question et ses réponses
   --------------------------------------------------------- */
.decl--solo{ margin: var(--u4) 0 0; padding: 0; background: none; border: 0; border-radius: 0; max-width: none; box-shadow: none; }
.decl--solo .decl__q,
.step__t{
  margin: 0 0 var(--u2); font-family: var(--font-text); font-variation-settings: normal; font-weight: 700;
  font-size: clamp(20px, 2.2vw, 24px); line-height: 1.25; letter-spacing: -.01em; text-transform: none;
  color: var(--p-title); text-wrap: balance;
}
.decl--solo .decl__w,
.step__d{ margin: 0 0 var(--u5); max-width: 58ch; font-size: 14px; line-height: 1.5; color: var(--p-text-2); }
.step__h{ display: block; margin: 0; }
.step__n{ display: none; }
.step__t{ font-size: 20px; }
.step:has(.decl--solo) .step__h{ display: none; }
.step[data-step="2"] .step__d{ margin-bottom: var(--u4); }

/* mention du type de choix, juste au-dessus des cartes */
.seg__kind{ display: block; margin: 0 0 var(--u2); font-size: 14px; line-height: 1.4; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--p-text); }

/* les cartes de réponse (Polaris « ChoiceList ») : une pile, un choix par ligne, rond à gauche, touche de clavier à droite */
.step .seg:not(#seg-depart){ display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--u2); counter-reset: rep; }
.step .seg:not(#seg-depart) > button,
.rf-card,
.seg--types .seg__grid > button{
  position: relative; display: flex; align-items: center; gap: var(--u3);
  width: 100%; min-height: 56px; padding: var(--u3) var(--u4); box-sizing: border-box;
  background: var(--p-surface); border: 1px solid var(--p-line); border-radius: var(--p-r-1);
  color: var(--p-text); font-family: var(--font-text); font-size: 14px; font-weight: 600; line-height: 1.4; text-align: left;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color var(--p-t), border-color var(--p-t), box-shadow var(--p-t);
}
.step .seg:not(#seg-depart) > button{ counter-increment: rep; }
/* indicateur : rond = un seul choix ; plein et cerné de blanc quand il est choisi */
.step .seg:not(#seg-depart) > button::before,
.rf-opts:not(.rf-opts--multi) .rf-card::before,
.seg--types .seg__grid > button::before,
.rf-hs::before{
  content: ""; flex: none; box-sizing: border-box; width: 16px; height: 16px; border-radius: 50%;
  border: 1px solid var(--p-line-input); background: var(--p-surface);
  transition: border-color var(--p-t), background-color var(--p-t), box-shadow var(--p-t);
}
/* touche de clavier, discrète : A, B, C… (masquée sur écran tactile) */
.step .seg:not(#seg-depart):not(.seg--types) > button::after{
  content: counter(rep, upper-alpha); flex: none; margin-left: auto;
  display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 var(--u1);
  background: var(--p-surface-2); border: 1px solid var(--p-line); border-radius: 6px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0; color: var(--p-text-2);
}
@media (hover: hover){
  .step .seg:not(#seg-depart) > button:hover,
  .rf-card:hover,
  .seg--types .seg__grid > button:hover{ background: var(--p-hover); border-color: var(--p-line-input); }
}
@media (hover: none), (max-width: 999px){
  .step .seg:not(#seg-depart):not(.seg--types) > button::after{ display: none; }
}
.step .seg:not(#seg-depart) > button:active,
.rf-card:active,
.seg--types .seg__grid > button:active{ background: var(--p-surface-3); }
.step .seg:not(#seg-depart) > button[aria-pressed="true"],
.rf-card[aria-pressed="true"],
.seg--types .seg__grid > button[aria-pressed="true"]{
  background: var(--p-sel); border-color: var(--p-focus);
}
.step .seg:not(#seg-depart) > button[aria-pressed="true"]::before,
.rf-opts:not(.rf-opts--multi) .rf-card[aria-pressed="true"]::before,
.seg--types .seg__grid > button[aria-pressed="true"]::before,
.rf-hs[aria-pressed="true"]::before{ border-color: var(--p-check); background: var(--p-check); box-shadow: inset 0 0 0 4px var(--p-sel); }
/* une carte choisie qui reçoit aussi le focus clavier : l'anneau se pose sur la bordure au lieu de la doubler */
.step .seg:not(#seg-depart) > button[aria-pressed="true"]:focus-visible,
.rf-card[aria-pressed="true"]:focus-visible,
.seg--types .seg__grid > button[aria-pressed="true"]:focus-visible{ outline-offset: -3px; }
.step .seg:not(#seg-depart) > button:disabled,
.rf-card:disabled{ opacity: .5; cursor: not-allowed; }

/* compact : une déclaration au milieu d'une étape (ex. nombre de lieux) */
.decl:not(.decl--solo){
  margin: var(--u5) 0 0; padding: var(--u4);
  background: var(--p-surface); border: 1px solid var(--p-line); border-radius: var(--p-r-2); box-shadow: var(--p-sh-card);
}
.decl:not(.decl--solo) .decl__q{ margin: 0 0 var(--u1); font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--p-text); }
.decl:not(.decl--solo) .decl__w{ margin: 0 0 var(--u3); max-width: 60ch; font-size: 13px; line-height: 1.5; color: var(--p-text-2); }
.decl:not(.decl--solo) .seg:not(#seg-depart){ grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.decl:not(.decl--solo) .seg:not(#seg-depart) > button{ min-height: 44px; padding: var(--u2) var(--u3); font-size: 13px; }
.decl:not(.decl--solo) .seg:not(#seg-depart) > button::after{ display: none; }

/* « Quel type de site ? » : quinze réponses, des cartes compactes en grille, rangées par famille */
.step .seg.seg--types:not(#seg-depart){ display: flex; flex-direction: column; gap: var(--u5); }
.seg__fam{ display: flex; flex-direction: column; gap: var(--u2); min-width: 0; }
.seg__famt{ margin: 0; padding-bottom: var(--u2); border-bottom: 1px solid var(--p-line); font-size: 15px; line-height: 1.4; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--p-title); }
.seg__grid{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--u2); }
.seg__grid--one{ grid-template-columns: minmax(0, 1fr); }
.seg--types .seg__grid > button{ min-height: 52px; padding: var(--u3); font-size: 13px; font-weight: 500; }
.seg--types .seg__t{ display: block; min-width: 0; overflow-wrap: anywhere; }
.seg--types .seg__s{ display: block; margin-top: 2px; font-size: 12px; line-height: 1.35; font-weight: 400; color: var(--p-text-2); }
.seg--types .seg__grid > button[aria-pressed="true"]{ font-weight: 600; }
/* « Quel type de site souhaitez-vous ? » : deux cartes, un titre et une ligne d'explication */
.seg--kind .seg__tx{ display: block; flex: 1; min-width: 0; }
.seg--kind .seg__t{ display: block; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.seg--kind .seg__s{ display: block; margin-top: 4px; font-size: 12px; line-height: 1.4; font-weight: 400; color: var(--p-text-2); }
@media (max-width: 359px){ .seg__grid{ grid-template-columns: minmax(0, 1fr); } }

/* choix multiples (fonctionnalités, référencement, mise en ligne) : un carré = plusieurs choix possibles */
.opts{ display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--u2); margin: 0 0 var(--u3); }
.opt{
  position: relative; display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; align-items: start; gap: 0 var(--u3);
  width: 100%; padding: var(--u3) var(--u4); box-sizing: border-box;
  background: var(--p-surface); border: 1px solid var(--p-line); border-radius: var(--p-r-1);
  color: var(--p-text); font: inherit; text-align: left; cursor: pointer;
  transition: background-color var(--p-t), border-color var(--p-t), box-shadow var(--p-t);
}
@media (hover: hover){ .opt:hover:not(:disabled):not(.opt--lock){ background: var(--p-hover); border-color: var(--p-line-input); } }
.opt:active:not(:disabled):not(.opt--lock){ background: var(--p-surface-3); }
.opt.is-on{ background: var(--p-sel); border-color: var(--p-focus); }
.opt__box{
  position: relative; box-sizing: border-box; width: 16px; height: 16px; margin-top: 2px;
  border: 1px solid var(--p-line-input); border-radius: 4px; background: var(--p-surface);
  transition: border-color var(--p-t), background-color var(--p-t);
}
.opt.is-on .opt__box{ background: var(--p-check); border-color: var(--p-check); }
.opt__box::after{
  content: ""; position: absolute; left: 4.5px; top: 1px; width: 4px; height: 8px; border: solid var(--p-check-ink); border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0); transition: transform var(--p-t);
}
.opt.is-on .opt__box::after{ transform: rotate(45deg) scale(1); }
.opt__t{ display: block; font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--p-text); }
.opt__s{ display: block; margin-top: 2px; font-size: 13px; line-height: 1.45; font-weight: 400; color: var(--p-text-2); }
/* prix en badge, à droite */
.opt__p{
  align-self: start; padding: 2px var(--u2); background: var(--p-surface-3); border-radius: var(--p-r-1);
  font-family: var(--font-mono); font-size: 12px; font-weight: 500; line-height: 1.5; white-space: nowrap; color: var(--p-text);
  font-variant-numeric: tabular-nums;
}
.opt.is-on .opt__p{ background: var(--p-badge-on); color: var(--p-badge-on-text); }
.opt--free .opt__p{ background: var(--p-ok-bg); color: var(--p-ok-text); font-weight: 600; }
.opt--lock{ cursor: default; background: var(--p-surface-2); }
.opt--lock .opt__box{ background: var(--p-line); border-color: var(--p-line); }
.opt--lock .opt__box::after{ transform: rotate(45deg) scale(1); border-color: var(--p-text-2); }
.opt--lock .opt__t{ color: var(--p-text-2); font-weight: 500; }
.opt--lock .opt__p{ background: var(--p-surface-3); color: var(--p-text-2); }

/* combinaison cohérente : une bannière d'information (Polaris « Banner ») */
.combo, .cfg-note{
  padding: var(--u3) var(--u4); background: var(--p-info-bg); border: 1px solid var(--p-info-line); border-left: 4px solid var(--p-info-bar);
  border-radius: var(--p-r-1); color: var(--p-info-text);
}
.combo{ margin: var(--u3) 0; }
.combo__t{ margin: 0 0 var(--u1); font-size: 13px; font-weight: 600; line-height: 1.4; letter-spacing: 0; text-transform: none; color: var(--p-info-text); }
.combo__x{ font-size: 13px; line-height: 1.5; color: var(--p-info-text); }
.combo__x b{ font-weight: 600; }

/* cartes de la refonte : mêmes règles, carré quand on peut en choisir plusieurs */
.rf-opts{ display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--u2); }
.rf-opts--multi .rf-card::before{
  content: ""; flex: none; box-sizing: border-box; width: 16px; height: 16px; border-radius: 4px;
  border: 1px solid var(--p-line-input); background: var(--p-surface); transition: border-color var(--p-t), background-color var(--p-t);
}
.rf-opts--multi .rf-card[aria-pressed="true"]::before{ background: var(--p-check); border-color: var(--p-check); }
.rf-opts--multi .rf-card::after{
  content: ""; position: absolute; left: calc(var(--u4) + 4.5px); top: calc(50% - 5px); width: 4px; height: 8px;
  border: solid var(--p-check-ink); border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform var(--p-t);
}
.rf-opts--multi .rf-card[aria-pressed="true"]::after{ transform: rotate(45deg) scale(1); }
.rf-hs{ margin-top: var(--u3); font-size: 14px; font-weight: 500; }
.rf-input{
  width: 100%; box-sizing: border-box; min-height: var(--ui-tap); padding: var(--u2) var(--u3);
  background: var(--p-surface); border: 1px solid var(--p-line-input); border-radius: var(--p-r-1);
  color: var(--p-text); font: 400 16px/1.4 var(--font-text); transition: border-color var(--p-t), box-shadow var(--p-t);
}
.rf-input:hover{ border-color: var(--p-text-2); }
.rf-input:focus-visible, .rf-input:focus{ outline: 2px solid var(--p-focus); outline-offset: 1px; }
.rf-input::placeholder{ color: var(--p-text-3); }
.rf-input:disabled{ background: var(--p-surface-3); color: var(--p-text-2); cursor: not-allowed; }
.rf-input.is-bad{ border-color: var(--p-crit); box-shadow: 0 0 0 1px var(--p-crit); }
.rf-other{ margin-top: var(--u3); }
.rf-cl{ display: block; margin: var(--u2) 0 var(--u2); font-size: 13px; font-weight: 600; color: var(--p-text); }
.rf-comment{ display: block; min-height: 112px; margin-bottom: var(--u6); resize: vertical; }
.rf-err{
  margin: var(--u2) 0 0; padding: var(--u2) var(--u3); background: var(--p-crit-bg); border: 1px solid var(--p-crit-line); border-left: 4px solid var(--p-crit);
  border-radius: var(--p-r-1); font-size: 13px; line-height: 1.5; color: var(--p-crit-text);
}
.rf-err[hidden]{ display: none; }
.rf-actions{ display: flex; flex-direction: column; align-items: flex-start; gap: var(--u4); }
.rf-tel{ font-size: 13px; color: var(--p-link); text-decoration: none; }
.rf-tel:hover{ color: var(--p-link-hv); text-decoration: underline; }
.rf-line{ display: flex; flex-direction: column; gap: 2px; padding: var(--u2) 0; border-top: 1px solid var(--p-line-2); }
.rf-line:first-child{ border-top: 0; }
.rf-line__l{ font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--p-text-2); }
.rf-line__v{ font-size: 14px; line-height: 1.4; color: var(--p-text); overflow-wrap: anywhere; }
.cfg-refonte[hidden]{ display: none; }

/* ---------------------------------------------------------
   4. Ce que comprend le choix, et son exemple
   --------------------------------------------------------- */
.need-wrap{ display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--u6); align-items: start; }
.need-media{
  display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--u4) var(--u6); align-items: start;
  margin-top: var(--u2); padding: var(--u4); background: var(--p-surface-2); border: 1px solid var(--p-line); border-radius: var(--p-r-2);
}
.need-media[hidden]{ display: none; }
.need-media:has(.need-fig:not([hidden])){ grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.need-media .need-fig{ order: 2; width: 100%; max-width: none; flex: none; }
.need-media .need-feat{ order: 1; flex: none; min-width: 0; }
.need-fig{ margin: 0; overflow: hidden; background: var(--p-surface); border: 1px solid var(--p-line); border-radius: var(--p-r-1); }
.need-fig[hidden]{ display: none; }
.need-fig img{ display: block; width: 100%; height: auto; cursor: zoom-in; }
.need-fig figcaption{ padding: var(--u2) var(--u3); border-top: 1px solid var(--p-line-2); font-size: 12px; line-height: 1.4; letter-spacing: 0; text-transform: none; color: var(--p-text-2); }
.need-fig figcaption::after{ content: " · cliquer pour agrandir"; }
.need-feat__t{ margin: 0 0 var(--u2); font-size: 14px; font-weight: 600; line-height: 1.35; letter-spacing: 0; text-transform: none; color: var(--p-text); }
.need-feat ul{ list-style: none; margin: 0; padding: 0; }
.need-feat li{ position: relative; padding: var(--u2) 0 var(--u2) var(--u5); border-top: 1px solid var(--p-line-2); font-size: 13px; line-height: 1.45; color: var(--p-text); }
.need-feat li:first-child{ border-top: 0; }
.need-feat li::before{ content: ""; position: absolute; left: 2px; top: 13px; width: 5px; height: 9px; border: solid var(--p-ok); border-width: 0 2px 2px 0; transform: rotate(45deg) scale(.8); transform-origin: center; }
.need-feat__n{ margin: var(--u2) 0 0; font-size: 12px; line-height: 1.45; color: var(--p-text-2); }
@media (max-width: 640px){
  .need-media:has(.need-fig:not([hidden])){ grid-template-columns: minmax(0, 1fr); }
}
/* l'image d'exemple, agrandie au centre de l'écran (clic ou Échap pour refermer) */
.need-zoom{
  position: fixed; inset: 0; z-index: 300; display: grid; grid-template-rows: minmax(0, 1fr) auto; place-items: center; gap: var(--u3);
  padding: 7vh 7vw; background: var(--p-scrim); cursor: zoom-out; animation: p-in .2s ease-out both;
}
.need-zoom img{ max-width: 84vw; max-height: 76vh; width: auto; height: auto; border: 1px solid var(--p-line); border-radius: var(--p-r-2); background: var(--p-surface); }
.need-zoom p{ margin: 0; font-size: 13px; letter-spacing: 0; text-transform: none; color: var(--p-title); text-align: center; }

/* « Le site qui vous correspond » : l'écran de résultat. Le logo de la référence sur un panneau sombre (il est livré
   pour un fond sombre), la phrase, puis le type, son pourquoi et trois repères. */
#decl-type > .decl__q, #decl-type > .decl__w{ position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.type-ex{ text-align: left; }
.type-ex:empty{ display: none; }
.type-ex__win{
  position: relative; display: flex; align-items: center; justify-content: center; min-height: 132px; margin: 0 0 var(--u5);
  background: var(--p-bg); border: 1px solid var(--p-line-2); border-radius: var(--p-r-2); overflow: hidden;
}
.type-ex__logo{ position: relative; display: block; width: min(420px, 80%); height: auto; animation: type-logo .6s ease-out both; }
/* logos livrés sur fond clair ou foncé, sur transparent : posés sur une plaque claire pour rester lisibles */
.type-ex__logo--plate{ width: auto; max-width: 70%; height: clamp(64px, 11vw, 88px); padding: var(--u3) var(--u6); box-sizing: content-box; object-fit: contain; border-radius: var(--p-r-1); background: var(--p-plate); }
.type-ex__wm{
  position: relative; font-family: var(--font-text); font-variation-settings: normal; font-weight: 800;
  font-size: clamp(30px, 4.4vw, 52px); line-height: 1; letter-spacing: -.02em; text-transform: uppercase; color: var(--p-title);
  animation: type-logo .6s ease-out both;
}
.type-ex__rays{ position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; }
.type-ex__rays span{ position: absolute; left: 0; top: 0; width: 64px; height: 1px; background: var(--p-title); transform-origin: 0 50%; opacity: 0; animation: type-ray 1.15s ease-out .12s both; }
.type-ex__sent{ margin: 0 0 var(--u5); font-size: 14px; line-height: 1.5; color: var(--p-text-2); }
.type-ex__sent a{ font-weight: 600; color: var(--p-link); text-decoration: underline; text-underline-offset: 2px; }
.type-ex__sent a:hover, .type-ex__sent a:focus-visible{ color: var(--p-link-hv); }
.type-ex__lab{ margin: 0 0 var(--u1); padding-top: var(--u5); border-top: 1px solid var(--p-line-2); font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--p-text-2); }
.type-ex__name{ margin: 0 0 var(--u4); font-size: clamp(20px, 2.2vw, 24px); font-weight: 700; line-height: 1.25; letter-spacing: -.01em; color: var(--p-title); }
.type-ex__why{ margin: 0 0 var(--u4); font-size: 14px; line-height: 1.5; color: var(--p-text-2); }
.type-ex__list{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--u3); text-align: left; }
.type-ex__c{ display: flex; flex-direction: column; gap: var(--u1); padding: var(--u3); background: var(--p-surface-2); border: 1px solid var(--p-line); border-radius: var(--p-r-1); }
.type-ex__n{ font-family: var(--font-mono); font-size: 11px; letter-spacing: 0; color: var(--p-text-2); }
.type-ex__t{ font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--p-text); }
@keyframes type-logo{ from{ opacity: 0; transform: scale(.94); } to{ opacity: 1; transform: none; } }
@keyframes type-ray{
  0%{ opacity: 0; transform: rotate(var(--a)) translateX(var(--r)) scaleX(.1); }
  25%{ opacity: .55; transform: rotate(var(--a)) translateX(var(--r)) scaleX(1); }
  100%{ opacity: 0; transform: rotate(var(--a)) translateX(calc(var(--r) + 120px)) scaleX(.15); }
}
@media (max-width: 760px){ .type-ex__list{ grid-template-columns: 1fr; } .type-ex__win{ min-height: 100px; } }

/* « Quelle formule votre site mérite-t-il ? » : un seul tableau comparatif. Les trois en-têtes sont les choix
   (le segmenté #seg-depart) ; une coche dit ce que comprend chaque formule (ambre sur les lignes au-delà d'Impulsion).
   Dans « Sur mesure », ces lignes se cochent à volonté. */
.ftab{
  --ok: var(--p-ok); --ok-ink: var(--p-ink); --ftab-cols: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr));
  margin-top: var(--u1); border: 1px solid var(--p-line); border-radius: var(--p-r-2); overflow: clip; background: var(--p-surface);
}
/* l'en-tête (les trois formules) reste sous la banderole pendant qu'on lit les lignes */
.ftab__head{ display: grid; grid-template-columns: var(--ftab-cols); border-bottom: 1px solid var(--p-line); position: sticky; top: var(--header-h); z-index: 3; background: var(--p-surface); }
.ftab .ftab__head .seg{ grid-column: 2 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.ftab .seg button{
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 0; padding: var(--u4) var(--u2) var(--u3); border: 0; border-left: 1px solid var(--p-line); border-radius: 0;
  background: none; text-align: center; color: var(--p-text-2); cursor: pointer;
  transition: background-color var(--p-t), box-shadow var(--p-t), color var(--p-t);
}
.ftab .seg button:hover{ background: var(--p-hover); color: var(--p-text); }
.ftab .seg button[aria-pressed="true"]{ background: var(--p-sel); color: var(--p-text); box-shadow: inset 0 -2px 0 var(--p-focus); }
.ftab__n{ font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; line-height: 1.2; }
.ftab__p{ font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0; font-weight: 400; color: var(--p-text-2); }
.ftab .seg button[aria-pressed="true"] .ftab__p{ color: var(--p-text); }
.ftab__row{ display: grid; grid-template-columns: var(--ftab-cols); align-items: center; border-bottom: 1px solid var(--p-line-2); }
.ftab__row--prem{ --ok: var(--p-warn); --ok-ink: var(--p-ink); }
.ftab__row:last-child{ border-bottom: 0; }
.ftab__l{ padding: var(--u2) var(--u4); font-size: 13px; line-height: 1.4; color: var(--p-text); }
.ftab__c{ align-self: stretch; display: flex; align-items: center; justify-content: center; border-left: 1px solid var(--p-line-2); min-height: 40px; }
.ftab__c.is-sel{ background: var(--p-sel); }
.ftab__sep{ padding: var(--u2) var(--u4); font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--p-text-2); border-bottom: 1px solid var(--p-line-2); background: var(--p-surface-2); }
.ftab__ok, .ftab__t{ position: relative; display: block; width: 20px; height: 20px; padding: 0; border-radius: 50%; border: 1px solid var(--ok); background: var(--ok); }
.ftab__ok::after, .ftab__t[aria-pressed="true"]::after{
  content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 9px; border: solid var(--ok-ink); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.ftab__t{ cursor: pointer; background: var(--p-surface); border-color: var(--p-line-input); transition: border-color var(--p-t), background-color var(--p-t); }
.ftab__t::before{ content: ""; position: absolute; inset: -12px; }   /* zone d'appui de 44 px autour de la case de 20 px */
.ftab__t:hover, .ftab__t:focus-visible{ border-color: var(--ok); }
.ftab__t[aria-pressed="true"]{ background: var(--ok); border-color: var(--ok); }
.ftab__no{ font-family: var(--font-mono); color: var(--p-text-3); }
.ftab__tx{ font-family: var(--font-mono); font-size: 11.5px; line-height: 1.3; letter-spacing: 0; text-align: center; color: var(--p-text-2); padding: var(--u1) 2px; }
.ftab__note{ margin: var(--u4) 0 0; font-size: 13px; line-height: 1.5; color: var(--p-text-2); max-width: 62ch; min-height: 1.5em; }
@media (max-width: 640px){
  .ftab{ --ftab-cols: repeat(3, minmax(0, 1fr)); }
  .ftab .ftab__head .seg{ grid-column: 1 / -1; }
  .ftab .seg button{ padding: var(--u3) 4px var(--u2); }
  .ftab .seg button:first-child{ border-left: 0; }
  .ftab__l{ grid-column: 1 / -1; padding: var(--u3) var(--u3) var(--u1); }
  .ftab__row{ padding-bottom: var(--u2); }
  .ftab__c{ min-height: 34px; }
  .ftab__c:nth-child(2){ border-left: 0; }
}

/* ---------------------------------------------------------
   5. Boutons (un seul système : Polaris)
   secondaire (blanc, léger relief) · primaire sombre · plain · destructif
   --------------------------------------------------------- */
.cfg-move__b, .prev__full, .px__detail, .pe-b, .pe-slot__b, .cfg-recap .cfg-go, .rf-send{
  --b-bg: var(--p-surface); --b-fg: var(--p-text); --b-sh: var(--p-sh-btn);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 32px; padding: 0 var(--u3); box-sizing: border-box;
  background: var(--b-bg); color: var(--b-fg); border: 0; border-radius: var(--p-r-1); box-shadow: var(--b-sh);
  font-family: var(--font-text); font-size: 13px; font-weight: 600; font-variation-settings: normal; line-height: 1.2; letter-spacing: 0; text-transform: none;
  white-space: nowrap; text-align: center; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color var(--p-t), box-shadow var(--p-t), color var(--p-t);
}
.cfg-move__b:hover:not(:disabled), .prev__full:hover, .px__detail:hover, .pe-b:hover:not(:disabled), .pe-slot__b:hover{ --b-bg: var(--p-hover); --b-sh: var(--p-sh-btn-hv); }
.cfg-move__b:active:not(:disabled), .prev__full:active, .px__detail:active, .pe-b:active:not(:disabled), .pe-slot__b:active{ --b-bg: var(--p-surface-3); --b-sh: var(--p-sh-btn-dn); }
.cfg-move__b:disabled, .pe-b:disabled{ --b-bg: var(--p-surface-2); --b-fg: var(--p-off); --b-sh: inset 0 0 0 1px var(--p-line-2); cursor: not-allowed; }
/* appuyé (bascule active) */
.pe-b.is-on, .prev__full[aria-pressed="true"], .pe-b[aria-pressed="true"]{ --b-bg: var(--p-surface-3); --b-sh: var(--p-sh-btn-dn); }
.pe-b.is-on:hover:not(:disabled), .prev__full[aria-pressed="true"]:hover{ --b-bg: var(--p-line); }

/* primaire sombre, 36 px */
.cfg-move__b--next, .pe-b--main, .cfg-recap .cfg-go, .rf-send, #devisBtn{
  --b-bg: var(--p-primary); --b-fg: var(--p-primary-ink); --b-sh: var(--p-sh-main);
  min-height: 36px; padding: 0 var(--u4); font-size: 13px;
}
.cfg-move__b--next:hover:not(:disabled), .pe-b--main:hover:not(:disabled), .cfg-recap .cfg-go:hover, .rf-send:hover, #devisBtn:hover{ --b-bg: var(--p-primary-hv); --b-fg: var(--p-ink); }
.cfg-move__b--next:active:not(:disabled), .pe-b--main:active:not(:disabled), .cfg-recap .cfg-go:active, .rf-send:active, #devisBtn:active{ --b-bg: var(--p-primary-dn); --b-fg: var(--p-ink); --b-sh: var(--p-sh-main-dn); }
.cfg-move__b--next:disabled, .pe-b--main:disabled{ --b-bg: var(--p-surface-2); --b-fg: var(--p-off); --b-sh: inset 0 0 0 1px var(--p-line-2); }
.cfg-recap .cfg-go::before, .cfg-recap .cfg-go::after{ content: none; }
.cfg-recap .cfg-go{ align-self: auto; padding: 0 var(--u4); border: 0; font-family: var(--font-text); }
.rf-send .cfg-go__arrow{ display: inline-grid; width: auto; height: auto; background: none; border-radius: 0; color: inherit; }
.rf-send .cfg-go__arrow svg{ width: 14px; height: 14px; }

/* destructif : texte rouge discret */
.pe-b--del{ --b-fg: var(--p-crit-text); }
.pe-b--del:hover:not(:disabled){ --b-bg: var(--p-crit-bg); }
.pe-b--del:active:not(:disabled){ --b-bg: var(--p-crit-bg-dn); }

/* plain : texte seul, souligné au survol */
.pe-link{
  flex: none; min-height: 32px; padding: 0 var(--u1); background: none; border: 0; border-radius: var(--p-r-1); box-shadow: none; cursor: pointer;
  font: 500 13px/1.2 var(--font-text); letter-spacing: 0; text-transform: none; color: var(--p-link);
  text-decoration: none; transition: color var(--p-t);
}
.pe-link:hover{ color: var(--p-link-hv); text-decoration: underline; text-underline-offset: 3px; }
.pe-b.pe-link, .pe-b.pe-link:hover:not(:disabled), .pe-b.pe-link:active:not(:disabled){ --b-bg: transparent; --b-fg: var(--p-link); --b-sh: none; }
.pe-b.pe-link:hover:not(:disabled){ --b-fg: var(--p-link-hv); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1099px), (pointer: coarse){
  .cfg-move__b, .prev__full, .px__detail, .pe-b, .pe-slot__b, .cfg-recap .cfg-go, .rf-send, #devisBtn, .pe-link{ min-height: var(--ui-tap); }
}

/* ---------------------------------------------------------
   6. Navigation : Retour et Suivant, alignés à droite, séparés du contenu
   --------------------------------------------------------- */
.cfg-move{ display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: var(--u2); margin: var(--u6) 0 0; padding-top: var(--u4); border-top: 1px solid var(--p-line-2); }
.cfg-move__b--next{ order: 2; margin: 0; }
#prev{ order: 1; }
.cfg-move__kb{ order: 0; margin-right: auto; font-size: 12px; line-height: 1.4; color: var(--p-text-2); }
.cfg-move__kb:empty{ display: none; }
@media (hover: none), (max-width: 999px){ .cfg-move__kb{ display: none; } }

/* colonne d'outils étroite (étapes suivantes) : Retour et Suivant restent sur une ligne */
.cfg-work.has-preview .cfg__steps .cfg-move{ display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--u2); }
.cfg-work.has-preview .cfg__steps .cfg-move__b--next{ padding: 0 var(--u3); white-space: normal; line-height: 1.2; }
.cfg-work.has-preview .cfg__steps .cfg-move__kb{ grid-column: 1 / -1; order: 3; margin: 0; }
@media (max-width: 999px){ .cfg-work.has-preview .cfg__steps .cfg-move{ display: flex; } }

/* ---------------------------------------------------------
   7. L'estimation (style « résumé de la commande »)
   Colonne latérale collante (bureau), carte sous les outils (étapes suivantes),
   bandeau compact en bas de l'écran (tablette, téléphone).
   --------------------------------------------------------- */
.px{
  position: static; max-width: none; box-sizing: border-box;
  display: flex; flex-direction: column; align-items: stretch; gap: var(--u3);
  padding: var(--u4); margin: 0;
  background: var(--p-surface); border: 1px solid var(--p-line); border-radius: var(--p-r-2); box-shadow: var(--p-sh-card);
}
.cfg__steps .px{ background: var(--p-surface-2); box-shadow: none; }
.px[hidden]{ display: none; }
.px__tot{ display: flex; flex-direction: column; align-items: flex-start; gap: var(--u1); margin: 0; }
.px__label{ font-size: 14px; font-weight: 600; line-height: 1.4; letter-spacing: 0; text-transform: none; color: var(--p-text); }
.px__amount{ position: relative; display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--u1) var(--u2); }
.px__n{
  font-family: var(--font-mono); font-weight: 600; font-size: clamp(24px, 2.4vw, 28px); line-height: 1.15; letter-spacing: -.02em;
  color: var(--p-text); font-variant-numeric: tabular-nums;
}
.px__c{ font-family: var(--font-mono); font-size: 16px; font-weight: 500; color: var(--p-text-2); }
/* ce qui vient de changer le prix : une pastille qui apparaît, puis s'efface */
.px__d{
  align-self: center; margin-left: var(--u1); padding: 2px var(--u2); background: var(--p-badge-on); border-radius: var(--p-r-1);
  font-family: var(--font-mono); font-size: 12px; font-weight: 500; line-height: 1.5; color: var(--p-badge-on-text); font-variant-numeric: tabular-nums; white-space: nowrap;
  opacity: 0; transition: opacity .2s ease;
}
.px__d:empty{ display: none; }
.px__d.is-on{ opacity: 1; }
.px__d.is-down{ background: var(--p-ok-bg); color: var(--p-ok-text); }
.px__n.is-bump{ animation: px-bump .2s ease-out both; }
@keyframes px-bump{ from{ opacity: .5; } to{ opacity: 1; } }
.px__sub{ margin: 0; font-size: 13px; line-height: 1.5; color: var(--p-text-2); }
.px__q{ margin: 0; font-size: 13px; line-height: 1.5; color: var(--p-text); }
.px__q[hidden]{ display: none; }
.pbar--mini{ height: 6px; margin: 0; border-radius: 999px; }
.pbar--mini:empty{ background: var(--p-line); }

/* le détail : un bouton secondaire, pleine largeur, qui replie ou déplie la liste */
.px__detail{ justify-content: space-between; width: 100%; margin: 0; }
.px__detail-label{ padding: 0; border: 0; }
.px__detail-count{ margin-left: auto; font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; color: var(--p-text-2); font-variant-numeric: tabular-nums; }
.px__detail::after{
  content: ""; flex: none; width: 6px; height: 6px; margin-left: var(--u1);
  border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); transition: transform var(--p-t);
}
.px__detail[aria-expanded="true"]::after{ transform: translateY(1px) rotate(-135deg); }

/* le détail est une liste intégrée à la carte ; replié, seul le total reste */
.px__panel,
.px__panel[hidden]{ display: block; position: static; width: auto; max-height: none; margin: 0; padding: 0; background: none; border: 0; border-radius: 0; overflow: visible; }
.px.is-collapsed .px__panel{ display: none; }
.px__panel .pbar, .px__panel .pbar__legend{ display: none; }   /* la barre de répartition est déjà sous le total */
.pg{ margin-top: var(--u4); padding: 0; border: 0; }
.px__panel .pg:first-child{ margin-top: 0; }
.pg__h{ display: flex; align-items: baseline; justify-content: space-between; gap: var(--u3); padding-bottom: var(--u1); }
.pg__t{ display: inline-flex; align-items: center; gap: var(--u2); font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--p-text); }
.pg__t::before{ content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--gc); }
.pg__s{ font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--p-text); font-variant-numeric: tabular-nums; }
.pl{
  position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: var(--u1) var(--u3);
  padding: var(--u2) 0; border-top: 1px solid var(--p-line-2); font-size: 13px; line-height: 1.4; color: var(--p-text);
}
.pl__t small{ display: block; margin-top: 2px; font-size: 12px; letter-spacing: 0; color: var(--p-text-2); }
.pl__p{ font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--p-text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pl--tag .pl__t{ color: var(--p-text-2); }
.pl__tag, .pl__decl{
  display: inline-block; padding: 0 var(--u2); background: var(--p-surface-3); border-radius: var(--p-r-1);
  font-family: var(--font-text); font-size: 12px; font-style: normal; font-weight: 500; line-height: 1.6; letter-spacing: 0; text-transform: none; color: var(--p-text); white-space: nowrap;
}
.pl__decl{ margin-left: var(--u1); background: var(--p-info-bg); color: var(--p-info-text); vertical-align: 1px; }
.pl--new::before{ content: ""; position: absolute; inset: 0 calc(var(--u2) * -1); z-index: -1; border-radius: var(--p-r-1); background: var(--p-warn-bg); animation: pl-new 2s ease both; }
@keyframes pl-new{ 0%{ opacity: 0; } 12%{ opacity: 1; } 70%{ opacity: 1; } 100%{ opacity: 0; } }
.ptot{
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--u3);
  margin-top: var(--u4); padding-top: var(--u3); border-top: 1px solid var(--p-line);
  font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--p-text);
}
.ptot b{ font-family: var(--font-mono); font-size: 18px; font-weight: 700; letter-spacing: -.01em; color: var(--p-text); font-variant-numeric: tabular-nums; }
.ptot span:last-child{ font-size: 14px; color: var(--p-text-2); }
.px__panel .ptot{ display: none; }   /* le total est déjà en haut de la carte */
.px__vide{ margin: 0; font-size: 13px; line-height: 1.5; color: var(--p-text-2); }
/* estimation vide : une carte calme, le message seul */
.px.is-vide{ gap: var(--u2); }
.px.is-vide .px__q, .px.is-vide .px__sub, .px.is-vide .px__amount, .px.is-vide .px__detail, .px.is-vide .pbar--mini{ display: none; }
.px.is-vide .px__panel{ display: block; }

/* répartition du budget par famille de postes */
.pbar{ display: flex; gap: 2px; height: 8px; border-radius: 999px; overflow: hidden; margin: 2px 0 var(--u3); }
.pbar__s{ flex: 1 1 0; min-width: 6px; background: var(--gc); border-radius: 2px; transition: flex-grow .3s ease; }
.pbar__legend{ display: flex; flex-wrap: wrap; gap: var(--u1) var(--u4); margin-bottom: var(--u1); font-size: 12px; color: var(--p-text-2); }
.pbar__legend span{ display: inline-flex; align-items: center; gap: 6px; }
.pbar__legend i{ width: 8px; height: 8px; border-radius: 50%; background: var(--gc); }
.pbar__legend b{ font-weight: 600; color: var(--p-text); }

/* premier affichage du prix : le panneau apparaît, la barre se déroule (opacité et transformation seulement) */
@keyframes cfg-bar{ from{ transform: scaleX(0); } to{ transform: scaleX(1); } }
.px.is-entree .px__tot{ animation: p-in .2s ease-out both; }
.px.is-entree #pxLines > *{ animation: p-in .2s ease-out both; }
.px.is-entree #pxLines > .pbar{ transform-origin: left center; animation: cfg-bar .5s ease-out .05s both; }

/* bureau, étape 01 : la carte est collante à côté des questions */
@media (min-width: 1000px){
  .cfg__preview > .px{ position: relative; }
  .cfg__preview > .px .px__panel{ max-height: none; }
  /* bureau, étapes suivantes : la carte se range sous les boutons Retour / Suivant */
  .cfg__steps > .px{ margin-top: var(--u6); }
}

/* tablette et téléphone : bandeau compact collé en bas (rangé dans #cfgDock par js) */
.cfg-dock{ display: contents; }
.cfg-dock .px{ order: -1; }
@media (max-width: 999px){
  .pbar--mini{ display: none; }
  .cfg-dock{
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    display: flex; flex-direction: column; align-items: center; gap: var(--u2);
    padding: var(--u3) var(--cfg-gut) calc(var(--u3) + env(safe-area-inset-bottom, 0px));
    background: var(--p-surface); border-top: 1px solid var(--p-line);
  }
  .cfg-dock > .cfg-move, .cfg-dock > .px{ width: 100%; max-width: 868px; box-sizing: border-box; }
  .cfg-dock .cfg-move{ margin: 0; padding-top: 0; border-top: 0; flex-wrap: nowrap; gap: var(--u2); }
  .cfg-dock .cfg-move__b{ flex: none; }
  .cfg-dock .cfg-move__b--next{ flex: 1 1 auto; white-space: normal; line-height: 1.2; }
  .cfg-dock .px{ flex-direction: row; align-items: center; gap: var(--u3); padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; }
  .cfg-dock .px.is-vide, .cfg-dock .px[hidden]{ display: none; }
  .cfg-dock .px__tot{ flex-direction: row; align-items: baseline; flex-wrap: nowrap; gap: var(--u3); margin: 0 auto 0 0; min-width: 0; }
  .cfg-dock .px__label{ flex: none; width: auto; font-size: 13px; color: var(--p-text-2); font-weight: 500; }
  .cfg-dock .px__n{ font-size: clamp(22px, 6.4vw, 26px); }
  .cfg-dock .px__c{ font-size: 15px; }
  .cfg-dock .px__sub, .cfg-dock .px__q, .cfg-dock .px__detail-count{ display: none; }
  /* l'écart se pose en pastille au-dessus du bandeau, sans le déformer */
  .cfg-dock .px__amount{ position: static; }
  .cfg-dock .px__d{ position: absolute; right: var(--cfg-gut); bottom: calc(100% + var(--u2)); margin: 0; pointer-events: none; box-shadow: var(--p-sh-pop); }
  .cfg-dock .px__detail{ width: auto; flex: none; padding: 0 var(--u4); }
  /* la feuille du détail s'ouvre au-dessus du bandeau */
  .cfg-dock .px__panel,
  .cfg-dock .px__panel[hidden]{
    position: absolute; left: 0; right: 0; bottom: 100%; width: auto;
    max-height: calc(100svh - var(--header-h) - var(--cfg-dock-h) - 24px);
    padding: var(--u4) max(var(--cfg-gut), calc((100% - 868px) / 2)) var(--u6);
    background: var(--p-surface); border-top: 1px solid var(--p-line); border-radius: var(--p-r-2) var(--p-r-2) 0 0; box-shadow: var(--p-sh-pop);
    overflow-y: auto; overscroll-behavior: contain;
  }
  .cfg-dock .px__panel[hidden]{ display: none; }
  .cfg-dock .px.is-collapsed .px__panel:not([hidden]){ display: block; }
  .cfg-dock .px__panel .ptot{ display: flex; }
  /* refonte et récapitulatif : le bloc suit le contenu */
}
@media (max-width: 560px){
  .cfg-dock .cfg-move__b{ padding: 0 var(--u3); }
}

/* questionnaire refonte : la même mise en page que l'étape 01 */
@media (min-width: 1000px){
  .cfg-refonte{
    grid-template-columns: minmax(0, var(--ui-col)) minmax(300px, var(--ui-aside)); justify-content: center; align-items: start;
    column-gap: clamp(20px, 3vw, 40px); padding-inline: var(--cfg-gut);
  }
  .cfg-refonte .cfg__steps{
    max-width: none; margin: calc(var(--header-h) + clamp(24px, 5vh, 56px)) 0 clamp(32px, 6vh, 72px); padding: var(--u8); align-self: start;
    background: var(--p-surface); border: 1px solid var(--p-line); border-radius: var(--p-r-2); box-shadow: var(--p-sh-card);
  }
  .cfg-refonte .cfg__preview{
    display: block; position: sticky; top: calc(var(--header-h) + var(--u6)); height: auto; padding: 0;
    margin-top: calc(var(--header-h) + clamp(24px, 5vh, 56px));
    max-height: calc(100svh - var(--header-h) - var(--u8)); overflow-y: auto;
  }
}
@media (max-width: 999px){
  .cfg-refonte .cfg__steps{ margin: calc(var(--header-h) + var(--u4)) auto var(--u4); width: calc(100% - 2 * var(--cfg-gut)); padding: var(--u5) var(--u4); background: var(--p-surface); border: 1px solid var(--p-line); border-radius: var(--p-r-2); box-shadow: var(--p-sh-card); }
  .cfg-refonte{ padding-bottom: 96px; }
  /* sa barre Retour / Suivant se colle comme celle de la composition */
  .cfg-refonte #rfMove{
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; margin: 0; flex-wrap: nowrap; gap: var(--u2);
    padding: var(--u3) var(--cfg-gut) calc(var(--u3) + env(safe-area-inset-bottom, 0px)); background: var(--p-surface); border-top: 1px solid var(--p-line);
  }
  .cfg-refonte #rfMove .cfg-move__b{ flex: none; }
  .cfg-refonte #rfMove .cfg-move__b--next{ flex: 1 1 auto; }
}
.cfg-refonte #rfPx .px__tot{ flex-direction: row; justify-content: space-between; align-items: baseline; }

/* Fondu d'arrivée de l'aperçu du site (étape 02) */
.cfg__preview.is-reveal .screen{ animation: p-in .2s ease-out both; }

/* ---------------------------------------------------------
   9. Récapitulatif (devis, ligne par ligne)
   --------------------------------------------------------- */
.cfg-recap{
  min-height: 100svh; box-sizing: border-box; background: var(--p-fond);
  padding: calc(var(--header-h) + clamp(24px, 5vh, 56px)) max(var(--cfg-gut), calc((100% - 760px) / 2)) clamp(40px, 8vh, 96px);
  display: flex; flex-direction: column; gap: var(--u4);
}
.cfg-recap .cfg-intro__lab{ font-family: var(--font-text); font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--p-text-2); }
.cfg-recap__t{
  margin: 0; font-family: var(--font-text); font-variation-settings: normal; font-weight: 700;
  font-size: clamp(20px, 2.4vw, 24px); line-height: 1.25; letter-spacing: -.01em; text-transform: none; color: var(--p-title);
}
.cfg-recap__lines{ max-width: none; padding: var(--u5) var(--u6); background: var(--p-surface); border: 1px solid var(--p-line); border-radius: var(--p-r-2); box-shadow: var(--p-sh-card); }
.cfg-recap__lines .pl{ font-size: 14px; }
.cfg-recap__lines .pbar{ height: 10px; }
.cfg-recap__lines .ptot{ display: flex; }
.cfg-note{ max-width: none; font-size: 13px; line-height: 1.55; }
.cfg-note b{ font-weight: 600; color: var(--p-info-text); }
.cfg-acts{ display: flex; gap: var(--u2); flex-wrap: wrap; justify-content: flex-end; margin-top: var(--u1); }
@media (max-width: 640px){
  .cfg-acts{ flex-direction: column-reverse; align-items: stretch; }
  .cfg-recap__lines{ padding: var(--u4); }
}

/* ---------------------------------------------------------
   10. Plein écran de l'aperçu
   --------------------------------------------------------- */
.cfg__preview:fullscreen,
.cfg__preview:-webkit-full-screen{ background: var(--p-bg); padding: var(--u4) clamp(16px, 3vw, 40px); height: 100svh; }
/* repli si l'API Fullscreen est refusée par le navigateur : même rendu en CSS pur (js/configurateur.js) */
.cfg__preview.is-pseudo-full{ position: fixed; inset: 0; z-index: 400; margin: 0; height: 100svh; width: 100vw; background: var(--p-bg); padding: var(--u4) clamp(16px, 3vw, 40px); }
/* plein écran : tout l'écran, banderole AXIS comprise — spécificité volontairement au-dessus des règles de mise en page du volet */
body .cfg-work .cfg__preview.is-pseudo-full,
body .cfg-work.has-preview .cfg__preview.is-pseudo-full{
  position: fixed; inset: 0; top: 0; left: 0; right: 0; bottom: 0; z-index: 400;
  width: 100vw; height: 100svh; max-height: none; margin: 0; padding: var(--u3) clamp(10px, 1.6vw, 24px);
  box-sizing: border-box; border-radius: 0;
}
body .cfg-work .cfg__preview.is-pseudo-full .screen,
body .cfg-work.has-preview .cfg__preview.is-pseudo-full .screen{ flex: 1 1 auto; align-self: stretch; width: 100%; max-width: none; height: auto; min-height: 0; border-radius: var(--p-r-2); }
body.is-pseudo-full-lock{ overflow: hidden; }
.cfg__preview.is-pseudo-full .prev__c,
.cfg__preview.is-pseudo-full .prev__sum,
.cfg__preview.is-pseudo-full .px{ display: none; }
.cfg__preview.is-pseudo-full .bw__tab{ max-width: 96px; }
@media (max-width: 560px){
  .cfg__preview.is-pseudo-full .bw__tab{ display: none; }   /* l'adresse juste dessous nomme déjà le site : la ligne revient aux deux boutons */
  .cfg__preview.is-pseudo-full .bw__acts .prev__full{ margin-left: 0; }
}

/* ---------------------------------------------------------
   11. La fenêtre d'aperçu (étapes 02 et suivantes)
   --------------------------------------------------------- */
.prev__l, .prev__m{ display: none; }
.prev__c{ flex: none; margin: 0; font-size: 13px; line-height: 1.5; color: var(--p-text-2); }
.prev__sum{ margin: 0; font-size: 13px; letter-spacing: 0; text-transform: none; color: var(--p-text-2); }
.prev__sum b{ color: var(--p-text); font-weight: 600; }
.cfg__preview .prev__c{ border-left: 0; padding-left: 0; }
.cfg__preview .prev__sum{ border-top: 0; padding-top: 0; }
@media (min-width: 1000px){
  .cfg-work.has-preview .screen{
    flex: 1 1 auto; min-height: 420px; height: auto; max-height: 880px; width: min(100%, 1180px); align-self: center;
    border-radius: var(--p-r-2);
  }
  .cfg-work.has-preview .prev__c{ width: min(100%, 1180px); align-self: center; text-align: center; box-sizing: border-box; }
  .cfg-work.has-preview .prev__sum{ display: none; }   /* le même décompte figure déjà sous le total */
  .cfg__preview.is-pseudo-full .screen{ flex: 1; width: 100%; height: auto; border-radius: var(--p-r-2); }
}
@media (max-width: 999px){
  .prev__c{ display: none; }
  /* l'aperçu : toute la fenêtre simulée tient entre la banderole et la barre du bas */
  .cfg-work.has-preview .cfg__preview:not(.is-pseudo-full):not(:fullscreen){
    position: relative; top: auto; height: auto; padding: var(--u3) var(--cfg-gut) var(--u2);
  }
  .cfg-work.has-preview .cfg__preview:not(.is-pseudo-full):not(:fullscreen) .screen{
    flex: none; height: max(520px, calc(100svh - var(--header-h) - var(--cfg-dock-h) - 40px));
  }
  .cfg__preview .prev__sum{ padding-bottom: 2px; }
  .cfg__preview .bw__tabs{ padding-top: var(--u1); }
  .cfg__preview .bw__tab{ min-height: var(--ui-tap); max-width: 150px; box-sizing: border-box; }
  .cfg-work .cfg__preview #screen.screen .pe-dev{ margin: 0 0 6px; width: 100%; box-sizing: border-box; }
  .cfg__preview .pe-dv{ flex: 1 1 0; min-height: var(--ui-tap); padding: 0 6px; }
}

/* ---------------------------------------------------------
   12. Mouvement réduit : plus aucune animation, les couleurs changent d'un coup
   --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce){
  .step.is-new, .decl.is-new, .decl.is-new .seg > button, .cfg-out, .px.is-entree .px__tot, .px.is-entree #pxLines > *, .px.is-entree #pxLines > .pbar,
  .px__n.is-bump, .pl--new::before, .cfg__preview.is-reveal .screen, .need-zoom,
  .type-ex__logo, .type-ex__wm{ animation: none; }
  .type-ex__rays{ display: none; }
  .cfg-move__b, .prev__full, .px__detail, .px__detail::after, .pe-b, .pe-slot__b, .opt, .opt__box, .opt__box::after, .px__d, .pbar__s,
  .step .seg:not(#seg-depart) > button, .rf-card, .seg--types .seg__grid > button, .rf-opts--multi .rf-card::before, .rf-opts--multi .rf-card::after,
  .cfg-prog__bar button, .cfg-prog__bar button::after, .ftab .seg button, .ftab__t, .rf-input{ transition: none; }
}

/* ---------------------------------------------------------
   Étape 01 sur ordinateur : le bloc de questions prend plus de place
   (colonne plus large, texte et cartes de réponse plus grands) — l'étape 02 et suivantes ne changent pas
   --------------------------------------------------------- */
@media (min-width: 1000px){
  .cfg-work:not(.has-preview){ --ui-col: 880px; --ui-aside: 380px; }
  .cfg-work:not(.has-preview) .cfg__steps{ padding: clamp(32px, 4.4vw, 64px); }
  .cfg-work:not(.has-preview) .cfg-prog{ margin-bottom: var(--u8); }
  .cfg-work:not(.has-preview) .cfg-prog__t{ font-size: 15px; }
  .cfg-work:not(.has-preview) .cfg-prog__l{ font-size: 14px; }
  .cfg-work:not(.has-preview) .step__d{ font-size: 16px; }
  .cfg-work:not(.has-preview) .decl--solo{ margin-top: var(--u6); }
  .cfg-work:not(.has-preview) .decl--solo .decl__q, .cfg-work:not(.has-preview) .step__t{ font-size: clamp(28px, 2.9vw, 38px); margin-bottom: var(--u3); }
  .cfg-work:not(.has-preview) .decl--solo .decl__w{ font-size: 16px; margin-bottom: var(--u6); }
  .cfg-work:not(.has-preview) .seg__kind{ font-size: 15px; }
  .cfg-work:not(.has-preview) .seg__famt{ font-size: 17px; }
  .cfg-work:not(.has-preview) .step .seg:not(#seg-depart){ gap: var(--u3); }
  .cfg-work:not(.has-preview) .step .seg:not(#seg-depart) > button,
  .cfg-work:not(.has-preview) .seg--types .seg__grid > button{ min-height: 88px; padding: var(--u4) var(--u5); gap: var(--u4); font-size: 17px; }
  .cfg-work:not(.has-preview) .seg--types .seg__grid > button{ min-height: 68px; font-size: 15px; }
  .cfg-work:not(.has-preview) .step .seg:not(#seg-depart) > button::before,
  .cfg-work:not(.has-preview) .seg--types .seg__grid > button::before{ width: 20px; height: 20px; }
  .cfg-work:not(.has-preview) .seg--kind .seg__s{ font-size: 14px; margin-top: 6px; }
  .cfg-work:not(.has-preview) .step .seg:not(#seg-depart):not(.seg--types) > button::after{ min-width: 26px; height: 26px; font-size: 12px; }
  .cfg-work:not(.has-preview) .cfg-move{ margin-top: var(--u8); padding-top: var(--u5); }
  .cfg-work:not(.has-preview) .cfg-move__b{ min-height: 48px; padding: 0 var(--u5); font-size: 15px; }
  .cfg-work:not(.has-preview) .cfg-move__kb{ font-size: 13px; }
  /* la question du domaine (quinze réponses) : bloc plus large, familles réparties sur deux colonnes plutôt qu'une longue pile */
  .cfg-work:not(.has-preview).is-wide-q{ --ui-col: 1120px; }
  .cfg-work:not(.has-preview) .step #decl-sport .seg.seg--types:not(#seg-depart){ display: block; column-count: 2; column-gap: var(--u8); }
  .cfg-work:not(.has-preview) #decl-sport .seg__fam{ break-inside: avoid; margin-bottom: var(--u5); }
  .cfg-work:not(.has-preview) #decl-sport .seg--types .seg__grid > button{ min-height: 60px; }
}

/* ---------- rappel : sections conseillées non ajoutées (avant « Suivant » / « Voir mon site terminé ») ---------- */
.cfg-ask{ position: fixed; inset: 0; z-index: 600; display: grid; place-items: center; padding: var(--u4); background: rgba(5, 5, 7, .76); }
.cfg-ask__box{
  width: min(520px, 100%); max-height: calc(100svh - 32px); overflow: auto; box-sizing: border-box;
  display: flex; flex-direction: column; gap: var(--u4); padding: var(--u6);
  background: var(--p-surface); border: 1px solid var(--p-line); border-radius: var(--p-r-2); color: var(--p-text);
}
.cfg-ask__t{ margin: 0; font-family: var(--font-text); font-size: 18px; font-weight: 600; letter-spacing: 0; text-transform: none; line-height: 1.3; color: var(--p-text); }
.cfg-ask__d{ margin: 0; font-size: 15px; line-height: 1.5; color: var(--p-text-2); }
.cfg-ask__l{ display: flex; flex-direction: column; gap: var(--u3); margin: 0; padding: 0; list-style: none; }
.cfg-ask__l li{ display: flex; flex-direction: column; gap: 2px; padding: var(--u3) var(--u4); background: var(--p-surface-2); border: 1px solid var(--p-line-2); border-radius: var(--p-r-1); }
.cfg-ask__l b{ font-size: 14px; font-weight: 600; color: var(--p-text); }
.cfg-ask__l span{ font-size: 14px; line-height: 1.45; color: var(--p-text-2); }
.cfg-ask__a{ display: flex; flex-wrap: wrap; gap: var(--u3); justify-content: flex-end; }
@media (max-width: 480px){ .cfg-ask__a .pe-b{ flex: 1 1 100%; } }

/* ---------------------------------------------------------
   13. Mobile et tablette (barre du bas, moins de 1000 px) : version allégée, aperçu en LECTURE SEULE
   Le client mobile comprend l'offre et voit les prix. Pas d'édition directe (js/configurateur.js : ED.avail() est faux
   sous 1000 px, donc ni barre d'édition, ni tiroirs, ni glisser-déposer, ni visite guidée de l'éditeur) ; l'aperçu est
   repliable (« Voir l'aperçu ») pour que les questions passent en premier. Le choix de l'appareil est masqué.
   --------------------------------------------------------- */
.cfg-pvt, .cfg-mob-note{ display: none; }
@media (max-width: 999px){
  /* l'invitation à tout régler « dans l'aperçu » ne vaut que sur ordinateur : un court message la remplace */
  .step[data-step="2"] > .step__d:not(.cfg-mob-note):not(.step__f){ display: none; }
  .step[data-step="2"] > .cfg-mob-note{ display: block; }
  .cfg-work.has-preview .cfg-pvt{ display: inline-flex; min-height: var(--ui-tap); font-size: 15px; scroll-margin-top: calc(var(--header-h) + var(--u2)); }
  .cfg-work.has-preview{ align-content: start; }      /* les rangées gardent leur hauteur : pas de vide entre les questions et l'aperçu replié */
  .cfg__preview.is-pseudo-full .cfg-pvt{ display: none; }
  .cfg__preview:not(.is-pv-open):not(.is-pseudo-full) .screen{ display: none; }
  .cfg-work.has-preview .cfg__preview:not(.is-pseudo-full):not(:fullscreen):not(.is-pv-open){ padding-bottom: var(--u3); }
  /* aucun réglage d'appareil ni outil d'édition dans la fenêtre simulée (la barre d'édition elle-même n'est pas construite) */
  #screen #pvView, #screen #pvDev, #screen .bw__plus, #screen #pvBar, #screen #pvEdit{ display: none; }
  #screen .bw__addr{ display: none; }      /* barre d'adresse : ses flèches (28 px) ne servent pas en lecture seule ; le nom du site reste dans l'onglet */
}

/* Lisibilité au pouce (téléphone) : le texte courant des questions passe à 16 px, les petits libellés à 14 px ; les cartes de réponse suivent */
@media (max-width: 999px){ .cfg-work .cfg-prog__l{ font-size: 13px; } }
@media (max-width: 640px){
  .cfg-work .step__d, .cfg-work .decl--solo .decl__w, .cfg-work .opt__t{ font-size: 16px; }
  .cfg-work .decl:not(.decl--solo) .decl__w, .cfg-work .opt__s, .cfg-work .ftab__note, .cfg-work .ftab__l, .cfg-work .seg--types .seg__s, .cfg-work .seg--kind .seg__s{ font-size: 15px; }
  .cfg-work .decl:not(.decl--solo) .decl__q{ font-size: 17px; line-height: 1.3; }
  .cfg-work .seg__kind, .cfg-work .seg__famt, .cfg-work .ftab__n, .cfg-work .cfg-prog__t, .cfg-work .cfg-prog__l, .cfg-work .tf-link, .cfg-work .ftab__sep{ font-size: 14px; }
  .cfg-work .seg--types .seg__t{ font-size: 15px; }
}

/* ---------------------------------------------------------
   14. Reprendre plus tard : le lien de reprise (js/configurateur.js, « Reprendre plus tard »)
   Un bouton secondaire discret (jamais lime au repos), une fenêtre de la famille du rappel de sections, une note aria-live.
   Ordinateur : le bouton est sous le détail de l'estimation ; téléphone : sous le message de l'étape 02 et au pied de la feuille du détail.
   --------------------------------------------------------- */
.cfg-resume{ margin: var(--u3) 0 0; }
@media (min-width: 1000px){ .cfg-resume{ display: none; } }
.px__resume{ align-self: flex-start; }
.px.is-vide .px__resume{ display: none; }
.px__sheetfoot{ display: none; }
@media (max-width: 999px){
  .cfg-dock .px__resume{ display: none; }
  .cfg-dock .px__sheetfoot{ display: block; margin-top: var(--u4); padding-top: var(--u3); border-top: 1px solid var(--p-line-2); }
}
.cfg-ask :focus-visible{ outline: 2px solid var(--p-focus); outline-offset: 2px; }
.cfg-res__box{ gap: var(--u3); }
.cfg-res__box:focus{ outline: none; }
.cfg-res__l{ font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--p-text); }
.cfg-res__f{
  width: 100%; box-sizing: border-box; min-height: var(--ui-tap); padding: 0 var(--u3);
  background: var(--p-surface-2); color: var(--p-text); border: 1px solid var(--p-line-input); border-radius: var(--p-r-1);
  font-family: var(--font-mono); font-size: 16px; line-height: 1.2; text-overflow: ellipsis;
}
.cfg-res__ess{
  margin: 0; padding: var(--u3) var(--u4); background: var(--p-info-bg); border: 1px solid var(--p-info-line); border-radius: var(--p-r-1);
  font-size: 14px; line-height: 1.45; color: var(--p-info-text);
}
.cfg-res__ess[hidden]{ display: none; }
.cfg-res__a{ justify-content: flex-start; }
.cfg-res__a .pe-b{ min-height: var(--ui-tap); }
.cfg-res__a .pe-b[hidden]{ display: none; }
.cfg-res__a a.pe-b[aria-disabled="true"]{ --b-fg: var(--p-off); cursor: default; }
.cfg-res__ok{ margin: 0; min-height: 1.5em; font-size: 14px; line-height: 1.5; color: var(--p-ok-text); }
.cfg-rnote{
  position: fixed; left: 50%; top: calc(var(--header-h) + var(--u3)); z-index: 560; box-sizing: border-box;
  max-width: min(520px, calc(100% - 2 * var(--cfg-gut, 16px))); padding: var(--u2) var(--u4);
  background: var(--p-surface); color: var(--p-text); border: 1px solid var(--p-line); border-radius: var(--p-r-1);
  font-family: var(--font-text); font-size: 14px; font-weight: 500; line-height: 1.4; text-align: center;
  opacity: 0; transform: translate(-50%, -8px); pointer-events: none; transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.cfg-rnote.is-on{ opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce){ .cfg-rnote{ transition: none; } }
