/**
 * Design système — macarteimprimee.com
 * Palette "Empreinte" + composants (plan projet S7)
 */

/* ========== VARIABLES ========== */
:root {
  /* Cœur de marque */
  --p: #000000;           /* Encre profonde — titres, headers */
  /* Teinte assombrie vs #0891B2 : ~4,5:1 sur blanc (AA texte courant + boutons .btn-secondary) */
  --a: #0E7490;           /* Signal — liens, secondaire */
  /* Assombri vs #E2593C : texte blanc sur CTA ≥ 4,5:1 (AA) */
  --cta: #ff9100;         /* Corail — CTA principal */
  --cta-hover: #fe7b00;    /* Corail plein (sans alpha) — hover CTA, texte blanc */
  --cta-rgb: 255, 98, 0;  /* Pour ombres / focus rgba */
  --cta-l: #FFF1ED;       /* Corail clair */
  /* Bouton invert (Uiverse) — modifier ici pour hero, tuiles, liens .btn */
  --btn-invert-bg: var(--a);
  --btn-invert-fg: #fff;
  --btn-invert-hover-bg: var(--al); /* pas transparent : évite texte blanc sur fond blanc */
  --btn-invert-hover-fg: var(--a);
  --btn-invert-ring: var(--a);
  --btn-invert-ms: 400ms;
  /* Sémantiques */
  --s: #059669;           /* Succès */
  --w: #D97706;           /* Attention */
  --d: #DC2626;           /* Erreur */
  /* Surfaces & neutres */
  --al: #ECFEFF;          /* Signal clair */
  --bg: #F1F5F9;          /* Fond page */
  --t: #111827;           /* Texte */
  --m: #64748B;           /* Graphite — texte secondaire */
  /* #64748B ≈ 4,6:1 sur blanc — conforme WCAG AA texte courant (évite #94A3B8 ~3,3:1) */
  --muted: #64748B;       /* Texte tertiaire / placeholders lisibles */
  --b: #E2E8F0;           /* Bordure */
  --card: #FFFFFF;        /* Cartes, modales */
  /* Layout */
  --r: 4px;              /* Radius global — angles presque droits */
  --product-card-radius: var(--r);
  --product-card-pad: clamp(0.85rem, 2.2vw, 1.25rem);
  --container: 1200px;
  --container-wide: 1320px;
  --container-ultra: 1680px;
  /* Largeur max alignée accueil / header / mega menu / footer (marges latérales incluses) */
  --site-shell-max: min(1320px, 100vw - 2rem);
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  /* Breakpoints (tokens — usage dans calc/clamp + documentation).
     Les @media queries restent écrites en pixels (CSS ne les évalue pas via var).
     Convention unifiée à appliquer progressivement : 480 / 768 / 1024 / 1280 / 1536. */
  --bp-sm: 480px;
  --bp-md: 768px;
  --bp-lg: 1024px;
  --bp-xl: 1280px;
  --bp-2xl: 1536px;
  --bp-3xl: 1920px;
  /* Hauteurs header sticky + topbar (utilisées par scroll-padding, sticky offsets).
     Valeurs synchronisées avec header.css (barre primaire +50 % vs historique). */
  --topbar-h: 48px;
  --header-h: 78px;
  --header-total: calc(var(--topbar-h) + var(--header-h));
  /* Typo — échelle 1.25 (minor third), base 16px */
  --font-sans: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-heading: 'DM Sans', var(--font-sans);
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.25rem;
  /* Titres fluides — tokens utilisés exclusivement sur h1/h2/h3 et éléments "title".
     Garantie anti-débordement sur 320–360 px : le plancher tient dans la largeur dispo,
     le plafond reprend la valeur desktop historique (1.5 / 2 / 2.5 / 3 rem). */
  --text-xl: clamp(1.25rem, 3vw + 0.5rem, 1.5rem);
  --text-2xl: clamp(1.5rem, 4vw + 0.5rem, 2rem);
  --text-3xl: clamp(1.75rem, 5vw + 0.5rem, 2.5rem);
  --text-4xl: clamp(2rem, 6vw + 0.5rem, 3rem);
  --leading-tight: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.75;
  /* Transitions */
  --ease: 200ms ease;
  --t-fast: 120ms ease;
  --t-normal: 200ms ease;
  --t-slow: 320ms ease;

  /* Radius — --r (4px) reste le global, on ajoute une échelle */
  --r-xs: 2px;
  --r-sm: 4px;    /* = --r */
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-pill: 9999px;

  /* Élévations — échelle neutre réutilisable
     (les shadows colorées cyan/corail restent littérales, spécifiques au composant) */
  --shadow-xs:    0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-sm:    0 2px 10px rgba(15, 23, 42, 0.06);
  --shadow-md:    0 4px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg:    0 8px 32px rgba(15, 23, 42, 0.08);
  --shadow-xl:    0 16px 48px rgba(15, 23, 42, 0.12);
  --shadow-2xl:   0 18px 48px -12px rgba(15, 23, 42, 0.22), 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-focus-cta: 0 0 0 3px rgba(var(--cta-rgb), 0.18);
  --shadow-focus-accent: 0 0 0 3px rgba(8, 145, 178, 0.15);

  /* Z-index — échelle cohérente, finies les valeurs magiques
     (base < dropdown < sticky < header < drawer < modal < toast) */
  --z-base: 1;
  --z-dropdown: 40;
  --z-sticky: 50;
  --z-header: 100;
  --z-header-float: 110;
  --z-drawer: 200;
  --z-modal: 300;
  --z-toast: 9999;
  /* Au-dessus des toasts / bannière cookies : lien « Aller au contenu » au focus clavier */
  --z-skip: 10000;

  /* Surfaces header / footer (header.css, footer.css) + tokens orphelins.
     Sans ces variables, `background: var(--…)` est invalide : barre blanche sur texte blanc, header sans fond, etc. */
  --bar-bg: #0f172a;
  --header-surface: rgba(255, 255, 255, 0.92);
  --footer-bg: #0f172a;
  /* Taille intermédiaire (ex. checkout) — historiquement manquante */
  --text-md: 1.125rem;
}

/* Hauteurs header ajustées selon la largeur d'écran (cf. header.css) */
@media (min-width: 768px) {
  :root { --topbar-h: 54px; --header-h: 84px; }
}
@media (min-width: 900px) {
  :root { --header-h: 93px; }
}

/* ========== BASE ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* font-size: 100% (= rem relatif au zoom utilisateur système) au lieu de 16px fixe → accessibilité.
   scroll-padding-top dynamique basé sur la hauteur réelle du header sticky. */
html {
  font-size: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-total) + var(--space-md));
  -webkit-text-size-adjust: 100%;
}

/* Garde-fou anti débordement horizontal — stratégie spécifique :
   - `overflow-x: clip` (≠ hidden) ne crée PAS de contexte de scroll, donc ne casse pas
     les scrolls internes des tables (.compte-table-wrap, .admin-table-wrap) ni le
     position: sticky du header.
   - Appliqué sur html ET body car iOS Safari gère le scroll viewport sur body, pas html :
     poser uniquement sur html laisse le scroll horizontal possible en mobile Safari.
   - Fallback `overflow-x: hidden` pour anciens navigateurs (< Safari 15.4 / Chrome 90 /
     Firefox 81) ; les modernes utilisent la déclaration `clip` qui suit.
   - `max-width: 100%` sur body ceinture supplémentaire. */
html, body {
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--t);
  background: var(--bg);
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  /* Supprime le flash bleu/gris iOS sur tap. Les focus-visible restent accessibles clavier. */
  -webkit-tap-highlight-color: transparent;
}

/* Accessibilité globale : respect du réglage système prefers-reduced-motion. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn-invert,
  .btn-secondary,
  body:not(.admin-app) a.btn:not(.btn-cta):not(.header-cta),
  .btn-invert .text,
  .btn-secondary .text,
  body:not(.admin-app) a.btn:not(.btn-cta):not(.header-cta) .text,
  .btn-invert svg path,
  .btn-secondary svg path,
  body:not(.admin-app) a.btn:not(.btn-cta):not(.header-cta) svg path {
    transition: none;
  }
}

/* Anti-hover-stuck sur devices tactiles : les effets "physiques" (translate/scale)
   restent collés après un tap. On les neutralise quand le device n'a pas de hover vrai.
   Les changements de couleur/bordure restent — ils ne gênent pas sur mobile. */
@media (hover: none) {
  .btn:hover,
  .cart-suggest-card:hover,
  .hub-card:hover,
  .product-card:hover,
  .catalog-card:hover,
  .home-pole__card:hover,
  .home-audience__card:hover {
    transform: none;
  }
}

img { max-width: 100%; height: auto; display: block; }

iframe,
video,
embed,
object {
  max-width: 100%;
}

/* <picture> transparent dans le layout : les règles existantes ciblent .class-img
   posée sur l'<img> → on veut que le wrapper <picture> ne casse pas le flex/grid.
   display: contents "efface" le wrapper de l'arbre de rendu — l'img reste enfant
   direct du parent d'origine côté layout. Support global ≥ 2022. */
picture { display: contents; }

a {
  color: var(--a);
  text-decoration: none;
  transition: color var(--ease);
}
a:hover { color: var(--p); }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: var(--leading-tight);
  color: var(--p);
}
h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); margin-bottom: var(--space-md); }
h3 { font-size: var(--text-xl); margin-bottom: var(--space-sm); }

p { margin-bottom: var(--space-md); }
p:last-child { margin-bottom: 0; }

/* ========== LAYOUT ========== */
/* Padding container progressif : 16px (petit mobile) → 24px (mobile standard) → 32px (tablette+).
   Sur iPhone SE (320px) on gagne 16px utiles sur chaque ligne vs avant — crucial pour les
   tables/formulaires denses (commandes, checkout). */
.container {
  max-width: var(--site-shell-max);
  margin: 0 auto;
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

.container--narrow {
  max-width: 42rem;
}

/* Fiche produit, hubs, checkout : même coque que l’accueil */
.container--product,
.container--home {
  max-width: var(--site-shell-max);
}

.container.container--header {
  max-width: var(--site-shell-max);
}

@media (min-width: 480px) {
  .container { padding-left: var(--space-lg); padding-right: var(--space-lg); }
}

@media (min-width: 768px) {
  .container { padding-left: var(--space-xl); padding-right: var(--space-xl); }
}

/* Moyens / grands écrans : coque site unique (header / mega menu / pages / footer via --site-shell-max) */
@media (min-width: 1400px) {
  :root {
    --container: 1280px;
    --container-wide: 1400px;
    --site-shell-max: min(1400px, 100vw - 3rem);
  }
}

@media (min-width: 1600px) {
  :root {
    --container: 1400px;
    --container-wide: 1520px;
    --site-shell-max: min(1520px, 100vw - 4rem);
  }
}

@media (min-width: 1920px) {
  :root {
    --container: 1520px;
    --container-wide: 1680px;
    --site-shell-max: min(1680px, 100vw - 5rem);
  }
}

/* Header : voir /assets/css/header.css */
/* Footer : voir /assets/css/footer.css */

/* ========== MAIN ========== */
main {
  min-height: 50vh;
  padding-top: var(--space-xl);
  padding-bottom: var(--space-2xl);
}

/* ========== COMPOSANTS : BOUTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: var(--space-sm) var(--space-lg);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 600;
  border: none;
  border-radius: var(--r);
  cursor: pointer;
  transition: background var(--ease), transform var(--ease), box-shadow var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-cta {
  background: var(--cta);
  color: #fff;
  box-shadow: 0 4px 14px rgba(var(--cta-rgb), 0.35);
}
.btn-cta:hover,
a.btn-cta:hover,
a.header-cta:hover {
  background: var(--cta-hover);
  color: #fff;
  box-shadow: 0 6px 20px rgba(var(--cta-rgb), 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--a);
  border: 2px solid var(--a);
}
.btn-ghost:hover { background: var(--al); }

/*
 * Invert Uiverse — source unique (tokens --btn-invert-* ci-dessus).
 * Couvre : .btn-secondary, liens .btn hors CTA, tuiles accueil .home-poles__go.
 */
.btn-invert,
.btn-secondary,
body:not(.admin-app) a.btn:not(.btn-cta):not(.header-cta),
.home-poles__go:not(.home-poles__go--soon) {
  background-color: var(--btn-invert-bg);
  color: var(--btn-invert-fg);
  border: none;
  box-shadow: inset 0 0 0 3px var(--btn-invert-ring);
  gap: 0.65rem;
  transition: background-color var(--btn-invert-ms), box-shadow var(--btn-invert-ms);
}
.btn-invert .text,
.btn-secondary .text,
body:not(.admin-app) a.btn:not(.btn-cta):not(.header-cta) .text {
  color: inherit;
  font-weight: 700;
}
.btn-invert svg path,
.btn-secondary svg path,
body:not(.admin-app) a.btn:not(.btn-cta):not(.header-cta) svg path {
  transition: var(--btn-invert-ms);
}
.btn-invert:hover,
.btn-secondary:hover,
body:not(.admin-app) a.btn:not(.btn-cta):not(.header-cta):hover,
.home-poles__link:hover .home-poles__go:not(.home-poles__go--soon),
.home-poles__link:focus-within .home-poles__go:not(.home-poles__go--soon) {
  background-color: var(--btn-invert-hover-bg);
  color: var(--btn-invert-hover-fg);
  transform: none;
}
a.btn.btn-cta:hover,
a.header-cta:hover {
  color: #fff;
}
a.btn:not(.btn-cta):hover {
  color: var(--btn-invert-hover-fg);
}
.btn-invert:hover svg path[fill]:not([fill="none"]),
.btn-secondary:hover svg path[fill]:not([fill="none"]),
body:not(.admin-app) a.btn:not(.btn-cta):not(.header-cta):hover svg path[fill]:not([fill="none"]) {
  fill: var(--btn-invert-hover-fg);
}
.btn-invert:focus-visible,
.btn-secondary:focus-visible,
body:not(.admin-app) a.btn:not(.btn-cta):not(.header-cta):focus-visible {
  outline: 2px solid var(--btn-invert-ring);
  outline-offset: 3px;
}

/* ========== COMPOSANTS : CARTES ========== */
.card {
  background: var(--card);
  border: 1px solid var(--b);
  border-radius: var(--r);
  /* Padding fluide : 20px sur petit mobile, 32px (--space-xl) sur tablette+.
     Évite les "cartes étouffantes" sur iPhone SE tout en gardant la respiration desktop. */
  padding: clamp(var(--space-md), 4vw, var(--space-xl));
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  margin-bottom: var(--space-lg);
}
.card h2 { border-bottom: 3px solid var(--a); padding-bottom: var(--space-sm); }

/* Surligneur pinceau — titres de sections contenu SEO (fiches, guides, hubs) */
.heading-brush,
.prose-product h2,
.product-section-heading,
.product-seo-content__subtitle,
.product-seo-tab-panel__title,
.editorial-article__body h2,
.hub-seo__block-title,
.page-editorial--article .editorial-section__title {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  justify-self: start;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--p);
  letter-spacing: -0.02em;
  line-height: 1.5;
  padding: 0.16em 0.24em;
  margin: 0 0 var(--space-lg);
  border: none;
  border-bottom: none;
  background-color: transparent;
  background-image: url("/assets/img/ui/brush-stroke-highlight.svg");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: center;
  transform: rotate(-0.35deg);
  transform-origin: left center;
}

.heading-brush::before,
.heading-brush::after,
.prose-product h2::before,
.prose-product h2::after,
.product-section-heading::before,
.product-section-heading::after,
.product-seo-content__subtitle::before,
.product-seo-content__subtitle::after,
.product-seo-tab-panel__title::before,
.product-seo-tab-panel__title::after,
.editorial-article__body h2::before,
.editorial-article__body h2::after,
.hub-seo__block-title::before,
.hub-seo__block-title::after,
.page-editorial--article .editorial-section__title::before,
.page-editorial--article .editorial-section__title::after {
  content: none;
  display: none;
}

.card--soft {
  background: linear-gradient(180deg, #fafbfc 0%, var(--card) 100%);
  border-color: var(--b);
  box-shadow: none;
}
.card--elevated {
  box-shadow: 0 12px 40px rgba(17, 24, 39, 0.08);
  border-color: var(--b);
}

.btn--lg {
  min-height: 52px;
  padding-left: var(--space-xl);
  padding-right: var(--space-xl);
  font-size: var(--text-lg);
}

.scroll-margin-top {
  scroll-margin-top: calc(var(--header-total) + var(--space-md));
}

/* ========== ACCUEIL ========== */
/* Styles déplacés dans /assets/css/home.css (chargé via $page['extra_css'] sur accueil.php) */

/* ========== UTILITAIRES ========== */
.mt-lg { margin-top: var(--space-lg); }
.mb-lg { margin-bottom: var(--space-lg); }
.text-muted { color: var(--m); }
.text-danger { color: var(--d); font-weight: 600; }
.text-small { font-size: var(--text-sm); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========== ACCESSIBILITÉ — Lien d'évitement (WCAG 2.4.1) ========== */
.skip-link {
  position: fixed;
  top: var(--space-sm);
  left: var(--space-sm);
  z-index: var(--z-skip);
  padding: var(--space-sm) var(--space-md);
  background: var(--p);
  color: #fff;
  font-weight: 600;
  font-size: var(--text-sm);
  text-decoration: none;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  transform: translateY(-160%);
  transition: transform var(--t-fast), opacity var(--t-fast);
  opacity: 0;
  pointer-events: none;
}
/* :focus (sans se limiter à :focus-visible) : meilleure compatibilité pour le 1er Tab au chargement */
.skip-link:focus {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
  outline: 2px solid #fff;
  outline-offset: 2px;
  box-shadow: var(--shadow-md), 0 0 0 3px var(--a);
}
@media (prefers-reduced-motion: reduce) {
  .skip-link {
    transition: none;
  }
}

/* ========== Tunnel commande (checkout) ========== */
.checkout-page {
  margin-bottom: var(--space-xl);
}

.checkout-page__hero {
  margin-bottom: var(--space-xl);
  max-width: 42rem;
}

.checkout-page__title {
  margin: var(--space-sm) 0 var(--space-lg);
  font-size: clamp(1.65rem, 2.5vw, var(--text-3xl));
}

.checkout-page--merci {
  margin-bottom: var(--space-xl);
}

.checkout-merci {
  padding: var(--space-xl);
  border: 1px solid var(--b);
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.07);
}

.checkout-merci__head {
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--b);
}

