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

/* ========== VARIABLES ========== */
:root {
  /* Cœur de marque */
  --p: #111827;           /* Encre profonde — titres, headers */
  --a: #0891B2;           /* Signal — liens, secondaire */
  --cta: #E2593C;         /* Corail — CTA principal */
  --cta-l: #FFF1ED;       /* Corail clair */
  /* 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 */
  --muted: #94A3B8;       /* Brume — placeholders */
  --b: #E2E8F0;           /* Bordure */
  --card: #FFFFFF;        /* Cartes, modales */
  /* Layout */
  --r: 4px;              /* Radius global */
  --container: 1150px;
  --container-wide: 1320px;
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  /* 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;
  --text-xl: 1.5rem;
  --text-2xl: 2rem;
  --text-3xl: 2.5rem;
  --text-4xl: 3rem;
  --leading-tight: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.75;
  /* Transitions */
  --ease: 200ms ease;
}

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

html { font-size: 16px; scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--t);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

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 ========== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}

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

/* Fiche produit & accueil : meilleure utilisation du large écran */
.container--product {
  max-width: min(var(--container-wide), 100vw - 2rem);
}

.container--home {
  max-width: min(1280px, 100vw - 2rem);
}

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

/* 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(226, 89, 60, 0.35);
}
.btn-cta:hover {
  background: #c94a30;
  box-shadow: 0 6px 20px rgba(226, 89, 60, 0.4);
}

.btn-secondary {
  background: var(--a);
  color: #fff;
}
.btn-secondary:hover { background: #0e7490; }

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

/* ========== COMPOSANTS : CARTES ========== */
.card {
  background: var(--card);
  border: 1px solid var(--b);
  border-radius: var(--r);
  padding: 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); }
.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: 5rem;
}

/* ========== ACCUEIL REFONTE ========== */
.home-page main {
  padding-top: 0;
}

.home-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 70% at 100% 20%, rgba(8, 145, 178, 0.09) 0%, transparent 55%),
    linear-gradient(165deg, #f8fafc 0%, #f1f5f9 55%, #ecfeff 100%);
  border-bottom: 1px solid var(--b);
  padding: var(--space-2xl) 0 calc(var(--space-2xl) + var(--space-md));
  margin-bottom: var(--space-xl);
}

.home-hero__shell {
  display: grid;
  gap: var(--space-xl);
  align-items: center;
}

@media (min-width: 900px) {
  .home-hero__shell {
    grid-template-columns: minmax(0, 1fr) minmax(200px, 38%);
    gap: var(--space-2xl);
  }
}

.home-hero__copy {
  max-width: 38rem;
}

@media (min-width: 900px) {
  .home-hero__copy {
    justify-self: start;
    text-align: left;
  }
}

.home-hero__art {
  display: none;
  justify-content: center;
  align-items: center;
}

@media (min-width: 900px) {
  .home-hero__art {
    display: flex;
  }
}

.home-hero__svg {
  width: 100%;
  max-width: 360px;
  height: auto;
  opacity: 0.95;
}

.home-hero__eyebrow {
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--a);
  margin: 0 0 var(--space-md);
}

.home-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.2vw, 2.85rem);
  font-weight: 800;
  line-height: 1.12;
  color: var(--p);
  margin: 0 0 var(--space-md);
  letter-spacing: -0.035em;
  max-width: 22ch;
}

.home-hero__lead {
  font-size: var(--text-lg);
  color: var(--m);
  line-height: var(--leading-relaxed);
  margin: 0 0 var(--space-xl);
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: center;
  margin-bottom: var(--space-md);
}

.home-hero__note {
  margin: 0;
  font-size: var(--text-sm);
}

.home-trust {
  margin-bottom: var(--space-xl);
}

.home-trust__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .home-trust__list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .home-trust__list {
    grid-template-columns: repeat(4, 1fr);
  }
}

.home-trust__item {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  padding: var(--space-md) var(--space-lg);
  background: var(--card);
  border: 1px solid var(--b);
  border-radius: var(--r);
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--t);
}

.home-trust__icon {
  flex-shrink: 0;
  color: var(--a);
  margin-top: 2px;
}

.home-trust__text strong {
  color: var(--p);
  font-weight: 600;
}

.home-audience {
  margin-bottom: var(--space-xl);
}

.home-page .home-audience.card h2,
.home-page .home-faq.card h2,
.home-page .home-catalog.card .home-section-title {
  border-bottom: none;
  margin-bottom: var(--space-lg);
}

