/* =====================================================================
   Kuerkod · Page /configurer/ — styles dédiés
   Tokens hérités de ../styles.css (:root). Mobile-first, iOS-safe.
   Monochrome bleu strict : --brand, rampe --ku-blue-*. Or = jamais ici.
   ===================================================================== */

/* iOS-safe : aucun débordement horizontal, aucune 100vw */
html, body { overflow-x: clip; }
html.cfg, body.cfg { max-width: 100%; }
.cfg {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.cfg *, .cfg *::before, .cfg *::after { box-sizing: border-box; }
.cfg :focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: 6px;
}
.cfg img { max-width: 100%; }
/* [hidden] doit toujours l'emporter sur les classes display:flex/grid de la page */
.cfg [hidden] { display: none !important; }
.ku-hex { fill: var(--brand); vertical-align: -1px; }

/* ---------------------------------------------------------------------
   EN-TÊTE — bloc CANON (barre promo + pilule), commun à tout le site.
   Son CSS est scopé sous .kktop dans ../styles.css : rien à redéfinir
   ici. Seul le contrat « hauteur d'un viewport » du hero de l'accueil
   est annulé — ici le plan s'arrête au bas de la barre.

   --cfg-navh : hauteur RÉELLE de la pilule fixe + ses 10 px de décalage,
   publiée sur <html> par le JS de fin de page. Le repli des var() vaut
   80px = pilule pleine hauteur (70px) + décalage : sans JS, le volet
   gauche reste dégagé.
   --------------------------------------------------------------------- */
.cfg-top.kktop { display: block; min-height: 0; height: auto; }

/* ---------------------------------------------------------------------
   LAYOUT principal
   Mobile : une colonne. cfg-side « s'efface » (display:contents) pour que
   scène / décisions / récap se réordonnent librement.
   Ordre mobile : scène → décisions → récap.
   --------------------------------------------------------------------- */
.cfg-main { position: relative; display: flex; flex-direction: column; }
.cfg-side { display: contents; }
.cfg-stage { order: 0; }
.cfg-flow  { order: 1; }
.cfg-recap { order: 2; }

/* ---------------------------------------------------------------------
   VOLET GAUCHE — scène produit
   --------------------------------------------------------------------- */
.cfg-stage {
  background: var(--ku-blue-25);
  border-bottom: 1px solid var(--border);
  padding: clamp(20px, 5vw, 40px) 20px;
}
.cfg-stage__inner {
  position: relative;
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
}
/* Galerie : cadre principal + rangée de vignettes, empilés */
.cfg-gallery {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 2.6vw, 16px);
  width: 100%;
}
/* CADRE PRINCIPAL — hauteur FIXE, indépendante du ratio de la photo.
   Fond studio #F1F5FB (couleur exacte des packshots servis — le WebP lossy arrondit #F2F5FA en YUV) + object-fit:contain :
   le portrait et le comptoir paysage partagent la même boîte, sans saut. */
.cfg-stage__frame {
  position: relative;
  width: 100%;
  height: clamp(300px, 54vw, 400px);
  background: #F1F5FB;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  isolation: isolate;
}
/* Carte et plaque partagent le même cadre à hauteur fixe. */
.cfg-stage__frame.is-plaque { height: clamp(300px, 54vw, 400px); }
/* Images empilées en absolu : chacune remplit EXACTEMENT la boîte du cadre
   (hauteur fixe), object-fit:contain fait le reste — aucun débordement. */
.cfg-stage__img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity .22s var(--curve-decel);
  pointer-events: none;
}
.cfg-stage__img.is-on { opacity: 1; }
/* imgB naît SANS src (il n'en reçoit un qu'au premier crossfade) : sans cette
   règle c'était une <img> vide à pleine taille du cadre dans le DOM. */
.cfg-stage__img:not([src]) { display: none; }
/* PACKSHOT — le fichier porte 15 % de marge morte en haut et en bas : sur un
   panneau où la hauteur est la ressource rare, c'est 15 % de produit perdu.
   Le débordement est VERTICAL SEULEMENT (top/height, jamais la largeur) :
   il rogne 10 % de la hauteur par côté — la marge, jamais le produit — et la
   boîte ne sort pas du cadre latéralement, donc aucune fausse alerte de
   débordement en mesure. max-height:none est obligatoire (piège gravé). */
.cfg-stage__img:not([src*="-comptoir"]) {
  top: -13%; bottom: auto; height: 126%; max-width: none; max-height: none;
}
/* VUE EN SITUATION — c'est une photo de scène, pas un packshot fusionné :
   posée telle quelle sur le studio, elle y faisait un rectangle à bords
   francs (l'entre-deux interdit par la DA). height:auto met la BOÎTE à la
   taille exacte de la photo : le cadre dessiné (filet + radius) l'épouse. */
.cfg-stage__img[src*="-comptoir"] {
  inset: auto 0; top: 50%; height: auto;
  transform: translateY(-50%);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
}
/* Position + taille calculées en JS pour coller à la carte (photo contenue) ;
   left/top/width sont posés dynamiquement, ces valeurs servent d'amorce. */
.cfg-stage__logo {
  position: absolute;
  left: 58%; top: 62%;
  width: 20%; height: auto;
  border-radius: 6px;
  background: #fff;
  padding: 4px;
  box-shadow: var(--el-8);
  z-index: 2;
}
/* Légende, pas pastille : en flux, centrée SOUS la photo (règle DA gravée).
   En absolu, elle était ancrée au cadre pleine largeur et non à la photo :
   elle recouvrait la carte à 320/390 px et flottait seule à 148-170 px du
   produit à 768/820 px. */
.cfg-stage__chip {
  align-self: center;
  display: inline-flex; align-items: center; gap: 9px;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 7px 13px 7px 9px;
  box-shadow: var(--el-8);
  z-index: 3;
}
.cfg-chip__ic { width: 28px; height: 28px; color: var(--brand); }
.cfg-chip__txt { font-size: 13px; font-weight: 700; color: var(--text); }
.cfg-chip__w { opacity: .35; animation: cfgWave 2.6s var(--curve-easyease) infinite; }
.cfg-chip__w1 { animation-delay: 0s; }
.cfg-chip__w2 { animation-delay: .35s; }
.cfg-chip__w3 { animation-delay: .7s; }
@keyframes cfgWave { 0%,100% { opacity: .18; } 40% { opacity: .95; } }