.checkout-merci__title {
  margin: 0 0 var(--space-sm);
  font-size: clamp(1.5rem, 2.2vw, var(--text-3xl));
}

.checkout-merci__lead {
  margin: 0;
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: 1.3;
  color: var(--p);
  font-variant-numeric: tabular-nums;
}

.checkout-merci__ref {
  color: var(--p);
  font-variant-numeric: tabular-nums;
}

.checkout-merci__status {
  margin: 0 0 var(--space-lg);
  line-height: 1.55;
}

.checkout-merci__status--ok {
  color: var(--s);
  font-weight: 600;
}

.checkout-merci__recap {
  margin-top: 0;
}

.checkout-merci__flash-miss {
  margin-bottom: var(--space-lg);
}

.checkout-merci__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin: var(--space-lg) 0 var(--space-md);
}

@media (min-width: 480px) {
  .checkout-merci__actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
}

.checkout-merci__account,
.checkout-merci__next {
  margin: 0 0 var(--space-sm);
  line-height: 1.55;
}

.checkout-merci__next {
  margin-bottom: 0;
}

.checkout-banner {
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--r);
  margin-bottom: var(--space-lg);
  font-size: var(--text-sm);
  font-weight: 600;
  border: 1px solid var(--b);
}

.checkout-banner--warn {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-color: rgba(217, 119, 6, 0.35);
  color: #92400e;
}

.checkout-steps__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-xs) var(--space-sm);
}

.checkout-steps__li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  font-weight: 600;
}

.checkout-steps__li:not(:last-child)::after {
  content: '';
  display: block;
  width: 1.25rem;
  height: 2px;
  border-radius: 1px;
  background: linear-gradient(90deg, var(--b), var(--muted));
  opacity: 0.7;
}

.checkout-steps__item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background var(--ease), border-color var(--ease), color var(--ease);
}

.checkout-steps__item--done {
  background: rgba(5, 150, 105, 0.1);
  color: #065f46;
  border-color: rgba(5, 150, 105, 0.25);
}

.checkout-steps__item--done:hover {
  background: rgba(5, 150, 105, 0.16);
  color: #064e3b;
}

.checkout-steps__item--current {
  background: var(--cta-l);
  color: #7c2d12;
  border-color: rgba(226, 89, 60, 0.35);
  box-shadow: 0 2px 10px rgba(226, 89, 60, 0.12);
}

.checkout-steps__item--next {
  color: #475569;
  background: var(--bg);
  border-color: var(--b);
}

.checkout-empty {
  text-align: center;
  padding: var(--space-2xl) var(--space-xl);
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.checkout-empty__visual {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-lg);
  color: var(--cta);
  opacity: 0.85;
}

.checkout-empty__icon {
  filter: drop-shadow(0 6px 14px rgba(226, 89, 60, 0.2));
}

.checkout-empty__title {
  font-size: var(--text-xl);
  margin: 0 0 var(--space-sm);
  color: var(--p);
}

.checkout-empty__text {
  margin: 0 0 var(--space-lg);
  color: var(--m);
  line-height: 1.6;
}

.checkout-empty__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  align-items: stretch;
}

@media (min-width: 420px) {
  .checkout-empty__actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
}

.checkout-layout {
  display: grid;
  gap: var(--space-xl);
  align-items: start;
}

@media (min-width: 960px) {
  .checkout-layout {
    grid-template-columns: minmax(17rem, 22rem) minmax(0, 1fr);
    gap: var(--space-2xl);
  }

  .checkout-aside {
    position: sticky;
    top: calc(var(--header-h) + var(--space-lg));
  }
}

.checkout-summary {
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--b);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

.checkout-summary__head {
  padding: var(--space-lg);
  background: linear-gradient(165deg, var(--al) 0%, #fff 55%, var(--card) 100%);
  border-bottom: 1px solid var(--b);
}

.checkout-summary__title {
  font-size: var(--text-lg);
  margin: 0 0 0.2rem;
  color: var(--p);
}

/* Annule le soulignement global `.card h2` sur le bloc récap checkout */
.checkout-summary.card .checkout-summary__head .checkout-summary__title {
  border-bottom: none;
  padding-bottom: 0;
}

.checkout-summary__hint {
  margin: 0;
}

.checkout-summary__alert {
  margin: 0;
  padding: var(--space-md) var(--space-lg);
  background: rgba(220, 38, 38, 0.06);
  border-bottom: 1px solid rgba(220, 38, 38, 0.12);
}

.checkout-aside__edit {
  width: 100%;
  justify-content: center;
  margin-top: var(--space-md);
}

.checkout-lines {
  list-style: none;
  /* Padding horizontal fluide : 12px sur très petit écran → 24px dès que la place existe. */
  padding: var(--space-md) clamp(var(--space-sm), 3vw, var(--space-lg));
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: min(60vh, 24rem);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Récap ligne : compact (image + titres + prix + « Voir le détail » → modal)
   Colonne média fluide : 48px sous 360 px, 52px (3.25rem) au-delà.
   Permet un prix lisible sur iPhone SE 1re gen (320 px). */
.checkout-line--compact {
  display: grid;
  grid-template-columns: clamp(3rem, 10vw, 3.25rem) minmax(0, 1fr) auto;
  grid-template-areas: "media core pricecol";
  gap: 0.5rem 0.65rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--b);
  align-items: center;
}

.checkout-line--compact:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.checkout-line__media {
  grid-area: media;
  display: block;
  border-radius: calc(var(--r) - 2px);
  overflow: hidden;
  background: var(--al);
  border: 1px solid var(--b);
  align-self: start;
  flex-shrink: 0;
}

.checkout-line__media--placeholder {
  aspect-ratio: 1;
  width: 100%;
  min-height: clamp(3rem, 10vw, 3.25rem);
  background: linear-gradient(135deg, var(--al), #e2e8f0);
}

.checkout-line__img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  height: auto;
  object-fit: cover;
}

.checkout-line__core {
  grid-area: core;
  min-width: 0;
}

.checkout-line__title {
  margin: 0;
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1.3;
  color: var(--p);
}

.checkout-line__subtitle {
  margin: 0.2rem 0 0.35rem;
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--m);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.checkout-line__title-link {
  color: inherit;
  text-decoration: none;
}

.checkout-line__title-link:hover {
  color: var(--a);
  text-decoration: underline;
}

.checkout-line__errcompact {
  margin: 0.35rem 0 0;
  line-height: 1.4;
}

.checkout-line__detail {
  margin: 0.35rem 0 0;
  padding: 0.2rem 0;
  border: none;
  background: none;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--a);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.checkout-line__detail:hover {
  color: var(--p);
}

.checkout-line__pricecol {
  grid-area: pricecol;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.1rem;
  text-align: right;
  align-self: center;
}

.checkout-line__qtycompact {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.checkout-line__pu {
  font-size: 0.68rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.checkout-line__priceamount {
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
  color: var(--p);
}

.checkout-line__priceamount strong {
  font-weight: 700;
}

.checkout-line--error .checkout-line__title {
  opacity: 0.92;
}

/* Modal détail ligne (checkout) */
body.checkout-modal-open {
  overflow: hidden;
}

.checkout-modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

.checkout-modal[hidden] {
  display: none !important;
}

.checkout-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.checkout-modal__panel {
  position: relative;
  z-index: var(--z-base);
  width: 100%;
  max-width: 26rem;
  max-height: min(88vh, 36rem);
  margin: 0;
  padding: 0;
  background: var(--card);
  border-radius: var(--r) var(--r) 0 0;
  border: 1px solid var(--b);
  box-shadow: 0 -8px 40px rgba(15, 23, 42, 0.15);
  display: flex;
  flex-direction: column;
  animation: checkout-modal-up 0.28s ease;
}

@keyframes checkout-modal-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 520px) {
  .checkout-modal {
    align-items: center;
    padding: var(--space-lg);
  }

  .checkout-modal__panel {
    border-radius: var(--r);
    max-height: min(82vh, 34rem);
    animation: checkout-modal-fade 0.22s ease;
  }

  @keyframes checkout-modal-fade {
    from {
      opacity: 0;
      transform: scale(0.97);
    }
    to {
      opacity: 1;
      transform: scale(1);
    }
  }
}

.checkout-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-lg) var(--space-lg) var(--space-sm);
  border-bottom: 1px solid var(--b);
  background: linear-gradient(180deg, var(--al) 0%, var(--card) 100%);
}

.checkout-modal__title {
  margin: 0;
  font-size: var(--text-lg);
  line-height: 1.3;
  color: var(--p);
  padding-right: var(--space-sm);
}

.checkout-modal__close {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  margin: -0.35rem -0.25rem 0 0;
  border: none;
  border-radius: var(--r);
  background: transparent;
  color: var(--m);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background var(--ease), color var(--ease);
}

.checkout-modal__close:hover {
  background: var(--bg);
  color: var(--p);
}

.checkout-modal__body {
  padding: var(--space-md) var(--space-lg) var(--space-xl);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.checkout-modal__err {
  margin: 0 0 var(--space-md);
  padding: var(--space-sm) var(--space-md);
  border-radius: calc(var(--r) - 2px);
  background: rgba(220, 38, 38, 0.08);
}

.checkout-modal__dl {
  margin: 0;
}

.checkout-modal__row {
  display: grid;
  grid-template-columns: minmax(5rem, 32%) 1fr;
  gap: var(--space-sm) var(--space-md);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--b);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.checkout-modal__row:last-child {
  border-bottom: none;
}

.checkout-modal__row dt {
  margin: 0;
  font-weight: 600;
  color: var(--muted);
}

.checkout-modal__row dd {
  margin: 0;
  color: var(--p);
}

.checkout-modal__row--block {
  grid-template-columns: 1fr;
  gap: var(--space-xs);
}

.checkout-modal__row--block dt {
  color: var(--a);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.checkout-modal__opt-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--m);
}

.checkout-totals {
  margin: 0;
  padding: var(--space-lg);
  background: linear-gradient(180deg, rgba(241, 245, 249, 0.5) 0%, var(--card) 100%);
  border-top: 1px solid var(--b);
}

.checkout-totals__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-md);
  padding: 0.35rem 0;
  font-size: var(--text-sm);
}

.checkout-totals__row dt {
  margin: 0;
  color: var(--m);
  font-weight: 500;
}

.checkout-totals__row dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--p);
}

.checkout-totals__note {
  font-weight: 500;
  color: var(--muted);
  font-size: 0.75rem;
}

.checkout-totals__row--total {
  padding-top: var(--space-md);
  margin-top: var(--space-sm);
  border-top: 2px dashed var(--b);
  font-size: var(--text-base);
}

.checkout-totals__row--total dt {
  color: var(--p);
  font-weight: 700;
}

.checkout-totals__row--total dd {
  font-size: var(--text-lg);
  color: var(--cta);
}

.checkout-main-col .checkout-form.card {
  padding: var(--space-lg) var(--space-xl);
}

/* Toast checkout (succès / erreur), fixe en bas */
.checkout-toast {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: var(--z-toast);
  max-width: min(28rem, calc(100vw - 1.75rem));
  padding: 0.9rem 1.35rem;
  border-radius: calc(var(--r) + 4px);
  box-shadow: 0 14px 44px rgba(15, 23, 42, 0.24);
  font-weight: 600;
  font-size: var(--text-sm);
  line-height: 1.45;
  text-align: center;
  transform: translate(-50%, calc(100% + 3rem));
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s ease;
}

.checkout-toast--success {
  background: linear-gradient(165deg, #059669, #047857);
  color: #fff;
}

.checkout-toast--error {
  background: #fff5f5;
  color: #991b1b;
  border: 1px solid rgba(220, 38, 38, 0.32);
}

.checkout-toast--show {
  transform: translate(-50%, -1.35rem);
  opacity: 1;
}

@keyframes checkout-field-flash-ring {
  0%,
  100% {
    outline: 2px solid transparent;
    outline-offset: 0;
  }
  40% {
    outline: 2px solid rgba(226, 89, 60, 0.75);
    outline-offset: 3px;
  }
  70% {
    outline: 2px solid rgba(226, 89, 60, 0.35);
    outline-offset: 2px;
  }
}

.checkout-field-flash:not(.checkout-option-card) {
  animation: checkout-field-flash-ring 1.05s ease-out 2;
  border-radius: var(--r);
}

.checkout-option-card.checkout-field-flash .checkout-option-card__body {
  animation: checkout-field-flash-ring 1.05s ease-out 2;
  border-radius: calc(var(--r) + 2px);
}

/* Checkout accordéon (étapes repliées) */
.checkout-acc {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.checkout-acc__item {
  border: 1px solid var(--b);
  border-radius: var(--r);
  background: var(--card);
  overflow: hidden;
  transition: box-shadow 0.15s ease;
}

.checkout-acc__item--open {
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
}

.checkout-acc__item:not(.checkout-acc__item--open):not(.checkout-acc__item--done) .checkout-acc__trigger {
  opacity: 0.55;
  cursor: not-allowed;
}

.checkout-acc__trigger {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  width: 100%;
  margin: 0;
  padding: var(--space-md) var(--space-lg);
  border: 0;
  border-bottom: 1px solid transparent;
  background: var(--bg);
  font: inherit;
  text-align: left;
  cursor: pointer;
  color: var(--p);
  transition: background 0.15s ease;
}

.checkout-acc__item--open .checkout-acc__trigger {
  border-bottom-color: var(--b);
  background: var(--card);
}

.checkout-acc__trigger:hover {
  background: rgba(8, 145, 178, 0.06);
}

.checkout-acc__item:not(.checkout-acc__item--open):not(.checkout-acc__item--done) .checkout-acc__trigger:hover {
  background: var(--bg);
}

.checkout-acc__num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  font-size: var(--text-sm);
  font-weight: 700;
  background: var(--p);
  color: #fff;
}

.checkout-acc__item--open .checkout-acc__num {
  background: var(--a);
}

.checkout-acc__item--done .checkout-acc__num {
  background: var(--s);
  font-size: 0;
  position: relative;
}

.checkout-acc__item--done .checkout-acc__num::after {
  content: "✓";
  font-size: 0.95rem;
  line-height: 1;
  color: #fff;
}

.checkout-acc__label {
  flex: 1;
  min-width: 0;
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.checkout-acc__state {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
}

.checkout-acc__panel {
  padding: var(--space-lg);
}

.checkout-acc__panel[hidden] {
  display: none !important;
}

.checkout-acc__next {
  margin-top: var(--space-md);
}

.checkout-acc__panel > .checkout-subheading:first-child {
  margin-top: 0;
}

/* Cartes sélection (livraison, paiement) */
.checkout-option-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.checkout-option-card {
  position: relative;
  display: block;
  margin: 0;
  cursor: pointer;
}

.checkout-option-card__input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}

.checkout-option-card__body {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border: 2px solid var(--b);
  border-radius: calc(var(--r) + 2px);
  background: var(--card);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.checkout-option-card:hover .checkout-option-card__body {
  border-color: rgba(8, 145, 178, 0.45);
}

.checkout-option-card__input:focus-visible + .checkout-option-card__body {
  outline: 2px solid var(--a);
  outline-offset: 2px;
}

.checkout-option-card__input:checked + .checkout-option-card__body {
  border-color: var(--cta);
  box-shadow: 0 0 0 3px rgba(226, 89, 60, 0.16);
  background: linear-gradient(145deg, rgba(226, 89, 60, 0.06), transparent 55%);
}

.checkout-option-card__visual {
  flex-shrink: 0;
  width: 3.35rem;
  height: 3.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r);
  background: rgba(8, 145, 178, 0.1);
  color: var(--a);
}

.checkout-option-card__visual--wide {
  width: auto;
  min-width: 4.25rem;
  padding: 0 var(--space-xs);
  background: rgba(15, 23, 42, 0.06);
}

.checkout-option-card__visual--paypal {
  background: #fff;
  border: 1px solid rgba(0, 48, 135, 0.12);
}

.checkout-option-card__input:checked + .checkout-option-card__body .checkout-option-card__visual {
  background: rgba(226, 89, 60, 0.12);
  color: var(--cta);
}

.checkout-option-card__input:checked + .checkout-option-card__body .checkout-option-card__visual--wide {
  background: rgba(15, 23, 42, 0.08);
}

.checkout-option-card__input:checked + .checkout-option-card__body .checkout-option-card__visual--paypal {
  background: #fff;
  border-color: rgba(226, 89, 60, 0.35);
}

.checkout-option-card__svg {
  width: 1.85rem;
  height: 1.85rem;
  display: block;
}

.checkout-option-card__svg--cards {
  width: 3.25rem;
  height: auto;
  max-height: 2.1rem;
}

.checkout-option-card__svg--paypal {
  width: 2.25rem;
  height: auto;
  max-height: 1.85rem;
}

.checkout-option-card__main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.checkout-option-card__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-sm);
}

