/* =====================================================================
   commande.css — Commande en ligne Infinicy (infinicy.fr/commande/, C1)
   Charte (CLAUDE racine) : violet #634cfa, bleu marine #1d184e, accent #7981ff,
   fond #FFFFFF, surface #F8F8FA, texte #1D184E.
   Toutes les classes sont préfixées « cmd- » : la feuille cohabite avec
   sim-style.css sur editor.html (dont le body n'a pas la classe cmd-page).
   DX-C1-61 : polices du site (Satoshi pour les titres, General Sans pour le
   texte), copiées de infinicy-hugo-tailwindcss-3/static/fonts/ dans fonts/.
   ===================================================================== */

@font-face { font-family: 'Satoshi'; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/Satoshi-Medium.woff2") format("woff2"); }
@font-face { font-family: 'Satoshi'; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/Satoshi-Bold.woff2") format("woff2"); }
@font-face { font-family: 'General Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/GeneralSans-Medium.woff2") format("woff2"); }

:root {
  --cmd-primary: #634cfa;
  --cmd-primary-dark: #4f39e0;
  --cmd-navy: #1d184e;
  --cmd-accent: #7981ff;
  --cmd-bg: #ffffff;
  --cmd-surface: #f8f8fa;
  --cmd-text: #1d184e;
  --cmd-muted: #6b6890;
  --cmd-border: #e4e1f2;
  --cmd-error: #c62828;
  --cmd-ok: #1b8a4c;
  --cmd-radius: 14px;
  --cmd-shadow: 0 10px 30px rgba(29, 24, 78, 0.08);
  --cmd-font-title: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --cmd-font-text: 'General Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --cmd-visual-bg: #f3f1ff;
}

/* -------------------- Base de page -------------------- */

body.cmd-page {
  margin: 0;
  font-family: var(--cmd-font-text);
  background: var(--cmd-surface);
  color: var(--cmd-text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.cmd-page *, .cmd-page *::before, .cmd-page *::after { box-sizing: border-box; }
.cmd-page img { max-width: 100%; }
.cmd-page a { color: var(--cmd-primary); }
.cmd-page h1 { font-family: var(--cmd-font-title); font-weight: 700; font-size: clamp(1.6rem, 4vw, 2.2rem); line-height: 1.2; margin: 0 0 10px; color: var(--cmd-navy); }
.cmd-page h2 { font-family: var(--cmd-font-title); font-weight: 700; font-size: 1.15rem; margin: 0 0 10px; color: var(--cmd-navy); }
.cmd-page [hidden] { display: none !important; }

/* En-tête du parcours (DX-C1-61), commun aux sept pages — dont editor.html et preview.html, sans body.cmd-page : il porte
   donc lui-même sa police, ses marges et son modèle de boîte. Logo sans lien, étapes, « Paiement sécurisé ». */
.cmd-header {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px;
  box-sizing: border-box; margin: 0; padding: 12px 24px;
  background: var(--cmd-navy); color: #fff; font-family: var(--cmd-font-text); font-size: .9rem; line-height: 1.3;
}
.cmd-logo { display: block; width: 130px; height: 28px; max-width: none; }
.cmd-header .cmd-logo { max-width: none; }   /* revue R1 tour 1 : (0,2,0) bat « .cmd-page img » (0,1,1), comme pour le recadrage (DX-C1-66) */
.cmd-steps { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.cmd-step {
  display: flex; align-items: center; gap: 6px; margin: 0; padding: 4px 12px 4px 5px; border-radius: 999px;
  background: rgba(255, 255, 255, .1); color: #d9d5ff; font-size: .82rem; white-space: nowrap;
}
.cmd-step-num {
  display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(255, 255, 255, .16); font-size: .74rem; font-weight: 700;
}
.cmd-step-done { color: #fff; }
.cmd-step-done .cmd-step-num { background: var(--cmd-accent); color: var(--cmd-navy); } /* bleu nuit sur accent : ~5,1:1 (blanc : ~3,1:1) */
.cmd-step[aria-current="step"] { background: var(--cmd-primary); color: #fff; font-weight: 600; }
.cmd-step-mobile { display: none; margin: 0; font-size: .85rem; color: #fff; }
.cmd-step-mobile-num { font-weight: 700; }
.cmd-step-mobile-name { font-weight: 600; }
.cmd-secure { display: flex; align-items: center; gap: 6px; margin: 0; color: #d9d5ff; font-size: .82rem; white-space: nowrap; }
.cmd-secure-icon { display: block; flex: none; width: 14px; height: 14px; }

.cmd-main { max-width: 1040px; margin: 0 auto; padding: 32px 20px 64px; }
.cmd-footer { text-align: center; color: var(--cmd-muted); font-size: .82rem; padding: 24px 16px 40px; }
.cmd-footer a { color: var(--cmd-muted); }

.cmd-intro { color: var(--cmd-muted); margin: 0 0 24px; max-width: 62ch; }
.cmd-back { margin: 0 0 12px; font-size: .9rem; }
.cmd-back a { text-decoration: none; font-weight: 600; }
.cmd-hint { color: var(--cmd-muted); font-size: .85rem; margin: 6px 0 0; }
.cmd-legal { color: var(--cmd-muted); font-size: .8rem; margin: 14px 0; }
.cmd-optional { color: var(--cmd-muted); font-weight: 400; }
.cmd-label { display: block; font-weight: 600; font-size: .9rem; margin: 0 0 6px; }
.cmd-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cmd-error { color: var(--cmd-error); font-weight: 600; margin: 12px 0 0; }
.cmd-notice { background: #fff7e0; border: 1px solid #f2d27a; color: #6b4e00; border-radius: 10px; padding: 10px 14px; }
.cmd-badge { display: inline-block; background: #e9fbf0; color: var(--cmd-ok); border-radius: 999px; padding: 3px 12px; font-size: .82rem; font-weight: 600; margin: 8px 0 0; }
.cmd-card { background: var(--cmd-bg); border-radius: var(--cmd-radius); box-shadow: var(--cmd-shadow); padding: 22px 24px; margin: 0 0 18px; }
.cmd-list { margin: 0; padding-left: 20px; }
.cmd-list li { margin: 4px 0; }
.cmd-busy { opacity: .6; pointer-events: none; }

/* -------------------- Boutons et liens -------------------- */

.cmd-btn {
  display: inline-block; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--cmd-primary); color: #fff !important; font: inherit; font-weight: 600;
  padding: 13px 30px; text-decoration: none; text-align: center;
  transition: background .15s ease, transform .15s ease;
}
.cmd-btn:hover { background: var(--cmd-primary-dark); transform: translateY(-1px); }
.cmd-btn:disabled { opacity: .5; cursor: default; transform: none; }
.cmd-btn-secondary { background: #efecff; color: var(--cmd-primary) !important; }
.cmd-btn-secondary:hover { background: #e3defe; }
.cmd-btn-pay { font-size: 1.05rem; padding: 15px 36px; }
.cmd-link { background: none; border: 0; padding: 0; font: inherit; color: var(--cmd-primary); text-decoration: underline; cursor: pointer; }
.cmd-link:disabled { color: var(--cmd-muted); cursor: default; }
.cmd-actions { margin: 24px 0 0; display: flex; gap: 12px; flex-wrap: wrap; }

/* -------------------- Écran 0 : offres -------------------- */

/* DX-C1-61 : carte blanche (variante B) = zone visuel sur fond clair (animation de la carte active, image fixe sinon, même
   taille : aucun saut), bandeau coloré (nom + prix du devis), zone blanche (accroche, fonctionnalités, quantités). */
.cmd-offers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; margin-top: 16px; }
.cmd-offer {
  position: relative; display: flex; flex-direction: column; background: var(--cmd-bg);
  border: 2px solid var(--cmd-border); border-radius: 22px; transition: border-color .15s ease, box-shadow .15s ease;
}
.cmd-offer h2 { margin: 0; color: #fff; font-size: 1.35rem; }
.cmd-offer-featured { border-color: var(--cmd-accent); }
.cmd-offer-selected { border-color: var(--cmd-primary); box-shadow: 0 8px 24px rgba(99, 76, 250, .18); }
.cmd-offer-badge {
  position: absolute; top: 0; left: 50%; z-index: 1; transform: translate(-50%, -50%); margin: 0; white-space: nowrap;
  background: var(--cmd-primary); color: #fff; border-radius: 8px; padding: 3px 12px; font-size: .78rem; font-weight: 600;
}
.cmd-offer-visual {
  display: flex; align-items: center; justify-content: center; height: 220px; overflow: hidden;
  background: var(--cmd-visual-bg); border-radius: 20px 20px 0 0;
}
.cmd-offer-anim { display: block; width: 220px; height: 220px; max-width: 100%; }
.cmd-offer-band { padding: 14px 18px 12px; color: #fff; background: var(--cmd-primary); }
.cmd-offer[data-offer="pro"] .cmd-offer-band { background: var(--cmd-navy); }
.cmd-offer[data-offer="infinicy"] .cmd-offer-band { background: linear-gradient(135deg, var(--cmd-navy), var(--cmd-accent)); }
.cmd-offer-body { display: flex; flex-direction: column; gap: 12px; flex: 1; padding: 14px 18px 18px; }
.cmd-offer-hook { margin: 0; font-family: var(--cmd-font-title); font-size: 1.02rem; line-height: 1.4; color: var(--cmd-navy); }
.cmd-offer-hook strong { color: var(--cmd-primary); font-weight: 700; }
.cmd-offer-features { flex: 1; list-style: none; margin: 0; padding: 0; font-size: .88rem; line-height: 1.4; }
.cmd-offer-features li { position: relative; margin: 0; padding: 7px 0 7px 22px; border-top: 1px solid #efedf8; }
.cmd-offer-features li::before {
  content: ""; position: absolute; left: 3px; top: 12px; width: 9px; height: 5px;
  border-left: 2px solid var(--cmd-primary); border-bottom: 2px solid var(--cmd-primary); transform: rotate(-45deg);
}
.cmd-offer-notes { margin: 14px 0 0; color: var(--cmd-muted); font-size: .76rem; line-height: 1.45; }
.cmd-offer-notes p { margin: 4px 0 0; }
.cmd-offer-option { margin: 0; color: var(--cmd-muted); font-size: .82rem; } /* DX-C1-38 : discrète, toujours visible */
.cmd-offer-price { margin: 4px 0 0; }
.cmd-unit { font-weight: 700; font-size: 1.25rem; color: var(--cmd-navy); }
.cmd-unit-suffix { color: var(--cmd-muted); font-size: .85rem; }
.cmd-offer-band .cmd-unit { color: #fff; font-size: 1.4rem; }
.cmd-offer-band .cmd-unit-suffix { color: rgba(255, 255, 255, .82); }
.cmd-cards-opt { border-top: 1px dashed var(--cmd-border); padding-top: 10px; }

/* Lot d'avant-pilote (L4, maquette validée le 8 nov.) : contrôle de quantité centré dans la largeur disponible, à toutes les largeurs, sans changer
   de taille ; colonne flex (écran 0) ou bloc (Studio) : align-self et marges automatiques couvrent les deux */
.cmd-qty { display: flex; width: -webkit-fit-content; width: fit-content; align-self: center; margin-left: auto; margin-right: auto; align-items: center; border: 1.5px solid var(--cmd-border); border-radius: 999px; overflow: hidden; background: #fff; }
.cmd-qty:focus-within { border-color: var(--cmd-primary); box-shadow: 0 0 0 3px rgba(99, 76, 250, .15); }
.cmd-qty-btn { width: 40px; height: 40px; border: 0; background: #f3f1ff; color: var(--cmd-primary); font-size: 1.2rem; cursor: pointer; }
.cmd-qty-btn:disabled { color: #bdb8d8; cursor: default; }
.cmd-qty input { width: 64px; height: 40px; border: 0; text-align: center; font: inherit; font-weight: 600; color: var(--cmd-navy); -moz-appearance: textfield; }
.cmd-qty input::-webkit-outer-spin-button, .cmd-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.cmd-entities-link { margin: 18px 0 0; }
.cmd-entities { margin: 12px 0 0; }
.cmd-table-wrap { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; } /* position : le texte caché .cmd-sr (absolu) reste clippé par l'enveloppe, sinon il élargit le document */
.cmd-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 10px; overflow: hidden; }
.cmd-table th, .cmd-table td { padding: 8px 10px; border-bottom: 1px solid var(--cmd-border); text-align: left; font-size: .9rem; }
.cmd-table th { background: #f3f1ff; font-weight: 600; }
.cmd-table input[type=text] { width: 100%; min-width: 160px; }
.cmd-table input[type=number] { width: 72px; }
.cmd-table input { border: 1.5px solid var(--cmd-border); border-radius: 8px; padding: 7px 9px; font: inherit; }
.cmd-entities-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin: 12px 0 0; }

.cmd-total { background: #fff; border-radius: var(--cmd-radius); box-shadow: var(--cmd-shadow); padding: 18px 22px; margin: 24px 0 0; }
.cmd-total p { margin: 0; }
.cmd-total-line { font-size: 1.05rem; }
.cmd-total-line strong { font-size: 1.35rem; color: var(--cmd-navy); }
.cmd-total-ttc { color: var(--cmd-muted); }

/* Montée en gamme vers l'offre Pro (Task 33, DK-SV-32 à 36) : animation de la page Pro du site (img/anim-pro.svg, générée par
   scripts/build-anim-pro.js), une carte par fonctionnalité, écart de prix, actions ; confirmation après conversion. */
.cmd-upsell { background: var(--cmd-bg); border: 2px solid var(--cmd-accent); border-radius: var(--cmd-radius); box-shadow: var(--cmd-shadow); padding: 22px 24px; margin: 24px 0 0; text-align: center; }
.cmd-upsell-anim { display: block; width: 280px; max-width: 100%; height: auto; margin: 0 auto 8px; } /* largeur fixe : .cmd-page img impose max-width: 100 % (spécificité supérieure) */
.cmd-upsell-title { font-size: 1.3rem; margin: 0 0 4px; color: var(--cmd-navy); }
.cmd-upsell-lead { margin: 0 0 16px; color: var(--cmd-muted); font-weight: 600; }
.cmd-upsell-features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; text-align: left; }
.cmd-upsell-feature { background: var(--cmd-surface); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.cmd-upsell-icon { display: block; width: 48px; height: 48px; }
.cmd-upsell-feature-title { font-size: 1rem; margin: 0; color: var(--cmd-navy); }
.cmd-upsell-feature-text { margin: 0; color: var(--cmd-muted); font-size: .9rem; }
.cmd-upsell-price { margin: 18px 0 0; font-weight: 700; font-size: 1.05rem; color: var(--cmd-navy); }
.cmd-upsell-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; margin: 16px 0 0; }
.cmd-upsell-some { position: relative; display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; } /* position : contient le libellé caché .cmd-sr */
.cmd-upsell-count { border: 1.5px solid var(--cmd-border); border-radius: 999px; padding: 10px 14px; font: inherit; font-weight: 600; color: var(--cmd-navy); background: #fff; }
.cmd-upsell-count:focus-visible { outline: 2px solid var(--cmd-primary); outline-offset: 2px; }
.cmd-upsell-done { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; background: #f4f1ff; border-radius: var(--cmd-radius); padding: 14px 18px; margin: 24px 0 0; }
.cmd-upsell-done-text { margin: 0; font-weight: 600; color: var(--cmd-navy); }
@media (max-width: 600px) {
  .cmd-upsell { padding: 18px 16px; }
  .cmd-upsell-features { grid-template-columns: 1fr; }
}

/* -------------------- Écran 1 : coordonnées -------------------- */

.cmd-recap-line { font-weight: 600; margin: 0 0 18px; }
.cmd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.cmd-field { margin: 0 0 14px; }
.cmd-grid .cmd-field { margin: 0; }
.cmd-field-full { grid-column: 1 / -1; }
.cmd-field label { display: block; font-weight: 600; font-size: .9rem; margin: 0 0 6px; }
.cmd-page input[type=text], .cmd-page input[type=email], .cmd-page input[type=tel], .cmd-page input[type=url] {
  width: 100%; border: 1.5px solid var(--cmd-border); border-radius: 10px; padding: 11px 13px; font: inherit; color: var(--cmd-text); background: #fff;
}
.cmd-page input:focus { outline: none; border-color: var(--cmd-primary); box-shadow: 0 0 0 3px rgba(99, 76, 250, .15); }
.cmd-page input.cmd-invalid { border-color: var(--cmd-error); }
/* Focus clavier des cases, fichiers et couleurs : contour plein (le halo à 15 % d'opacité ci-dessus n'y est pas un repère) ;
   les champs de saisie gardent bordure + halo. Spécificité supérieure à « input:focus { outline: none } ». */
.cmd-page input[type=checkbox]:focus-visible, .cmd-page input[type=radio]:focus-visible,
.cmd-page input[type=file]:focus-visible, .cmd-page input[type=color]:focus-visible { outline: 2px solid var(--cmd-primary); outline-offset: 2px; }
.cmd-field-error { display: block; color: var(--cmd-error); font-size: .82rem; margin: 4px 0 0; }
.cmd-field-error:empty { display: none; }
.cmd-photo-preview { display: flex; align-items: center; gap: 12px; margin: 10px 0 0; }
.cmd-photo-preview img { width: 64px; height: 64px; object-fit: cover; border-radius: 50%; }
.cmd-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* Lot UX 2 (§6.5) : espace net avant la case RGPD — 28 px, un trait fin, 20 px */
.cmd-field.cmd-consent { margin-top: 28px; border-top: 1px solid var(--cmd-border); padding-top: 20px; }
.cmd-consent label { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.cmd-consent input[type=checkbox] { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--cmd-primary); flex-shrink: 0; }
.cmd-turnstile { margin: 16px 0 0; min-height: 65px; }

/* -------------------- Photo de profil : zone de dépôt, aperçu, fenêtre de recadrage (lot UX 2, commande-photo.js) -------------------- */
.cmd-visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cmd-field label.cmd-photo-drop, .cmd-photo-drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 120px; margin: 0; padding: 18px;
  border: 2px dashed var(--cmd-border); border-radius: 14px; background: #fafaff; text-align: center; cursor: pointer; font-weight: 500;
}
.cmd-photo-drop[hidden] { display: none; }
.cmd-photo-drop.cmd-photo-busy { pointer-events: none; opacity: .6; }
.cmd-photo-drop:hover, .cmd-photo-drop.cmd-photo-over { border-color: var(--cmd-primary); background: rgba(99, 76, 250, .06); }
.cmd-photo-drop:focus-within { outline: 2px solid var(--cmd-primary); outline-offset: 2px; }
.cmd-photo-drop-title { font-weight: 600; }
.cmd-photo-drop-or { color: var(--cmd-muted); font-size: .85rem; }
.cmd-photo-drop-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--cmd-primary); color: #fff; font-weight: 600; }
.cmd-photo-box { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 14px; margin: 0; }
.cmd-photo-box[hidden] { display: none; }
.cmd-photo-stage { position: relative; width: 200px; height: 200px; flex: 0 0 200px; background: #f4f4f7; border-radius: 12px; overflow: hidden; }
.cmd-photo-stage img { width: 100%; height: 100%; object-fit: contain; display: block; }
.cmd-photo-circle { position: absolute; border-radius: 50%; box-shadow: 0 0 0 2px #fff, 0 0 0 9999px rgba(29, 24, 78, .35); pointer-events: none; }
.cmd-photo-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.cmd-photo-actions .cmd-link { min-height: 44px; }
.cmd-crop-backdrop { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1000; background: rgba(29, 24, 78, .55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.cmd-crop { box-sizing: border-box; width: 392px; max-width: 100%; max-height: 100%; overflow: auto; overscroll-behavior: contain; background: #fff; color: var(--cmd-text); border-radius: 18px; padding: 16px;
  box-shadow: 0 18px 60px rgba(29, 24, 78, .3); }
.cmd-crop-title { font-size: 1.1rem; font-weight: 700; margin: 0 0 6px; color: var(--cmd-navy); }
.cmd-crop-hint { font-size: .88rem; color: var(--cmd-muted); margin: 0 0 12px; }
/* Revue I-3 : en paysage sur téléphone, la scène se réduit pour que « Valider » et « Annuler » restent à l'écran */
.cmd-crop-stage { position: relative; box-sizing: border-box; width: 360px; width: min(360px, 100%, max(120px, calc(100vh - 270px))); width: min(360px, 100%, max(120px, calc(100dvh - 270px)));
  max-width: 100%; aspect-ratio: 1 / 1; margin: 0 auto; overflow: hidden; background: #111; border-radius: 8px; touch-action: none; cursor: grab; }
.cmd-crop-stage:focus-visible { outline: 2px solid var(--cmd-primary); outline-offset: 2px; }
.cmd-crop-img { position: absolute; max-width: none; -webkit-user-select: none; user-select: none; -webkit-user-drag: none; -webkit-touch-callout: none; }
/* Recette du 24 oct. (DX-C1-66) : sous body.cmd-page (coordonnées, fiche 2b), « .cmd-page img { max-width: 100% } » (0,1,1) battait la règle ci-dessus
   (0,1,0) : la largeur restait bornée à la scène pendant que la hauteur suivait le zoom, et la photo s'étirait. (0,2,0) : les dimensions posées en
   ligne par paint() s'appliquent telles quelles, sur les trois écrans. */
.cmd-crop .cmd-crop-img { max-width: none; max-height: none; }
.cmd-crop-ring { position: absolute; top: 0; right: 0; bottom: 0; left: 0; border-radius: 50%; box-shadow: 0 0 0 2px #fff, 0 0 0 9999px rgba(0, 0, 0, .5); pointer-events: none; }
.cmd-crop-zoom { display: flex; align-items: center; gap: 10px; margin: 12px 0 0; }
.cmd-crop-range { flex: 1; height: 44px; margin: 0; accent-color: var(--cmd-primary); }
.cmd-crop-zoom-sign { width: 20px; font-size: 1.2rem; text-align: center; }
.cmd-crop-actions { display: flex; justify-content: flex-end; gap: 10px; margin: 14px 0 0; }
.cmd-crop-actions .cmd-btn { min-height: 44px; }
@media (max-width: 599px) {
  .cmd-crop-backdrop { padding: 0; }
  .cmd-crop { width: 100%; height: 100%; max-width: none; border-radius: 0; display: flex; flex-direction: column; }
  .cmd-crop-title { margin: auto 0 6px; }
  .cmd-crop-actions { margin: 14px 0 auto; }
  .cmd-crop-stage { width: 100%; width: min(100%, max(120px, calc(100vh - 270px))); width: min(100%, max(120px, calc(100dvh - 270px))); }
}

/* -------------------- Écran 2a : éditeur (avec sim-style.css) -------------------- */

/* Lot UX 2 (D15-D17, décisions du product owner du 23 oct.) : ordinateur — trois colonnes (gauche collante : offre, liste, aide ; centre : aperçu ;
   droite : coordonnées et UN groupe de boutons) ; mobile (< 960 px) — barre de 44 px sous l'aperçu, liste et aide hors du flux, QR masqué. */
.cmd-editor-top { max-width: 1200px; margin: 0 auto; padding: 16px 20px 0; }
.cmd-editor-top a.sim-back-link { color: var(--cmd-primary); font-weight: 600; font-size: .9rem; text-decoration: none; }
/* D29 : la colonne s'arrête au-dessus de la barre du bas même page non défilée, quand elle commence sous le haut de page (--cmd-above, mesuré) et pas encore
   à 24 px : 24 px d'air au-dessus de la barre à cet endroit, un peu plus une fois collée. */
.cmd-editor-left { position: sticky; top: 24px; max-height: calc(100vh - var(--cmd-above, 230px) - 24px - var(--cmd-dock, 80px)); overflow: auto; }
.cmd-editor-right { position: static; }
.cmd-editor-right > [role="status"]:has(> [hidden]) { height: 0; margin-top: -14px; }   /* région vive sans message (avertissement du Wallet caché) : annulée dans le gap de 14 px de .sim-gutter */
.cmd-preview-frame { max-width: 420px; margin: 0 auto; }
.cmd-preview-bar { display: none; }
.cmd-preview-info { width: 44px; height: 44px; flex: 0 0 44px; border: 1.5px solid var(--cmd-border); border-radius: 50%; background: #fff; color: var(--cmd-primary);
  font: inherit; font-weight: 700; font-style: italic; cursor: pointer; }
.cmd-preview-todo { flex: 1 1 0; min-width: 0; white-space: normal; line-height: 1.15; min-height: 44px; border: 0; border-radius: 999px; padding: 4px 12px; background: #fff7e0; color: #6b4e00; font: inherit; font-size: .85rem; font-weight: 600;
  cursor: pointer; }
.cmd-preview-todo[hidden] { display: none; }
@media (max-width: 959px) {
  .cmd-editor-left { position: static; max-height: none; overflow: visible; }
  .cmd-editor-right .cmd-editor-extra input { font-size: 16px; }   /* sous 16 px, Safari iOS zoome la page au focus */
  .cmd-editor-left #sim-checklist, .cmd-editor-left #sim-help { display: none; }
  .cmd-editor-right .sim-qr-btn { display: none; }
  .cmd-preview-bar { display: flex; flex-wrap: nowrap; box-sizing: border-box; width: 100%; align-items: center; gap: 8px; max-width: 420px; margin: 0 auto; padding: 6px 8px; background: #fff;
    border-radius: 0 0 24px 24px; box-shadow: 0 10px 30px rgba(29, 24, 78, .12); }
  .cmd-preview-bar button { min-height: 44px; min-width: 44px; }
  .cmd-preview-bar .cmd-continue { width: auto; flex: 0 0 auto; white-space: nowrap; margin-left: auto; padding: 0 22px; }
  /* I-1 : le gabarit impose #tel { height: 100vh } sous 1024 px ; le cadre et sa barre doivent tenir dans la fenêtre visible dès l'arrivée.
     --cmd-above = hauteur du haut de page, mesurée par sim-editor.js (repli : 230 px) ; --cmd-bar = barre de 44 px + son remplissage. */
  .cmd-preview-frame #sim-phone { border-radius: 24px 24px 0 0; height: calc(100vh - var(--cmd-above, 230px) - var(--cmd-bar, 56px));
    height: calc(100svh - var(--cmd-above, 230px) - var(--cmd-bar, 56px)); min-height: 420px; }
  .cmd-preview-frame #sim-phone #tel { height: 100%; }
  .cmd-editor-left #sim-checklist.cmd-sheet { display: block; }
  /* Lot UX 2 (D26) : bandeau d'erreur juste au-dessus de la barre de l'aperçu */
  .cmd-editor-alert:not([hidden]) { display: flex; align-items: center; gap: 8px; max-width: 420px; margin: 0 auto; padding: 4px 4px 4px 14px;
    background: #fdecec; color: #8a1c1c; font-size: .88rem; }
}
/* Recette du 24 oct. (D29, décision du product owner, remplace la partie « ordinateur » de D15 et D5) : à partir de 960 px, le groupe de boutons de la colonne
   droite EST une barre collée au bas de l'écran, comme avant le lot : message de blocage sur sa ligne au-dessus, puis « Voir sur mon téléphone » et
   « Continuer » (aucun doublon). --cmd-dock = hauteur de la barre, message compris, mesurée par sim-editor.js (repli : 80 px) : la page la réserve sous son
   contenu et la colonne gauche collante s'arrête au-dessus. Sous 960 px, le groupe reste dans le flux, sous les coordonnées (mobile inchangé). */
.cmd-editor-actions { display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 960px) {
  .cmd-editor-actions { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: grid; grid-template-columns: auto auto; justify-content: center; align-items: center;
    gap: 8px 24px; margin: 0; background: #fff; border-top: 1px solid #e8e6f4; box-shadow: 0 -6px 24px rgba(29, 24, 78, .10); padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); }
  /* ligne entière au-dessus des deux boutons ; width: 0 + min-width: 100 % : le texte se plie à la largeur des boutons au lieu d'élargir leurs colonnes */
  .cmd-editor-actions .cmd-required { grid-column: 1 / -1; width: 0; min-width: 100%; text-align: center; }
  .cmd-editor-right .cmd-editor-actions .sim-btn { width: auto; min-height: 44px; }
}   /* la page réserve la hauteur de la barre : sim-style.css, .sim-editor-layout */
/* Lot UX 2 (D26) : ordinateur — l'erreur est dans l'aide (colonne gauche), le bandeau reste masqué ; croix de 44 px */
.cmd-editor-alert { display: none; }
.cmd-editor-alert p { flex: 1; margin: 0; }
.cmd-editor-alert-close { min-width: 44px; min-height: 44px; border: 0; background: transparent; color: inherit; font: inherit; font-size: 1.4rem; line-height: 1;
  cursor: pointer; }
/* Lot UX 2 (D16, D18) : feuilles du bas de l'éditeur (liste « Votre mini-site prend forme », fenêtre descriptive), posées par sim-editor.js */
.cmd-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1001; max-height: 80vh; max-height: 80dvh; overflow: auto; overscroll-behavior: contain; margin: 0; background: #fff;
  border-radius: 16px 16px 0 0; padding: 20px 18px calc(20px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -10px 40px rgba(29, 24, 78, .2); }
.cmd-sheet-backdrop { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1000; background: rgba(29, 24, 78, .45); }
.cmd-intro { display: none; }
.cmd-intro.cmd-sheet { display: block; }
.cmd-intro h2 { font-size: 1.1rem; margin: 0 0 10px; color: var(--cmd-navy); }
.cmd-intro p { margin: 0 0 10px; font-size: .92rem; }
.cmd-intro .cmd-btn { width: 100%; min-height: 44px; margin-top: 6px; }
/* Revue Task 14 tour 1 (I-1) : « Fermer » visible en tête de la feuille, 44 px au doigt */
.cmd-sheet-close { display: block; position: sticky; top: 0; z-index: 1; min-width: 44px; min-height: 44px; margin: 0 0 8px auto; padding: 0 18px;
  border: 1.5px solid var(--cmd-border); border-radius: 999px; background: #fff; color: var(--cmd-primary); font: inherit; font-weight: 600; cursor: pointer; }
/* 375 et 320 px : la barre ne déborde jamais — « Reste N… » rétrécit et passe à la ligne, « Continuer » reste entier */
@media (max-width: 380px) {
  .cmd-preview-bar { padding: 6px 6px; gap: 6px; }
  .cmd-preview-bar .cmd-continue { padding: 0 16px; }
  .cmd-preview-todo { font-size: .78rem; padding: 4px 8px; }
}

.cmd-editor-badge {
  display: inline-block; align-self: flex-start; margin: 0;
  background: #634cfa; color: #fff; border-radius: 999px; padding: 3px 14px; font-size: .82rem; font-weight: 600;
}
.cmd-editor-badge[hidden] { display: none; }
.cmd-editor-extra h4 { font-size: .88rem; margin: 14px 0 4px; color: #1d184e; }
.cmd-editor-extra label { display: block; font-weight: 600; font-size: .8rem; margin: 8px 0 4px; }
.cmd-editor-extra input { width: 100%; border: 1.5px solid #e4e1f2; border-radius: 8px; padding: 8px 10px; font: inherit; font-size: .88rem; }
/* DX-C1-39 : image obligatoire manquante — sous le badge d'offre (2a), au-dessus de « Continuer » (2b) */
.cmd-required { margin: 0; background: #fff7e0; border: 1px solid #f2d27a; color: #6b4e00; border-radius: 10px; padding: 8px 12px; font-size: .85rem; font-weight: 600; }

/* -------------------- Écran 2b : fiche contact + Wallet -------------------- */

.cmd-fiche-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.cmd-fiche-images { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cmd-fiche-images .cmd-label { width: 100%; }
.cmd-fieldset { border: 0; padding: 0; margin: 0 0 14px; }
.cmd-fieldset legend { font-weight: 600; font-size: .9rem; padding: 0; margin: 0 0 6px; }
.cmd-field-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 12px; }
.cmd-page input[type=color] { width: 48px; height: 36px; border: 1px solid var(--cmd-border); border-radius: 8px; background: #fff; cursor: pointer; padding: 2px; }
/* Lot UX 2 (D10) : zone photo de la fiche 2b (commande-photo.js) */
.cmd-fiche-photo { display: flex; flex-direction: column; gap: 8px; }
.cmd-fiche-previews { display: flex; flex-direction: column; gap: 22px; }
.cmd-fiche-previews figure { margin: 0; }
.cmd-fiche-previews figcaption { font-size: .82rem; color: var(--cmd-muted); margin: 0 0 8px; }
.cmd-contact { background: #fff; border-radius: 22px; box-shadow: var(--cmd-shadow); padding: 22px; max-width: 360px; }
.cmd-contact-head { text-align: center; }
.cmd-contact-photo, .cmd-contact-initials { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 10px; display: block; object-fit: cover; }
.cmd-contact-initials { background: #c7c4d8; color: #fff; font-size: 2rem; font-weight: 600; line-height: 84px; text-align: center; }
.cmd-contact-name { font-size: 1.3rem; font-weight: 600; margin: 0; }
.cmd-contact-job { color: var(--cmd-muted); margin: 2px 0 0; }
.cmd-contact-rows { list-style: none; margin: 16px 0 0; padding: 0; }
.cmd-contact-rows li { background: #f4f4f7; border-radius: 10px; padding: 8px 12px; margin: 0 0 8px; display: flex; flex-direction: column; }
.cmd-contact-key { font-size: .75rem; color: var(--cmd-muted); }
.cmd-contact-value { color: #2f6fe4; word-break: break-word; }
/* DX-C1-35 : aperçu = pass réel (generate_apple_pass, create_banner) — fond blanc, valeurs #000, libellés #634dfa. La bande reproduit
   create_banner : l'image du pass (« composite ») a les proportions naturelles de la bannière (ou de l'aplat 500 × 333 de generate-wallet),
   voile noir à 25 % (alpha 95/127) dès qu'un logo y est posé, logo posé par le script (commande-fiche.js, logoRect : réduit seulement
   s'il dépasse 60 % × 50 % de la partie visible de CETTE image, jamais agrandi, centré) ; la bande l'affiche recadrée au centre. Largeur et
   hauteur du composite (et rectangle du logo) sont posées par le script en pourcentages ; ici seulement les valeurs par défaut. PROPORTION DE
   LA BANDE (aspect-ratio ci-dessous) MESURÉE le 8 nov. 2026 sur un vrai pass Apple : 375 × 144 (STRIP de commande-fiche.js, gardée égale
   par commande-fiche.test.js). C1 fournit le pass par la route REST custom/v1/generate-wallet
   (infi-interface.php), pas par infi-wallet.php. Valeurs confrontées au plugin par commande-fiche.test.js. */
.cmd-wallet { background: #ffffff; border-radius: 14px; padding: 12px 0 16px; max-width: 340px; overflow: hidden; box-shadow: 0 14px 30px rgba(29, 24, 78, .22); }
.cmd-wallet-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 14px 10px; }
.cmd-wallet-brand { height: 26px; width: auto; }
.cmd-wallet-field { margin: 0; padding: 10px 14px 0; display: flex; flex-direction: column; line-height: 1.3; }
.cmd-wallet-top .cmd-wallet-field { padding: 0; }
.cmd-wallet-field-end { text-align: right; }
.cmd-wallet-label { color: #634dfa; font-size: .68rem; font-weight: 600; letter-spacing: .02em; }
.cmd-wallet-value { color: #000; font-size: 1rem; }
.cmd-wallet-strip { position: relative; aspect-ratio: 375 / 144; overflow: hidden; }
.cmd-wallet-composite { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 100%; height: 100%; }
.cmd-wallet-composite .cmd-wallet-banner { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.cmd-wallet-shade { position: absolute; inset: 0; background: rgba(0, 0, 0, .25); }
.cmd-wallet-composite .cmd-wallet-logo { position: absolute; max-width: none; max-height: none; }
.cmd-wallet-qr {
  display: block; width: 96px; height: 96px; margin: 16px auto 0; background-color: #000;
  -webkit-mask: url('img/qr.svg') no-repeat center / contain; mask: url('img/qr.svg') no-repeat center / contain;
}
.cmd-wallet-fig .cmd-hint { max-width: 340px; }

/* -------------------- Écran 3 : Studio -------------------- */

.cmd-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; }
.cmd-tab { border: 1.5px solid var(--cmd-border); background: #fff; border-radius: 999px; padding: 7px 16px; font: inherit; font-weight: 600; cursor: pointer; color: var(--cmd-navy); }
.cmd-tab-active { background: var(--cmd-navy); color: #fff; border-color: var(--cmd-navy); }
/* Onglet d'une entité dont le logo n'a pas son PNG pour le Wallet (Studio, plusieurs entités) : bordure et pastille d'erreur, sans texte. */
.cmd-tab-alert { border-color: var(--cmd-error); }
.cmd-tab-alert::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 8px; border-radius: 50%; background: var(--cmd-error); box-shadow: 0 0 0 2px #fff; vertical-align: middle; }
.cmd-studio { display: flex; gap: 24px; background: #fff; border-radius: var(--cmd-radius); box-shadow: var(--cmd-shadow); padding: 20px; }
.cmd-studio-stage-col { width: 340px; flex-shrink: 0; }
.cmd-studio-settings { flex: 1; min-width: 0; }
.cmd-cv-stage { background: radial-gradient(circle at 50% 35%, #efeafe, #f8f8fa 70%); border-radius: 14px; height: 250px; display: flex; align-items: center; justify-content: center; }
/* Aperçu de la carte = carte imprimée (DX-C1-35). Toutes les valeurs viennent du fichier d'impression du workflow n8n « Génération de carte via
   Gotenberg » (nœuds « Generate HTML template1 », « Générer verso carte HTML1 » et « Convert to PDF … 1 ») : page de 96 × 64 mm à 300 dpi, soit
   1134 × 756 px, fonds perdus compris. La carte livrée est la partie centrale de 85,6 × 54 mm (« ancienne hauteur 638px » du gabarit = 54 mm) :
   --cv-file-* = le fichier, --cv-card-* = la carte, en pixels du fichier ; chaque mesure ci-dessous est celle du fichier rapportée à la carte
   (logo : boîte de 621 × 359 px, contenu sans déformation, agrandi si besoin ; QR : 280 px ; symbole sans contact : 80 px centré à 84 % ;
   numéro : 28 pt centré à 16 %). Relu par tests/commande-studio-print.test.js. */
.cmd-cv-card {
  --cv-file-w: 1134; --cv-file-h: 756; --cv-card-w: 1011.15; --cv-card-h: 637.875;
  container-type: inline-size; width: 300px; height: 189px; border-radius: 14px; position: relative; overflow: hidden;
  box-shadow: 0 18px 40px rgba(29, 24, 78, .34); background: #fff;
}
/* Le fond couvre le FICHIER (« cover »), la carte n'en montre que le centre : une image fournie est cadrée comme à l'impression. */
.cmd-cv-card-bg {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: calc(var(--cv-file-w) / var(--cv-card-w) * 100%); height: calc(var(--cv-file-h) / var(--cv-card-h) * 100%);
  background-size: cover; background-position: center;
}
/* Largeur et hauteur FIXES (jamais max-width : « .cmd-page img { max-width: 100% } » l'emporte par sa spécificité et le logo occupait toute la carte). */
.cmd-cv-card-logo {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: calc(621 / var(--cv-card-w) * 100%); height: calc(359 / var(--cv-card-h) * 100%); object-fit: contain; object-position: center;
}
.cmd-cv-verso { position: absolute; inset: 0; }
.cmd-cv-num {
  position: absolute; left: calc((0.16 * var(--cv-file-w) - (var(--cv-file-w) - var(--cv-card-w)) / 2) / var(--cv-card-w) * 100%); top: 50%;
  transform: translate(-50%, -50%); font-family: Roboto, Arial, sans-serif; font-weight: 400;
  font-size: 11px; font-size: calc(28 * 4 / 3 / var(--cv-card-w) * 100cqw);
}
/* QR : la boîte fait 280 px du fichier, mais img/qr.svg (grille de 45 modules) ne peint que les modules 4 à 41 (zone de silence de 4 modules) alors que
   le QR imprimé (« Generate QRCode SVG1 », margin: 0) remplit toute sa boîte : le masque est agrandi de 45 / 37 pour que les modules peints remplissent la
   boîte (image centrée, le surplus est la zone de silence, hors de la boîte). L'image est partagée avec l'aperçu du Wallet (sha256 épinglé) : jamais modifiée. */
.cmd-cv-qr {
  --cv-qr-grid: 45; --cv-qr-quiet: 4; --cv-qr-mask: calc(var(--cv-qr-grid) / (var(--cv-qr-grid) - 2 * var(--cv-qr-quiet)) * 100%);
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: calc(280 / var(--cv-card-w) * 100%); aspect-ratio: 1 / 1; display: block;
  background-color: currentColor;
  -webkit-mask: url('img/qr.svg') no-repeat center / var(--cv-qr-mask) var(--cv-qr-mask); mask: url('img/qr.svg') no-repeat center / var(--cv-qr-mask) var(--cv-qr-mask);
}
.cmd-cv-nfc {
  position: absolute; left: calc((0.84 * var(--cv-file-w) - (var(--cv-file-w) - var(--cv-card-w)) / 2) / var(--cv-card-w) * 100%); top: 50%;
  transform: translate(-50%, -50%); width: calc(80 / var(--cv-card-w) * 100%); aspect-ratio: 1 / 1; display: block;
  background-color: currentColor; -webkit-mask: url('img/nfc.svg') no-repeat center / contain; mask: url('img/nfc.svg') no-repeat center / contain;
}
.cmd-cv-toggle { margin: 14px auto 0; display: flex; justify-content: center; gap: 0; }
.cmd-cv-toggle button { border: 1px solid var(--cmd-border); background: #fff; padding: 6px 22px; font: inherit; font-weight: 600; cursor: pointer; color: var(--cmd-navy); }
.cmd-cv-toggle button:first-child { border-radius: 9px 0 0 9px; }
.cmd-cv-toggle button:last-child { border-radius: 0 9px 9px 0; }
.cmd-cv-toggle button[aria-pressed="true"] { background: var(--cmd-navy); color: #fff; border-color: var(--cmd-navy); }
.cmd-mat { display: block; border: 2px solid var(--cmd-border); border-radius: 12px; padding: 10px 12px; margin: 0 0 8px; cursor: pointer; }
.cmd-mat:has(input:checked) { border-color: var(--cmd-primary); background: #f4f1ff; }
.cmd-mat-title { font-weight: 700; }
.cmd-mat-desc { display: block; color: var(--cmd-muted); font-size: .85rem; }
.cmd-choice { display: inline-flex; align-items: center; gap: 6px; margin: 0 18px 6px 0; font-weight: 500; cursor: pointer; }
.cmd-choice:has(input:disabled) { opacity: .55; cursor: default; }
.cmd-fieldset .cmd-hint { display: block; }
.cmd-field-inline { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cmd-field-inline label { margin: 0; }
.cmd-field-inline .cmd-hint { width: 100%; margin: 0; }
.cmd-drop { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cmd-drop-thumb {
  width: 64px; height: 42px; object-fit: contain; border-radius: 6px; border: 1px solid var(--cmd-border); background-color: #fff;
  background-image: linear-gradient(45deg, #dcdce6 25%, transparent 25%), linear-gradient(-45deg, #dcdce6 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #dcdce6 75%), linear-gradient(-45deg, transparent 75%, #dcdce6 75%);
  background-size: 10px 10px; background-position: 0 0, 0 5px, 5px -5px, -5px 0;
}

/* -------------------- Écran 4 : récapitulatif -------------------- */

.cmd-recap-table td:nth-child(2), .cmd-recap-table td:nth-child(3), .cmd-recap-table td:nth-child(4) { white-space: nowrap; }
.cmd-recap-totals { display: grid; grid-template-columns: auto auto; justify-content: end; gap: 4px 24px; margin: 16px 0 0; }
.cmd-recap-totals dt { color: var(--cmd-muted); }
.cmd-recap-totals dd { margin: 0; text-align: right; font-weight: 600; }
.cmd-recap-totals dt:last-of-type, .cmd-recap-totals dd:last-of-type { font-size: 1.15rem; color: var(--cmd-navy); }

/* Lot 8 (Task 20 amendée) : code promo (montants de l'aperçu Stripe), « Par quel biais », rappel de l'offre Pro (DK-SV-37) */
.cmd-promo { margin: 18px 0 0; }
.cmd-promo-row { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin: 6px 0 0; }
.cmd-promo-input { flex: 1 1 180px; max-width: 280px; border: 1.5px solid var(--cmd-border); border-radius: 999px; padding: 10px 16px; font: inherit; color: var(--cmd-navy); background: #fff; }
.cmd-promo-input:disabled { background: var(--cmd-surface); }
.cmd-promo-input:focus-visible { outline: 2px solid var(--cmd-primary); outline-offset: 2px; }
.cmd-promo-ok { margin: 8px 0 0; color: var(--cmd-ok); font-weight: 600; }
/* Lot d'avant-pilote (11, maquette validée le 8 nov.) : vérification en cours en gris (jamais le vert d'un code appliqué), totaux pâlis */
.cmd-promo-ok.is-checking { color: var(--cmd-muted); font-weight: 400; }
.cmd-recap-totals.is-pending dd { opacity: .45; }
.cmd-recap-discount { color: var(--cmd-ok); }
.cmd-recap-totals dt.cmd-recap-discount { color: var(--cmd-ok); }   /* le libellé aussi : « .cmd-recap-totals dt » (gris) est plus spécifique */
.cmd-recap-renewal { margin: 6px 0 0; text-align: right; color: var(--cmd-muted); font-size: .9rem; }
.cmd-recap-upsell { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; border: 2px solid var(--cmd-accent); }
.cmd-recap-upsell-icons { display: flex; gap: 6px; margin: 0; }
.cmd-recap-upsell-icon { display: block; width: 32px; height: 32px; }
.cmd-recap-upsell-text { flex: 1 1 260px; margin: 0; }
.cmd-heard { border: 1.5px solid var(--cmd-border); border-radius: 10px; padding: 10px 12px; font: inherit; color: var(--cmd-navy); background: #fff; max-width: 100%; }
.cmd-heard-other { margin: 10px 0 0; }
.cmd-heard-other-input { width: 100%; max-width: 420px; border: 1.5px solid var(--cmd-border); border-radius: 10px; padding: 10px 12px; font: inherit; }

/* -------------------- Écran 6 : confirmation -------------------- */

.cmd-status-wrap { max-width: 680px; }
.cmd-status-card { background: #fff; border-radius: 20px; padding: 36px 30px; box-shadow: var(--cmd-shadow); text-align: center; }
.cmd-status-icon { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 18px; position: relative; }
.cmd-status-icon::after { content: ""; position: absolute; inset: 0; border-radius: 50%; }
.cmd-status-wait { background: #ece8ff; }
.cmd-status-wait::after { border: 4px solid #d9d3ff; border-top-color: var(--cmd-primary); animation: cmd-spin 1s linear infinite; }
/* Recette du 9 nov. : mise en place interrompue (payée en échec) — l'anneau du cercle d'attente, fixe */
.cmd-status-hold { background: #ece8ff; }
.cmd-status-hold::after { border: 4px solid #d9d3ff; }
.cmd-status-ok { background: #e3f6ea; }
.cmd-status-ok::after { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b8a4c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center / 36px no-repeat; }
.cmd-status-ko { background: #fdecec; }
.cmd-status-ko::after { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c62828' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 7v6M12 17h.01'/%3E%3C/svg%3E") center / 36px no-repeat; }
.cmd-status-steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 26px 0 20px; padding: 0; }
.cmd-status-steps li { font-size: .82rem; color: var(--cmd-muted); padding-top: 14px; position: relative; }
.cmd-status-steps li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px; border-radius: 3px; background: #e4e4ee; }
.cmd-status-steps li.done::before { background: var(--cmd-ok); }
.cmd-status-steps li.current::before { background: var(--cmd-primary); }
.cmd-status-steps li.done, .cmd-status-steps li.current { color: var(--cmd-navy); font-weight: 600; }
/* Lot d'avant-pilote (3, maquette validée le 8 nov.) : sans carte, deux étapes centrées (et non collées à gauche dans une grille de quatre) */
.cmd-status-steps--2 { grid-template-columns: 1fr 1fr; max-width: 340px; margin-left: auto; margin-right: auto; }
.cmd-success-links { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
@keyframes cmd-spin { to { transform: rotate(360deg); } }

/* -------------------- Mobile -------------------- */

@media (max-width: 860px) {
  .cmd-offers { grid-template-columns: 1fr; }
  .cmd-fiche-layout { grid-template-columns: 1fr; }
  .cmd-studio { flex-direction: column; }
  .cmd-studio-stage-col { width: 100%; }
}
/* En-tête : logo + quatre étapes + « Paiement sécurisé » tiennent sur une ligne jusqu'à ~900 px ; en dessous, la ligne « Étape X sur 4 »
   remplace les étapes (jamais de 3e ligne avec le cadenas seul). */
@media (max-width: 900px) {
  .cmd-steps { display: none; }
  .cmd-step-mobile { display: block; order: 3; flex: 1 0 100%; }
}
@media (max-width: 600px) {
  .cmd-main { padding: 22px 16px 48px; }
  .cmd-grid { grid-template-columns: 1fr; }
  .cmd-header { padding: 10px 16px; }
  .cmd-card, .cmd-status-card { padding: 20px 16px; }
  .cmd-status-steps { grid-template-columns: 1fr 1fr; }
  .cmd-cv-card { width: 260px; height: 164px; }
  .cmd-cv-stage { height: 220px; }
  .cmd-recap-totals { justify-content: stretch; }
}

/* Lot d'avant-pilote (6) : sur écran tactile, aucun champ de saisie du parcours sous 16 px — en dessous, Safari iOS agrandit la page au focus.
   Pages du parcours (body.cmd-page) et coordonnées de l'éditeur (son <body> n'a pas de classe ; « .cmd-editor-extra input » vaut 0,88 rem
   au-dessus de 959 px, donc sur tablette) ; les champs des fenêtres de l'éditeur (.sim-pop-field) sont dans sim-style.css (règle jumelle).
   Cases, boutons radio, couleur, fichier et curseur exclus (ni saisie au clavier ni zoom). Rien ne change sur ordinateur. */
@media (pointer: coarse) {
  body.cmd-page input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=file]):not([type=range]),
  body.cmd-page select,
  body.cmd-page textarea,
  .cmd-editor-extra input { font-size: 16px; }
}