.home-section-title {
  font-size: var(--text-2xl);
  color: var(--p);
  margin: 0 0 var(--space-md);
}

.home-audience__grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: 1fr;
}

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

.home-audience {
  border-left: 4px solid var(--a);
  background: linear-gradient(135deg, rgba(236, 254, 255, 0.65) 0%, var(--card) 48%);
}

.home-audience__card {
  padding: var(--space-lg);
  border-radius: var(--r);
  border: 1px solid var(--b);
  background: rgba(255, 255, 255, 0.85);
  transition: border-color var(--ease), box-shadow var(--ease);
}

.home-audience__card:hover {
  border-color: rgba(8, 145, 178, 0.35);
  box-shadow: 0 4px 20px rgba(8, 145, 178, 0.08);
}

.home-audience__card-title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  margin: 0 0 var(--space-sm);
  color: var(--p);
}

.home-audience__link {
  display: inline-block;
  margin-top: var(--space-md);
  font-weight: 600;
  font-size: var(--text-sm);
}

.home-catalog__header {
  margin-bottom: var(--space-xl);
}

.home-catalog__intro {
  margin: 0;
  max-width: 40rem;
}

.home-pole {
  margin-bottom: var(--space-xl);
  border-left: 4px solid var(--cta);
  background: linear-gradient(135deg, rgba(226, 89, 60, 0.06) 0%, var(--card) 50%);
}

.home-pole__intro {
  margin: 0 0 var(--space-lg);
  max-width: 44rem;
  line-height: 1.6;
}

.home-pole__grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr;
}

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

@media (min-width: 1100px) {
  .home-pole__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.home-pole__item {
  margin: 0;
}

.home-pole__card {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  height: 100%;
  padding: var(--space-lg);
  border-radius: var(--r);
  border: 1px solid var(--b);
  background: rgba(255, 255, 255, 0.92);
  color: var(--p);
  text-decoration: none;
  transition: border-color var(--ease), box-shadow var(--ease);
}

.home-pole__card:hover {
  border-color: var(--a);
  box-shadow: 0 6px 24px rgba(8, 145, 178, 0.12);
  color: var(--p);
}

.home-pole__card-title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--p);
}

.home-pole__card-desc {
  font-size: var(--text-sm);
  line-height: 1.5;
  flex: 1;
}

.home-pole__card-cta {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--a);
}

.home-pole__card:hover .home-pole__card-cta {
  color: var(--p);
}

.home-catalog__pole-note {
  margin: calc(-1 * var(--space-sm)) 0 var(--space-md);
  max-width: 42rem;
}

.home-catalog__pole-note--options {
  margin-top: 0;
}

.home-catalog__pole-title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--p);
  margin: var(--space-2xl) 0 var(--space-md);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--b);
}

.home-catalog .home-catalog__pole-title:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.home-faq {
  margin-bottom: var(--space-xl);
}

.home-faq__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.home-faq__item {
  border: 1px solid var(--b);
  border-radius: var(--r);
  background: var(--card);
  overflow: hidden;
}

.home-faq__summary {
  cursor: pointer;
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--p);
  padding: var(--space-md) var(--space-lg);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.home-faq__summary::-webkit-details-marker {
  display: none;
}

.home-faq__summary::after {
  content: '+';
  font-weight: 700;
  color: var(--a);
  font-size: var(--text-xl);
  line-height: 1;
}

.home-faq__item[open] .home-faq__summary::after {
  content: '−';
}

.home-faq__body {
  padding: 0 var(--space-lg) var(--space-lg);
  border-top: 1px solid var(--b);
}

.home-faq__body p {
  margin: var(--space-md) 0 0;
  font-size: var(--text-sm);
  line-height: 1.65;
}

.home-faq__more {
  margin: var(--space-lg) 0 0;
  font-size: var(--text-sm);
}

/* ========== 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: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========== 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: var(--s);
  border-color: rgba(5, 150, 105, 0.25);
}

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

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

.checkout-steps__item--next {
  color: var(--muted);
  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(62px + 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: var(--space-md) 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) */
.checkout-line--compact {
  display: grid;
  grid-template-columns: 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: 3.25rem;
  min-height: 3.25rem;
  background: linear-gradient(135deg, var(--al), #e2e8f0);
}

.checkout-line__img {
  display: block;
  width: 3.25rem;
  height: 3.25rem;
  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;
  -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__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: 200;
  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: 1;
  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: 3000;
  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: 1fr 1fr;
  gap: 0 var(--space-md);
  align-items: start;
}

.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);
}