.checkout-option-card__title {
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--p);
}

.checkout-option-card__price {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--cta);
  font-size: var(--text-sm);
}

.checkout-option-card__desc {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.45;
}

.checkout-option-card__tick {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.15rem;
  border-radius: 999px;
  border: 2px solid var(--b);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    transform 0.15s ease;
}

.checkout-option-card__tick-mark {
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1;
  color: transparent;
  transform: scale(0.6);
  transition:
    color 0.15s ease,
    transform 0.15s ease;
}

.checkout-option-card__input:checked + .checkout-option-card__body .checkout-option-card__tick {
  border-color: var(--s);
  background: var(--s);
}

.checkout-option-card__input:checked + .checkout-option-card__body .checkout-option-card__tick-mark {
  color: #fff;
  transform: scale(1);
}

.checkout-addr-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0 var(--space-md);
  align-items: start;
  min-width: 0;
}

.checkout-addr-grid .form-row {
  margin-bottom: var(--space-md);
}

.checkout-addr-grid__full {
  grid-column: 1 / -1;
}

@media (max-width: 520px) {
  .checkout-addr-grid {
    grid-template-columns: 1fr;
  }
}

.checkout-section {
  margin-bottom: var(--space-lg);
}

.checkout-section:last-child {
  margin-bottom: 0;
}

.checkout-section--divider {
  padding-top: var(--space-xl);
  margin-top: var(--space-lg);
  border-top: 2px solid var(--al);
  box-shadow: inset 0 1px 0 #fff;
}

.checkout-subheading {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--p);
  margin: var(--space-md) 0 var(--space-sm);
}

.checkout-subheading--spaced {
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
  border-top: 1px solid var(--al);
}

.checkout-addr-intro {
  margin: 0 0 var(--space-md);
  max-width: 42rem;
}

.checkout-addr-step__title {
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--p);
  margin: 0 0 var(--space-sm);
}

.checkout-addr-step__lead {
  margin: 0 0 var(--space-lg);
  line-height: 1.45;
}

.checkout-addr-inline-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.checkout-addr-inline-stack--billing {
  margin-top: var(--space-sm);
}

.checkout-field-inline {
  display: grid;
  grid-template-columns: minmax(7.5rem, 10rem) minmax(0, 1fr) minmax(4.5rem, auto);
  gap: var(--space-sm) var(--space-md);
  align-items: center;
}

@media (max-width: 520px) {
  .checkout-field-inline {
    grid-template-columns: 1fr;
    gap: 0.15rem var(--space-sm);
  }
  .checkout-field-inline__label {
    margin-top: var(--space-xs);
  }
  .checkout-field-inline__opt {
    grid-column: 1 / -1;
    justify-self: start;
    margin-bottom: var(--space-xs);
  }
}

.checkout-field-inline__label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--p);
  cursor: pointer;
}

.checkout-field-inline__control {
  width: 100%;
  min-height: 2.5rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--al);
  border-radius: 999px;
  font-size: var(--text-sm);
  background: #fff;
  color: var(--p);
}

.checkout-field-inline__control:focus {
  outline: 2px solid rgba(8, 145, 178, 0.35);
  outline-offset: 1px;
  border-color: var(--a);
}

select.checkout-field-inline__control {
  border-radius: 0.75rem;
  appearance: auto;
}

.checkout-field-inline__opt {
  font-size: var(--text-xs);
  text-align: right;
  white-space: nowrap;
}

.checkout-toggle--addr {
  margin: var(--space-md) 0 var(--space-lg);
  padding: var(--space-sm) 0;
  border-top: 1px solid var(--al);
}

.checkout-addr-book--block {
  margin-bottom: var(--space-md);
}

.checkout-addr-book__label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--p);
}

.checkout-addr-book__select {
  width: 100%;
  min-height: 2.5rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--al);
  border-radius: 0.75rem;
  font-size: var(--text-sm);
  background: #fff;
}

.checkout-segmented {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.checkout-segmented--spaced {
  margin-top: var(--space-md);
}

.checkout-segment {
  flex: 1;
  min-width: 0;
  cursor: pointer;
  position: relative;
}

.checkout-segment input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}

.checkout-segment__face {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--b);
  border-radius: var(--r);
  background: var(--card);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--p);
  text-align: center;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.checkout-segment:hover .checkout-segment__face {
  border-color: var(--a);
}

.checkout-segment input:checked + .checkout-segment__face {
  border-color: var(--cta);
  border-width: 2px;
  padding: calc(var(--space-sm) - 1px) calc(var(--space-md) - 1px);
  box-shadow: 0 0 0 0.15rem rgba(226, 89, 60, 0.18);
  background: var(--cta-l);
}

.checkout-segment input:focus-visible + .checkout-segment__face {
  outline: 2px solid var(--a);
  outline-offset: 2px;
}

.checkout-pro-fields {
  padding: var(--space-md);
  margin-bottom: var(--space-md);
  border-radius: var(--r);
  background: rgba(8, 145, 178, 0.06);
  border: 1px solid rgba(8, 145, 178, 0.15);
}

.checkout-field-hint {
  margin: calc(-1 * var(--space-sm)) 0 var(--space-md);
}

.checkout-toggle {
  align-items: flex-start;
  padding: var(--space-md);
  border-radius: var(--r);
  border: 1px solid var(--b);
  background: var(--bg);
  margin-bottom: var(--space-md);
}

.checkout-toggle__label {
  line-height: 1.45;
  font-weight: 500;
  color: var(--p);
}

.checkout-shipping-alt {
  margin-bottom: var(--space-md);
  animation: checkout-reveal 0.25s ease;
}

@keyframes checkout-reveal {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.checkout-cgv {
  align-items: flex-start;
  padding: var(--space-md);
  border-radius: var(--r);
  border: 1px solid var(--b);
  background: rgba(241, 245, 249, 0.6);
  line-height: 1.5;
}

.checkout-form__error {
  margin: var(--space-md) 0 0;
  padding: var(--space-sm) var(--space-md);
  border-radius: calc(var(--r) - 2px);
  background: rgba(220, 38, 38, 0.08);
}

.checkout-form__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

@media (min-width: 480px) {
  .checkout-form__actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  .checkout-form__actions .checkout-form__secondary {
    order: 1;
  }

  .checkout-form__actions .btn-cta {
    order: 2;
    margin-left: auto;
  }
}

/* Ligne de boutons sous un formulaire générique (hors layout checkout à colonnes). */
.form-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: var(--space-md);
}

/* Formulaire checkout (champs) */
.checkout-form .form-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
  min-width: 0;
}
.checkout-form .form-row span {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--p);
}
.checkout-form input[type="email"],
.checkout-form input[type="tel"],
.checkout-form input[type="text"],
.checkout-form input[type="password"],
.checkout-form input[type="number"],
.checkout-form input[type="file"],
.checkout-form select,
.checkout-form textarea {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--b);
  border-radius: var(--r);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.checkout-form input:hover,
.checkout-form select:hover,
.checkout-form textarea:hover {
  border-color: #cbd5e1;
}
.checkout-form input:focus,
.checkout-form select:focus,
.checkout-form textarea:focus {
  border-color: var(--a);
  box-shadow: var(--shadow-focus-accent);
  outline: none;
}
.checkout-form textarea { resize: vertical; min-height: 96px; }
.checkout-form .form-check {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  font-size: var(--text-sm);
}

.order-recap {
  margin: var(--space-lg) 0;
}
.order-recap__title {
  font-size: var(--text-lg);
  margin-bottom: var(--space-sm);
  border-bottom: 3px solid var(--a);
  padding-bottom: var(--space-xs);
}
.order-recap__table {
  width: 100%;
  max-width: 520px;
  border-collapse: collapse;
  font-size: var(--text-sm);
}
.order-recap__table th {
  text-align: left;
  font-weight: 600;
  color: var(--m);
  padding: var(--space-sm) var(--space-md) var(--space-sm) 0;
  vertical-align: top;
  width: 42%;
}
.order-recap__table td {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--b);
}
.order-recap__total th,
.order-recap__total td {
  border-bottom: none;
  padding-top: var(--space-md);
  font-size: var(--text-base);
}

.checkout-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  min-width: 0;
}

@media (min-width: 701px) {
  .checkout-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Page demande de devis */
.devis-page__head {
  margin-bottom: var(--space-lg);
}
.devis-page__title {
  margin-bottom: var(--space-sm);
}
.devis-page__lead {
  margin-bottom: 0;
  line-height: var(--leading-normal);
}

/* Page contact */
.container--contact {
  max-width: var(--site-shell-max);
}

.contact-page__hero {
  margin-bottom: var(--space-xl);
  max-width: 46rem;
}

.contact-page__title {
  font-family: var(--font-heading);
  font-size: clamp(var(--text-2xl), 3vw, var(--text-3xl));
  color: var(--p);
  margin: 0 0 var(--space-sm);
}

.contact-page__lead {
  margin: 0;
  line-height: 1.6;
  font-size: var(--text-base);
}

.contact-page__lead a {
  color: var(--a);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-page__grid {
  display: grid;
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
  align-items: start;
  min-width: 0;
}

.contact-page__grid > * {
  min-width: 0;
  max-width: 100%;
}

@media (min-width: 900px) {
  .contact-page__grid {
    grid-template-columns: minmax(300px, 1fr) minmax(0, 1.15fr);
  }
}

.contact-page__panel {
  padding: var(--space-lg);
  min-width: 0;
  max-width: 100%;
}

.contact-page__h2 {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  color: var(--p);
  margin: 0 0 var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--b);
}

.contact-page__h3 {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--p);
  margin: var(--space-lg) 0 var(--space-xs);
}

.contact-page__h3:first-of-type {
  margin-top: var(--space-md);
}

.contact-page__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-page__list a {
  color: var(--a);
  font-weight: 600;
  word-break: break-word;
}

.contact-page__label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 2px;
}

.contact-page__hint {
  display: block;
  margin-top: 2px;
}

.contact-page__address-lines {
  margin: 0 0 var(--space-sm);
  line-height: 1.5;
}

.contact-page__map {
  margin-top: var(--space-lg);
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--b);
  background: var(--bg);
  aspect-ratio: 16 / 10;
  min-height: 220px;
  min-width: 0;
  max-width: 100%;
}

.contact-page__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 220px;
}

.contact-page__form {
  position: relative;
}

.contact-page__faq.home-faq {
  margin-bottom: 0;
}

.contact-page .home-faq.card h2 {
  border-bottom: none;
  margin-bottom: var(--space-lg);
}

.contact-page__logged-banner {
  padding: var(--space-md);
  margin-bottom: var(--space-lg);
  border-radius: var(--r);
  border: 1px solid rgba(8, 145, 178, 0.25);
  background: rgba(236, 254, 255, 0.45);
  line-height: 1.5;
}

.contact-page__logged-banner a {
  font-weight: 600;
  color: var(--a);
}

.contact-page__create-check {
  align-items: flex-start;
  gap: var(--space-sm);
  margin: 0;
}

.contact-page__create-check input {
  margin-top: 0.2em;
}

.contact-page__account-fields {
  padding-top: var(--space-xs);
}

/* ========== ADMIN (MVP) ========== */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}
.admin-table th,
.admin-table td {
  padding: var(--space-sm) var(--space-md);
  text-align: left;
  border-bottom: 1px solid var(--b);
}
.admin-table th {
  background: var(--bg);
  font-weight: 600;
  color: var(--p);
}
.admin-table tbody tr:hover {
  background: rgba(8, 145, 178, 0.06);
}

.order-detail-dl {
  display: grid;
  grid-template-columns: minmax(120px, 180px) 1fr;
  gap: var(--space-xs) var(--space-md);
  margin: 0;
  font-size: var(--text-sm);
}
.order-detail-dl dt {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}
.order-detail-dl dd {
  margin: 0;
}
.h3-like {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--p);
}

/* ========== CATALOGUE ACCUEIL ========== */
/* Grille intrinsèquement résiliente : min(100%, 240px) empêche tout
   débordement horizontal même quand le conteneur est plus étroit que 240px. */
.catalog-grid {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 640px) {
  .catalog-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  }
}

@media (min-width: 1200px) {
  .catalog-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
    gap: var(--space-lg);
  }
}

/* Lien admin « modifier fiche » — même rendu partout (accueil, hubs, fiche produit) */
.admin-edit-host {
  display: grid;
  position: relative;
  min-width: 0;
}

.admin-edit-host > *:not(.admin-product-edit-link) {
  grid-area: 1 / 1;
  min-width: 0;
}

.home-product-card-host,
.catalog-card-host {
  height: 100%;
}

.home-product-card-host > .admin-product-edit-link {
  margin-top: calc(clamp(0.85rem, 1.5vw, 1.1rem) + 0.5rem);
  margin-right: calc(clamp(0.85rem, 1.5vw, 1.1rem) + 0.5rem);
}

.product-hero__visual-stack {
  width: 100%;
  min-height: 160px;
}

.admin-product-edit-link {
  grid-area: 1 / 1;
  place-self: start end;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin: 0.5rem 0.5rem 0 0;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--p) 14%, transparent);
  background: color-mix(in srgb, var(--p) 84%, transparent);
  color: #fff;
  font-size: 0.72rem;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 4px 14px -6px rgba(15, 23, 42, 0.45);
  opacity: 0.94;
  pointer-events: auto;
  transition: opacity var(--ease), background var(--ease), transform var(--ease), border-color var(--ease), box-shadow var(--ease);
}

.admin-product-edit-link:hover {
  opacity: 1;
  background: var(--a);
  border-color: color-mix(in srgb, var(--a) 55%, transparent);
  color: #fff;
  transform: scale(1.06);
  box-shadow: 0 6px 18px -8px rgba(8, 145, 178, 0.55);
}

/* Cartes produit — listing épuré, angles du site (--r) */
.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--b);
  border-radius: var(--product-card-radius);
  overflow: hidden;
  color: var(--p);
  transition: border-color var(--ease);
}
.product-card:hover {
  border-color: color-mix(in srgb, var(--p) 22%, var(--b));
}
.product-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #fff;
  overflow: hidden;
  isolation: isolate;
  contain: paint;
  flex-shrink: 0;
}
/* Annule `picture { display: contents }` : sinon l’img sort du cadre et recouvre le SKU. */
.product-card__media picture {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: clamp(0.7rem, 2.4vw, 1.15rem);
  box-sizing: border-box;
}
.product-card__media img,
.product-card__img,
.product-card .hub-card__img,
.product-card .catalog-card__img,
.product-card .home-product-card__img {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
  object-position: center;
  display: block;
}
.product-card__placeholder {
  position: absolute;
  inset: 28%;
  width: auto;
  height: auto;
  border-radius: var(--r);
  background: color-mix(in srgb, var(--b) 70%, #fff);
}
.product-card__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
  padding: var(--space-sm) var(--product-card-pad) var(--product-card-pad);
  background: var(--card);
  min-width: 0;
}
.product-card__sku {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--m);
  line-height: 1.3;
}
.product-card__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--p);
  overflow-wrap: anywhere;
}
.product-card__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.65rem;
  margin-top: auto;
  padding-top: 0.7rem;
}
.product-card__pricing {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}
.product-card__price-ht {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--p);
  letter-spacing: -0.02em;
}
.product-card__price-ttc {
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--m);
}
.product-card__was {
  font-size: 0.75rem;
  color: var(--m);
  text-decoration: line-through;
}
.product-card__discount {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.08rem 0.32rem;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  background: var(--d);
  border-radius: var(--r);
  text-decoration: none;
}
.product-card__stock {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
  text-transform: lowercase;
  color: var(--s);
  text-align: right;
}

.catalog-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-sm);
  min-height: 5.5rem;
  padding: 0;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--b);
  border-radius: var(--product-card-radius);
  color: var(--p);
  transition: border-color var(--ease);
  container-type: inline-size;
  container-name: catcard;
}
.catalog-card__media {
  display: grid;
  place-items: stretch;
  margin: 0;
  aspect-ratio: 4 / 3;
  background: #fff;
  padding: clamp(0.65rem, 2vw, 1rem);
  overflow: hidden;
  min-height: 0;
}
.catalog-card__img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}
.catalog-card .catalog-card__title,
.catalog-card .catalog-card__cta {
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}
.catalog-card .catalog-card__title {
  padding-top: var(--space-lg);
}
.catalog-card--pole-entry .catalog-card__subtitle {
  display: block;
  padding: 0 var(--space-lg);
  font-size: var(--text-sm);
  line-height: 1.45;
  margin-top: calc(-1 * var(--space-xs));
}
.catalog-card .catalog-card__cta {
  padding-bottom: var(--space-lg);
}
.catalog-card:hover {
  border-color: color-mix(in srgb, var(--p) 22%, var(--b));
  color: var(--p);
}
.catalog-card__title {
  font-weight: 600;
  font-size: var(--text-base);
  line-height: var(--leading-tight);
}
.catalog-card__cta {
  font-size: var(--text-sm);
  color: var(--a);
  font-weight: 500;
}
.catalog-card:hover .catalog-card__cta {
  color: var(--p);
}