/* VIGNETTES — 3 angles cliquables sous le cadre */
.cfg-thumbs {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.cfg-thumb {
  position: relative;
  flex: 0 0 auto;
  width: 60px; height: 60px;
  padding: 0;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  background: #F1F5FB;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s, transform .15s var(--curve-decel);
}
/* contain + agrandissement, et non cover : un packshot portrait dans un carré
   de 60 px perdait 33 % de sa hauteur en cover (le bas du produit, signature
   comprise). Le zoom ne mange que la marge morte du fichier (10,3 % par côté
   contre 14,7 % disponibles) — rien du produit. La vue en situation, elle,
   est une photo de scène : cover reste son cadrage. */
.cfg-thumb__img { width: 100%; height: 100%; object-fit: contain; display: block; }
.cfg-thumb__img:not([src*="-comptoir"]) {
  position: relative; top: -13%; height: 126%; max-width: none; max-height: none;
}
.cfg-thumb__img[src*="-comptoir"] { object-fit: cover; }
.cfg-thumb:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.cfg-thumb:active { transform: scale(.96); }
.cfg-thumb.is-active {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px var(--brand), var(--el-4);
}

/* SLIDER MOBILE (swipe) — masqué par défaut ; activé ≤820px seulement.
   Scroll-snap horizontal natif, largeurs en %, sans 100vw ; le geste x
   n'emprisonne pas le scroll vertical (touch-action: pan-x). */
.cfg-swipe { display: none; }
.cfg-swipe__track {
  display: flex;
  margin: 0; padding: 0;
  list-style: none;
  height: var(--swipe-h);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  /* pan-x pan-y : le geste horizontal fait défiler le carrousel, le geste
     vertical se propage à la page (jamais piégé) ; seul le zoom est neutralisé */
  touch-action: pan-x pan-y;
  contain: paint;
  scrollbar-width: none;
}
.cfg-swipe__track::-webkit-scrollbar { display: none; }
.cfg-swipe__slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  margin: 0; padding: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex; align-items: center; justify-content: center;
}
.cfg-swipe__img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
}
/* Même recadrage vertical que la scène desktop : la slide est centrée par le
   flex, la surhauteur déborde donc symétriquement et le track la clippe.
   La vue en situation est exclue — son sujet touche les bords du fichier. */
.cfg-swipe__img:not([src*="-comptoir"]) { height: 126%; max-width: none; max-height: none; }

/* ---------------------------------------------------------------------
   VOLET DROIT — flux de décisions
   --------------------------------------------------------------------- */
.cfg-flow { position: relative; }
.cfg-cols {
  max-width: 620px;
  margin: 0 auto;
  padding: clamp(28px, 6vw, 56px) clamp(16px, 5vw, 40px) 12px;
}

/* Intro / titre */
.cfg-intro { margin-bottom: clamp(36px, 7vh, 72px); }
.cfg-eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  margin: 0 0 12px;
  color: var(--brand);
  font-weight: 700; font-size: .78rem;
  letter-spacing: .12em; text-transform: uppercase;
}
.cfg-h1 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 6vw, 46px);
  line-height: 1.02;
  letter-spacing: -.02em;
  color: var(--text);
}
.cfg-lede {
  margin: 0;
  font-size: clamp(15px, 2.4vw, 17px);
  line-height: 1.55;
  color: var(--text-soft);
  max-width: 46ch;
}

/* Bloc de décision — beaucoup d'air */
.cfg-step {
  padding: clamp(28px, 6vh, 56px) 0;
  border-top: 1px solid var(--border);
}
.cfg-step__eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  margin: 0 0 14px;
  color: var(--brand);
  font-weight: 700; font-size: .78rem;
  letter-spacing: .12em; text-transform: uppercase;
}
.cfg-step__title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 3.6vw, 34px);
  line-height: 1.08;
  letter-spacing: -.01em;
  color: var(--text);
}
.cfg-step__help {
  margin: 0 0 24px;
  font-size: 15px; line-height: 1.55;
  color: var(--text-soft);
  max-width: 48ch;
}

/* ---- A · Support (cartes larges) ---- */
.cfg-supports { display: grid; gap: 14px; margin-top: 22px; }
.cfg-support {
  position: relative;
  display: flex; align-items: flex-start; gap: 14px;
  min-height: 88px;
  width: 100%;
  text-align: left;
  padding: 18px 20px 18px 18px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--r-lg);
  cursor: pointer;
  transition: border-color .2s, background .2s, box-shadow .2s, transform .15s var(--curve-decel);
}
.cfg-support:hover { transform: translateY(-2px); box-shadow: var(--el-8); border-color: var(--border-strong); }
.cfg-support:active { transform: scale(.985); }
.cfg-support.is-selected {
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: var(--el-brand-8);
}
.cfg-support__check {
  flex: 0 0 auto;
  width: 26px; height: 26px; margin-top: 2px;
  display: grid; place-items: center;
  border-radius: var(--r-pill);
  border: 2px solid var(--border-strong);
  background: var(--surface);
  transition: border-color .2s, background .2s;
}
.cfg-support__check svg { width: 15px; height: 15px; fill: none; stroke: var(--on-brand); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity .15s; }
.cfg-support.is-selected .cfg-support__check { border-color: var(--brand); background: var(--brand); }
.cfg-support.is-selected .cfg-support__check svg { opacity: 1; }
.cfg-support__body { flex: 1 1 auto; min-width: 0; }
.cfg-support__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 5px; }
.cfg-support__name { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -.01em; color: var(--text); }
.cfg-support__price { font-weight: 800; font-size: 17px; color: var(--brand); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cfg-support__desc { font-size: 14px; line-height: 1.45; color: var(--text-soft); }

/* ---- B · Réseau (puces larges) ---- */
.cfg-nets { display: flex; flex-wrap: wrap; gap: 10px; }
.cfg-net {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 56px;
  padding: 0 18px 0 14px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--r-pill);
  font-weight: 700; font-size: 15px; color: var(--text);
  cursor: pointer;
  transition: border-color .2s, background .2s, box-shadow .2s, transform .15s var(--curve-decel);
}
.cfg-net:hover { transform: translateY(-2px); box-shadow: var(--el-8); border-color: var(--border-strong); }
.cfg-net:active { transform: scale(.97); }
.cfg-net.is-selected { border-color: var(--brand); background: var(--brand-soft); box-shadow: var(--el-brand-8); }
.cfg-net__ic { width: 26px; height: 26px; display: grid; place-items: center; color: var(--text-soft); }
.cfg-net__ic svg { width: 100%; height: 100%; }
.cfg-net.is-selected .cfg-net__ic { color: var(--brand); }