.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;
  }
}

/* Formulaire checkout (champs) */
.checkout-form .form-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}
.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%;
  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: 0 0 0 3px rgba(8, 145, 178, 0.15);
  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: repeat(2, minmax(200px, 1fr));
  gap: var(--space-md);
}

@media (max-width: 700px) {
  .checkout-grid-2 {
    grid-template-columns: 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);
}

/* ========== 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 ========== */
.catalog-grid {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

@media (min-width: 1200px) {
  .catalog-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--space-lg);
  }
}
.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(--r);
  color: var(--p);
  transition: border-color var(--ease), box-shadow var(--ease);
}
.catalog-card__media {
  display: block;
  margin: 0;
  aspect-ratio: 5 / 3;
  background: var(--al);
  overflow: hidden;
}
.catalog-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.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: var(--a);
  box-shadow: 0 4px 14px rgba(8, 145, 178, 0.12);
  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: 10rem;
}
@media (min-width: 640px) {
  body.cookie-consent-has-banner {
    padding-bottom: 0;
  }
}
.cookie-consent {
  position: fixed;
  z-index: 9999;
  left: 0;
  right: 0;
  bottom: 0;
  padding: var(--space-md);
  background: rgba(17, 24, 39, 0.92);
  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(--container);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
@media (min-width: 640px) {
  .cookie-consent__inner {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-lg);
  }
}
.cookie-consent__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-base);
  margin: 0 0 var(--space-xs);
  color: #fff;
}
.cookie-consent__desc {
  margin: 0;
  font-size: var(--text-sm);
  line-height: 1.55;
  color: #e2e8f0;
}
.cookie-consent__desc a {
  color: var(--al);
  font-weight: 500;
}
.cookie-consent__desc a:hover {
  color: #fff;
}
.cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  flex-shrink: 0;
}
.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 {
  white-space: nowrap;
}

/* ========== BREADCRUMB ========== */
.breadcrumb {
  background: var(--card);
  border-bottom: 1px solid var(--b);
  padding: var(--space-sm) 0;
  font-size: var(--text-sm);
}
.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 ========== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea: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(300px, min(42vw, 480px)) minmax(0, 1fr);
  }
}

.product-hero__visual {
  border-radius: var(--r);
  background: linear-gradient(145deg, var(--al) 0%, #fff 50%, var(--bg) 100%);
  border: 1px solid var(--b);
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
}
.product-hero__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: cover;
}

.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__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: var(--space-md) 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-price {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--p);
  font-variant-numeric: tabular-nums;
}

.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, défilement = page entière (aucun bloc prix en position fixed/sticky) */
.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.15fr) minmax(360px, 1fr);
    gap: var(--space-2xl);
    /* start = pas d’étirement : la colonne gauche ne remplit plus un vide sous la carte config */
    align-items: start;
  }
}

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

/*
  Colonne droite : flux vertical uniquement (pas de sticky / z-index sur la fiche).
  UX : une carte = décision (prix + CTA), une carte = référence (grille), puis aide — ordre lisible, rien ne se superpose.
*/
.product-pricing-column {
  min-width: 0;
}

.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-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 1fr minmax(9rem, 14rem) 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);
}

.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;
}

.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;
}

.product-pricing-tiers-card .product-price-grid thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  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(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;
}

.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: var(--space-sm) var(--space-md);
  text-align: left;
  border-bottom: 1px solid var(--b);
  vertical-align: top;
}

.product-price-grid thead th {
  background: var(--bg);
  font-weight: 600;
  color: var(--p);
}

.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: 500;
  color: var(--t);
  white-space: nowrap;
}

.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-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;
  right: 0;
  bottom: 0;
  z-index: 40;
  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-md);
}

.product-sticky-cta__summary {
  flex: 1 1 16rem;
  min-width: 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__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-sm);
  flex-shrink: 0;
}

.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;
}

@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-page__subtotal {
  margin-top: var(--space-md);
  font-size: var(--text-lg);
}

.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(auto-fill, minmax(11rem, 1fr));
  gap: var(--space-md);
}

.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: 42px;
  height: 42px;
  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: var(--space-xl) 0 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__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__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: var(--space-lg) 0 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);
}

@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;
}

.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: var(--space-lg) 0 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;
}