#catalogue h3.h3-like {
  margin-top: var(--space-xl);
}
#catalogue h3.h3-like:first-of-type {
  margin-top: var(--space-md);
}

/* Pages légales */
.legal-page__body {
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--t);
}
.legal-page__body h2 {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--p);
  margin: var(--space-xl) 0 var(--space-md);
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid var(--b);
}
.legal-page__body h2:first-child {
  margin-top: var(--space-md);
}
.legal-page__body h3 {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--p);
  margin: var(--space-lg) 0 var(--space-sm);
}
.legal-page__body h4 {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--p);
  margin: var(--space-lg) 0 var(--space-sm);
}
.legal-page__body ul.legal-inline-list {
  list-style: none;
  padding-left: 0;
}
.legal-page__body ul.legal-inline-list li {
  margin-bottom: var(--space-xs);
}
.legal-page__body p {
  margin: 0 0 var(--space-md);
}
.legal-page__body ul {
  margin: 0 0 var(--space-md);
  padding-left: 1.25rem;
}
.legal-page__body a {
  color: var(--a);
  font-weight: 500;
}
.legal-page__body a:hover {
  text-decoration: underline;
}

/* Bandeau cookies (cookie-consent.js) */
body.cookie-consent-has-banner {
  padding-bottom: 8.5rem;
}
body.cookie-consent-has-banner .product-sticky-cta {
  display: none;
}
@media (min-width: 640px) {
  body.cookie-consent-has-banner {
    padding-bottom: 0;
  }
}
.cookie-consent {
  position: fixed;
  z-index: var(--z-toast);
  left: 0;
  right: 0;
  bottom: 0;
  /* Safe-area iOS : évite que le bandeau passe sous la home-bar iPhone. */
  padding:
    0.55rem
    calc(0.85rem + env(safe-area-inset-right, 0px))
    calc(0.55rem + env(safe-area-inset-bottom, 0px))
    calc(0.85rem + env(safe-area-inset-left, 0px));
  background: rgba(17, 24, 39, 0.94);
  color: #f8fafc;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
  border-top: 1px solid var(--b);
}
.cookie-consent__inner {
  max-width: var(--site-shell-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
@media (min-width: 640px) {
  .cookie-consent {
    padding:
      var(--space-md)
      calc(var(--space-md) + env(safe-area-inset-right, 0px))
      calc(var(--space-md) + env(safe-area-inset-bottom, 0px))
      calc(var(--space-md) + env(safe-area-inset-left, 0px));
  }
  .cookie-consent__inner {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-lg);
  }
  .cookie-consent__title {
    font-size: var(--text-base);
    margin: 0 0 var(--space-xs);
  }
  .cookie-consent__desc {
    font-size: var(--text-sm);
    line-height: 1.55;
  }
}
.cookie-consent__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0 0 0.2rem;
  color: #fff;
}
.cookie-consent__desc {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: #e2e8f0;
}
.cookie-consent__desc a {
  color: var(--al);
  font-weight: 500;
}
.cookie-consent__desc a:hover {
  color: #fff;
}
.cookie-consent__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  flex-shrink: 0;
  width: 100%;
}
@media (min-width: 640px) {
  .cookie-consent__actions {
    display: flex;
    flex-wrap: wrap;
    width: auto;
  }
}
.cookie-consent .btn.btn-ghost {
  background: transparent;
  border: 1px solid #94a3b8;
  color: #f1f5f9;
}
.cookie-consent .btn.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.cookie-consent__btn {
  width: 100%;
  white-space: normal;
  text-align: center;
  justify-content: center;
  min-height: 44px;
  font-size: 0.8125rem;
  padding: 0.4rem 0.5rem;
  line-height: 1.2;
}
@media (min-width: 640px) {
  .cookie-consent__btn {
    width: auto;
    white-space: nowrap;
    font-size: var(--text-base);
    padding: var(--space-sm) var(--space-lg);
  }
}

/* CTA sur fond sombre : garde le même ratio texte/fond qu’en zone claire */
.cookie-consent .btn.btn-cta {
  background: var(--cta);
  color: #fff;
}

/* ========== BREADCRUMB ========== */
.breadcrumb {
  background: var(--card);
  border-bottom: 1px solid var(--b);
  padding: var(--space-sm) 0;
  font-size: var(--text-sm);
}

/* Le breadcrumb est rendu en tout premier dans <main> (voir `app/includes/header.php`).
   Or `main` a un padding-top global : sans compensation, ça crée une “barre” vide entre header et breadcrumb. */
main > .breadcrumb {
  margin-top: calc(-1 * var(--space-xl));
}
.breadcrumb__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 var(--space-xs);
  padding: 0;
  margin: 0;
}
.breadcrumb__item {
  display: flex;
  align-items: center;
  color: var(--m);
}
.breadcrumb__item + .breadcrumb__item::before {
  content: '/';
  margin-right: var(--space-xs);
  color: var(--muted);
  pointer-events: none;
}
.breadcrumb__item a {
  color: var(--a);
  transition: color var(--ease);
}
.breadcrumb__item a:hover {
  color: var(--p);
  text-decoration: underline;
}
.breadcrumb__item--current span {
  color: var(--m);
  font-weight: 500;
}

/* ========== ACCESSIBILITÉ : FOCUS VISIBLE (WCAG 2.4.7) ========== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--a);
  outline-offset: 2px;
}

.is-hidden {
  display: none !important;
}

/* ========== FICHE PRODUIT ========== */
body.product-page main {
  padding-bottom: calc(var(--space-2xl) + 4rem);
}

@media (min-width: 900px) {
  body.product-page main {
    padding-bottom: var(--space-2xl);
  }
}

.product-page-inner {
  padding-bottom: var(--space-xl);
}

.product-hero {
  margin-bottom: var(--space-lg);
  overflow: hidden;
}

.product-hero--premium {
  border: 1px solid var(--b);
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.06);
}

.product-kicker {
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--a);
  margin: 0 0 var(--space-sm);
}

.product-hero__title--pole {
  font-size: clamp(var(--text-3xl), 4.5vw, var(--text-4xl));
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--p);
}

.product-hero__gamme {
  margin: 0 0 var(--space-md);
  font-size: var(--text-lg);
  line-height: 1.35;
  color: var(--t);
}

.product-hero__gamme-label {
  display: inline-block;
  margin-right: var(--space-sm);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--m);
  vertical-align: middle;
}

.product-hero__gamme-name {
  font-weight: 600;
  color: var(--p);
}

.product-hero__grid {
  display: grid;
  gap: var(--space-xl);
  align-items: start;
}

@media (min-width: 768px) {
  .product-hero__grid {
    grid-template-columns: minmax(240px, 340px) 1fr;
    gap: var(--space-2xl);
    align-items: center;
  }
}

@media (min-width: 1100px) {
  .product-hero__grid {
    grid-template-columns: minmax(320px, min(40vw, 560px)) minmax(0, 1fr);
  }
}

.product-hero__visual {
  border-radius: var(--r);
  background: #fff;
  border: 1px solid var(--b);
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 3vw, 1.75rem);
  overflow: hidden;
}

/* Galerie hero : un seul cadre visuel (.product-gallery__main-wrap), pas de double boîte */
.product-hero__visual--gallery {
  border: none;
  background: transparent;
  padding: 0;
  min-height: 0;
  overflow: visible;
}
.product-hero__img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(52vh, 28rem);
  object-fit: contain;
  object-position: center;
}

.product-hero__placeholder {
  text-align: center;
  padding: var(--space-md);
}

.product-hero__placeholder-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--m);
  line-height: var(--leading-tight);
}

.product-hero__title {
  font-size: clamp(var(--text-2xl), 4vw, var(--text-3xl));
  margin-bottom: var(--space-md);
}

.product-hero__lead {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--t);
  margin-bottom: var(--space-md);
}

.product-hero__info-link-wrap {
  margin: calc(-1 * var(--space-sm)) 0 var(--space-md);
}

.product-hero__info-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem var(--space-md);
  margin: calc(-1 * var(--space-sm)) 0 var(--space-md);
}

.product-hero__info-link {
  position: relative;
  z-index: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 0.2rem;
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--p);
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0.28em 0.48em 0.28em 0.38em;
  margin: 0;
  font-family: inherit;
  cursor: pointer;
  line-height: 1.35;
  transition: color 0.18s ease, transform 0.18s ease;
  transform: rotate(-0.2deg);
  transform-origin: left center;
}

.product-hero__info-link-label {
  line-height: 1.35;
}

.product-hero__info-link-icons {
  display: inline-flex;
  align-items: center;
  color: var(--cta);
  flex-shrink: 0;
  position: relative;
  top: 0.06em;
  transition: color 0.18s ease;
}

.product-hero__info-link-arrow {
  display: block;
  width: 0.52rem;
  height: 0.68rem;
  transition: transform 0.18s ease;
}

.product-hero__info-link-expand {
  position: relative;
  display: block;
  width: 0.72rem;
  height: 0.72rem;
  flex-shrink: 0;
}

.product-hero__info-link-expand-corner {
  position: absolute;
  display: block;
  width: 0.46rem;
  height: 0.46rem;
  transition: transform 0.2s ease;
}

.product-hero__info-link-expand-corner--bl {
  left: 0;
  bottom: 0;
}

.product-hero__info-link-expand-corner--tr {
  top: 0;
  right: 0;
}

.product-hero__info-link::before {
  content: '';
  position: absolute;
  inset: -0.04em -0.12em;
  z-index: -1;
  background-image: url("/assets/img/ui/brush-stroke-highlight.svg");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: center;
  opacity: 0.34;
  transform: rotate(-0.35deg);
  transform-origin: left center;
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}

.product-hero__info-link:hover,
.product-hero__info-link:focus-visible {
  color: var(--a);
  text-decoration: none;
  transform: rotate(-0.2deg) translateY(-1px);
}

.product-hero__info-link:hover .product-hero__info-link-icons,
.product-hero__info-link:focus-visible .product-hero__info-link-icons {
  color: var(--cta-hover);
}

.product-hero__info-link--scroll:hover .product-hero__info-link-arrow,
.product-hero__info-link--scroll:focus-visible .product-hero__info-link-arrow {
  transform: translateY(2px);
}

.product-hero__info-link--pop:hover .product-hero__info-link-expand-corner--bl,
.product-hero__info-link--pop:focus-visible .product-hero__info-link-expand-corner--bl {
  transform: translate(-1.5px, 1.5px);
}

.product-hero__info-link--pop:hover .product-hero__info-link-expand-corner--tr,
.product-hero__info-link--pop:focus-visible .product-hero__info-link-expand-corner--tr {
  transform: translate(1.5px, -1.5px);
}

.product-hero__info-link:hover::before,
.product-hero__info-link:focus-visible::before {
  opacity: 0.88;
  transform: rotate(-0.35deg) scale(1.015);
}

.product-hero__info-link--btn {
  text-align: left;
}

.product-page--seo-deferred .product-hero {
  margin-bottom: var(--space-md);
}

.product-page--seo-deferred #product-flow-step-config,
.product-page--seo-deferred #product-configurator {
  scroll-margin-top: calc(var(--header-h, 72px) + var(--space-md));
}

.product-hero__from {
  font-size: var(--text-base);
  margin: var(--space-lg) 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-sm) var(--space-md);
  /* Padding horizontal fluide pour laisser de la place au prix sur 320–360 px. */
  padding: var(--space-md) clamp(var(--space-sm), 3vw, var(--space-lg));
  background: linear-gradient(135deg, var(--al) 0%, #fff 100%);
  border: 1px solid rgba(8, 145, 178, 0.2);
  border-radius: var(--r);
}

.product-hero__from-label {
  font-size: var(--text-sm);
  color: var(--m);
  width: 100%;
  margin-bottom: calc(-1 * var(--space-xs));
}

.product-hero__from-was {
  text-decoration: line-through;
  color: var(--m);
  font-weight: 500;
  margin-right: 0.35rem;
}

.product-hero__from-price {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--p);
  font-variant-numeric: tabular-nums;
  /* Évite qu'un prix type "1 234,56 €" soit cassé au milieu sur petit écran. */
  white-space: nowrap;
}

.product-price-panel__was {
  text-decoration: line-through;
  color: var(--m);
  font-weight: 500;
  margin-right: 0.4rem;
}

.product-hero__from-unit {
  font-size: var(--text-sm);
  color: var(--m);
}

.product-hero__from-hint {
  font-size: var(--text-sm);
  width: 100%;
  margin-top: var(--space-xs);
}

.product-hero__from-note {
  margin: 0.4rem 0 0;
  max-width: 28rem;
  line-height: 1.4;
}

/* Fiche produit : 2 colonnes en grille, colonne prix sticky au scroll (desktop) */
.product-layout--split {
  display: grid;
  gap: var(--space-xl);
  align-items: start;
}

.product-layout__buy {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  min-width: 0;
}

@media (min-width: 1100px) {
  .product-layout--split {
    grid-template-columns: minmax(0, 1.25fr) minmax(380px, 1fr);
    gap: var(--space-lg);
    /* stretch = colonne droite aussi haute que le configurateur → sticky prix opérationnel */
    align-items: stretch;
  }
}

.product-layout__rest {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

/*
  Colonne droite : carte prix sticky en desktop (voir bloc @media 1100px plus bas).
*/
.product-pricing-column {
  min-width: 0;
}

/* Parcours fiche produit : grandes étapes en accordéon exclusif + compteur automatique */
.product-flow {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  counter-reset: product-flow-step;
}

.product-flow__step.card {
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 6px 22px rgba(15, 23, 42, 0.06);
}

.product-flow__summary {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr) 1.6rem;
  align-items: center;
  gap: var(--space-sm) var(--space-md);
  padding: var(--space-md) var(--space-md);
  cursor: pointer;
  list-style: none;
  user-select: none;
  background: linear-gradient(180deg, rgba(8, 145, 178, 0.07), rgba(255, 255, 255, 0));
}

.product-flow__summary::-webkit-details-marker {
  display: none;
}

.product-flow__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  background: rgba(8, 145, 178, 0.14);
  color: var(--a);
  font-weight: 800;
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
}

.product-flow__num::before {
  counter-increment: product-flow-step;
  content: counter(product-flow-step);
}

.product-flow__step[open] > .product-flow__summary .product-flow__num {
  background: var(--a);
  color: #fff;
}

.product-flow__summary-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.product-flow__title {
  font-family: var(--font-heading);
  font-weight: 750;
  font-size: var(--text-lg);
  color: var(--p);
  letter-spacing: -0.01em;
}