/* ---------------------------------------------------------------------
   C · Quantité — le climax
   --------------------------------------------------------------------- */
.cfg-qty { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.cfg-stepper {
  display: inline-flex; align-items: stretch;
  border: 2px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--surface);
  overflow: hidden;
}
.cfg-stepper__btn {
  width: 56px; min-height: 56px;
  font-size: 26px; font-weight: 500; color: var(--brand);
  background: none; border: 0; cursor: pointer; line-height: 1;
  transition: background .15s;
}
.cfg-stepper__btn:hover:not(:disabled) { background: var(--brand-soft); }
.cfg-stepper__btn:active:not(:disabled) { background: var(--ku-blue-100); }
.cfg-stepper__btn:disabled { color: var(--ku-ink-300); cursor: not-allowed; }
.cfg-stepper__val {
  width: 78px; min-height: 56px;
  border: 0; border-left: 1px solid var(--border); border-right: 1px solid var(--border);
  text-align: center;
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700; color: var(--text);
  font-variant-numeric: tabular-nums;
  background: var(--surface);
  -moz-appearance: textfield;
}
.cfg-stepper__val::-webkit-outer-spin-button,
.cfg-stepper__val::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
/* Anneau de focus interne : le contour standard serait rogné par overflow:hidden du stepper */
.cfg-stepper__val:focus-visible { outline: none; box-shadow: inset 0 0 0 2.5px var(--focus-ring); }
.cfg-qty__unit { font-size: 15px; font-weight: 600; color: var(--text-soft); }

/* Slider exploratoire — un CONTRÔLE (rail neutre + gros pouce), distinct
   de la jauge de remise (readout bleu à ticks). Zone tactile ≥44px. */