.product-flow__recap {
  font-size: var(--text-sm);
  font-weight: 650;
  color: rgba(15, 23, 42, 0.62);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.product-flow__recap:empty { display: none; }

/* Sur formats intermédiaires : on autorise le récap à passer sur 2 lignes si besoin */
@media (max-width: 980px) {
  .product-flow__recap {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

.product-flow__chev {
  color: var(--a);
  font-weight: 800;
  opacity: 0.85;
  transform: rotate(0deg);
  transition: transform 0.22s ease;
  justify-self: end;
}

.product-flow__step[open] > .product-flow__summary .product-flow__chev {
  transform: rotate(180deg);
}

.product-flow__panel {
  padding: 0 var(--space-md) var(--space-md);
  border-top: 1px solid rgba(15, 23, 42, 0.07);
}

.product-flow__panel--trust {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.product-flow__panel > .product-config {
  margin: 0;
  padding: var(--space-md) 0 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.product-flow__panel .product-faq {
  margin-top: 0;
}

@media (max-width: 560px) {
  .product-flow__summary { grid-template-columns: 2.35rem 1fr 1.35rem; }
}

.product-pricing-card {
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(8, 145, 178, 0.15);
}

.product-pricing-card--decision {
  border-color: rgba(226, 89, 60, 0.22);
}

/* Pas de sticky sur « Votre prix » : sinon la carte recouvre la grille des paliers. Le total reste accessible via le bandeau bas. */
.product-pricing-card--nudge {
  box-shadow:
    0 0 0 4px rgba(226, 89, 60, 0.12),
    0 14px 46px rgba(15, 23, 42, 0.12);
  border-color: rgba(226, 89, 60, 0.55);
  transform: translateY(-1px);
  transition: box-shadow 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.product-pricing-tiers-card {
  border: 1px solid var(--b);
  background: var(--card);
}

.product-pricing-card__lead {
  margin: 0 0 var(--space-lg);
  max-width: 38rem;
}

.product-pricing-card .product-price-panel {
  margin-bottom: var(--space-md);
}

.product-pricing-card .product-actions__primary {
  width: 100%;
}


.product-config__intro {
  margin: calc(-1 * var(--space-xs)) 0 var(--space-md);
  max-width: 38rem;
}

/* Parcours configurateur : étapes en accordéon (une section à la fois sur mobile) */
.product-config--exaprint .product-config__tagline {
  margin-bottom: var(--space-md);
}

/* Configurateur “liste” façon Exaprint */
.configurator {
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: var(--r);
  background: #fff;
  overflow: hidden;
}

.configurator__head {
  padding: var(--space-md);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, rgba(8, 145, 178, 0.06), rgba(255, 255, 255, 0));
}

.configurator__kicker {
  display: inline-block;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.configurator__list {
  display: flex;
  flex-direction: column;
}

.config-item {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}
.config-item:first-child {
  border-top: none;
}

.config-item__summary {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr) minmax(7rem, 13rem) 1.25rem;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.85rem var(--space-md);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.config-item__summary::-webkit-details-marker { display: none; }

.config-item__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(8, 145, 178, 0.12);
  color: var(--a);
  font-weight: 800;
  font-size: var(--text-sm);
}

.config-item[open] .config-item__num {
  background: var(--a);
  color: #fff;
}

.config-item__label {
  font-weight: 750;
  color: var(--p);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.config-item__value {
  justify-self: end;
  color: var(--m);
  font-weight: 600;
  text-align: right;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 820px) and (min-width: 561px) {
  .config-item__summary {
    grid-template-columns: 2.25rem 1fr 1.25rem;
    grid-template-areas:
      "n l c"
      "n v c";
    align-items: start;
  }
  .config-item__num { grid-area: n; margin-top: 0.1rem; }
  .config-item__label { grid-area: l; }
  .config-item__value {
    grid-area: v;
    justify-self: start;
    text-align: left;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .config-item__chev { grid-area: c; }
}

.config-item__chev {
  justify-self: end;
  color: var(--a);
  opacity: 0.8;
  transform: rotate(0deg);
  transition: transform 0.2s ease;
  font-weight: 800;
}
.config-item[open] .config-item__chev {
  transform: rotate(180deg);
}

.config-item__body {
  padding: 0 var(--space-md) var(--space-md);
}

.config-item__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: var(--space-sm);
}

@media (max-width: 560px) {
  .config-item__summary {
    grid-template-columns: 2.25rem 1fr 1.25rem;
    grid-template-areas:
      "n l c"
      "n v c";
    align-items: start;
  }
  .config-item__num { grid-area: n; margin-top: 0.1rem; }
  .config-item__label { grid-area: l; }
  .config-item__value { grid-area: v; justify-self: start; text-align: left; }
  .config-item__chev { grid-area: c; }
}

/* Ancien accordéon 2-étapes conservé ailleurs : styles inchangés en dehors de product-config--exaprint. */

.product-step__summary::-webkit-details-marker {
  display: none;
}

.product-step__summary::after {
  content: "";
  flex-shrink: 0;
  width: 0.5rem;
  height: 0.5rem;
  margin-left: auto;
  border-right: 2px solid var(--a);
  border-bottom: 2px solid var(--a);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  opacity: 0.75;
}

.product-config-step[open] > .product-step__summary::after {
  transform: rotate(225deg);
  margin-top: 0.5rem;
}

.product-step__num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: linear-gradient(145deg, var(--a), #0e7490);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 700;
}

.product-config-step[open] .product-step__num {
  background: linear-gradient(145deg, var(--cta), #c94a30);
}

.product-step__head {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  flex: 1 1 14rem;
  padding-right: var(--space-xs);
}

@media (max-width: 899px) {
  .product-step__summary {
    flex-wrap: wrap;
  }
  .product-step__head {
    flex-basis: calc(100% - 2.75rem);
  }
}

.product-step__title {
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--p);
}

.product-step__recap {
  display: block;
  line-height: 1.35;
}

.product-step__body {
  padding: 0 var(--space-md) var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.product-step__body > .product-wizard:first-child {
  margin-top: var(--space-sm);
}

.product-step__continue-wrap {
  margin: var(--space-sm) 0 0;
}

.product-step__continue-wrap .product-step__next {
  width: 100%;
  justify-content: center;
}

@media (min-width: 900px) {
  .product-step__continue-wrap .product-step__next {
    width: auto;
    min-width: 16rem;
  }
}

.product-step__hint-to-price {
  margin: var(--space-xs) 0 0;
  padding-top: var(--space-sm);
  border-top: 1px dashed rgba(15, 23, 42, 0.1);
}

/* Accordéons configuration (type configurateur pro : titre + résumé repliable) */
.product-config-acc {
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: var(--r);
  background: #fff;
  margin-bottom: var(--space-sm);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.product-config-acc[open] {
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
  border-color: rgba(8, 145, 178, 0.28);
}

.product-config-acc__summary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: var(--p);
  user-select: none;
}

.product-config-acc__summary::-webkit-details-marker {
  display: none;
}

.product-config-acc__summary::after {
  content: "";
  flex-shrink: 0;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid var(--a);
  border-bottom: 2px solid var(--a);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  opacity: 0.75;
}

.product-config-acc[open] > .product-config-acc__summary::after {
  transform: rotate(225deg);
  margin-top: 0.15rem;
}

.product-config-acc__summary-main {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  flex: 0 1 auto;
}

.product-config-acc__label {
  font-size: var(--text-sm);
}

.product-config-acc__preview {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--m);
  text-align: right;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-config-acc__panel {
  padding: 0 var(--space-md) var(--space-md);
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  padding-top: var(--space-sm);
}

.product-pricing-tiers-card .product-price-grid__intro {
  margin-top: 0;
}

/* Grille paliers : zone scrollable = moins de colonne droite interminable, même info accessible */
.product-pricing-tiers-card .table-scroll {
  max-height: min(28rem, 55vh);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--b);
  border-radius: var(--r);
  margin: 0;
  padding: 0;
  background: var(--card);
}

/* Grille prix : afficher toutes les colonnes (sans scroll horizontal) */
.product-price-grid--fit {
  table-layout: fixed;
  width: 100%;
}
.product-price-grid__col--qty { width: 32%; }
.product-price-grid__col--delay { width: auto; }

.product-pricing-tiers-card .product-price-grid thead th {
  position: sticky;
  top: 0;
  z-index: var(--z-base);
  box-shadow: 0 1px 0 var(--b);
  background: var(--bg);
}

.product-pricing-tiers-card .product-price-grid__th--standard {
  background: linear-gradient(180deg, rgba(8, 145, 178, 0.14) 0%, var(--bg) 100%);
}

.product-cross-sell {
  margin-top: var(--space-2xl);
  border: 1px dashed rgba(8, 145, 178, 0.35);
  background: linear-gradient(180deg, rgba(236, 254, 255, 0.5) 0%, var(--card) 100%);
}

.product-section-title--cross {
  border-bottom-color: rgba(226, 89, 60, 0.45);
}

.product-cross-sell__intro {
  margin: 0 0 var(--space-lg);
  max-width: 40rem;
}

.product-cross-sell__grid {
  margin-top: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 640px) {
  .product-cross-sell__grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  }
}

@media (min-width: 900px) {
  .product-cross-sell__grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  }
}

.product-section-title {
  font-size: var(--text-xl);
  margin: 0 0 var(--space-md);
  color: var(--p);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.product-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--a);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 700;
  flex-shrink: 0;
}

.card h2.product-section-title {
  border-bottom: 3px solid var(--a);
  padding-bottom: var(--space-sm);
}

.card h2.product-section-title--simple {
  border-bottom: none;
  padding-bottom: 0;
  font-size: var(--text-xl);
  margin-bottom: var(--space-xs);
}

.product-config__tagline {
  margin: 0 0 var(--space-md);
  max-width: 36rem;
}

.product-config-qty-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm) var(--space-md);
  padding: var(--space-sm) 0;
  border-top: 1px dashed rgba(15, 23, 42, 0.12);
  margin-top: var(--space-xs);
}

.product-config-qty-inline__label {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--p);
  margin: 0;
}

.product-config-qty-inline__hint {
  margin: 0;
}

.product-config-acc__optional {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--m);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-left: 0.25rem;
}

.product-config__fields {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.product-config__row {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.product-config__label {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--p);
}

.product-config__mono {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: baseline;
  font-size: var(--text-base);
}

.product-config__mono .product-config__label {
  margin-right: var(--space-sm);
}

.product-input {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--b);
  border-radius: var(--r);
  width: 100%;
  max-width: 420px;
  min-height: 48px;
  box-sizing: border-box;
  background: #fff;
  color: var(--t);
}

.product-config__hint {
  margin: 0;
}

.product-config__row--variant-hidden .product-config__label,
.product-config__row--variant-hidden .product-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Configurateur : étapes empilées, grille dense */
.product-wizard {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-xs);
}

.product-config-acc__summary--wizard {
  padding: 0.75rem 0.85rem;
}

.product-wizard__badge--step {
  min-width: 1.85rem;
  height: 1.85rem;
  font-size: var(--text-sm);
}

.product-config-acc--wizard-step.product-wizard-step--locked {
  opacity: 0.7;
}

.product-config-acc--wizard-step.product-wizard-step--locked .product-config-acc__preview {
  color: var(--d);
  font-weight: 600;
}

.product-wizard__panel {
  padding-top: var(--space-sm);
}

.product-wizard__step-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: var(--space-sm);
}

.product-wizard__step-actions .product-wizard__next {
  min-width: 10rem;
}

.product-wizard__heading {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  font-size: var(--text-sm);
  margin: 0 0 var(--space-xs);
  color: var(--p);
}

.product-wizard__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: var(--a);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 700;
}

.product-wizard__choices {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 8.5rem), 1fr));
  gap: 0.35rem;
}

@media (min-width: 520px) {
  .product-wizard__choices {
    grid-template-columns: repeat(auto-fill, minmax(9.25rem, 1fr));
  }
}

.product-wizard__choice {
  border: 1px solid var(--b);
  background: #fff;
  border-radius: var(--r);
  padding: 0.4rem 0.55rem;
  font: inherit;
  font-size: var(--text-sm);
  line-height: 1.25;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  text-align: left;
  color: var(--p);
  min-height: 2.6rem;
  align-content: center;
}

.product-wizard__choice:hover:not(:disabled) {
  border-color: var(--a);
}

.product-wizard__choice--active {
  border-color: var(--cta);
  border-width: 2px;
  padding: calc(0.4rem - 1px) calc(0.55rem - 1px);
  box-shadow: 0 0 0 0.1rem rgba(226, 89, 60, 0.2);
}

.product-wizard__choice--disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.product-perso {
  margin-bottom: 0;
}

.product-perso__intro {
  margin: 0 0 var(--space-sm);
}

.product-perso__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.product-perso__item {
  margin-bottom: 0.25rem;
}

.product-input--qty {
  max-width: 11rem;
  min-height: 2.75rem;
}

.product-perso__label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  cursor: pointer;
}

.product-perso__cb {
  margin-top: 0.2rem;
  accent-color: var(--a);
}

.product-perso__text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.product-perso__price {
  font-size: var(--text-sm);
  color: var(--s);
  font-weight: 600;
}

.product-price-panel {
  background: var(--cta-l);
  border: 1px solid rgba(226, 89, 60, 0.25);
  border-radius: var(--r);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.product-price-panel--simple {
  padding: var(--space-md);
  margin-bottom: var(--space-md);
}

.product-price-panel__hero-total {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.5rem;
  margin: 0 0 var(--space-sm);
}

.product-price-panel__hero-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--m);
  width: 100%;
}

.product-price-panel__hero-amount {
  font-family: var(--font-heading);
  font-size: clamp(1.65rem, 4vw, 2rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--p);
}

.product-price-panel__hero-currency {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--m);
}

.product-price-panel__meta {
  margin: 0;
  line-height: 1.45;
}

.product-price-panel__title {
  font-size: var(--text-lg);
  margin: 0 0 var(--space-md);
  color: var(--p);
}

.product-price-panel__line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-sm);
  justify-content: space-between;
  margin: 0 0 var(--space-sm);
  font-size: var(--text-base);
}

.product-price-panel__line--total {
  font-size: var(--text-lg);
  padding-top: var(--space-sm);
  border-top: 1px dashed var(--b);
  margin-top: var(--space-sm);
}

.product-price-panel__line strong {
  font-variant-numeric: tabular-nums;
  color: var(--p);
}

.product-price-panel__currency {
  color: var(--m);
  font-size: var(--text-sm);
}

.product-price-panel__ht {
  margin: 0 0 var(--space-sm);
}

.product-vat-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.product-vat-toggle input {
  width: 1.125rem;
  height: 1.125rem;
  accent-color: var(--a);
}

.product-vat-toggle label {
  font-size: var(--text-sm);
  cursor: pointer;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: center;
}

.product-actions__primary {
  flex: 1 1 220px;
  justify-content: center;
  text-align: center;
}

.product-cart-msg:empty {
  display: none;
}

.product-cart-msg {
  margin-top: var(--space-sm);
}

.product-cart-msg--info {
  color: var(--muted, #64748b);
}

.product-cart-msg--success {
  color: var(--s);
}

.product-cart-msg--error {
  color: var(--d);
}

/* États Ajouter au panier (chargement / succès) */
.btn-cta__state {
  display: inline-block;
}

/* L’attribut HTML `hidden` est écrasé par la règle ci-dessus (même spécificité) — forcer le masquage. */
.btn-cta__state[hidden] {
  display: none !important;
}

.btn-cta[aria-busy="true"] {
  cursor: wait;
  opacity: 0.92;
}

/* CTA verrouillé tant que la configuration wizard n'est pas complète */
.btn-cta--locked,
.btn-cta--locked:hover,
.btn-cta--locked:focus {
  background: var(--m) !important;
  border-color: var(--m) !important;
  color: var(--w-text, #fff) !important;
  cursor: not-allowed !important;
  opacity: 0.7;
  box-shadow: none !important;
  transform: none !important;
}
/* Gris discret, pas d'icône ajoutée : le texte du bouton reste lisible et l'état est clair via l'opacité + le curseur. */

.product-price-grid__intro {
  margin-bottom: var(--space-sm);
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 calc(-1 * var(--space-md));
  padding: 0 var(--space-md);
}

@media (min-width: 768px) {
  .table-scroll {
    margin: 0;
    padding: 0;
  }
}

.product-price-grid {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.product-price-grid th,
.product-price-grid td {
  padding: 0.65rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--b);
  vertical-align: top;
}

.product-price-grid thead th {
  background: var(--bg);
  font-weight: 800;
  color: var(--p);
  white-space: normal;
  line-height: 1.25;
}

.product-price-grid__th-title {
  display: block;
  font-weight: 850;
}
.product-price-grid__th-sub {
  display: block;
  font-size: 0.82em;
  font-weight: 600;
  margin-top: 0.15rem;
}

/* Quantité : compacte + lisible */
.product-price-grid tbody th[scope="row"] {
  font-weight: 750;
  color: var(--p);
  white-space: nowrap;
}

/* Affichage “tout visible” : pas de sticky, pas de colonnes forcées */

.product-price-grid__th--standard {
  background: linear-gradient(180deg, rgba(8, 145, 178, 0.12) 0%, var(--bg) 100%);
  box-shadow: inset 0 2px 0 var(--a);
}

.product-price-grid__cell--standard {
  background: rgba(236, 254, 255, 0.5);
}

.product-price-grid tbody th[scope="row"] {
  font-weight: 750;
  color: var(--p);
  white-space: nowrap;
  background: var(--card);
}

.product-price-grid__cell {
  font-variant-numeric: tabular-nums;
}

.product-chip-help {
  background: linear-gradient(180deg, #fff 0%, var(--al) 100%);
}

.product-chip-help__meta {
  margin-bottom: var(--space-md);
}

.product-chip-help__body {
  margin-bottom: var(--space-md);
  line-height: 1.6;
}

.product-chip-help__cta {
  margin-bottom: var(--space-md);
  color: var(--p);
}

.product-chip-help__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.product-long-desc__body {
  line-height: 1.65;
  color: var(--t);
}

.product-faq {
  margin-top: var(--space-md);
}

.product-faq__list {
  list-style: none;
  margin: var(--space-md) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.product-faq__item-wrap {
  margin: 0;
}

.product-faq__summary {
  font-weight: 600;
  color: var(--p);
}

.product-faq__answer {
  line-height: 1.65;
  padding-top: var(--space-sm);
}

.product-reassurance__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-sm);
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.product-reassurance__list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: var(--text-sm);
  color: var(--m);
}

.product-reassurance__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--s);
  box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.25);
}

.product-reassurance--bar.card {
  padding: var(--space-lg) var(--space-xl);
}

.product-reassurance__list--bar {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-md);
}

.product-reassurance__list--bar li {
  padding-left: 0;
  padding: var(--space-sm) var(--space-md);
  background: var(--card);
  border: 1px solid var(--b);
  border-radius: var(--r);
  font-size: var(--text-sm);
  color: var(--t);
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.product-reassurance__list--bar li::before {
  display: none;
}

.product-reassurance__check {
  color: var(--s);
  font-weight: 700;
  flex-shrink: 0;
}

.product-sticky-cta {
  position: fixed;
  left: 0;
  z-index: var(--z-sticky);
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--b);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08);
  padding: var(--space-sm) 0;
  padding-bottom: calc(var(--space-sm) + env(safe-area-inset-bottom, 0));
}

.product-sticky-cta[hidden] {
  display: none !important;
}

.product-sticky-cta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

.product-sticky-cta__summary {
  flex: 1 1 12rem;
  min-width: 0;
}

.product-sticky-cta__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: stretch;
  gap: var(--space-sm);
  flex: 1 1 100%;
}

.product-sticky-cta__actions .btn {
  flex: 1 1 auto;
  min-width: min(100%, 10rem);
}

@media (min-width: 480px) {
  .product-sticky-cta__actions {
    flex: 0 1 auto;
    justify-content: flex-end;
    flex-shrink: 0;
  }
}

.product-sticky-cta__total {
  margin: 0 0 0.15rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
}

.product-sticky-cta__total-label {
  width: 100%;
  flex-basis: 100%;
}

@media (min-width: 480px) {
  .product-sticky-cta__total-label {
    width: auto;
    flex-basis: auto;
  }
}

.product-sticky-cta__total-amount {
  font-size: var(--text-xl);
  font-variant-numeric: tabular-nums;
  color: var(--p);
}

.product-sticky-cta__total-amount strong {
  font-size: inherit;
  font-weight: 700;
}

.product-sticky-cta__meta {
  margin: 0;
  line-height: 1.45;
  max-width: 42rem;
}

.product-sticky-cta__cart {
  white-space: nowrap;
}

.product-sticky-cta__feedback {
  margin: 0;
  padding-top: var(--space-xs);
  line-height: 1.45;
}

.product-sticky-cta__feedback[hidden] {
  display: none !important;
}

.product-sticky-cta__feedback--info {
  color: var(--muted, #64748b);
}

.product-sticky-cta__feedback--success {
  color: var(--s);
}

.product-sticky-cta__feedback--error {
  color: var(--d);
}

/* Bandeau prix + CTA : visible dès que la carte « Votre prix » sort de l’écran (mobile et desktop). */
@media (min-width: 900px) {
  .product-sticky-cta {
    padding: var(--space-sm) 0;
  }

  .product-sticky-cta__inner {
    max-width: 72rem;
    margin: 0 auto;
    padding-left: var(--space-md);
    padding-right: var(--space-md);
    align-items: stretch;
  }

  .product-sticky-cta__total-amount {
    font-size: var(--text-2xl);
  }

  .product-sticky-cta__actions {
    flex: 0 0 auto;
    align-self: center;
  }
}

/* ========== Panier : lignes détaillées + suggestions ========== */
.cart-page h1 {
  margin-bottom: var(--space-lg);
}

.cart-page__warn {
  margin-bottom: var(--space-md);
}

.cart-lines {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.cart-line {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  grid-template-areas:
    "media main"
    "media qty"
    "media prices"
    "media remove";
  gap: var(--space-sm) var(--space-md);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--b);
  align-items: start;
}

@media (min-width: 640px) {
  .cart-line {
    grid-template-columns: 5.5rem 1fr auto auto auto;
    grid-template-areas: "media main qty prices remove";
    align-items: center;
  }
}

.cart-line:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.cart-line__media {
  grid-area: media;
  display: block;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--al);
  border: 1px solid var(--b);
  align-self: start;
}

.cart-line__media--placeholder {
  aspect-ratio: 1;
  min-height: 4.5rem;
  background: linear-gradient(135deg, var(--al), #e2e8f0);
}

.cart-line__img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 1;
}

.cart-line__main {
  grid-area: main;
  min-width: 0;
}

.cart-line__title {
  font-size: var(--text-lg);
  margin: 0 0 var(--space-xs);
  font-weight: 700;
  color: var(--p);
  line-height: 1.3;
}

.cart-line__title-link {
  color: inherit;
  text-decoration: none;
}

.cart-line__title-link:hover {
  color: var(--a);
  text-decoration: underline;
}

.cart-line__meta {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--text-sm);
  line-height: 1.5;
}

.cart-line__meta-item {
  margin-bottom: 0.2rem;
}

.cart-line__meta-k {
  color: var(--muted);
  font-weight: 600;
  margin-right: 0.35rem;
}

.cart-line__perso {
  margin-top: var(--space-sm);
}

.cart-line__perso-title {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--p);
  margin-bottom: 0.25rem;
}

.cart-line__perso-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: var(--text-sm);
  color: var(--p);
}

.cart-line__qty-wrap {
  grid-area: qty;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
}

.cart-line__qty {
  width: 5rem;
  text-align: right;
}

@media (min-width: 640px) {
  .cart-line__qty-wrap {
    align-items: center;
  }
}

.cart-line__prices {
  grid-area: prices;
  text-align: right;
  font-size: var(--text-sm);
}

.cart-line__total {
  margin-top: 0.15rem;
  font-size: var(--text-base);
}

.cart-line__remove {
  grid-area: remove;
  justify-self: end;
}

.cart-line--error .cart-line__title {
  opacity: 0.85;
}

.cart-line--soon {
  position: relative;
  opacity: 0.82;
}

.cart-line--soon .cart-line__media,
.cart-line--soon .cart-line__media--placeholder {
  filter: grayscale(0.9) saturate(0.45);
}

.cart-line--soon .cart-line__title,
.cart-line--soon .cart-line__meta,
.cart-line--soon .cart-line__prices {
  color: var(--m);
}

.cart-line--soon .cart-line__title-link {
  pointer-events: none;
  color: var(--m);
  text-decoration: none;
}

.cart-line__soon-badge {
  display: inline-flex;
  align-items: center;
  margin-inline-start: 0.5rem;
  padding: 0.15rem 0.55rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #475569;
  background: rgba(148, 163, 184, 0.2);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 999px;
  vertical-align: middle;
}

.cart-page__warn--soon {
  color: #475569;
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: var(--r);
  padding: 0.75rem 1rem;
}

.btn--disabled {
  opacity: 0.55;
  pointer-events: none;
  cursor: not-allowed;
}

.cart-page__subtotal {
  margin-top: var(--space-md);
  font-size: var(--text-lg);
}
.cart-page__totals {
  display: grid;
  gap: 0.15rem;
  width: min(100%, 22rem);
  margin: var(--space-lg) 0 0 auto;
  padding: var(--space-md) 0 0;
  border-top: 1px solid var(--b);
}
.cart-page__totals-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin: 0;
  padding: 0.28rem 0;
  font-size: var(--text-sm);
}
.cart-page__totals-row dt {
  margin: 0;
  color: var(--m);
  font-weight: 500;
  min-width: 0;
}
.cart-page__totals-row dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--p);
  text-align: right;
  white-space: nowrap;
  flex: 0 0 auto;
}
.cart-page__totals-row--before dt {
  color: var(--m);
}
.cart-page__totals-row--before dd {
  color: var(--m);
  font-weight: 500;
  text-decoration: line-through;
}
.cart-page__totals-row--discount dt,
.cart-page__totals-row--discount dd {
  color: var(--d);
  font-weight: 700;
}
.cart-page__totals-row--final {
  padding-top: 0.55rem;
  margin-top: 0.25rem;
  border-top: 1px solid var(--b);
  font-size: var(--text-base);
}
.cart-page__totals-row--final dt {
  color: var(--p);
  font-weight: 700;
}
.cart-page__totals-row--final dd {
  font-size: 1.05rem;
  font-weight: 800;
}
@media (max-width: 639px) {
  .cart-page__totals {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}
.cart-promo {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--b);
}
.cart-promo--checkout {
  margin: 0;
  padding: var(--space-md) var(--space-lg) var(--space-lg);
  border-top: 1px solid var(--b);
}
.cart-promo__label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.cart-promo__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.cart-promo__input {
  flex: 1 1 10rem;
  min-width: 8rem;
}
.cart-promo__msg {
  min-height: 1.25em;
  margin: 0.4rem 0 0;
  font-size: 0.8125rem;
}
.cart-promo__msg--ok {
  color: var(--s);
}
.cart-promo__msg--err {
  color: var(--d);
}
.site-offer-banner {
  background: #111827;
  color: #fff;
  padding: 0.55rem 0;
  font-size: 0.875rem;
  text-align: center;
}
.site-offer-banner__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem 1rem;
}
.site-offer-banner__end {
  opacity: 0.8;
  font-size: 0.8125rem;
}

.offer-callout {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 100%;
  box-sizing: border-box;
  border-radius: 0.85rem;
  background:
    linear-gradient(135deg, rgba(226, 89, 60, 0.18) 0%, rgba(226, 89, 60, 0.08) 42%, rgba(8, 145, 178, 0.16) 100%);
  border: 1px solid rgba(226, 89, 60, 0.45);
  box-shadow: 0 8px 18px rgba(226, 89, 60, 0.1);
  color: var(--p, #111827);
}
.offer-callout__icon {
  display: block;
  flex-shrink: 0;
  width: 1.85rem;
  height: 1.85rem;
  line-height: 0;
}
.offer-callout__icon svg {
  display: block;
  width: 100%;
  height: 100%;
}
.offer-callout__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 0.1rem;
}
.offer-callout__kicker {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cta, #E2593C);
}
.offer-callout__title {
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.offer-callout__end {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--m, #64748b);
}
.offer-callout--chip {
  padding: 0.42rem 0.8rem 0.42rem 0.45rem;
}
.offer-callout--chip .offer-callout__title {
  font-size: 0.95rem;
  white-space: nowrap;
  color: var(--cta, #E2593C);
}
.offer-callout--card {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  z-index: 2;
  padding: 0.22rem 0.5rem 0.22rem 0.28rem;
  gap: 0.32rem;
  pointer-events: none;
}
.offer-callout--card .offer-callout__icon {
  width: 1.25rem;
  height: 1.25rem;
}
.offer-callout--card .offer-callout__title {
  font-size: 0.72rem;
  white-space: nowrap;
  color: var(--cta, #E2593C);
}
.offer-callout--hub {
  display: flex;
  width: 100%;
  margin: 0 0 var(--space-lg, 1.25rem);
  padding: 0.95rem 1.15rem;
  gap: 0.85rem;
  border-radius: 1rem;
}
.offer-callout--hub .offer-callout__icon {
  width: 2.75rem;
  height: 2.75rem;
}
.offer-callout--hub .offer-callout__title {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
}
@media (max-width: 639px) {
  .offer-callout--hub {
    align-items: flex-start;
    padding: 0.8rem 0.9rem;
  }
  .offer-callout--hub .offer-callout__icon {
    width: 2.2rem;
    height: 2.2rem;
    margin-top: 0.1rem;
  }
}
.product-hero__content > .offer-callout--chip {
  display: flex;
  width: fit-content;
  margin: 0.15rem 0 var(--space-sm, 0.75rem);
}
.checkout-totals__row--discount dt,
.checkout-totals__row--discount dd {
  color: var(--d);
}

.cart-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.cart-suggestions {
  margin-top: var(--space-lg);
}

.cart-suggestions__title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-xs);
}

.cart-suggestions__intro {
  margin-bottom: var(--space-md);
  max-width: 40rem;
}

.cart-suggestions__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-md);
}

@media (min-width: 640px) {
  .cart-suggestions__grid {
    grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  }
}

.cart-suggest-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--b);
  border-radius: var(--r);
  padding: var(--space-sm);
  background: var(--card);
  color: inherit;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
  transition: box-shadow var(--ease), transform var(--ease);
}

.cart-suggest-card:hover {
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
  transform: translateY(-2px);
}

.cart-suggest-card__media {
  display: block;
  border-radius: calc(var(--r) - 2px);
  overflow: hidden;
  background: var(--al);
  aspect-ratio: 5 / 3;
  margin-bottom: var(--space-sm);
}

.cart-suggest-card__media--empty {
  background: linear-gradient(135deg, var(--al), #e2e8f0);
}

.cart-suggest-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cart-suggest-card__title {
  display: block;
  font-weight: 600;
  font-size: var(--text-sm);
  line-height: 1.35;
  flex: 1 1 auto;
  color: inherit;
  text-decoration: none;
  margin-bottom: var(--space-xs);
}

.cart-suggest-card__title:hover {
  color: var(--a);
}

.cart-suggest-card__add {
  width: 100%;
  margin-top: auto;
  justify-content: center;
  font-size: var(--text-sm);
  min-height: 42px;
}

.cart-suggest-card__more {
  display: block;
  text-align: center;
  font-size: var(--text-sm);
  color: var(--a);
  margin-top: var(--space-xs);
  text-decoration: none;
}

.cart-suggest-card__more:hover {
  text-decoration: underline;
}

/* ========== Espace client (Mon compte) ========== */
.header-actions__account {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  color: var(--t);
  transition: background var(--ease), color var(--ease);
}

.header-actions__account:hover {
  background: var(--al);
  color: var(--a);
}

.compte-page .breadcrumb {
  margin-bottom: var(--space-md);
}

.compte-auth {
  /* padding vertical uniquement : le padding horizontal est géré par .container
     (les pages /compte combinent `container compte-auth` sur le même élément,
     un shorthand `padding: … 0 …` écraserait le padding-left/right du container). */
  padding-top: var(--space-xl);
  padding-bottom: var(--space-2xl);
}

.compte-auth__grid {
  display: grid;
  gap: var(--space-lg);
  max-width: 960px;
  margin: 0 auto;
}

@media (min-width: 840px) {
  .compte-auth__grid {
    grid-template-columns: 1fr 280px;
    align-items: start;
  }
}

.compte-auth__eyebrow {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--a);
  margin: 0 0 var(--space-xs);
}

.compte-auth__title {
  margin: 0 0 var(--space-sm);
  font-size: 1.65rem;
  font-family: var(--font-heading);
}

.compte-auth__intro {
  margin-bottom: var(--space-md);
}

.compte-auth__hint-tight {
  margin-bottom: 0;
}

.compte-auth__alert {
  margin-bottom: var(--space-md);
}

.compte-auth__card--wide {
  max-width: 560px;
  margin: 0 auto;
}

.compte-auth__aside-title {
  font-size: 1.05rem;
  margin-top: 0;
}

.compte-auth__links {
  list-style: none;
  padding: 0;
  margin: var(--space-md) 0 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.compte-auth__links--spaced {
  margin-top: 1.25rem;
}

.compte-auth__back-mt {
  margin-top: 1.25rem;
}

.compte-auth__foot {
  margin-top: var(--space-lg);
  font-size: var(--text-sm);
}

.compte-fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 var(--space-md);
}

.compte-fieldset legend {
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.compte-dashboard {
  /* padding vertical uniquement — cf. note sur .compte-auth. */
  padding-top: var(--space-lg);
  padding-bottom: var(--space-2xl);
}

.compte-dashboard__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.compte-dashboard__title {
  margin: 0 0 4px;
  font-size: 1.75rem;
  font-family: var(--font-heading);
}

.compte-dashboard__email {
  margin: 0;
}

.compte-dashboard__logout {
  margin: 0;
}

.compte-dashboard__grid {
  display: grid;
  gap: var(--space-lg);
}

/* min-width: 0 sur les enfants de grille → permet à overflow-x:auto de la table interne
   de fonctionner. Sans ça, la grid column grossit jusqu'à la largeur naturelle de la
   table (6 colonnes) et déborde le viewport en mobile. */
.compte-dashboard__grid > .compte-panel {
  min-width: 0;
}

@media (min-width: 900px) {
  .compte-dashboard__grid {
    grid-template-columns: 1fr 1fr;
  }

  .compte-dashboard__grid .compte-panel:first-child {
    grid-column: 1 / -1;
  }
}

.compte-panel__title {
  margin-top: 0;
  font-size: 1.15rem;
  padding-bottom: var(--space-sm);
  border-bottom: 3px solid var(--a);
}

.compte-panel__ok {
  margin-top: 0;
}

.compte-panel__err {
  margin-top: 0;
}

.compte-addresses {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--b);
}

.compte-addresses__title {
  font-size: var(--text-base);
  font-weight: 700;
  margin: 0 0 var(--space-md);
  color: var(--p);
}

.compte-addresses__toggle {
  margin-top: var(--space-md);
}

.compte-addresses__shipping {
  margin-top: var(--space-sm);
}

.compte-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  /* min-width: 0 permet à ce conteneur scroll de rester contraint par son parent
     flex/grid au lieu de grossir à la taille naturelle de la table enfant. */
  min-width: 0;
  max-width: 100%;
}

.compte-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.compte-table th,
.compte-table td {
  padding: var(--space-sm) var(--space-md);
  text-align: left;
  border-bottom: 1px solid var(--b);
}

.compte-table th {
  font-weight: 600;
  color: var(--p);
}

.compte-table__num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.compte-table__actions {
  white-space: nowrap;
}

.compte-table__btn {
  padding: 0.35rem 0.75rem;
  font-size: 0.8125rem;
}

.compte-order-detail {
  /* padding vertical uniquement — cf. note sur .compte-auth. */
  padding-top: var(--space-lg);
  padding-bottom: var(--space-2xl);
}

.compte-order-detail__back {
  margin-bottom: var(--space-md);
}

.compte-order-dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-xs) var(--space-lg);
  margin: var(--space-md) 0;
}

.compte-order-dl dt {
  margin: 0;
  font-weight: 600;
  color: var(--m);
}

.compte-order-dl dd {
  margin: 0;
}

.compte-order-detail__subtitle {
  margin-top: var(--space-lg);
  font-size: 1.1rem;
}

.compte-order-detail__actions {
  margin: var(--space-lg) 0;
  padding: var(--space-md);
  background: linear-gradient(135deg, var(--al), rgba(8, 145, 178, 0.06));
  border-radius: var(--r);
  border: 1px solid rgba(8, 145, 178, 0.22);
}

.compte-addresses--book {
  margin-top: var(--space-md);
  padding: var(--space-md);
  border-radius: var(--r);
  border: 1px dashed var(--b);
  background: rgba(8, 145, 178, 0.04);
}

.compte-addresses__counts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
  margin: var(--space-sm) 0 var(--space-md);
  font-size: var(--text-sm);
}

.compte-adresses__head {
  margin-bottom: var(--space-lg);
}

.compte-adresses__title {
  margin: var(--space-xs) 0;
}

.compte-adresses__flash {
  margin-bottom: var(--space-md);
  padding: var(--space-md);
}