.cfg-slider { margin-bottom: 30px; }
.cfg-slider__lab {
  display: block; margin-bottom: 6px;
  font-size: 13px; font-weight: 700; color: var(--text-soft);
}
.cfg-slider input[type=range] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 44px;
  background: transparent;
  cursor: pointer;
  margin: 0;
}
.cfg-slider input[type=range]::-webkit-slider-runnable-track {
  height: 6px; border-radius: var(--r-pill);
  background: var(--ku-blue-100);
}
.cfg-slider input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 30px; height: 30px; border-radius: var(--r-pill);
  background: var(--surface); border: 3px solid var(--brand);
  box-shadow: var(--el-8); cursor: grab;
  margin-top: -12px;
}
.cfg-slider input[type=range]::-webkit-slider-thumb:active { cursor: grabbing; }
.cfg-slider input[type=range]::-moz-range-track { height: 6px; border-radius: var(--r-pill); background: var(--ku-blue-100); }
.cfg-slider input[type=range]::-moz-range-progress { background: var(--ku-blue-100); height: 6px; border-radius: var(--r-pill); }
.cfg-slider input[type=range]::-moz-range-thumb {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--surface); border: 3px solid var(--brand);
  box-shadow: var(--el-8); cursor: grab;
}
.cfg-slider__scale {
  display: flex; justify-content: space-between;
  margin-top: 2px;
  font-size: 12px; font-weight: 600; color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* JAUGE SIGNATURE */
.cfg-gauge {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 22px 22px 20px;
  box-shadow: var(--el-4);
  margin-bottom: 30px;
}
.cfg-gauge__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 26px; }
.cfg-gauge__title { font-weight: 700; font-size: 15px; color: var(--text); }
.cfg-gauge__pct {
  font-family: var(--font-display);
  font-weight: 800; font-size: 24px; color: var(--brand);
  font-variant-numeric: tabular-nums; letter-spacing: -.01em;
}
.cfg-gauge__track {
  position: relative;
  height: 12px;
  border-radius: var(--r-pill);
  background: var(--ku-blue-100);
  margin-bottom: 34px;
}
.cfg-gauge__fill {
  height: 100%;
  width: 0%;
  border-radius: var(--r-pill);
  background: var(--brand);
  box-shadow: var(--el-brand-8);
  transition: width .3s var(--curve-decel);
}
.cfg-gauge__tick {
  position: absolute; top: 50%;
  transform: translate(-50%, -50%);
  width: 16px; height: 16px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 3px solid var(--ku-blue-200);
  transition: border-color .25s, background .25s;
}
.cfg-gauge__tick i, .cfg-gauge__tick b {
  position: absolute; left: 50%; transform: translateX(-50%);
  white-space: nowrap; font-style: normal;
}
.cfg-gauge__tick b {
  top: calc(100% + 6px);
  font-size: 12px; font-weight: 800; color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.cfg-gauge__tick i {
  bottom: calc(100% + 6px);
  font-size: 11px; font-weight: 700; color: var(--text-muted);
  letter-spacing: .02em;
}
.cfg-gauge__tick[data-tick="21"] { transform: translate(-100%, -50%); }
.cfg-gauge__tick[data-tick="21"] i,
.cfg-gauge__tick[data-tick="21"] b { left: auto; right: 0; transform: none; }
.cfg-gauge__tick.is-reached { border-color: var(--brand); background: var(--brand); }
.cfg-gauge__tick.is-reached b, .cfg-gauge__tick.is-reached i { color: var(--brand); }
.cfg-gauge__tick.is-pulse { animation: cfgPulse .22s var(--curve-decel); }
@keyframes cfgPulse { 50% { transform: translate(-50%, -50%) scale(1.35); } }
.cfg-gauge__tick[data-tick="21"].is-pulse { animation: cfgPulse21 .22s var(--curve-decel); }
@keyframes cfgPulse21 { 50% { transform: translate(-100%, -50%) scale(1.35); } }
.cfg-gauge__status {
  margin: 0; min-height: 20px;
  font-size: 14px; font-weight: 600; color: var(--brand);
}

/* Passerelle gros volume (≥ 50 supports) — la dégressivité plafonne, le devis
   réseau prend la suite. */
.cfg-bulk {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 22px; padding: 14px 16px;
  border: 1px solid var(--brand); border-radius: var(--r-lg);
  background: var(--brand-soft);
  text-decoration: none; color: inherit;
  transition: background .2s, transform .15s var(--curve-decel);
}
.cfg-bulk[hidden] { display: none; }
.cfg-bulk:hover { background: color-mix(in srgb, var(--brand) 14%, transparent); transform: translateY(-1px); }
.cfg-bulk__txt { flex: 1 1 auto; min-width: 0; }
.cfg-bulk__t { display: block; font-size: 15px; font-weight: 800; color: var(--brand); }
.cfg-bulk__s { display: block; margin-top: 2px; font-size: 13.5px; line-height: 1.4; color: var(--text-soft); }
.cfg-bulk__arr { flex: 0 0 auto; font-size: 18px; font-weight: 700; color: var(--brand); }

/* Option logo */
.cfg-logo { border-top: 1px solid var(--border); padding-top: 24px; }
/* Le padding vertical du label porte la zone tactile à ≥ 44px autour d'une
   case de 26px. */
.cfg-logo__head { display: flex; align-items: flex-start; gap: 13px; padding: 9px 0; cursor: pointer; }
.cfg-check { position: relative; flex: 0 0 auto; margin-top: 1px; }
/* z-index : l'input reste au-dessus de sa case peinte, il encaisse le tap
   directement au lieu de dépendre du relais par le label. */
.cfg-check input { position: absolute; z-index: 1; opacity: 0; width: 26px; height: 26px; margin: 0; cursor: pointer; }
.cfg-check__box {
  display: grid; place-items: center;
  width: 26px; height: 26px;
  border-radius: var(--r-sm);
  border: 2px solid var(--border-strong);
  background: var(--surface);
  transition: border-color .2s, background .2s;
}
.cfg-check__box svg { width: 15px; height: 15px; fill: none; stroke: var(--on-brand); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity .15s; }
.cfg-check input:checked + .cfg-check__box { border-color: var(--brand); background: var(--brand); }
.cfg-check input:checked + .cfg-check__box svg { opacity: 1; }
.cfg-check input:focus-visible + .cfg-check__box { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.cfg-logo__text { flex: 1 1 auto; }
.cfg-logo__title { display: block; font-weight: 700; font-size: 16px; color: var(--text); }
.cfg-logo__desc { display: block; font-size: 14px; color: var(--text-soft); margin-top: 2px; }
.cfg-logo__price { flex: 0 0 auto; font-weight: 800; font-size: 15px; color: var(--brand); font-variant-numeric: tabular-nums; }

.cfg-drop { margin-top: 16px; }
.cfg-drop__zone {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 24px 18px;
  border: 2px dashed var(--border-strong);
  border-radius: var(--r-lg);
  background: var(--surface-sunken);
  text-align: center; cursor: pointer;
  transition: border-color .2s, background .2s;
}
.cfg-drop__zone:hover { border-color: var(--brand); background: var(--brand-soft); }
/* L'input fichier est visuellement masqué : c'est la zone qui doit montrer le
   focus quand on y renvoie l'utilisateur après un ajout refusé. */
.cfg-drop__zone:focus-within { border-color: var(--brand); background: var(--brand-soft); outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.cfg-drop__zone input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.cfg-drop__ic { width: 26px; height: 26px; color: var(--brand); }
.cfg-drop__title { font-size: 14px; font-weight: 600; color: var(--text); }
.cfg-drop__title em { color: var(--brand); font-style: normal; text-decoration: underline; }
.cfg-drop__info { font-size: 12px; color: var(--text-muted); }
.cfg-drop__file { margin: 10px 0 0; font-size: 13px; font-weight: 600; color: var(--brand); }

/* ---------------------------------------------------------------------
   RÉCAP PRIX VIVANT
   --------------------------------------------------------------------- */
.cfg-recap {
  box-sizing: border-box;
  width: calc(100% - clamp(32px, 10vw, 80px));
  max-width: 588px;
  margin: 4px auto clamp(8px, 3vw, 24px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  box-shadow: var(--el-16);
  padding: 24px clamp(18px, 3vw, 26px) 22px;
}
.cfg-recap__hero { margin-bottom: 18px; }
.cfg-recap__pu { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.cfg-recap__pu-val {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 7vw, 68px);
  line-height: .95;
  letter-spacing: -.02em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  transition: color .25s;
}
.cfg-recap__pu-val.is-pulse { animation: cfgCount .28s var(--curve-decel); }
@keyframes cfgCount { 0% { transform: translateY(6px); opacity: .35; } 100% { transform: none; opacity: 1; } }
.cfg-recap__pu-lab { font-size: 14px; font-weight: 600; color: var(--text-muted); }
.cfg-recap__pu-lab b { color: var(--brand); font-weight: 800; }
.cfg-recap__save {
  margin: 10px 0 0;
  font-size: 15px; font-weight: 600; color: var(--text-soft);
}
.cfg-recap__save b {
  display: inline-block;
  color: var(--brand); font-weight: 800;
  font-variant-numeric: tabular-nums;
  transform: scale(var(--save-scale, 1));
  transform-origin: left center;
  transition: transform .25s var(--curve-decel);
}
.cfg-recap__lines { margin: 0 0 12px; display: grid; gap: 9px; }
.cfg-recap__row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.cfg-recap__row dt { margin: 0; font-size: 14px; color: var(--text-soft); }
.cfg-recap__row dd { margin: 0; font-size: 14px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.cfg-recap__row--total { padding-top: 11px; border-top: 1px solid var(--border); }
.cfg-recap__row--total dt { font-size: 16px; font-weight: 700; color: var(--text); }
.cfg-recap__row--total dd { font-size: 20px; font-weight: 800; color: var(--brand); }
.cfg-recap__was { margin-right: 8px; color: var(--text-muted); font-weight: 600; text-decoration: line-through; text-decoration-thickness: 1.5px; }
.cfg-recap__ht { margin: 0 0 16px; font-size: 12.5px; color: var(--text-muted); }

.cfg-cta {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 54px;
  background: var(--brand); color: var(--on-brand);
  font-family: var(--font-body); font-size: 17px; font-weight: 800;
  border: 0; border-radius: var(--r-pill);
  cursor: pointer;
  box-shadow: var(--el-brand-16);
  transition: background .2s, transform .15s var(--curve-decel), box-shadow .2s;
}
.cfg-cta svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.cfg-cta:hover { background: var(--brand-hover); transform: translateY(-2px); }
.cfg-cta:active { transform: scale(.98); }
.cfg-recap__err { margin: 12px 0 0; font-size: 13px; font-weight: 600; color: var(--brand-active); }

/* ---------------------------------------------------------------------
   Réassurance / specs / paiements — coupes nettes
   --------------------------------------------------------------------- */
.cfg-reassure { background: var(--ku-blue-25); border-top: 1px solid var(--border); padding: clamp(36px, 7vw, 64px) 20px; }
.cfg-reassure__grid {
  max-width: 1080px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr; gap: 22px;
}
.cfg-reassure__item { display: grid; gap: 4px; }
.cfg-reassure__ic { width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--r-md); background: var(--brand-soft); color: var(--brand); margin-bottom: 6px; }
.cfg-reassure__ic svg { width: 22px; height: 22px; }
.cfg-reassure__t { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--text); }
.cfg-reassure__s { font-size: 14px; line-height: 1.45; color: var(--text-soft); }

.cfg-specs { background: var(--paper); border-top: 1px solid var(--border); padding: clamp(36px, 7vw, 64px) 20px; }
.cfg-specs__title { max-width: 1080px; margin: 0 auto 22px; font-family: var(--font-display); font-weight: 700; font-size: clamp(20px, 3vw, 26px); letter-spacing: -.01em; color: var(--text); }
.cfg-specs__list { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 0; }
.cfg-specs__list > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.cfg-specs__list dt { margin: 0; font-size: 14px; color: var(--text-muted); }
.cfg-specs__list dd { margin: 0; font-size: 15px; font-weight: 600; color: var(--text); text-align: right; }
.cfg-pay { max-width: 1080px; margin: 24px auto 0; display: flex; flex-wrap: wrap; gap: 10px; color: var(--text-muted); }

/* ---------------------------------------------------------------------
   Barre fixe mobile
   --------------------------------------------------------------------- */
/* Barre d'achat sticky en VERRE, flottante (mêmes tokens verre que le récap
   desktop) : PU · remise · Total TTC · CTA. safe-area comprise. */
.cfg-bar {
  position: fixed;
  left: 10px; right: 10px;
  bottom: calc(10px + env(safe-area-inset-bottom));
  z-index: 45;
  display: flex; align-items: center; gap: 14px;
  padding: 10px 12px 10px 18px;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  -webkit-backdrop-filter: saturate(1.5) blur(16px);
  backdrop-filter: saturate(1.5) blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--el-16);
}
.cfg-bar__txt { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.cfg-bar__pu { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.cfg-bar__disc { font-size: 11px; font-weight: 800; color: var(--brand); background: var(--brand-soft); border-radius: var(--r-pill); padding: 1px 8px; letter-spacing: .01em; }
.cfg-bar__logo { font-size: 11px; font-weight: 800; color: var(--text-soft); white-space: nowrap; }
.cfg-bar__logo[hidden] { display: none; }
.cfg-bar__total { font-size: 14px; color: var(--text-soft); }
.cfg-bar__total b { font-size: 19px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.cfg-bar__cta {
  margin-left: auto;
  min-height: 48px; padding: 0 20px;
  background: var(--brand); color: var(--on-brand);
  font-family: var(--font-body); font-size: 15px; font-weight: 800;
  white-space: nowrap;
  border: 0; border-radius: var(--r-pill); cursor: pointer;
  box-shadow: var(--el-brand-8);
  transition: background .2s, transform .15s;
}
.cfg-bar__cta:active { transform: scale(.97); }

/* Alerte d'ajout refusé — posée au-dessus de la barre d'achat, là où le pouce
   vient d'agir (le message du récap est hors du pli en mobile). */
.cfg-baralert {
  position: fixed;
  left: 10px; right: 10px;
  bottom: calc(78px + env(safe-area-inset-bottom));
  z-index: 46;
  margin: 0; padding: 11px 16px;
  background: var(--surface-dark); color: var(--text-on-dark);
  font-size: 13.5px; font-weight: 600; line-height: 1.35;
  border-radius: var(--r-lg);
  box-shadow: var(--el-28);
  opacity: 0; transform: translateY(8px);
  transition: opacity .25s var(--curve-decel), transform .25s var(--curve-decel);
}
.cfg-baralert[hidden] { display: none; }
.cfg-baralert.is-visible { opacity: 1; transform: none; }
/* Réserve d'espace pour la barre flottante (hauteur + décalage + safe-area).
   Elle est portée par le DERNIER bloc du flux — depuis la vague nav-canon,
   le pied de page. Le footer canonique dégage déjà l'essentiel par son propre
   padding : on ne complète que la safe-area du bas, mesurée en headless
   (dernière ligne du footer à 600px, barre à 764px sur 390×844). */
.kk-foot-sect { padding-bottom: env(safe-area-inset-bottom); }

/* ---------------------------------------------------------------------
   Panier (drawer) + overlay + toast
   Plans repris de commun/panier.css (10000 / 10001 / 10002) : un tiroir
   passe TOUJOURS au-dessus de la pilule de nav canonique (z-index 90, et
   95 une fois fixée). Aux anciennes valeurs (60/61/70), héritées d'un
   en-tête de page en z-index 40, la pilule recouvrait le haut du tiroir —
   son bouton « Fermer » compris.
   --------------------------------------------------------------------- */
.cfg-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(7, 12, 30, .48);
  opacity: 0; transition: opacity .3s var(--curve-decel);
}
.cfg-overlay.is-open { opacity: 1; }
.cfg-cart {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 10001;
  width: min(400px, 92vw);
  display: flex; flex-direction: column;
  background: var(--surface);
  box-shadow: var(--el-64);
  transform: translateX(100%);
  transition: transform .3s var(--curve-decel);
  padding-top: env(safe-area-inset-top);
}
.cfg-cart.is-open { transform: none; }
.cfg-cart__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.cfg-cart__head h2 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -.01em; }
.cfg-cart__close { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r-pill); background: none; border: 0; color: var(--text-soft); cursor: pointer; }
.cfg-cart__close:hover { background: var(--surface-sunken); color: var(--text); }
.cfg-cart__close svg { width: 20px; height: 20px; }
.cfg-cart__items { flex: 1 1 auto; overflow-y: auto; padding: 16px 20px; }
.cfg-cart__empty { color: var(--text-muted); font-size: 15px; text-align: center; margin-top: 40px; }
.cfg-cart__line { display: flex; align-items: flex-start; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.cfg-cart__line-info { flex: 1 1 auto; min-width: 0; }
.cfg-cart__line-info strong { display: block; font-size: 14.5px; font-weight: 700; color: var(--text); }
.cfg-cart__line-info span { display: block; font-size: 13px; color: var(--text-soft); margin-top: 2px; }
.cfg-cart__line-end { display: flex; align-items: center; gap: 8px; }
.cfg-cart__line-tot { font-weight: 800; font-size: 14.5px; color: var(--text); font-variant-numeric: tabular-nums; }
.cfg-cart__line-rm { width: 30px; height: 30px; display: grid; place-items: center; border-radius: var(--r-pill); background: none; border: 0; color: var(--text-muted); cursor: pointer; }
.cfg-cart__line-rm:hover { background: var(--surface-sunken); color: var(--brand-active); }
.cfg-cart__foot { padding: 18px 20px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); }
.cfg-cart__sum { display: flex; justify-content: space-between; font-size: 16px; font-weight: 800; color: var(--text); margin-bottom: 14px; }
.cfg-cart__sum span:last-child { font-variant-numeric: tabular-nums; }
.cfg-cart__cta {
  display: flex; align-items: center; justify-content: center;
  width: 100%; min-height: 50px;
  background: var(--brand); color: var(--on-brand);
  font-family: var(--font-body); font-size: 16px; font-weight: 800;
  text-decoration: none;
  border: 0; border-radius: var(--r-pill); cursor: pointer;
  box-shadow: var(--el-brand-8);
}
.cfg-cart__cta:hover { background: var(--brand-hover); }
/* Pas de href = panier vide : le lien est inerte, il doit le montrer. */
.cfg-cart__cta:not([href]) { background: var(--surface-sunken); color: var(--text-muted); box-shadow: none; cursor: default; }
.cfg-cart__cta:not([href]):hover { background: var(--surface-sunken); }
.cfg-cart__note { margin: 10px 0 0; font-size: 12px; color: var(--text-muted); text-align: center; }

.cfg-toast {
  position: fixed; left: 50%; z-index: 10002;
  bottom: calc(96px + env(safe-area-inset-bottom));
  transform: translate(-50%, 12px);
  background: var(--surface-dark); color: var(--text-on-dark);
  font-size: 14px; font-weight: 600;
  padding: 12px 20px; border-radius: var(--r-pill);
  box-shadow: var(--el-28);
  opacity: 0; pointer-events: none;
  transition: opacity .3s var(--curve-decel), transform .3s var(--curve-decel);
  /* Sans width, un élément fixe posé à left:50% ne dispose que de la moitié
     droite du viewport : sur 390 la phrase s'enroulait en rondelle, le rayon
     pilule la refermant en cercle. Même correctif que .kkp-toast. */
  width: max-content;
  max-width: calc(100% - 32px);
  text-align: center;
}
.cfg-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------------------------------------------------------------------
   Entrée de page — stagger discret
   --------------------------------------------------------------------- */
[data-step-anim] { opacity: 0; transform: translateY(8px); animation: cfgIn .45s var(--curve-decel) forwards; }
.cfg-intro { animation-delay: .04s; }
#step-a { animation-delay: .1s; }
#step-b { animation-delay: .16s; }
#step-c { animation-delay: .22s; }
@keyframes cfgIn { to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------------
   DESKTOP ≥821px — mise en scène « page produit Apple »
   Gauche : panneau immersif, la PHOTO occupe tout, fond studio bord à bord.
   Droite : les 3 décisions condensées + récap prix sticky (PU · total · CTA).
   Le récap a migré dans la colonne droite : toute la hauteur va à la photo.
   --------------------------------------------------------------------- */
@media (min-width: 821px) {
  /* Fond studio continu à gauche (moitié panneau), papier à droite —
     hard-stop, aucun raccord, aucun vide blanc en fin de scroll. */
  .cfg-main {
    display: grid; grid-template-columns: 54% 46%; align-items: start;
    background: linear-gradient(to right, #F1F5FB 0 54%, var(--paper) 54% 100%);
  }
  /* L'en-tête porte la MÊME coupe verticale, filet compris : la ligne de
     partage court du haut de page au bas du panneau, sans raccord
     horizontal sous la barre. */
  .cfg-top.kktop {
    background: linear-gradient(to right,
      #F1F5FB 0 54%,
      var(--border) 54%, var(--border) calc(54% + 1px),
      var(--paper) calc(54% + 1px) 100%);
  }

  /* ---- PANNEAU GAUCHE : la photo EST le panneau ----
     Il se cale sous la pilule FIXE de la nav canonique (--cfg-navh = hauteur
     réelle de la pilule + son décalage), mais sa HAUTEUR se règle sur la
     position de départ, en haut de page, où la barre promo est encore là
     (--cfg-toph = hauteur de l'en-tête en flux) : sinon le bas du panneau —
     les vignettes — sortirait du viewport tant qu'on n'a pas défilé. Une fois
     figé plus haut, le panneau laisse sous lui une bande du même #F1F5FB que
     le plan : invisible. */
  .cfg-side {
    display: flex;
    flex-direction: column;
    position: sticky;
    top: calc(var(--cfg-navh, 80px) + 10px + env(safe-area-inset-top));
    height: calc(100dvh - var(--cfg-toph, 143px) - env(safe-area-inset-top));
    border-right: 1px solid var(--border);
    background: #F1F5FB;
    padding: 0;
  }
  .cfg-stage {
    flex: 1 1 auto;
    min-height: 0;
    display: flex; align-items: stretch; justify-content: center;
    background: none;
    border-bottom: 0; border-right: 0;
    /* marge d'air autour de la photo = fond studio du panneau (pas un cadre) */
    padding: clamp(20px, 3.2vh, 40px) clamp(28px, 4vw, 68px) clamp(14px, 2vh, 26px);
  }
  .cfg-stage__inner { position: relative; min-height: 0; height: 100%; max-width: none; width: 100%; margin: 0; }
  /* La galerie remplit le panneau : le cadre prend la hauteur restante
     (STABLE entre les 3 angles — images en absolu, sans effet sur le flux),
     les vignettes discrètes dessous. */
  .cfg-gallery { height: 100%; width: 100%; justify-content: center; gap: clamp(14px, 1.8vh, 20px); }
  /* Le cadre perd tout chrome de « carte » : ni bordure, ni radius, ni ombre,
     ni fond distinct — il se fond dans le studio du panneau. overflow:hidden
     (et non visible) : c'est lui qui borne le recadrage des packshots. */
  .cfg-stage__frame,
  .cfg-stage__frame.is-plaque {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    height: auto;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
  }
  /* Vignettes : rangée centrée, posées sur le fond studio, petites cartes nettes */
  .cfg-thumbs { flex: 0 0 auto; gap: 12px; }
  .cfg-thumb {
    width: 62px; height: 62px;
    border-color: color-mix(in srgb, var(--border-strong) 65%, transparent);
    background: #fff;
    box-shadow: var(--el-2);
  }
  .cfg-thumb.is-active { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand), var(--el-4); }

  /* ---- COLONNE DROITE : décisions condensées + récap sticky ---- */
  .cfg-flow { position: relative; display: flex; flex-direction: column; }
  /* Le padding-bottom réserve la hauteur de la barre sticky : le dernier texte
     de l'étape C se dégage en fin de scroll au lieu de rester dessous. */
  .cfg-cols {
    max-width: 580px; margin: 0;
    padding: clamp(20px, 3vh, 34px) clamp(30px, 3.4vw, 52px) calc(clamp(16px, 2.4vh, 26px) + 92px) clamp(34px, 3.6vw, 56px);
  }

  /* Intro compacte — titre plus petit, lead resserré */
  .cfg-intro { margin-bottom: clamp(12px, 1.5vh, 18px); }
  .cfg-eyebrow { margin-bottom: 8px; }
  .cfg-h1 { font-size: clamp(26px, 2.3vw, 32px); line-height: 1.05; margin-bottom: 7px; }
  .cfg-lede { font-size: 14.5px; line-height: 1.5; max-width: 54ch; }

  /* Décisions : rythme resserré, titres compacts (eyebrow + 22–26px) */
  .cfg-step { padding: clamp(15px, 2.2vh, 24px) 0; }
  .cfg-step__eyebrow { margin-bottom: 8px; }
  .cfg-step__title { font-size: clamp(22px, 1.9vw, 26px); line-height: 1.1; margin-bottom: 5px; }
  .cfg-step__help { font-size: 13.5px; line-height: 1.5; margin-bottom: 12px; max-width: 52ch; }

  /* A · support — tuiles plus basses */
  .cfg-supports { gap: 11px; margin-top: 14px; }
  .cfg-support { min-height: 72px; padding: 13px 18px 13px 16px; gap: 12px; }
  .cfg-support__check { width: 24px; height: 24px; }

  /* B · réseau — grille compacte 3×2 (≥~1110px) qui retombe proprement en 2
     colonnes plus étroit : auto-fit + minmax évite tout débordement des noms. */
  .cfg-nets { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
  .cfg-net { min-width: 0; min-height: 52px; gap: 9px; padding: 0 14px; font-size: 14px; }
  .cfg-net__ic { flex: 0 0 auto; width: 22px; height: 22px; }
  .cfg-net__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  /* C · quantité — resserré */
  .cfg-qty { margin-bottom: 16px; }
  .cfg-slider { margin-bottom: 18px; }
  .cfg-gauge { padding: 16px 18px 14px; margin-bottom: 18px; }
  .cfg-gauge__head { margin-bottom: 18px; }
  .cfg-gauge__track { margin-bottom: 26px; }
  .cfg-logo { padding-top: 16px; }

  /* ---- RÉCAP PRIX : barre sticky « verre », une seule rangée compacte ----
     Largeur calée sur la BOÎTE DE TEXTE de .cfg-cols (max-width 580px moins ses
     paddings) : sans ça la barre déborde de la colonne de décisions. */
  .cfg-recap {
    position: sticky;
    bottom: clamp(12px, 2vh, 18px);
    z-index: 20;
    align-self: stretch;
    width: auto;
    max-width: calc(580px - clamp(30px, 3.4vw, 52px) - clamp(34px, 3.6vw, 56px));
    margin: 0 auto clamp(12px, 2vh, 18px) clamp(34px, 3.6vw, 56px);
    padding: clamp(9px, 1.2vh, 13px) clamp(12px, 1vw, 16px);
    display: flex; align-items: center; flex-wrap: wrap;
    gap: 5px clamp(8px, .8vw, 12px);
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    -webkit-backdrop-filter: saturate(1.5) blur(16px);
    backdrop-filter: saturate(1.5) blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--el-16);
  }
  .cfg-recap__hero { margin: 0; flex: 0 1 auto; min-width: 0; }
  .cfg-recap__pu { display: block; gap: 0; }
  .cfg-recap__pu-val { display: block; font-size: clamp(20px, 1.7vw, 26px); line-height: 1.02; }
  .cfg-recap__pu-lab { font-size: 11.5px; }
  .cfg-recap__save { margin: 1px 0 0; font-size: 11.5px; }
  /* dl : seule la ligne Total survit, servie inline et proéminente à droite */
  .cfg-recap__lines { margin: 0; flex: 1 1 auto; display: block; }
  .cfg-recap__row { display: none; }
  .cfg-recap__row--total {
    display: flex; align-items: baseline; justify-content: flex-end;
    gap: 7px; padding: 0; border: 0;
  }
  .cfg-recap__row--total dt { font-size: 11.5px; font-weight: 700; color: var(--text-soft); }
  .cfg-recap__row--total dd { font-size: clamp(18px, 1.5vw, 23px); }
  /* HT / TVA : mention conservée, en une ligne sous le total (sur toute la
     largeur, le rang du haut étant déjà plein). */
  .cfg-recap__ht {
    display: block; flex: 1 1 100%;
    margin: 0; order: 1;
    font-size: 10.5px; line-height: 1.2; text-align: right; white-space: nowrap;
  }
  .cfg-recap__ht-more { display: none; }
  .cfg-recap__err { order: 2; }
  .cfg-cta { width: auto; flex: 0 0 auto; min-height: 46px; padding: 0 clamp(12px, 1.1vw, 18px); font-size: 15px; gap: 6px; }
  .cfg-cta svg { width: 19px; height: 19px; }
  .cfg-recap__err { flex: 1 1 100%; margin: 3px 0 0; text-align: right; }

  /* Titre de page géré ci-dessus (compact) — la barre fixe mobile disparaît,
     son alerte aussi : en desktop le message vit dans le récap. */
  .cfg-bar, .cfg-baralert { display: none; }
  .cfg-toast { bottom: 32px; }

  .cfg-reassure__grid { grid-template-columns: repeat(4, 1fr); gap: 30px; }
  .cfg-specs__list { grid-template-columns: 1fr 1fr; column-gap: 48px; }
}

/* Laptops courts (1366×625 & co) : la barre sticky mange le bas de la colonne.
   On la resserre pour rendre des pixels de lecture aux étapes.
   SEUIL PORTÉ DE 700 À 820px — MESURÉ : la bande 701–820px, qui contient les
   deux hauteurs de portable les plus répandues (1366×768, 1280×800), recevait
   le rythme AÉRÉ *et* la barre pleine taille (86–88px). Résultat au premier
   paint : l'aide de l'étape B « Choisissez la page qui s'ouvre au scan… »
   passait intégralement sous la barre à 1366×768 et à 43 % à 1280×800, et le
   titre « Le réseau à mettre en avant » y perdait 19 %.
   Barre ramenée à 76px + rythme resserré : l'aide repasse ENTIÈREMENT au-dessus
   de la barre à 1280×800 et 1440×820, le titre de l'étape B se dégage à 100 %
   à 1366×768. Rien ne change au-dessus de 820px de haut (1440×900 : diff pixel
   nul) — le seuil est la seule chose qui bouge. */
@media (min-width: 821px) and (max-height: 820px) {
  .cfg-recap { padding: 7px clamp(12px, 1.1vw, 18px); gap: 4px 10px; }
  .cfg-recap__pu-val { font-size: 19px; }
  .cfg-recap__pu-lab, .cfg-recap__save { font-size: 10.5px; }
  .cfg-recap__row--total dd { font-size: 19px; }
  .cfg-cta { min-height: 40px; font-size: 14px; }
  .cfg-cols { padding-top: 16px; padding-bottom: calc(16px + 80px); }
  .cfg-intro { margin-bottom: 10px; }
  .cfg-step { padding: 13px 0; }
}

@media (min-width: 620px) and (max-width: 979px) {
  .cfg-reassure__grid { grid-template-columns: 1fr 1fr; }
  .cfg-specs__list { grid-template-columns: 1fr 1fr; column-gap: 48px; }
}

/* ---------------------------------------------------------------------
   MOBILE ≤820px — mise en scène « page produit Apple »
   Photo immersive bord à bord en tête, swipe entre les 3 angles, décisions
   condensées dessous, barre d'achat verre flottante. Le fond studio #F1F5FB
   prolonge les photos ; le cadre crossfade devient une couche d'habillage.
   --------------------------------------------------------------------- */
@media (max-width: 820px) {
  /* --- Panneau studio bord à bord --- */
  /* La scène rend les pixels que l'en-tête canonique (barre promo + pilule,
     ~145px contre 56px pour l'ancien en-tête minimal) prend en haut de page :
     sans ça, la première décision passait sous la barre d'achat. 24svh au lieu
     de 30svh, plancher 168px — le pli mobile reste « décisions ». */
  .cfg-stage {
    --swipe-h: clamp(168px, 24svh, 260px);
    padding: 0;
    background: #F1F5FB;                 /* couleur exacte des packshots : continuité */
    border-bottom: 1px solid var(--border);
  }
  .cfg-stage__inner { max-width: none; width: 100%; margin: 0; }
  .cfg-gallery { position: relative; gap: 0; }

  /* Le slider porte les photos, pleine largeur, hauteur FIXE (identique aux 3 angles) */
  .cfg-swipe { display: block; position: relative; z-index: 1; height: var(--swipe-h); }

  /* Le cadre crossfade → couche d'habillage transparente par-dessus le slide visible
     (puce/logo dans les coins). Ne capte pas le geste : le swipe passe dessous. */
  .cfg-stage__frame,
  .cfg-stage__frame.is-plaque {
    position: absolute; top: 0; left: 0; right: 0;
    width: auto;
    height: var(--swipe-h);
    background: transparent;
    border: 0; border-radius: 0;
    box-shadow: none;
    overflow: visible;
    pointer-events: none;
    z-index: 2;
  }
  .cfg-stage__img { display: none; }     /* imgA/imgB inutiles : slides = photos */

  /* Vignettes = indicateurs synchronisés au swipe, posés sur le fond studio */
  .cfg-thumbs { padding: 8px 20px 2px; }

  /* --- Décisions condensées, rythme calme --- */
  .cfg-cols { padding-top: clamp(18px, 3.4vw, 26px); }
  .cfg-h1 { margin-bottom: 8px; }
  .cfg-lede { font-size: 14.5px; line-height: 1.45; }
  .cfg-intro { margin-bottom: clamp(14px, 2.2vh, 22px); }
  .cfg-step { padding: clamp(18px, 3.2vh, 30px) 0; }

  /* B · réseau — grille 2×3 (au lieu des pastilles en flux) */
  .cfg-nets { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cfg-net { min-width: 0; padding: 0 14px; }
  .cfg-net__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  /* Barre verre resserrée : le CTA « Ajouter au panier » tient sur une ligne
     jusqu'aux petits écrans (≤360px) sans déborder. */
  .cfg-bar { gap: 10px; padding: 10px 10px 10px 16px; }
}
/* ---------------------------------------------------------------------
   TABLETTE PORTRAIT 561-820px — la bande garde la mesure de la colonne
   La mise en scène mobile est bord à bord : à 768 et 820 px de large, un
   packshot portrait borné à 260 px de haut n'occupait plus que 21 % de la
   bande, avec ~300 px de plan vide de chaque côté. Une tablette a la hauteur
   qu'un téléphone n'a pas : la scène reprend donc une hauteur de tablette et
   la galerie retrouve la mesure centrée du reste de la page.
   (Le plancher téléphone — 24svh, « le pli mobile reste décisions » — n'est
   pas touché : il vaut toujours sous 561 px.)
   --------------------------------------------------------------------- */
@media (min-width: 561px) and (max-width: 820px) {
  .cfg-stage { --swipe-h: clamp(300px, 40svh, 430px); }
  .cfg-stage__inner { max-width: 460px; margin-inline: auto; }
}

/* Téléphone : la légende se resserre — sur un écran court, chaque pixel rendu
   à la scène est un pixel rendu aux décisions. */
@media (max-width: 560px) {
  .cfg-stage__chip { padding: 5px 12px 5px 8px; gap: 7px; }
  .cfg-chip__ic { width: 22px; height: 22px; }
  .cfg-chip__txt { font-size: 12.5px; }
}

@media (max-width: 380px) {
  .cfg-bar__cta { padding: 0 16px; font-size: 14px; }
  .cfg-bar__total b { font-size: 18px; }
}

/* ---------------------------------------------------------------------
   Reduced motion
   --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .cfg *, .cfg *::before, .cfg *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-step-anim] { opacity: 1; transform: none; }
  .cfg-chip__w { opacity: .8; }
  .cfg-stage__img { transition: none; }
}

/* Les liens légaux vivaient ici, sous la fiche technique. Ils sont désormais
   portés par le pied de page CANON, en bas de toutes les pages du site. */