.compte-adresses__grid {
  display: grid;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

@media (min-width: 768px) {
  .compte-adresses__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.compte-adresses__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.compte-adresses__item {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--b);
}

.compte-adresses__item:last-child {
  border-bottom: 0;
}

.compte-adresses__badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(5, 150, 105, 0.12);
  color: var(--s);
  margin-right: var(--space-xs);
}

.compte-adresses__addr {
  margin: 0;
  font-size: var(--text-sm);
  line-height: 1.45;
  white-space: pre-wrap;
}

.compte-adresses__item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  align-items: center;
}

.compte-adresses__inline {
  display: inline;
}

.compte-adresses__form-wrap {
  margin-bottom: var(--space-2xl);
}

.compte-adresses__form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.checkout-addr-book {
  margin-bottom: var(--space-md);
}

.checkout-addr-book__hint {
  margin: var(--space-xs) 0 0;
}

/* =================================================================
   PAGE FOURNISSEUR (supprod) — Phase 8 : extraction styles inline
   Composant auto-contenu, tokens du design system uniquement.
   ================================================================= */
.supprod-page {
  max-width: 820px;
  margin: 0 auto;
}
.supprod-page.admin-edit-host > .supprod-page__inner {
  min-width: 0;
}
.supprod-page.admin-edit-host > .admin-product-edit-link {
  margin-top: var(--space-md);
  margin-right: var(--space-md);
}
.supprod-page h1 {
  margin-top: var(--space-sm);
}
.supprod-lead {
  margin-bottom: var(--space-xs);
}
.supprod-alert {
  margin-top: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--r-md);
  border: 1px solid transparent;
}
.supprod-alert--warn {
  background: rgba(217, 119, 6, 0.12);
  border-color: rgba(217, 119, 6, 0.35);
}
.supprod-alert--danger {
  background: rgba(220, 38, 38, 0.08);
  border-color: rgba(220, 38, 38, 0.28);
}
.supprod-alert--info {
  margin-top: var(--space-sm);
}
.supprod-figure {
  margin: var(--space-lg) 0;
}
.supprod-figure img {
  max-width: 100%;
  height: auto;
  border-radius: var(--r-lg);
}
.supprod-spec-list {
  display: grid;
  gap: var(--space-sm) var(--space-md);
  grid-template-columns: auto 1fr;
  max-width: 520px;
}
.supprod-section {
  margin-top: var(--space-lg);
}
.supprod-section--spaced {
  margin-top: var(--space-xl);
}
.supprod-section__title {
  margin: 0 0 var(--space-sm);
}
.supprod-section__line {
  margin: 0 0 var(--space-sm);
}
.supprod-section__line--last {
  margin: 0;
}
.supprod-price-strong {
  font-size: var(--text-lg);
}
.supprod-cart-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--space-sm) var(--space-md);
}
.supprod-qty-label {
  display: block;
  margin-bottom: var(--space-xs);
}
.supprod-qty-input {
  width: 6rem;
}
.supprod-cart-msg {
  margin: var(--space-md) 0 0;
  min-height: 1.25em;
}
.supprod-cart-msg--error { color: var(--d); }
.supprod-cart-msg--success { color: var(--s); }
.supprod-desc {
  margin-top: var(--space-lg);
  line-height: 1.55;
}
.prose-supprod h2 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--p);
  margin: var(--space-md) 0 var(--space-xs);
}
.prose-supprod h2:first-child {
  margin-top: 0;
}
.prose-supprod p {
  margin: 0 0 var(--space-sm);
}
.prose-supprod p:last-child {
  margin-bottom: 0;
}
.prose-supprod ul,
.prose-supprod ol {
  margin: 0 0 var(--space-sm);
  padding-left: 1.25rem;
}
.prose-supprod li {
  margin-bottom: 0.25rem;
}
.prose-supprod li:last-child {
  margin-bottom: 0;
}
.supprod-actions {
  margin-top: var(--space-xl);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}
.supprod-guide-download {
  margin-top: var(--space-lg);
}
.supprod-guide-download__btn {
  margin-top: var(--space-sm);
}

/* =================================================================
   CONTAINER QUERIES — Phase 7 : composants résilients
   Les composants réagissent à la largeur de LEUR CONTENEUR, pas au
   viewport. Même carte catalog dans la home (300px) ou en cross-sell
   (220px) → rendu adapté dans les deux cas, sans media query par page.
   ================================================================= */

/* ---- Catalog card : adapte taille titre + CTA selon largeur réelle ---- */
@container catcard (max-width: 230px) {
  .catalog-card .catalog-card__title,
  .catalog-card .catalog-card__cta,
  .catalog-card--pole-entry .catalog-card__subtitle {
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }
  .catalog-card .catalog-card__title {
    padding-top: var(--space-md);
    font-size: var(--text-sm);
  }
  .catalog-card .catalog-card__cta {
    padding-bottom: var(--space-md);
    font-size: 0.8rem;
  }
  .catalog-card--pole-entry .catalog-card__subtitle {
    font-size: 0.78rem;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

@container catcard (min-width: 320px) {
  .catalog-card .catalog-card__title {
    font-size: var(--text-lg);
  }
}

/* ---- Checkout lines wrapper : devient conteneur pour ses lignes ---- */
.checkout-lines {
  container-type: inline-size;
  container-name: checkoutlines;
}

/* Quand la sidebar récap est suffisamment large (ex : en tablette / desktop
   avant le sticky), passe le titre et le prix sur la même ligne horizontale. */
@container checkoutlines (min-width: 420px) {
  .checkout-line--compact {
    grid-template-columns: clamp(3rem, 8cqi, 3.5rem) minmax(0, 1fr) auto;
    gap: 0.55rem 0.85rem;
  }
  .checkout-line__title {
    font-size: var(--text-base);
  }
  .checkout-line__subtitle {
    font-size: 0.82rem;
  }
  .checkout-line__priceamount {
    font-size: var(--text-base);
  }
}

/* Très petit (sidebar très étroite, ≤ 280px) : on compacte encore plus.
   Rare mais utile si le composant est réutilisé dans un widget aside. */
@container checkoutlines (max-width: 280px) {
  .checkout-line--compact {
    grid-template-columns: 2.5rem minmax(0, 1fr);
    grid-template-areas:
      "media core"
      "media pricecol";
    gap: 0.3rem 0.5rem;
  }
  .checkout-line__pricecol {
    align-items: flex-start;
    text-align: left;
    flex-direction: row;
    gap: 0.5rem;
    align-self: start;
  }
  .checkout-line__subtitle {
    -webkit-line-clamp: 1;
    line-clamp: 1;
  }
}

/* ---- Fallback gracieux : browsers sans container queries (rare en 2026).
   Les règles par défaut (hors @container) couvrent déjà tous les cas —
   rien à ajouter. Les browsers modernes (Chrome 105+, Safari 16+, Firefox
   110+) bénéficient en plus du rendu adaptatif. ---- */

/* ==========================================================================
   Fiche produit v2 — Atelier pro / Exaprint-like
   Refonte "grand site" : stepper sticky, configurateur ouvert à plat,
   cards délai (3 colonnes), grille prix 100 % visible, tabs info.
   Utilise strictement les variables Empreinte (--p/--a/--cta/--s/--w/...).
   ========================================================================== */

/* ─── Stepper horizontal sticky ─────────────────────────────────────────── */
.product-stepper {
  position: sticky;
  top: var(--header-total);
  z-index: var(--z-sticky);
  margin: 0 0 var(--space-lg);
  padding: var(--space-sm) var(--space-md);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border: 1px solid var(--b);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.product-stepper__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.product-stepper__list::-webkit-scrollbar { display: none; }
.product-stepper__item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--m);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: color var(--t-fast);
}
.product-stepper__item[data-state="current"] { color: var(--p); }
.product-stepper__item[data-state="done"] { color: var(--s); }
.product-stepper__num {
  width: 1.4rem; height: 1.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-pill);
  border: 1px solid currentColor;
  font-size: 0.72rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  background: #fff;
}
.product-stepper__item[data-state="current"] .product-stepper__num {
  background: var(--p); color: #fff; border-color: var(--p);
}
.product-stepper__item[data-state="done"] .product-stepper__num {
  background: var(--s); color: #fff; border-color: var(--s);
}
.product-stepper__item[data-state="done"] .product-stepper__num::before {
  content: "✓"; font-size: 0.8rem;
}
.product-stepper__item[data-state="done"] .product-stepper__num > * {
  display: none;
}
.product-stepper__rule {
  flex: 0 0 18px;
  height: 1px;
  background: var(--b);
}
.product-stepper__progress {
  width: 110px;
  height: 5px;
  background: var(--b);
  border-radius: var(--r-pill);
  overflow: hidden;
  flex: none;
}
.product-stepper__fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--a), var(--s));
  border-radius: var(--r-pill);
  transition: width 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
@media (max-width: 768px) {
  .product-stepper { padding: var(--space-xs) var(--space-sm); gap: var(--space-sm); }
  .product-stepper__label { display: none; }
  .product-stepper__progress { width: 72px; }
}

/* ─── Configurateur ouvert à plat (remplace l'accordéon parent) ────────── */
.product-config-v2 {
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--b);
  box-shadow: var(--shadow-sm);
}
.product-config-v2__head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: var(--space-sm) var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px dashed var(--b);
  background: linear-gradient(180deg, rgba(8, 145, 178, 0.05), rgba(255, 255, 255, 0));
}
.product-config-v2__kbd {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--a);
  grid-column: 1;
  align-self: center;
}
.product-config-v2__title {
  grid-column: 2;
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--p);
  margin: 0;
  letter-spacing: -0.005em;
  line-height: 1.2;
}
.product-config-v2__hint {
  grid-column: 3;
  justify-self: end;
  font-size: var(--text-xs);
  color: var(--m);
  text-align: right;
}
.product-config-v2__recap {
  grid-column: 1 / -1;
  font-size: var(--text-sm);
  color: var(--a);
  font-weight: 600;
  margin-top: 0.15rem;
}
.product-config-v2__recap:empty { display: none; }
.product-config-v2__body {
  padding: var(--space-lg);
}
@media (max-width: 680px) {
  .product-config-v2__head {
    grid-template-columns: auto 1fr;
    padding: var(--space-md);
  }
  .product-config-v2__hint {
    grid-column: 1 / -1;
    justify-self: start;
    text-align: left;
    margin-top: 0.2rem;
  }
  .product-config-v2__body { padding: var(--space-md); }
}
/* Pulse sur erreur "wizard incomplet" */
.product-config-v2--nudge {
  animation: productConfigNudge 1.2s ease-out;
}
@keyframes productConfigNudge {
  0%   { box-shadow: var(--shadow-sm); }
  30%  { box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.14), var(--shadow-md); }
  100% { box-shadow: var(--shadow-sm); }
}

/* ─── Cards délai (Éco / Standard / Express) ───────────────────────────── */
.product-delays-card { padding: var(--space-md); }
.product-delays-card__head {
  margin-bottom: var(--space-sm);
}
.product-delays-card__head h2 {
  margin: 0 0 0.15rem;
}
.product-delays {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: var(--space-sm);
}
.product-delay {
  appearance: none;
  border: 1px solid var(--b);
  background: #fff;
  border-radius: var(--r-md);
  padding: 0.7rem 0.6rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  text-align: left;
  transition: transform var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
  font: inherit;
  color: inherit;
}
.product-delay:hover {
  border-color: var(--p);
  transform: translateY(-1px);
}
.product-delay:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus-accent);
  border-color: var(--a);
}
.product-delay.is-active {
  border-color: var(--a);
  background: var(--al);
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.12);
}
.product-delay__tag {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.1rem 0.45rem;
  border-radius: var(--r-xs);
  background: var(--bg);
  color: var(--m);
}
.product-delay[data-kind="standard"] .product-delay__tag,
.product-delay[data-kind="express"] .product-delay__tag,
.product-delay[data-kind="economique"] .product-delay__tag {
  color: #fff;
}
.product-delay[data-kind="economique"] .product-delay__tag,
.product-delay[data-kind="eco"] .product-delay__tag { background: var(--s); }
.product-delay[data-kind="standard"] .product-delay__tag { background: var(--a); }
.product-delay[data-kind="express"] .product-delay__tag { background: var(--w); }
.product-delay__sub {
  font-size: var(--text-xs);
  line-height: 1.3;
  color: var(--m);
  margin: 0;
}
.product-delay__price {
  margin-top: 0.25rem;
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--p);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.product-delay__price small {
  font-weight: 400;
  font-size: var(--text-xs);
  color: var(--m);
  margin-left: 0.15rem;
}

/* ─── Matrice prix : surlignage colonne active (délai choisi) ─────────── */
.product-pricing-tiers-card .product-price-grid thead th.is-active {
  color: var(--a);
  background: var(--al);
}
.product-pricing-tiers-card .product-price-grid tbody td.is-active-col {
  background: rgba(8, 145, 178, 0.06);
  color: var(--p);
  font-weight: 600;
}
/* Grille tarifaire : affichage pur (pas cliquable). Seul le surlignage de la colonne de délai actif
   reste appliqué via .is-active-col, déclenché par highlightDelayColumn(). */
.product-pricing-tiers-card .product-price-grid tbody tr {
  cursor: default;
}

/* ─── Bande engagements (fiche produit) ─────────────────────────────────── */
.product-trust-strip {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
  padding: var(--space-md) 0;
  border-block: 1px solid var(--b);
  background: linear-gradient(180deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 92%, var(--a)) 100%);
}
.product-trust-strip__viewport {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.product-trust-strip__track {
  display: flex;
  width: max-content;
  animation: product-trust-strip-scroll 36s linear infinite;
}
.product-trust-strip__list {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.75rem);
  list-style: none;
  margin: 0;
  padding: 0 clamp(1rem, 2vw, 1.5rem);
  flex-shrink: 0;
}
.product-trust-strip__item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--t);
}
.product-trust-strip__check {
  flex-shrink: 0;
  color: var(--s);
  font-weight: 800;
}
@keyframes product-trust-strip-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .product-trust-strip__viewport {
    overflow-x: auto;
    mask-image: none;
    scrollbar-width: none;
  }
  .product-trust-strip__viewport::-webkit-scrollbar { display: none; }
  .product-trust-strip__track {
    animation: none;
    width: 100%;
  }
  .product-trust-strip__list[aria-hidden="true"] { display: none; }
}

/* ─── Tabs informations secondaires ─────────────────────────────────────── */
.product-info-tabs {
  margin-top: var(--space-md);
  margin-bottom: var(--space-xl);
}
.product-info-tabs__bar {
  display: flex;
  gap: 0.15rem;
  border-bottom: 1px solid var(--b);
  overflow-x: auto;
  scrollbar-width: none;
}
.product-info-tabs__bar::-webkit-scrollbar { display: none; }
.product-info-tabs__tab {
  appearance: none;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0.95rem 1.15rem;
  color: var(--m);
  position: relative;
  white-space: nowrap;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color var(--t-fast), background var(--t-fast);
}
.product-info-tabs__tab:hover { color: var(--p); }
.product-info-tabs__tab.is-active { color: var(--p); font-weight: 700; }
.product-info-tabs__tab.is-active::after {
  content: "";
  position: absolute;
  inset: auto 0.7rem -1px;
  height: 3px;
  border-radius: 2px 2px 0 0;
  background: var(--cta);
}
.product-info-tabs__tab:focus-visible {
  outline: none;
  color: var(--p);
  box-shadow: inset 0 0 0 2px var(--al);
  border-radius: var(--r-sm);
}

/* Barre sombre — même langage que la nav header, déjà posée en HTML */
.product-info-tabs__bar--dark {
  background: var(--bar-bg);
  border-bottom: none;
  padding: 0 0.4rem;
  gap: 0;
}
.product-info-tabs__bar--dark .product-info-tabs__tab {
  color: color-mix(in srgb, #fff 78%, var(--a));
  padding: 1.05rem 1.25rem;
  min-height: 2.75rem;
}
.product-info-tabs__bar--dark .product-info-tabs__tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.product-info-tabs__bar--dark .product-info-tabs__tab.is-active {
  color: #fff;
  background: rgba(0, 0, 0, 0.22);
}
.product-info-tabs__bar--dark .product-info-tabs__tab.is-active::after {
  inset: auto 0.75rem 0;
  height: 3px;
  background: var(--cta);
}
.product-info-tabs__bar--dark .product-info-tabs__tab:focus-visible {
  color: #fff;
  box-shadow: inset 0 0 0 2px #fff;
}
.product-info-tabs:not(.card) .product-info-tabs__bar--dark {
  border-radius: var(--r);
}
@media (max-width: 540px) {
  .product-info-tabs__bar--dark .product-info-tabs__tab {
    padding: 0.95rem 0.85rem;
    font-size: 0.8125rem;
  }
}
.product-info-tabs__panel {
  padding: var(--space-xl) var(--space-sm);
  max-width: 60rem;
  display: none;
}
.product-info-tabs__panel.is-active { display: block; }
.product-info-tabs__panel p { color: var(--t); line-height: var(--leading-relaxed); }
.product-info-tabs__panel .product-chip-help__body { margin-top: var(--space-sm); }
.product-info-tabs__panel .product-chip-help__cta { margin-top: var(--space-md); }
.product-info-tabs__panel .product-chip-help__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}
.product-info-tabs__panel .product-faq__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.product-info-tabs__panel .product-faq__item-wrap + .product-faq__item-wrap {
  border-top: 1px solid var(--b);
}

.product-support-contact__lead {
  margin: 0 0 var(--space-md);
  line-height: var(--leading-relaxed);
  color: var(--t);
}
.product-support-contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}
.product-support-contact__hint {
  margin: 0;
}

/* ─── Hero : compactage léger pour laisser la place au stepper ─────────── */
@media (min-width: 900px) {
  .product-hero { margin-bottom: var(--space-md); }
  .product-hero__title--pole {
    font-size: clamp(var(--text-2xl), 3.5vw, var(--text-3xl));
  }
}

/* ─── Panneau prix sticky (desktop) — reste visible pendant la configuration ─
   La colonne droite doit s'étirer à la hauteur du configurateur (align-items:
   stretch) sinon position:sticky n'a pas de zone de défilement. ─────────── */
@media (min-width: 1100px) {
  .product-layout--split {
    align-items: stretch;
  }

  .product-layout__rest {
    display: flex;
    flex-direction: column;
    align-self: stretch;
    min-height: 0;
  }

  .product-layout--split .product-pricing-column {
    position: sticky;
    top: calc(var(--header-total) + 0.75rem);
    align-self: flex-start;
    width: 100%;
    max-height: calc(100vh - var(--header-total) - 1.5rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    z-index: var(--z-sticky);
  }
}

/* Mobile (< 900px) : la card prix remonte AU-DESSUS du configurateur.
   Le client voit immédiatement le total + CTA + délais + grille,
   puis scrolle pour configurer. Combine avec la sticky-bar bas. */
@media (max-width: 899px) {
  .product-layout__rest { order: -1; }
  .product-layout__buy { order: 1; }
  .product-layout--split { gap: var(--space-lg); }
}

/* Hero : mini-price (juste un ancrage, le vrai prix est dans la card droite) */
.product-hero__from--mini {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3rem;
  margin: var(--space-sm) 0 0;
  padding: 0.35rem 0.7rem;
  background: var(--bg);
  border-radius: var(--r-sm);
  font-size: 0.85rem;
}
.product-hero__from--mini .product-hero__from-label {
  font-size: 0.72rem;
  color: var(--m);
  width: auto;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}
.product-hero__from--mini .product-hero__from-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--p);
}
.product-hero__from--mini .product-hero__from-unit {
  font-size: 0.72rem;
  color: var(--m);
}

/* =====================================================================
   CONFIGURATEUR V2 — "Atelier pro" : picks visuels + chips qty + total massif
   ===================================================================== */

/* Stepper : labels toujours visibles dès 560px (lisible sans deviner) */
@media (min-width: 560px) {
  .product-stepper__label { display: inline-block; }
}
.product-stepper__item {
  gap: 0.45rem;
}
.product-stepper__item[data-state="done"] .product-stepper__num {
  background: var(--s);
  color: #fff;
  border-color: var(--s);
}
.product-stepper__item[data-state="done"] .product-stepper__num::before {
  content: "✓";
  font-size: 0.72rem;
}
.product-stepper__item[data-state="done"] .product-stepper__num > *:not(::before) { display: none; }

/* Configurateur : on écrase les styles legacy "configurator" pour laisser la
   main aux nouveaux .product-group (cards ouvertes à plat, pas d'accordéon) */
.configurator--v2 {
  border: 0;
  background: transparent;
  overflow: visible;
  border-radius: 0;
}
.configurator--v2 .configurator__head { display: none; }
.configurator--v2 .configurator__list {
  display: grid;
  gap: var(--space-lg);
  padding: 0;
  background: transparent;
  border: 0;
}
/* Le card parent gère déjà le padding : on retire le padding du body pour
   ne pas empiler deux niveaux de creux. */
.product-config-v2__body {
  padding: var(--space-lg);
}
.product-config-v2__body .product-config--exaprint { margin: 0; }
.product-config-v2__body .product-config__tagline { display: none; }
@media (max-width: 680px) {
  .product-config-v2__body { padding: var(--space-md); }
}

/* ─── Groupe de configuration : tête numérotée + corps ouvert ─────────── */
.product-group {
  display: block;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
}
.product-group + .product-group {
  margin-top: 0;
  padding-top: var(--space-md);
  border-top: 1px dashed var(--b);
}
.product-group__head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
}
.product-group__kbd {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--m);
  background: var(--bg);
  padding: 0.28rem 0.55rem;
  border-radius: var(--r-xs);
  line-height: 1;
  align-self: center;
}
.product-group__label {
  font-family: var(--font-heading);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  font-weight: 700;
  color: var(--p);
  letter-spacing: -0.01em;
}
.product-group__value {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--m);
  font-weight: 500;
  text-align: right;
  max-width: 18rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.product-group__value:empty::before { content: "À choisir"; opacity: 0.7; }
.product-group--locked { opacity: 0.55; pointer-events: none; }
.product-group__intro { margin: -0.3rem 0 0.7rem; }

/* ─── Cluster wizard : un seul numéro pour toutes les options techniques ─ */
/* Chaque sous-étape (puce, orientation, impression…) reçoit un petit en-tête
   sans numéro, pour que le client lise une progression continue et pas une
   suite de 5 étapes anxiogène. */
.product-group--wizard-cluster > .product-wizard {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin: 0;
}
.product-wizard-step {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.product-wizard-step + .product-wizard-step {
  padding-top: var(--space-md);
  border-top: 1px dashed var(--b);
}
.product-wizard-step__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.product-wizard-step__label {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--p);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.product-wizard-step__preview {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--m);
  font-weight: 500;
  max-width: 18rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.product-wizard-step--locked {
  opacity: 0.55;
  pointer-events: none;
}
.product-wizard-step--locked .product-wizard-step__preview {
  color: var(--m);
  font-style: italic;
}

/* ─── Picks visuels : grille auto-fit de "cards" cliquables ────────────── */
.product-picks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.6rem;
}
.product-pick {
  position: relative;
  appearance: none;
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 1.5rem 0.6rem 0.65rem; /* padding-right plus large = place pour la pastille check sans couper le texte */
  background: #fff;
  border: 1.5px solid var(--b);
  border-radius: var(--r-md);
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast), background var(--t-fast);
  min-height: 60px;
}
.product-pick:hover {
  border-color: var(--p);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.product-pick:focus-visible {
  outline: none;
  border-color: var(--a);
  box-shadow: var(--shadow-focus-accent);
}
.product-pick.product-wizard__choice--active {
  border-color: var(--a);
  background: var(--al);
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.15);
}
.product-pick.product-wizard__choice--disabled,
.product-pick[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  filter: grayscale(0.5);
}
.product-pick__thumb {
  display: block;
  width: 44px;
  height: 30px;
  border-radius: var(--r-xs);
  background: var(--bg);
  overflow: hidden;
  flex-shrink: 0;
}
.product-pick__thumb svg { display: block; width: 100%; height: 100%; }
.product-pick__text { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
/* Nom : 2 lignes max, wrap autorisé. Évite la troncature "FO8 (MIFA…" sur cards étroites. */
.product-pick__name {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--p);
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.product-pick__sub {
  font-size: 0.72rem;
  color: var(--m);
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-pick__check {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--a);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity var(--t-fast), transform var(--t-fast);
}
.product-pick.product-wizard__choice--active .product-pick__check {
  opacity: 1;
  transform: scale(1);
}
@media (max-width: 520px) {
  .product-picks { grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); }
  .product-pick { grid-template-columns: 36px 1fr; gap: 0.5rem; padding: 0.5rem 1.15rem 0.5rem 0.55rem; }
  .product-pick__thumb { width: 36px; height: 26px; }
  .product-pick__name { font-size: 0.82rem; }
}

/* ─── Quantité : chips paliers + spinner +/− + encart économie ─────────── */
.product-qty-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.product-qty-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.product-qty-chip {
  appearance: none;
  border: 1.5px solid var(--b);
  background: #fff;
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--p);
  cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast), color var(--t-fast);
  font-variant-numeric: tabular-nums;
}
.product-qty-chip:hover { border-color: var(--p); }
.product-qty-chip:focus-visible {
  outline: none;
  border-color: var(--a);
  box-shadow: var(--shadow-focus-accent);
}
.product-qty-chip.is-active {
  background: var(--p);
  color: #fff;
  border-color: var(--p);
}
.product-qty-spin {
  display: inline-flex;
  align-items: stretch;
  border: 1.5px solid var(--b);
  border-radius: var(--r-md);
  overflow: hidden;
  background: #fff;
}
.product-qty-spin__btn {
  appearance: none;
  border: 0;
  background: #fff;
  width: 2.4rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--p);
  cursor: pointer;
  transition: background var(--t-fast);
}
.product-qty-spin__btn:hover { background: var(--bg); }
.product-qty-spin__input {
  width: 5rem;
  border: 0;
  border-left: 1px solid var(--b);
  border-right: 1px solid var(--b);
  text-align: center;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--p);
  font-variant-numeric: tabular-nums;
  padding: 0.45rem 0.2rem;
  -moz-appearance: textfield;
  appearance: textfield;
}
.product-qty-spin__input::-webkit-outer-spin-button,
.product-qty-spin__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.product-qty-spin__input:focus-visible {
  outline: none;
  background: var(--al);
}
.product-qty-savings {
  margin: 0.8rem 0 0;
  padding: 0.65rem 0.85rem;
  background: linear-gradient(0deg, rgba(217, 119, 6, 0.08), rgba(217, 119, 6, 0.08)), #fff;
  border: 1px solid rgba(217, 119, 6, 0.25);
  border-radius: var(--r-md);
  color: var(--p);
  font-size: 0.85rem;
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  line-height: 1.4;
}
.product-qty-savings.is-hidden { display: none; }
.product-qty-savings__icon { font-size: 1rem; flex-shrink: 0; }
.product-qty-savings strong { color: var(--w); }

/* ─── Options perso : grille 2 colonnes dès qu'on a la place ─────────── */
.product-perso__list--grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.35rem 0.6rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.product-perso__list--grid .product-perso__item { margin: 0; }
.product-perso__list--grid .product-perso__label {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 0.6rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--b);
  border-radius: var(--r-md);
  background: #fff;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.product-perso__list--grid .product-perso__label:hover {
  border-color: var(--a);
  background: var(--al);
}
.product-perso__list--grid .product-perso__cb {
  margin: 0;
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
}
.product-perso__list--grid .product-perso__text {
  display: contents; /* éclate strong et price dans la grille parent */
}
.product-perso__list--grid .product-perso__text strong {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--p);
  line-height: 1.25;
}
.product-perso__list--grid .product-perso__price {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--m);
  background: var(--bg);
  padding: 0.2rem 0.5rem;
  border-radius: var(--r-xs);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
/* option cochée : accent cyan discret */
.product-perso__list--grid .product-perso__label:has(.product-perso__cb:checked) {
  border-color: var(--a);
  background: var(--al);
}
.product-perso__list--grid .product-perso__label:has(.product-perso__cb:checked) .product-perso__price {
  background: var(--a);
  color: #fff;
}

/* ─── Card prix : Total TTC MASSIF (impact visuel immédiat) ──────────── */
.product-pricing-card--decision .product-price-panel__hero-amount {
  font-size: clamp(2.4rem, 5.5vw, 3.15rem) !important;
  line-height: 1;
  letter-spacing: -0.02em;
}
.product-pricing-card--decision .product-price-panel__hero-currency {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-weight: 700;
  color: var(--p);
  align-self: flex-start;
  margin-top: 0.15rem;
}
.product-pricing-card--decision .product-price-panel__hero-label {
  display: block;
  width: 100%;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--m);
  margin-bottom: 0.2rem;
}
.product-pricing-card--decision .product-price-panel__hero-total {
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.15rem 0.45rem;
}
.product-pricing-card--decision .product-price-panel__meta {
  margin-top: 0.3rem;
  padding-top: 0.4rem;
  border-top: 1px dashed var(--b);
}

/* ─── Cards délai : date grosse + tag coloré lisible ─────────────────── */
.product-delays { gap: 0.55rem; }
.product-delay {
  padding: 0.75rem 0.7rem;
  gap: 0.3rem;
  min-height: 92px;
}
.product-delay__tag {
  font-size: 0.66rem;
  padding: 0.2rem 0.5rem;
  letter-spacing: 0.14em;
}
.product-delay__sub {
  font-size: 0.75rem;
  color: var(--p);
  font-weight: 600;
  line-height: 1.25;
}
.product-delay__price {
  margin-top: auto;
  font-size: 1rem;
}
.product-delay.is-active {
  transform: translateY(-1px);
}

/* ─── Styles legacy inutiles : on neutralise s'ils persistent par habitude ── */
.product-config-v2 .config-item,
.product-config-v2 .configurator__head { display: none; }

/* ─── Responsive : groupes et pick en colonne serrée sur mobile ──────── */
@media (max-width: 680px) {
  .product-group__head {
    grid-template-columns: auto 1fr;
  }
  .product-group__value {
    grid-column: 1 / -1;
    text-align: left;
    max-width: none;
  }
  .product-qty-row { gap: 0.5rem; }
  .product-qty-spin__input { width: 4rem; }
}

/* =====================================================================
   CARD PRIX UNIFIÉE — Total / Délai / Grille dans un seul contenant
   ===================================================================== */
.product-pricing-card--unified {
  padding: 0;
  overflow: hidden; /* pour que les filets arrivent edge-to-edge */
}
.product-pricing-block {
  padding: var(--space-lg);
}
.product-pricing-block + .product-pricing-block {
  border-top: 1px solid var(--b);
  padding-top: var(--space-md);
}
.product-pricing-block__head {
  margin-bottom: 0.65rem;
}
.product-pricing-block__title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--p);
  margin: 0 0 0.1rem;
  letter-spacing: -0.01em;
}
.product-pricing-block__intro {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.35;
}

/* Bloc "Total" : compact vertical, pas de blanc inutile */
.product-pricing-block--total {
  padding: var(--space-md) var(--space-lg) var(--space-md);
}
.product-pricing-block--total .product-price-panel,
.product-pricing-block--total .product-price-panel--simple {
  padding: 0.75rem 0.9rem;
  margin-bottom: 0.6rem;
}
.product-pricing-block--total h2.product-pricing-block__title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--m);
  margin: 0 0 0.3rem;
}
.product-pricing-block--total .product-price-panel__hero-label { display: none; }
.product-pricing-block--total .product-price-panel__hero-total {
  margin: 0 0 0.15rem;
  gap: 0.15rem 0.35rem;
}
.product-pricing-card--decision .product-pricing-block--total .product-price-panel__hero-amount {
  font-size: clamp(2rem, 4.5vw, 2.6rem) !important;
  line-height: 0.95;
}
.product-pricing-card--decision .product-pricing-block--total .product-price-panel__hero-currency {
  font-size: 1rem;
  margin-top: 0;
  align-self: baseline;
}
.product-pricing-card--decision .product-pricing-block--total .product-price-panel__meta {
  margin: 0.25rem 0 0;
  padding: 0.25rem 0 0;
  border-top: 1px dashed rgba(15, 23, 42, 0.08);
  font-size: 0.78rem;
  line-height: 1.35;
}
.product-pricing-block--total .product-actions {
  margin-top: 0;
  gap: 0.5rem;
}
.product-pricing-block--total .product-actions .btn {
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}
.product-pricing-block--total .product-cart-msg {
  margin-top: 0.4rem;
  min-height: 0;
}
.product-pricing-block--total .product-cart-msg:empty { display: none; }
@media (max-width: 680px) {
  .product-pricing-block--total {
    padding: var(--space-md);
  }
  .product-pricing-card--decision .product-pricing-block--total .product-price-panel__hero-amount {
    font-size: clamp(1.9rem, 7vw, 2.3rem) !important;
  }
}

/* Bloc "Délais" : plus compact */
.product-pricing-block--delays .product-delays {
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
}

/* Bloc "Grille" : table flush sur les bords pour gagner en densité */
.product-pricing-block--grid {
  padding-left: 0;
  padding-right: 0;
}
.product-pricing-block--grid .product-pricing-block__head {
  padding: 0 var(--space-lg);
}
.product-pricing-block--grid .table-scroll {
  padding: 0 var(--space-lg);
}
@media (max-width: 680px) {
  .product-pricing-block { padding: var(--space-md); }
  .product-pricing-block--grid { padding-left: 0; padding-right: 0; }
  .product-pricing-block--grid .product-pricing-block__head,
  .product-pricing-block--grid .table-scroll { padding: 0 var(--space-md); }
}

/* ========== Mobile / tactile — adaptation (touch, overflow, widgets) ========== */
.checkout-form,
.checkout-form .form-row,
.cf-turnstile {
  min-width: 0;
  max-width: 100%;
}
.checkout-form {
  overflow-x: clip;
}

.cf-turnstile iframe {
  max-width: 100%;
}

@media (max-width: 360px) {
  .cf-turnstile {
    width: 255px;
    max-width: 100%;
    height: 55px;
    overflow: hidden;
    transform: scale(0.85);
    transform-origin: left top;
  }
}

.product-qty-spin {
  max-width: 100%;
}

@media (max-width: 420px) {
  .product-qty-spin {
    width: 100%;
    display: flex;
  }
  .product-qty-spin__input {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
  }
}

@media (pointer: coarse) {
  .product-hero__info-link {
    min-height: 44px;
    align-items: center;
    padding: 0.5em 0.65em;
  }
  .product-qty-spin__btn {
    min-width: 44px;
    min-height: 44px;
  }
}


