/* ============================================================================
   storefront.css — FEUILLE UNIQUE de la vitrine FiaVia (audit E2E 13/11/2026)
   ----------------------------------------------------------------------------
   Remplace les trois feuilles chargees l'une apres l'autre jusqu'ici depuis
   public/store_files/css/ :

     1. store-premium.css    (systeme --c-* / --pc-*)
     2. store-modern-v2.css  (surcouche --mv2-*)
     3. store-redesign.css   (calque --rd-*, re-branche les deux autres sur
                              la couleur du marchand + mode sombre)
     4. CALQUE « Marketplace premium » (refonte de l'audit) — tokens
        --brand / --brand-strong / --surface-2 / --muted..., contrastes,
        composants corriges.

   Les sections 1 a 3 sont reprises A L'IDENTIQUE et DANS LE MEME ORDRE : la
   cascade est donc celle d'avant, octet pour octet. Seule la section 4 est
   nouvelle, et elle est chargee en dernier.

   ── Pourquoi un seul fichier, et pourquoi ICI ─────────────────────────────
   BUG-002 : store-redesign.css renvoyait 404 sur les instances. La mise a
   jour integree (SettingsController) protegeait public/store_files/ comme
   une « donnee utilisateur » : tout fichier ajoute dans ce dossier apres
   l'installation n'arrivait jamais. Le dossier public/css/store/ n'est pas
   protege, et le gabarit ajoute ?v=<date du fichier> pour contourner le
   cache navigateur (expires max dans nginx).

   Couleurs : AUCUNE couleur de marque en dur. Tout derive des variables
   injectees par le gabarit depuis store_configs.config (--primary, --bg,
   --surface, --text, --brand-strong...).
   ========================================================================== */

/* ##########################################################################
   SECTION 0 — ALIAS DES FAMILLES HISTORIQUES (lot 1 de l'audit du 18/11/2026)
   ##########################################################################

   La feuille a herite de QUATRE familles de jetons concurrentes, chacune
   declaree sur :root avec ses propres couleurs en dur :

     · store-premium   --c-*, --r-*, --sh-*, --tr-*, --section-y
     · carte produit   --pc-*  (palette beige « parfumerie »)
     · modern-v2       --mv2-* (gris zinc, Georgia en repli)
     · store-redesign  --rd-*  (neutres derives, mais encre blanche figee)

   Soit 258 variables et 76 couleurs hexadecimales dans le CSS servi, pour
   une vitrine qui doit suivre theme.colors. Les quatre blocs :root sont
   SUPPRIMES ; chaque ancien nom pointe ici vers le jeton du theme que le
   gabarit (layouts/store.blade.php) ecrit en valeur litterale :

     --primary / --primary-ink / --primary-hover / --primary-active /
     --primary-soft / --primary-soft-ink / --secondary / --secondary-ink /
     --bg / --surface / --surface-2 / --text / --text-2 / --text-secondary /
     --muted / --border / --border-soft / --success-strong / --deal /
     --warning / --warning-strong / --header-* / --footer-* /
     --fs-12…36 / --sp-1…16 / --radius-sm|md|lg|pill / --shadow-sm|md|lg /
     --btn-h|px|fs|weight|case / --t / --t-fast / --ease.

   Declares sur `body` et `body.dark-theme`, pas sur :root : une propriete
   personnalisee est RESOLUE la ou elle est declaree, et c'est `body` qui
   porte la classe du theme sombre (voir l'ancienne section 4.1).

   Les anciens noms restent lus par les regles des sections 1 a 5 ; aucune
   regle neuve ne doit les employer — le code neuf ecrit les jetons du theme.
   ========================================================================== */
body,
body.dark-theme {
  /* ── Derivations qui doivent suivre le theme actif ─────────────────── */
  --focus-ring: 0 0 0 3px color-mix(in srgb, var(--primary) 35%, transparent);
  --primary-tint-2: color-mix(in srgb, var(--brand) 18%, var(--surface));
  --primary-glow: color-mix(in srgb, var(--brand) 32%, transparent);
  --section-y: clamp(40px, 5vw, 64px);
  --section-y-sm: clamp(28px, 4vw, 48px);

  /* ── store-premium (--c-*) ──────────────────────────────────────────── */
  --c-bg:           var(--surface);
  --c-bg-alt:       var(--surface-2);
  --c-bg-soft:      var(--surface-2);
  --c-text:         var(--text);
  --c-text-muted:   var(--text-secondary);
  --c-text-soft:    var(--muted);
  --c-border:       var(--border);
  --c-border-soft:  var(--border-soft);
  --c-success:      var(--success-strong);
  --c-warning:      var(--warning-strong);
  --c-danger:       var(--deal);
  --c-info:         var(--primary);
  --c-brand:        var(--primary);
  --c-brand-2:      var(--primary);
  --c-brand-soft:   var(--primary-soft);
  --c-primary:      var(--primary);
  --font-sans:      var(--font-body), -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display:   var(--font-heading), var(--font-body), "Segoe UI", system-ui, sans-serif;
  --r-xs: var(--radius-sm);
  --r-sm: var(--radius-sm);
  --r-md: var(--radius-md);
  --r-lg: var(--radius-lg);
  --r-xl: var(--radius-lg);
  --sh-xs: var(--shadow-sm);
  --sh-sm: var(--shadow-sm);
  --sh-md: var(--shadow-md);
  --sh-lg: var(--shadow-lg);
  --sh-xl: var(--shadow-lg);
  --sh-brand: 0 10px 28px var(--primary-glow);
  --tr-fast: var(--t-fast) ease;
  --tr-mid:  var(--t) var(--ease);
  --tr-slow: 350ms var(--ease);

  /* ── carte produit (--pc-*) ────────────────────────────────────────── */
  --pc-bg:           var(--surface);
  --pc-img-bg:       var(--surface-2);
  --pc-text:         var(--text);
  --pc-muted:        var(--muted);
  --pc-cta-bg:       var(--surface-2);
  --pc-cta-bg-hover: color-mix(in srgb, var(--text) 8%, var(--surface-2));
  --pc-cta-text:     var(--text);
  --pc-shadow:       var(--shadow-md);
  --pc-radius:       var(--radius-card);

  /* ── modern-v2 (--mv2-*) ───────────────────────────────────────────── */
  --mv2-bg:          var(--bg);
  --mv2-surface:     var(--surface);
  --mv2-surface-alt: var(--surface-2);
  --mv2-text:        var(--text);
  --mv2-text-muted:  var(--text-secondary);
  --mv2-border:      var(--border);
  --mv2-border-soft: var(--border-soft);
  --mv2-accent:      var(--primary);
  --mv2-accent-2:    var(--primary);
  --mv2-accent-soft: var(--primary-soft);
  --mv2-font-sans:   var(--font-body), -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mv2-font-serif:  var(--font-heading), var(--font-body), "Segoe UI", system-ui, sans-serif;
  --mv2-sp-1: var(--sp-1);  --mv2-sp-2: var(--sp-2);  --mv2-sp-3: var(--sp-3);  --mv2-sp-4: var(--sp-4);
  --mv2-sp-5: var(--sp-6);  --mv2-sp-6: var(--sp-8);  --mv2-sp-7: var(--sp-12); --mv2-sp-8: var(--sp-16);
  --mv2-sp-9: var(--section-y);
  --mv2-r-sm:   var(--radius-sm);
  --mv2-r-md:   var(--radius-md);
  --mv2-r-lg:   var(--radius-lg);
  --mv2-r-xl:   var(--radius-lg);
  --mv2-r-pill: var(--radius-pill);
  --mv2-shadow-1: var(--shadow-sm);
  --mv2-shadow-2: var(--shadow-md);
  --mv2-shadow-3: var(--shadow-lg);
  --mv2-shadow-4: var(--shadow-lg);
  --mv2-shadow-hover: var(--shadow-lg);
  --mv2-tr-fast: var(--t-fast) var(--ease);
  --mv2-tr:      var(--t) var(--ease);
  --mv2-tr-slow: 400ms var(--ease);

  /* ── store-redesign (--rd-*) ───────────────────────────────────────── */
  --rd-surface-2:     var(--surface-2);
  --rd-line:          var(--border);
  --rd-line-soft:     var(--border-soft);
  --rd-muted:         var(--text-secondary);
  --rd-faint:         var(--muted);
  --rd-accent:        var(--primary);
  --rd-accent-ink:    var(--primary-ink);
  --rd-accent-600:    var(--primary-hover);
  --rd-accent-tint:   var(--primary-soft);
  --rd-accent-tint-2: var(--primary-tint-2);
  --rd-accent-glow:   var(--primary-glow);
  --rd-star:          var(--warning);
  --rd-good:          var(--success-strong);
  --rd-sh-1: var(--shadow-sm);
  --rd-sh-2: var(--shadow-md);
  --rd-sh-3: var(--shadow-lg);
  --rd-r:    var(--radius-card);
  --rd-r-sm: var(--radius-sm);
  --rd-pill: var(--radius-pill);
  --rd-t:    var(--t) var(--ease);

  /* ── Bootstrap : plus de bleu #0D6EFD hors charte ──────────────────── */
  --bs-primary:          var(--primary);
  --bs-link-color:       var(--primary);
  --bs-link-hover-color: var(--text);
  --bs-body-color:       var(--text);
  --bs-secondary-color:  var(--text-secondary);
}

/* ##########################################################################
   SECTION 1 — reprise integrale de store-premium.css
   ########################################################################## */

/* ==========================================================================
   FIAVIA STORE — PREMIUM DESIGN SYSTEM
   ========================================================================== */

/* 1. TOKENS : voir la SECTION 0 (alias) et layouts/store.blade.php (valeurs). */

/* --------------------------------------------------------------------------
   2. BASE
   -------------------------------------------------------------------------- */
* { box-sizing: border-box; }

body {
  font-family: var(--font-sans);
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -.005em;
}

a { color: var(--c-brand-2); transition: color var(--tr-fast); }
a:hover { color: var(--c-brand); }

h1, h2, h3, h4, h5 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }

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

/* Selection */
::selection { background: var(--c-brand-soft); color: var(--c-brand-2); }

/* Scrollbar fine sur desktop */
@media (hover: hover) and (pointer: fine) {
  ::-webkit-scrollbar { width: 10px; height: 10px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb { background: var(--border); border-radius: var(--radius-pill); border: 2px solid var(--surface); }
  ::-webkit-scrollbar-thumb:hover { background: var(--muted); }
}

/* --------------------------------------------------------------------------
   3. TOPBAR (announcement)
   -------------------------------------------------------------------------- */
.pal-topbar {
  background: linear-gradient(90deg, var(--c-brand), var(--c-brand-2));
  color: var(--primary-ink);
  font-size: 13px;
  letter-spacing: .01em;
}
.pal-topbar .container {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; gap: 16px;
}
.pal-topbar a { color: inherit; opacity: .9; text-decoration: none; }
.pal-topbar a:hover { color: inherit; opacity: 1; }
.pal-topbar-tag {
  display: inline-flex; align-items: center; gap: 4px;
  background: color-mix(in srgb, currentColor 18%, transparent); padding: 2px 10px;
  border-radius: 999px; font-size: var(--fs-12); font-weight: 600; text-transform: uppercase;
  letter-spacing: .04em;
}

/* --------------------------------------------------------------------------
   4. NAVBAR
   -------------------------------------------------------------------------- */
.pal-nav {
  background: var(--header-bg);
  border-bottom: 1px solid var(--c-border-soft);
  position: sticky; top: 0; z-index: 1020;
  transition: box-shadow var(--tr-mid), background var(--tr-mid);
}
.pal-nav.is-scrolled {
  box-shadow: var(--sh-md);
  backdrop-filter: saturate(180%) blur(8px);
  background: color-mix(in srgb, var(--header-bg) 92%, transparent);
}
.pal-nav-row {
  display: flex; align-items: center;
  padding: 16px 0;
  gap: 24px;
}
.pal-brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: var(--fs-18); color: var(--c-text); text-decoration: none;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.pal-brand img { height: 32px; width: auto; }
.pal-brand:hover { color: var(--c-brand-2); }

/* nav links */
.pal-nav-links {
  display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0;
}
.pal-nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: var(--radius-sm);
  font-size: var(--fs-14); font-weight: 500; color: var(--c-text);
  text-decoration: none; transition: background var(--tr-fast), color var(--tr-fast);
}
.pal-nav-link:hover { background: var(--c-bg-alt); color: var(--c-brand-2); }
.pal-nav-link.is-active { color: var(--c-brand-2); background: var(--c-brand-soft); }

/* search bar */
.pal-search {
  position: relative; flex: 1 1 auto; max-width: 520px;
}
.pal-search input {
  width: 100%; height: 44px;
  background: var(--c-bg-alt); border: 1px solid transparent;
  border-radius: 999px; padding: 0 16px 0 44px;
  font-size: 14px; color: var(--c-text); outline: none;
  transition: border-color var(--tr-fast), background var(--tr-fast), box-shadow var(--tr-fast);
}
.pal-search input::placeholder { color: var(--c-text-soft); }
.pal-search input:focus {
  background: var(--surface); border-color: var(--primary);
  box-shadow: var(--focus-ring);
}
.pal-search-icon {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  color: var(--c-text-muted); font-size: 16px; pointer-events: none;
}
.pal-search-clear {
  position: absolute; right: 2px; top: 50%; transform: translateY(-50%);
  display: none; --sf-h: 40px;
}
.pal-search input:not(:placeholder-shown) + .pal-search-clear { display: inline-flex; align-items: center; justify-content: center; }

/* nav action buttons (icon buttons) */
.pal-nav-actions {
  display: inline-flex; align-items: center; gap: 6px; margin-left: auto;
}
/* .pal-icon-btn : simple crochet de position (le style vient de .sf-btn-icon, section 6). */
.pal-icon-btn { position: relative; }
.pal-icon-btn-badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--primary); color: var(--primary-ink);
  border-radius: var(--radius-pill); font-size: var(--fs-12); font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid var(--surface);
}

/* lang dropdown */
.pal-lang-btn { gap: 6px; font-size: var(--fs-13); font-weight: 600; padding: 0 12px; width: auto; }
.pal-dropdown-menu {
  background: var(--surface); border: 1px solid var(--c-border-soft);
  border-radius: var(--radius-card); box-shadow: var(--sh-lg);
  padding: 6px; min-width: 200px;
}
.pal-dropdown-menu .dropdown-item {
  border-radius: var(--radius-sm); padding: 10px 12px; font-size: var(--fs-14); color: var(--c-text);
}
.pal-dropdown-menu .dropdown-item:hover { background: var(--c-bg-alt); color: var(--c-brand-2); }

/* mobile menu */
.pal-burger { display: none; }

@media (max-width: 991.98px) {
  .pal-nav-links, .pal-search { display: none; }
  .pal-burger { display: inline-flex; }
  .pal-nav-row { gap: 12px; padding: 12px 0; }
  .pal-lang-btn { display: none; }
}

/* mobile offcanvas drawer */
.pal-drawer {
  position: fixed; top: 0; bottom: 0; left: -340px;
  width: 320px; max-width: 88vw; background: var(--surface); z-index: 1080;
  display: flex; flex-direction: column;
  transition: left var(--tr-mid); box-shadow: var(--shadow-lg);
}
.pal-drawer.is-open { left: 0; }
.pal-drawer-overlay {
  position: fixed; inset: 0; background: var(--scrim);
  z-index: 1075; opacity: 0; pointer-events: none;
  transition: opacity var(--tr-mid);
}
.pal-drawer-overlay.is-open { opacity: 1; pointer-events: all; }
.pal-drawer-head {
  padding: 20px; border-bottom: 1px solid var(--c-border-soft);
  display: flex; align-items: center; justify-content: space-between;
}
.pal-drawer-body { padding: 16px 20px; flex: 1; overflow: auto; }
.pal-drawer-foot { padding: 16px 20px; border-top: 1px solid var(--c-border-soft); display: flex; gap: 8px; }
.pal-drawer-link {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border-radius: var(--radius-sm); color: var(--c-text); text-decoration: none;
  font-size: var(--fs-15); font-weight: 500;
}
.pal-drawer-link:hover { background: var(--c-bg-alt); color: var(--c-brand-2); }
.pal-drawer-link i { width: 20px; text-align: center; color: var(--c-text-muted); }

/* 5. BUTTONS : systeme unique .sf-btn — voir la SECTION 6. */

/* --------------------------------------------------------------------------
   6. SECTION & TYPOGRAPHY UTILITIES
   -------------------------------------------------------------------------- */
.pal-section { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.pal-section-sm { padding-top: var(--section-y-sm); padding-bottom: var(--section-y-sm); }
.pal-section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin-bottom: 32px; flex-wrap: wrap;
}
.pal-section-eyebrow {
  text-transform: uppercase; letter-spacing: .08em; font-size: var(--fs-12);
  color: var(--primary); font-weight: 700; margin-bottom: 6px;
}
.pal-section-sub { color: var(--c-text-muted); margin-top: 8px; font-size: var(--fs-15); }
.pal-section-link { color: var(--c-text); font-weight: 600; font-size: var(--fs-14); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.pal-section-link:hover { color: var(--c-brand-2); }
.pal-section-link i { transition: transform var(--tr-fast); }
.pal-section-link:hover i { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   7. HERO
   -------------------------------------------------------------------------- */
.pal-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--bg) 0%, var(--surface-2) 100%);
  padding: clamp(48px, 8vw, 120px) 0 clamp(64px, 8vw, 120px);
}
.pal-hero::before {
  content: ""; position: absolute; top: -200px; right: -200px;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, var(--c-brand-soft) 0%, transparent 70%);
  z-index: 0; pointer-events: none;
}
.pal-hero::after {
  content: ""; position: absolute; bottom: -300px; left: -200px;
  width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--secondary) 8%, transparent) 0%, transparent 70%);
  z-index: 0; pointer-events: none;
}
.pal-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; }
.pal-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--c-brand-soft); color: var(--c-brand-2);
  padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; margin-bottom: 18px;
}
.pal-hero-title {
  font-size: var(--fs-36); font-weight: 800;
  line-height: 1.05; letter-spacing: -.025em; margin: 0 0 18px;
}
.pal-hero-title em { font-style: normal; background: linear-gradient(135deg, var(--primary), var(--secondary)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pal-hero-sub { font-size: 18px; color: var(--c-text-muted); line-height: 1.55; margin: 0 0 28px; max-width: 520px; }
.pal-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.pal-hero-stats { display: flex; gap: 32px; margin-top: 40px; flex-wrap: wrap; }
.pal-hero-stat-num { font-size: var(--fs-30); font-weight: 800; color: var(--c-text); letter-spacing: -.02em; }
.pal-hero-stat-lbl { font-size: 13px; color: var(--c-text-muted); }

.pal-hero-media { position: relative; }
.pal-hero-img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--r-xl); box-shadow: var(--sh-xl);
}
.pal-hero-card {
  position: absolute; background: var(--surface); padding: 14px 18px;
  border-radius: var(--r-md); box-shadow: var(--sh-lg);
  display: flex; align-items: center; gap: 12px;
}
.pal-hero-card.tl { top: 24px; left: -24px; }
.pal-hero-card.br { bottom: 24px; right: -24px; }
.pal-hero-card-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--c-brand-soft); color: var(--c-brand-2);
  display: inline-flex; align-items: center; justify-content: center; font-size: 20px;
}
.pal-hero-card-title { font-size: 13px; font-weight: 700; color: var(--c-text); }
.pal-hero-card-sub { font-size: var(--fs-12); color: var(--c-text-muted); }

@media (max-width: 991.98px) {
  .pal-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .pal-hero-stats { gap: 20px; }
  .pal-hero-card.tl { left: 16px; top: 16px; }
  .pal-hero-card.br { right: 16px; bottom: 16px; }
}

/* --------------------------------------------------------------------------
   8. TRUST STRIP
   -------------------------------------------------------------------------- */
.pal-trust {
  background: var(--c-bg-alt); padding: 28px 0;
  border-top: 1px solid var(--c-border-soft);
  border-bottom: 1px solid var(--c-border-soft);
}
.pal-trust-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
}
.pal-trust-item {
  display: flex; align-items: center; gap: 14px;
}
.pal-trust-icon {
  width: 48px; height: 48px; flex: 0 0 48px;
  background: var(--surface); border-radius: var(--radius-md);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: var(--fs-20); color: var(--primary);
  box-shadow: var(--sh-sm);
}
.pal-trust-title { font-size: 14px; font-weight: 700; margin: 0; color: var(--c-text); }
.pal-trust-sub { font-size: 12px; color: var(--c-text-muted); margin: 2px 0 0; }

@media (max-width: 767.98px) {
  .pal-trust-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

/* --------------------------------------------------------------------------
   9. CATEGORY TILES
   -------------------------------------------------------------------------- */
.pal-cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.pal-cat-tile {
  position: relative; display: block; text-decoration: none; color: var(--c-text);
  background: var(--c-bg-alt); border-radius: var(--r-lg); padding: 24px 16px;
  text-align: center; transition: transform var(--tr-mid), box-shadow var(--tr-mid);
  border: 1px solid transparent; overflow: hidden;
}
.pal-cat-tile:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); border-color: var(--c-border-soft); color: var(--c-brand-2); }
.pal-cat-img {
  width: 64px; height: 64px; object-fit: cover; border-radius: 50%;
  margin: 0 auto 12px; background: var(--surface); box-shadow: var(--sh-sm);
}
.pal-cat-name { font-size: 13px; font-weight: 600; margin: 0; }
.pal-cat-count { font-size: var(--fs-12); color: var(--c-text-muted); margin-top: 2px; }

@media (max-width: 991.98px) {
  .pal-cat-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 575.98px) {
  .pal-cat-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .pal-cat-tile { padding: 16px 8px; }
  .pal-cat-img { width: 52px; height: 52px; }
}

/* --------------------------------------------------------------------------
10. CARTE PRODUIT ET GRILLES : sections 6.4 et 6.10 (lot 2 de l'audit du
    18/11/2026). Les trois generations de regles qui vivaient ici, en
    « grille et cartes » et en « modele D » ont ete fusionnees.
-------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   11. SHOP PAGE
   -------------------------------------------------------------------------- */
.pal-shop-head {
  background: linear-gradient(180deg, var(--c-bg-alt), var(--bg));
  border-bottom: 1px solid var(--c-border-soft);
  padding: 32px 0;
}
.pal-shop-title { font-size: var(--fs-30); margin: 0; }
.pal-shop-meta { color: var(--c-text-muted); font-size: 14px; margin-top: 4px; }

.pal-shop-body { display: grid; grid-template-columns: 280px 1fr; gap: 32px; padding: 32px 0; }
@media (max-width: 991.98px) { .pal-shop-body { grid-template-columns: 1fr; } }

.pal-shop-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; padding-bottom: 16px; border-bottom: 1px solid var(--c-border-soft); margin-bottom: 24px;
}
.pal-shop-toolbar-left { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pal-shop-view {
  display: inline-flex; background: var(--c-bg-alt); border-radius: 10px; padding: 4px; gap: 4px;
}

/* sidebar filters card */
.pal-filters {
  background: var(--surface); border: 1px solid var(--c-border-soft); border-radius: var(--r-lg);
  padding: 20px; position: sticky; top: 100px;
}
.pal-filter-block { padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--c-border-soft); }
.pal-filter-block:last-child { border: 0; margin: 0; padding: 0; }
.pal-filter-title {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--c-text); margin-bottom: 12px;
}
.pal-filter-input {
  width: 100%; height: 42px; padding: 0 14px;
  border: 1.5px solid var(--c-border); border-radius: 10px;
  font-size: var(--fs-15); background: var(--surface); color: var(--c-text); outline: none;
  transition: border-color var(--tr-fast), box-shadow var(--tr-fast);
}
.pal-filter-input:focus { border-color: var(--c-brand-2); box-shadow: 0 0 0 4px var(--c-brand-soft); }
select.pal-filter-input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }

.pal-chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.pal-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: var(--radius-pill); background: var(--c-bg-alt); color: var(--c-text);
  text-decoration: none; font-size: var(--fs-12); font-weight: 600;
  transition: background var(--tr-fast);
}
.pal-chip:hover { background: var(--c-brand-soft); color: var(--c-brand-2); }
.pal-chip-x { color: var(--c-text-muted); }

/* --------------------------------------------------------------------------
   12. FICHE PRODUIT : section 7 (lot 3 de l'audit du 18/11/2026).
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   13. CART / CHECKOUT / FORMS
   -------------------------------------------------------------------------- */
.pal-form-label { font-size: 13px; font-weight: 600; color: var(--c-text); margin-bottom: 6px; display: block; }
.pal-input {
  width: 100%; height: 46px; padding: 0 14px;
  border: 1.5px solid var(--c-border); border-radius: 12px;
  font-size: var(--fs-15); background: var(--surface); color: var(--c-text); outline: none;
  transition: border-color var(--tr-fast), box-shadow var(--tr-fast);
}
.pal-input:focus { border-color: var(--c-brand-2); box-shadow: 0 0 0 4px var(--c-brand-soft); }
textarea.pal-input { min-height: 120px; padding: 14px; resize: vertical; line-height: 1.5; height: auto; }

.pal-card {
  background: var(--surface); border: 1px solid var(--c-border-soft);
  border-radius: var(--r-lg); padding: 24px;
}
.pal-card-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--c-border-soft);
}
.pal-card-title { font-size: 16px; font-weight: 700; margin: 0; }

.pal-cart-item {
  display: grid; grid-template-columns: 80px 1fr auto auto auto;
  align-items: center; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid var(--c-border-soft);
}
.pal-cart-item:last-child { border: 0; }
.pal-cart-img { width: 80px; height: 80px; border-radius: 12px; object-fit: cover; background: var(--c-bg-alt); }
.pal-cart-name { font-size: 14px; font-weight: 600; }
.pal-cart-meta { font-size: 12px; color: var(--c-text-muted); margin-top: 2px; }
.pal-cart-line { font-size: 15px; font-weight: 700; min-width: 90px; text-align: right; }
.pal-cart-remove {
  width: 36px; height: 36px; border-radius: 10px;
  background: transparent; border: 1.5px solid var(--c-border);
  color: var(--c-danger); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background var(--tr-fast), border-color var(--tr-fast);
}
.pal-cart-remove:hover { background: var(--deal); color: var(--deal-ink); border-color: var(--deal); }

@media (max-width: 575.98px) {
  .pal-cart-item { grid-template-columns: 64px 1fr auto; gap: 10px; }
  .pal-cart-img { width: 64px; height: 64px; }
  .pal-cart-line { display: none; }
}

.pal-summary {
  position: sticky; top: 100px;
  background: var(--surface); border: 1px solid var(--c-border-soft); border-radius: var(--r-lg); padding: 24px;
}
.pal-summary-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; font-size: 14px; }
.pal-summary-row strong { font-weight: 600; }
.pal-summary-divider { border: 0; border-top: 1px solid var(--c-border-soft); margin: 12px 0; }
.pal-summary-total { font-size: var(--fs-20); font-weight: 800; }

/* steps indicator */
.pal-steps { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 24px 0 8px; flex-wrap: wrap; }
.pal-step { display: inline-flex; align-items: center; gap: 8px; }
.pal-step-num {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--c-bg-alt); color: var(--c-text-muted);
  font-size: 13px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.pal-step.is-done .pal-step-num { background: var(--success-strong); color: var(--success-ink); }
.pal-step.is-active .pal-step-num { background: var(--primary); color: var(--primary-ink); }
.pal-step-label { font-size: 13px; color: var(--c-text-muted); font-weight: 600; }
.pal-step.is-active .pal-step-label { color: var(--c-text); }
.pal-step-bar { width: 32px; height: 2px; background: var(--c-bg-alt); }
.pal-step.is-done + .pal-step-bar { background: var(--c-success); }

/* --------------------------------------------------------------------------
   14. MINI CART OFFCANVAS
   -------------------------------------------------------------------------- */
.pal-minicart {
  position: fixed; top: 0; right: -440px; bottom: 0;
  width: 420px; max-width: 92vw; background: var(--surface); z-index: 1080;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg); transition: right var(--tr-mid);
}
.pal-minicart.is-open { right: 0; }
.pal-minicart-overlay {
  position: fixed; inset: 0; background: var(--scrim);
  z-index: 1075; opacity: 0; pointer-events: none;
  transition: opacity var(--tr-mid);
}
.pal-minicart-overlay.is-open { opacity: 1; pointer-events: all; }
.pal-minicart-head {
  padding: 20px 24px; border-bottom: 1px solid var(--c-border-soft);
  display: flex; align-items: center; justify-content: space-between;
}
.pal-minicart-title { font-size: 16px; font-weight: 700; margin: 0; }
.pal-minicart-body { padding: 8px 12px; flex: 1 1 auto; overflow-y: auto; }
.pal-minicart-item {
  display: grid; grid-template-columns: 64px 1fr auto;
  align-items: center; gap: 12px; padding: 12px;
}
.pal-minicart-thumb { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: var(--c-bg-alt); }
.pal-minicart-name { font-size: 13px; font-weight: 600; line-height: 1.3; }
.pal-minicart-line { font-size: 12px; color: var(--c-text-muted); margin-top: 2px; }
.pal-minicart-qty { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; }
.pal-minicart-qty button { width: 32px; height: 32px; border-radius: var(--radius-sm); border: 1px solid var(--c-border); background: var(--surface); cursor: pointer; line-height: 1; }
.pal-minicart-qty input { width: 36px; height: 24px; border: 1px solid var(--c-border); border-radius: 6px; text-align: center; font-size: 12px; }
.pal-minicart-rem {
  width: 28px; height: 28px; border-radius: 6px; border: none; background: transparent;
  color: var(--c-text-muted); cursor: pointer;
}
.pal-minicart-rem:hover { color: var(--deal); background: var(--error-soft); }
.pal-minicart-foot { padding: 18px 24px; border-top: 1px solid var(--c-border-soft); }
.pal-minicart-empty {
  text-align: center; padding: 60px 24px; color: var(--c-text-muted);
}
.pal-minicart-empty i { font-size: 48px; color: var(--c-text-soft); display: block; margin-bottom: 12px; }

/* --------------------------------------------------------------------------
   15. FOOTER
   -------------------------------------------------------------------------- */
.pal-footer {
  background: var(--footer-bg); color: var(--footer-text); margin-top: var(--section-y);
  padding: clamp(40px, 6vw, 80px) 0 0;
}
.pal-footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 40px;
}
.pal-footer-title {
  font-size: var(--fs-13); font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--footer-ink); margin: 0 0 16px;
}
.pal-footer-link {
  display: block; padding: 6px 0; color: var(--footer-text); text-decoration: none;
  font-size: var(--fs-14); transition: color var(--tr-fast);
}
.pal-footer-link:hover { color: var(--footer-ink); }
.pal-footer-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: var(--fs-18); color: var(--footer-ink); text-decoration: none; margin-bottom: 12px; }
.pal-footer-brand img { height: 32px; }
.pal-footer-about { font-size: var(--fs-14); color: var(--footer-muted); line-height: 1.7; max-width: 360px; }

.pal-footer-newsletter input {
  width: 100%; height: 44px; background: color-mix(in srgb, var(--footer-ink) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--footer-ink) 14%, transparent); border-radius: var(--radius-field);
  padding: 0 14px; color: var(--footer-ink); font-size: var(--fs-14); outline: none; transition: border-color var(--tr-fast);
}
.pal-footer-newsletter input::placeholder { color: var(--footer-muted); }
.pal-footer-newsletter input:focus { border-color: var(--c-brand-2); }
.pal-footer-newsletter button {
  margin-top: 8px; width: 100%; padding: 12px;
  background: var(--primary); color: var(--primary-ink);
  border: none; border-radius: var(--radius-button); font-weight: 600; font-size: var(--fs-14); cursor: pointer;
  transition: background var(--tr-fast);
}
.pal-footer-newsletter button:hover { background: var(--primary-hover); }

.pal-footer-bottom {
  border-top: 1px solid color-mix(in srgb, var(--footer-ink) 8%, transparent);
  padding: 20px 0; display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; font-size: var(--fs-13); color: var(--footer-muted);
}
.pal-footer-socials { display: inline-flex; gap: 8px; }
.pal-footer-social {
  width: 36px; height: 36px; border-radius: 50%;
  background: color-mix(in srgb, var(--footer-ink) 8%, transparent); border: none;
  color: var(--footer-ink); display: inline-flex; align-items: center; justify-content: center;
  font-size: var(--fs-14); cursor: pointer; transition: background var(--tr-fast); text-decoration: none;
}
.pal-footer-social:hover { background: var(--primary); color: var(--primary-ink); }

@media (max-width: 991.98px) {
  .pal-footer-grid { grid-template-columns: 1fr 1fr; }
  .pal-footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 575.98px) {
  .pal-footer-grid { grid-template-columns: 1fr; gap: 24px; padding-bottom: 24px; }
  .pal-footer-bottom { justify-content: center; text-align: center; flex-direction: column; }
}

/* --------------------------------------------------------------------------
   16. UTILITIES & PAGE LOADER
   -------------------------------------------------------------------------- */
.pal-skeleton { background: linear-gradient(90deg, var(--surface-2) 0%, var(--surface) 50%, var(--surface-2) 100%); background-size: 200% 100%; animation: pal-skel 1.4s infinite linear; }
@keyframes pal-skel { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

#page-loader { background: var(--bg); transition: opacity .3s ease; }
#page-loader.hidden { opacity: 0; pointer-events: none; }
.pal-spinner {
  width: 40px; height: 40px; border-radius: 50%;
  border: 3px solid var(--c-border); border-top-color: var(--c-brand-2);
  animation: pal-spin .8s linear infinite;
}
@keyframes pal-spin { to { transform: rotate(360deg); } }

/* announce flash */
/* Toast : #palFlash, section 7.8. */

/* responsive helpers */
.pal-only-desktop { display: block; }
.pal-only-mobile { display: none; }
@media (max-width: 991.98px) {
  .pal-only-desktop { display: none; }
  .pal-only-mobile { display: block; }
}

/* ##########################################################################
   SECTION 2 — reprise integrale de store-modern-v2.css
   ########################################################################## */

/*
 * ════════════════════════════════════════════════════════════════════
 *  STORE MODERN V2 — Refonte UI/UX premium FiaVia Storefront
 *  ────────────────────────────────────────────────────────────────────
 *  Surcouche CSS qui rehausse l'ensemble du storefront vers un design
 *  e-commerce moderne premium. Importé APRÈS store-premium.css pour
 *  prendre le dessus, sans toucher au HTML existant.
 *
 *  Conventions :
 *   - Tous les sélecteurs réutilisent les classes .pal-* déjà présentes
 *   - Tokens design centralisés dans :root (--mv2-*)
 *   - Respect du dark mode via body.dark-theme
 * ════════════════════════════════════════════════════════════════════
 */

/* ── Typographie : pilotée par le builder ───────────────────────────────
   L'@import CDN bloquant (Inter + Playfair Display) a été retiré le
   06/10/2026 : il forçait ces polices PAR-DESSUS celles choisies par le
   marchand dans le builder (--font-body / --font-heading, chargées
   dynamiquement par le layout) et bloquait le premier rendu. Les variables
   --mv2-font-* ci-dessous retombent désormais sur les tokens du marchand. */

/* Jetons modern-v2 (--mv2-*) : alias en SECTION 0. */

/* ── Reset typo global storefront ───────────────────────────────── */
body {
  font-family: var(--mv2-font-sans);
  font-feature-settings: 'cv11', 'ss01';
  font-optical-sizing: auto;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, .pal-hero-title, .pal-shop-title, .pal-footer-title {
  font-family: var(--mv2-font-sans);
  letter-spacing: -0.02em;
}
.pal-hero-title { font-family: var(--mv2-font-serif); letter-spacing: -0.025em; font-weight: 700; }
.pal-shop-title { font-weight: 800; }

/* ════════════════════════════════════════════════════════════════ */
/*  1. HEADER — backdrop blur, mode glass, micro-interactions        */
/* ════════════════════════════════════════════════════════════════ */
.pal-promo-bar,
.pal-topbar-modern {
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 10px 0;
  position: relative;
  overflow: hidden;
  font-size: 13px;
}
.pal-promo-bar::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, currentColor 8%, transparent), transparent);
  animation: mv2-shimmer 4s infinite;
  pointer-events: none;
}
@keyframes mv2-shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ─── Top bar layout : 2 zones (gauche promo / droite utilitaires) ─── */
.pal-topbar-modern .container {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  z-index: 1;
}
.pal-topbar-left { flex: 1 1 auto; min-width: 0; }
.pal-topbar-text {
  display: inline-flex; align-items: center; gap: 6px;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  max-width: 100%;
}
.pal-topbar-text i { flex-shrink: 0; }
.pal-topbar-right { flex: 0 0 auto; }
.pal-topbar-tag {
  background: color-mix(in srgb, currentColor 18%, transparent);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: var(--fs-12);
  font-weight: 600;
}

/* Boutons utilitaires (phone, lang, account) dans le top bar */
.pal-topbar-util {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  background: color-mix(in srgb, currentColor 8%, transparent);
  border: 1px solid color-mix(in srgb, currentColor 15%, transparent);
  border-radius: var(--radius-pill);
  color: inherit;
  font-size: var(--fs-13);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--mv2-tr);
  white-space: nowrap;
}
.pal-topbar-util:hover {
  background: color-mix(in srgb, currentColor 22%, transparent);
  border-color: color-mix(in srgb, currentColor 30%, transparent);
  color: inherit;
  transform: translateY(-1px);
}
.pal-topbar-util i { font-size: 13px; }
.pal-topbar-util.dropdown-toggle::after {
  margin-left: 2px;
  opacity: 0.7;
  border-top-width: 4px;
}

/* Mobile : compact le top bar */
@media (max-width: 767.98px) {
  .pal-topbar-modern { padding: 6px 0; font-size: var(--fs-12); }
  .pal-topbar-text { font-size: var(--fs-12); }
  .pal-topbar-util { padding: 3px 8px; font-size: var(--fs-12); }
}

/* ─── HEADER : masquer les éléments désormais déplacés vers le top bar ─── */
/* Phone, currency, language, account → maintenant dans le top bar */
.pal-nav-actions > .pal-phone-btn,
.pal-nav-actions > .pal-lang-btn,
.pal-nav-actions > .pal-lang-btn ~ .dropdown,           /* drop currency (suit lang) */
.pal-nav-actions > .dropdown:has(.pal-lang-btn),
.pal-nav-actions > .dropdown:has(.pal-phone-btn) {
  display: none !important;
}
/* Sélecteurs plus larges pour cibler les dropdowns langue/currency/compte
   restants dans le header (puisqu'ils sont aussi rendus dans le top bar) */
.pal-nav-actions .dropdown:has(button[aria-label*="Currency" i]),
.pal-nav-actions .dropdown:has(button[aria-label*="Account" i]),
.pal-nav-actions .dropdown:has(.pal-lang-btn),
.pal-nav-actions > a[href^="tel:"],
.pal-nav-actions > a[href*="/login"]:not(.pal-icon-btn-cart):not([href*="wishlist"]):not([href*="compare"]) {
  display: none !important;
}

.pal-nav {
  background: color-mix(in srgb, var(--header-bg) 92%, transparent) !important;
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--mv2-border-soft);
  transition: background var(--mv2-tr), box-shadow var(--mv2-tr);
}
.pal-nav.is-sticky.is-scrolled { box-shadow: var(--mv2-shadow-2); }

.pal-nav-row { gap: 24px; min-height: 70px; }
.pal-brand {
  font-family: var(--mv2-font-serif);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: var(--fs-18);
}
.pal-brand img { transition: transform var(--mv2-tr); }
.pal-brand:hover img { transform: scale(1.04); }

.pal-nav-link {
  position: relative;
  padding: 8px 14px !important;
  font-weight: 500 !important;
  font-size: 14px !important;
  letter-spacing: -0.005em;
  color: var(--mv2-text) !important;
  border-radius: var(--mv2-r-sm) !important;
}
.pal-nav-link::before {
  content: "";
  position: absolute; left: 14px; right: 14px; bottom: 4px;
  height: 2px;
  background: var(--mv2-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--mv2-tr);
  border-radius: 2px;
}
.pal-nav-link:hover { background: transparent !important; }
.pal-nav-link:hover::before { transform: scaleX(1); }
.pal-nav-link.is-active::before { transform: scaleX(1); }

/* Search bar premium */
.pal-search {
  background: var(--mv2-surface-alt) !important;
  border-radius: var(--mv2-r-pill) !important;
  border: 1px solid transparent !important;
  transition: all var(--mv2-tr) !important;
  padding: 0 16px !important;
  height: 42px;
}
.pal-search:focus-within {
  background: var(--mv2-surface) !important;
  border-color: var(--mv2-accent) !important;
  box-shadow: 0 0 0 4px var(--mv2-accent-soft);
}
.pal-search input { font-size: 14px !important; }

.pal-nav-actions .pal-icon-badge {
  position: absolute; top: -2px; right: -2px;
  min-width: 18px; height: 18px;
  background: var(--primary);
  color: var(--primary-ink);
  border-radius: var(--mv2-r-pill);
  font-size: var(--fs-12); font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 5px;
  border: 2px solid var(--mv2-surface);
  animation: mv2-pop 0.3s ease-out;
}
@keyframes mv2-pop {
  0% { transform: scale(0); } 80% { transform: scale(1.15); } 100% { transform: scale(1); }
}

/* ════════════════════════════════════════════════════════════════ */
/*  2. HERO — gradient overlays, animation d'entrée, CTA premium     */
/* ════════════════════════════════════════════════════════════════ */
.pal-hero-slider {
  background: linear-gradient(135deg, var(--text) 0%, color-mix(in srgb, var(--text) 85%, var(--primary)) 100%) !important;
  position: relative;
}
.pal-hero-slider::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 30%, color-mix(in srgb, var(--primary) 15%, transparent), transparent 50%),
    radial-gradient(circle at 80% 70%, color-mix(in srgb, var(--secondary) 10%, transparent), transparent 50%);
  pointer-events: none; z-index: 1;
}
.pal-hero-content {
  animation: mv2-slide-up 0.8s cubic-bezier(.16, 1, .3, 1);
}
.pal-hero-title {
  font-size: var(--fs-36) !important;
  letter-spacing: -0.03em !important;
  font-weight: 700 !important;
  text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}
.pal-hero-sub {
  font-size: var(--fs-20) !important;
  font-weight: 400;
  max-width: 620px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.2);
}


.pal-hero-dot { width: 8px !important; height: 8px !important; transition: all var(--mv2-tr) !important; }
.pal-hero-dot.is-active { width: 32px !important; background: var(--on-image) !important; }

@keyframes mv2-slide-up {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ════════════════════════════════════════════════════════════════ */
/*  3. SECTIONS — titres premium, espacement généreux                */
/* ════════════════════════════════════════════════════════════════ */
/* Padding généreux sur les sections de contenu — mais on EXCLUT les
 * sections "edge-to-edge" qui gèrent leur propre hauteur :
 *  - .pal-hero-slider (hauteur fixe via --hero-h)
 *  - .pal-newsletter-banner (déjà ses propres paddings premium)
 *  - les bannières promo/mid qui sont des bandes pleine largeur
 */
section[class*="pal-"]:not(.pal-hero-slider):not(.pal-newsletter-banner):not(.pal-promo-banner-section):not(.pal-mid-banner-section):not(.pal-topbar) {
  padding: var(--mv2-sp-9) 0 !important;
}
.pal-hero-slider { padding: 0 !important; }

/* Titres et sous-titres de section : SECTION 6.2 (un seul H2). */

/* Petits "eyebrow" labels au-dessus des titres */
.pal-section-eyebrow {
  display: inline-block;
  padding: 4px 14px;
  background: var(--mv2-accent-soft);
  color: var(--primary-soft-ink);
  font-size: var(--fs-12);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}

/* ════════════════════════════════════════════════════════════════ */
/*  4. PRODUCT CARDS — hover premium, quick actions, badges          */
/* ════════════════════════════════════════════════════════════════ */
.pal-product-card,
.pal-product {
  background: var(--mv2-surface);
  border: 1px solid var(--mv2-border-soft);
  border-radius: var(--mv2-r-lg);
  overflow: hidden;
  transition: all var(--mv2-tr-slow) !important;
  position: relative;
}
.pal-product-card:hover,
.pal-product:hover {
  transform: translateY(-8px);
  box-shadow: var(--mv2-shadow-hover);
  border-color: transparent;
}

.pal-product-media,
.pal-product-image-wrap {
  position: relative;
  overflow: hidden;
  background: var(--mv2-surface-alt);
  aspect-ratio: 1 / 1;
}
.pal-product-media img,
.pal-product-image-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--mv2-tr-slow);
}
.pal-product-card:hover .pal-product-media img,
.pal-product:hover .pal-product-image-wrap img {
  transform: scale(1.08);
}

/* Quick actions overlay (apparaît au hover) */
.pal-product-actions,
.pal-quick-actions {
  position: absolute; right: 12px; top: 12px;
  display: flex; flex-direction: column; gap: 8px;
  opacity: 0; transform: translateX(8px);
  transition: all var(--mv2-tr);
  z-index: 3;
}
.pal-product-card:hover .pal-product-actions,
.pal-product-card:hover .pal-quick-actions,
.pal-product:hover .pal-product-actions,
.pal-product:hover .pal-quick-actions {
  opacity: 1; transform: translateX(0);
}
.pal-product-action,
.pal-quick-action {
  width: 36px; height: 36px;
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 0;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: var(--mv2-shadow-2);
  transition: all var(--mv2-tr);
  color: var(--mv2-text);
}
.pal-product-action:hover,
.pal-quick-action:hover {
  background: var(--mv2-accent);
  color: var(--primary-ink);
  transform: scale(1.1);
}

/* Badges produit (Nouveau, -20%, etc.) */
.pal-product-badge,
.pal-product-tag {
  position: absolute; left: 12px; top: 12px; z-index: 3;
  padding: 6px 12px;
  background: var(--mv2-accent);
  color: var(--primary-ink);
  font-size: var(--fs-12);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--mv2-r-pill);
  box-shadow: var(--mv2-shadow-2);
}
.pal-product-badge.is-sale,
.pal-product-tag.is-promo {
  background: var(--deal);
}
.pal-product-badge.is-new {
  background: var(--success-strong);
}

.pal-product-body,
.pal-product-info {
  padding: 18px 20px 20px !important;
}
.pal-product-title,
.pal-product-name {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: var(--mv2-text) !important;
  margin-bottom: 6px !important;
  line-height: 1.4;
  letter-spacing: -0.011em;
}
.pal-product-category,
.pal-product-brand {
  font-size: 12px !important;
  color: var(--mv2-text-muted) !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
  margin-bottom: 8px;
}
.pal-product-price,
.pal-price {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: var(--mv2-text) !important;
  font-feature-settings: 'tnum';
}
.pal-product-price-old,
.pal-price-old {
  font-size: 14px;
  color: var(--mv2-text-muted);
  text-decoration: line-through;
  margin-left: 8px;
  font-weight: 500;
}

/* Rating étoiles */
.pal-rating,
.pal-product-rating { color: var(--warning); font-size: var(--fs-13); gap: 3px; }


/* ════════════════════════════════════════════════════════════════ */
/*  5. CATEGORIES SECTION — cards modernes circulaires ou rectangles */
/* ════════════════════════════════════════════════════════════════ */
.pal-cats-grid,
.pal-categories-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
  gap: 20px !important;
}
.pal-cat-card,
.pal-category-card {
  border-radius: var(--mv2-r-lg) !important;
  overflow: hidden;
  background: var(--mv2-surface);
  border: 1px solid var(--mv2-border-soft);
  transition: all var(--mv2-tr-slow) !important;
  position: relative;
  text-decoration: none !important;
}
.pal-cat-card:hover,
.pal-category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--mv2-shadow-hover);
  border-color: var(--mv2-accent);
}
.pal-cat-card img,
.pal-category-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform var(--mv2-tr-slow);
}
.pal-cat-card:hover img,
.pal-category-card:hover img { transform: scale(1.08); }
.pal-cat-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.1) 50%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 18px 20px;
  color: var(--on-image);
}
.pal-cat-card-title {
  font-size: var(--fs-16) !important; font-weight: 700 !important;
  color: var(--on-image) !important;
  margin: 0 !important;
}
.pal-cat-card-count {
  font-size: 12px; opacity: 0.85; margin-top: 2px;
}

/* ════════════════════════════════════════════════════════════════ */
/*  6. ADVANTAGES — icônes premium                                   */
/* ════════════════════════════════════════════════════════════════ */
.pal-advantages-grid,
.pal-advantage-grid {
  gap: 24px !important;
}
.pal-advantage-card,
.pal-advantage {
  background: var(--mv2-surface) !important;
  border: 1px solid var(--mv2-border-soft) !important;
  border-radius: var(--mv2-r-lg) !important;
  padding: 32px 24px !important;
  text-align: center;
  transition: all var(--mv2-tr) !important;
}
.pal-advantage-card:hover,
.pal-advantage:hover {
  border-color: var(--mv2-accent);
  transform: translateY(-4px);
  box-shadow: var(--mv2-shadow-3);
}
.pal-advantage-icon,
.pal-advantage i {
  width: 64px; height: 64px;
  border-radius: var(--mv2-r-lg);
  background: var(--mv2-accent-soft);
  color: var(--mv2-accent);
  display: inline-flex !important;
  align-items: center; justify-content: center;
  font-size: var(--fs-30) !important;
  margin: 0 auto var(--mv2-sp-4) !important;
}
.pal-advantage-title {
  font-size: var(--fs-16) !important; font-weight: 600 !important;
  margin-bottom: 6px;
}
.pal-advantage-text {
  font-size: 14px;
  color: var(--mv2-text-muted);
  line-height: 1.6;
}

/* ════════════════════════════════════════════════════════════════ */
/*  7. TESTIMONIALS — quote moderne                                  */
/* ════════════════════════════════════════════════════════════════ */
.pal-testimonial,
.pal-testimonial-card {
  background: var(--mv2-surface) !important;
  border: 1px solid var(--mv2-border-soft);
  border-radius: var(--mv2-r-lg) !important;
  padding: 32px !important;
  position: relative;
  transition: all var(--mv2-tr) !important;
}
.pal-testimonial::before {
  content: '"';
  position: absolute; top: 8px; left: 24px;
  font-family: Georgia, serif;
  font-size: 80px;
  color: var(--mv2-accent);
  opacity: 0.15;
  line-height: 1;
}
.pal-testimonial:hover {
  transform: translateY(-4px);
  box-shadow: var(--mv2-shadow-3);
}
.pal-testimonial-text {
  font-style: italic;
  font-size: 15px;
  line-height: 1.7;
  color: var(--mv2-text);
  margin-bottom: 16px;
  position: relative; z-index: 1;
}
.pal-testimonial-author {
  display: flex; align-items: center; gap: 12px;
}
.pal-testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--mv2-accent-soft);
}
.pal-testimonial-name {
  font-size: 14px; font-weight: 600;
  color: var(--mv2-text);
  margin: 0;
}
.pal-testimonial-role {
  font-size: 12px;
  color: var(--mv2-text-muted);
}

/* ════════════════════════════════════════════════════════════════ */
/*  8. NEWSLETTER — section premium                                  */
/* ════════════════════════════════════════════════════════════════ */
.pal-newsletter,
.pal-section-newsletter {
  background: linear-gradient(135deg, var(--mv2-accent) 0%, var(--mv2-accent-2) 100%) !important;
  color: var(--primary-ink) !important;
  border-radius: var(--mv2-r-xl);
  padding: var(--mv2-sp-9) var(--mv2-sp-6) !important;
  margin: var(--mv2-sp-9) auto !important;
  max-width: 1140px;
  position: relative;
  overflow: hidden;
}
.pal-newsletter::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--primary-ink) 15%, transparent), transparent 50%),
    radial-gradient(circle at 0% 100%, color-mix(in srgb, var(--primary-ink) 10%, transparent), transparent 50%);
  pointer-events: none;
}
.pal-newsletter > * { position: relative; z-index: 1; }
.pal-newsletter-title { color: var(--primary-ink) !important; font-family: var(--mv2-font-serif); font-size: var(--fs-30); }
.pal-newsletter-sub { color: var(--primary-ink); opacity: .9; margin-bottom: 32px; }
.pal-newsletter-form {
  display: flex; gap: 8px; max-width: 480px; margin: 0 auto;
  background: color-mix(in srgb, var(--primary-ink) 15%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 6px;
  border-radius: var(--mv2-r-pill);
  border: 1px solid color-mix(in srgb, var(--primary-ink) 25%, transparent);
}
.pal-newsletter-form input {
  flex: 1; border: 0; background: transparent;
  padding: 10px 16px; color: var(--primary-ink);
  font-size: var(--fs-14);
}
.pal-newsletter-form input::placeholder { color: var(--primary-ink); opacity: .7; }
.pal-newsletter-form input:focus { outline: 0; }
.pal-newsletter-form button {
  padding: 10px 24px;
  background: var(--primary-ink);
  color: var(--primary);
  border: 0;
  border-radius: var(--mv2-r-pill);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--mv2-tr);
}
.pal-newsletter-form button:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

/* ════════════════════════════════════════════════════════════════ */
/*  8B. NEWSLETTER BANNER — pleine largeur avant le footer           */
/* ════════════════════════════════════════════════════════════════ */
.pal-newsletter-banner {
  position: relative;
  padding: var(--mv2-sp-9) 0 !important;
  background: var(--footer-bg);
  color: var(--footer-ink);
  overflow: hidden;
  /* Pas de margin → la newsletter colle à la section précédente et au footer */
  margin-top: 0;
  margin-bottom: 0;
}
/* Quand la section juste au-dessus a un fond coloré + padding-bottom de section,
 * on supprime ce padding pour qu'il n'y ait pas de bande "vide" entre la section
 * et la newsletter. Sélecteur :has() supporté par Chrome 105+, Safari 15.4+, FF 121+ */
section[class*="pal-"]:has(+ .pal-newsletter-banner) { padding-bottom: 0 !important; }
.pal-newsletter-banner::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 15% 30%, color-mix(in srgb, var(--primary) 22%, transparent), transparent 50%),
    radial-gradient(circle at 85% 70%, color-mix(in srgb, var(--secondary) 14%, transparent), transparent 50%);
  pointer-events: none;
}
.pal-newsletter-banner::after {
  /* Pattern décoratif subtil */
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(color-mix(in srgb, var(--footer-ink) 5%, transparent) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.5;
  pointer-events: none;
}
.pal-newsletter-banner-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 64px;
}
@media (max-width: 991.98px) {
  .pal-newsletter-banner-inner { grid-template-columns: 1fr; gap: 32px; text-align: center; }
}

/* ─── Texte gauche ─── */
.pal-newsletter-banner-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pal-newsletter-banner-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 6px 16px;
  background: color-mix(in srgb, var(--footer-ink) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--footer-ink) 18%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--footer-ink);
  font-size: var(--fs-12);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--mv2-r-pill);
  margin-bottom: 4px;
}
.pal-newsletter-banner-eyebrow i { font-size: 14px; }
@media (max-width: 991.98px) {
  .pal-newsletter-banner-eyebrow { align-self: center; }
}
.pal-newsletter-banner-title {
  font-family: var(--mv2-font-serif);
  font-size: var(--fs-36);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--footer-ink);
  margin: 0 0 4px;
  text-shadow: 0 2px 24px rgba(0,0,0,0.3);
}
.pal-newsletter-banner-sub {
  font-size: 16px;
  line-height: 1.6;
  color: var(--footer-text);
  margin: 0;
  max-width: 520px;
}
@media (max-width: 991.98px) {
  .pal-newsletter-banner-sub { margin-left: auto; margin-right: auto; }
}

/* ─── Form droite (input + button cohabitent dans un même conteneur) ─── */
.pal-newsletter-banner-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}
.pal-newsletter-banner-field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 6px;
  background: color-mix(in srgb, var(--footer-ink) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--footer-ink) 18%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-radius: var(--mv2-r-pill);
  transition: border-color var(--mv2-tr), background var(--mv2-tr), box-shadow var(--mv2-tr);
}
.pal-newsletter-banner-field:focus-within {
  background: color-mix(in srgb, var(--footer-ink) 18%, transparent);
  border-color: color-mix(in srgb, var(--footer-ink) 45%, transparent);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--footer-ink) 8%, transparent);
}
.pal-newsletter-banner-icon {
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--footer-muted);
  font-size: var(--fs-18);
  pointer-events: none;
}
.pal-newsletter-banner-field input[type="email"] {
  flex: 1 1 auto;
  background: transparent;
  border: 0;
  outline: 0;
  padding: 14px 16px 14px 52px;
  color: var(--footer-ink);
  font-size: var(--fs-15);
  font-family: var(--mv2-font-sans);
  min-width: 0;
}
.pal-newsletter-banner-field input[type="email"]::placeholder {
  color: var(--footer-muted);
}

.pal-newsletter-banner-field .sf-btn { flex: 0 0 auto; }

.pal-newsletter-banner-msg {
  font-size: var(--fs-14);
  min-height: 18px;
  color: var(--footer-ink);
  padding: 0 8px;
}
.pal-newsletter-banner-msg.is-success {
  color: color-mix(in srgb, var(--success) 60%, var(--footer-ink));
  font-weight: 500;
}
.pal-newsletter-banner-msg.is-error {
  color: color-mix(in srgb, var(--error) 60%, var(--footer-ink));
  font-weight: 500;
}
.pal-newsletter-banner-trust {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-13);
  color: var(--footer-muted);
  margin: 0;
  padding: 0 8px;
}
.pal-newsletter-banner-trust i { color: color-mix(in srgb, var(--success) 60%, var(--footer-ink)); }
@media (max-width: 991.98px) {
  .pal-newsletter-banner-trust { justify-content: center; }
}

/* Mobile : stack input + button verticalement */
@media (max-width: 575.98px) {
  .pal-newsletter-banner { padding: var(--mv2-sp-7) 0 !important; }
  .pal-newsletter-banner-field {
    flex-direction: column;
    border-radius: var(--mv2-r-lg);
    padding: 8px;
    gap: 8px;
  }
  .pal-newsletter-banner-icon { left: 22px; top: 22px; transform: none; }
  .pal-newsletter-banner-field input[type="email"] {
    width: 100%;
    padding: 12px 16px 12px 48px;
    font-size: 14px;
  }
  .pal-newsletter-banner-field .sf-btn { width: 100%; }
}

/* ════════════════════════════════════════════════════════════════ */
/*  9. FOOTER — modern dark, espacement aéré                         */
/* ════════════════════════════════════════════════════════════════ */
.pal-footer {
  background: var(--footer-bg) !important;
  color: var(--footer-text) !important;
  padding: var(--mv2-sp-9) 0 var(--mv2-sp-5) !important;
  /* Pas de margin-top → le footer colle à la newsletter (transition sombre fluide).
   * Quand la newsletter est absente, on garde un peu d'air via margin-top conditionnel. */
  margin-top: 0;
}
/* Si la newsletter est désactivée → on remet de l'air avant le footer */
.pal-newsletter-banner + .pal-footer,
.pal-footer:has(+ *) { margin-top: 0; }
section[class*="pal-"]:not(.pal-newsletter-banner) + .pal-footer { margin-top: var(--mv2-sp-6); }
.pal-newsletter-banner + .pal-footer { margin-top: 0 !important; }
.pal-footer-grid {
  display: grid !important;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 48px !important;
  margin-bottom: 48px;
}
@media (max-width: 991.98px) {
  .pal-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 575.98px) {
  .pal-footer-grid { grid-template-columns: 1fr; gap: 32px !important; }
}
.pal-footer-title {
  color: var(--footer-ink) !important;
  font-size: var(--fs-13) !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px !important;
  position: relative;
  padding-bottom: 12px;
}
.pal-footer-title::after {
  content: "";
  position: absolute; bottom: 0; left: 0;
  width: 32px; height: 2px;
  background: var(--mv2-accent-2);
  border-radius: 2px;
}
.pal-footer-link {
  display: block;
  color: var(--footer-text) !important;
  font-size: var(--fs-14);
  padding: 5px 0;
  text-decoration: none;
  transition: all var(--mv2-tr);
}
.pal-footer-link:hover {
  color: var(--footer-ink) !important;
  transform: translateX(4px);
}
.pal-footer-brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mv2-font-serif);
  font-size: var(--fs-18);
  font-weight: 700;
  color: var(--footer-ink) !important;
  margin-bottom: 14px;
}
.pal-footer-about {
  color: var(--footer-muted) !important;
  font-size: 14px;
  line-height: 1.7;
}
.pal-footer-payments {
  border-top: 1px solid color-mix(in srgb, var(--footer-ink) 8%, transparent);
  padding-top: 24px;
  margin-top: 24px;
}
.pal-footer-bottom {
  border-top: 1px solid color-mix(in srgb, var(--footer-ink) 8%, transparent);
  padding-top: 20px;
  margin-top: 16px;
  font-size: var(--fs-13);
  color: var(--footer-muted);
  text-align: center;
}

/* Socials icons rond avec hover lift */
.pal-footer-socials a,
.pal-social-icon {
  display: inline-flex !important;
  width: 38px; height: 38px;
  background: color-mix(in srgb, var(--footer-ink) 8%, transparent);
  color: var(--footer-ink) !important;
  border-radius: 50%;
  align-items: center; justify-content: center;
  transition: all var(--mv2-tr);
  margin-right: 8px;
  font-size: 16px;
}
.pal-footer-socials a:hover,
.pal-social-icon:hover {
  background: var(--mv2-accent-2);
  transform: translateY(-3px) scale(1.08);
  box-shadow: var(--shadow-md);
}

/* Newsletter du footer */
.pal-footer-newsletter form {
  display: flex; gap: 6px;
  background: color-mix(in srgb, var(--footer-ink) 8%, transparent);
  border-radius: var(--mv2-r-pill);
  padding: 4px;
}
.pal-footer-newsletter input {
  background: transparent;
  border: 0;
  padding: 8px 14px;
  color: var(--footer-ink);
  flex: 1;
  font-size: var(--fs-13);
  outline: 0;
}
.pal-footer-newsletter input::placeholder { color: var(--footer-muted); }
.pal-footer-newsletter button {
  background: var(--primary);
  color: var(--primary-ink);
  border: 0;
  padding: 8px 16px;
  border-radius: var(--mv2-r-pill);
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
}

/* ════════════════════════════════════════════════════════════════ */
/* 10. BOUTONS & FORMS — modern partout                              */
/* ════════════════════════════════════════════════════════════════ */
/* Boutons : SECTION 6. */

/* Inputs */
input[type="text"], input[type="email"], input[type="search"], input[type="tel"], textarea, select {
  font-family: var(--mv2-font-sans);
  font-size: var(--fs-15);
}

/* ════════════════════════════════════════════════════════════════ */
/* 11. ANIMATIONS — scroll reveal + micro-interactions               */
/* ════════════════════════════════════════════════════════════════ */
[data-mv2-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(.16, 1, .3, 1), transform 0.7s cubic-bezier(.16, 1, .3, 1);
}
[data-mv2-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
[data-mv2-reveal][data-delay="100"] { transition-delay: 0.1s; }
[data-mv2-reveal][data-delay="200"] { transition-delay: 0.2s; }
[data-mv2-reveal][data-delay="300"] { transition-delay: 0.3s; }

/* Card subtle pulse on first appear */
@keyframes mv2-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.pal-product-card,
.pal-product,
.pal-cat-card,
.pal-category-card,
.pal-advantage-card,
.pal-testimonial { animation: mv2-fade-in 0.6s ease-out both; }

/* ════════════════════════════════════════════════════════════════ */
/* 12. UTILITAIRES & POLISH                                          */
/* ════════════════════════════════════════════════════════════════ */
.container { max-width: 1200px; }

/* Scrollbar premium */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--mv2-surface-alt); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--mv2-border), var(--mv2-text-muted));
  border-radius: var(--mv2-r-pill);
  border: 3px solid var(--mv2-surface-alt);
}
::-webkit-scrollbar-thumb:hover { background: var(--mv2-text-muted); }

/* Selection */
::selection { background: var(--mv2-accent-soft); color: var(--mv2-text); }

/* Focus visible */
*:focus-visible {
  outline: 2px solid var(--mv2-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Loader dot */
.mv2-loader {
  display: inline-block;
  width: 18px; height: 18px;
  border: 2px solid var(--mv2-border);
  border-top-color: var(--mv2-accent);
  border-radius: 50%;
  animation: mv2-spin 0.7s linear infinite;
}
@keyframes mv2-spin { to { transform: rotate(360deg); } }

/* Mobile : ajustements responsive */
@media (max-width: 767.98px) {
  section[class*="pal-"] { padding: var(--mv2-sp-7) 0 !important; }
  .pal-newsletter { padding: var(--mv2-sp-7) var(--mv2-sp-4) !important; }
  .pal-newsletter-form { flex-direction: column; border-radius: var(--mv2-r-md); }
  .pal-newsletter-form input, .pal-newsletter-form button {
    width: 100%; border-radius: var(--mv2-r-sm);
  }
  .pal-hero-title { font-size: var(--fs-36) !important; }
}

/* Print friendly */
@media print {
  .pal-nav, .pal-footer, .pal-promo-bar, .pal-hero-arrow,
  .pal-hero-dots, .pal-newsletter { display: none !important; }
}

/* ##########################################################################
   SECTION 3 — reprise integrale de store-redesign.css
   ########################################################################## */

/* ============================================================================
   store-redesign.css — Calque de refonte visuelle du storefront (06/10/2026)
   ----------------------------------------------------------------------------
   Chargé EN DERNIER : il unifie les 3 systèmes concurrents (store-premium
   --c-*, modern-v2 --mv2-*, tokens layout --primary/--bg/--text) en les
   re-branchant sur LA couleur de marque du marchand + des neutres dérivés de
   sa palette, puis élève chaque composant au niveau d'un storefront premium.

   Règle d'or : AUCUNE couleur en dur de marque. Tout dérive des tokens
   injectés par le builder (--primary, --bg, --surface, --text, ...).
   ========================================================================== */

/* Jetons store-redesign (--rd-*) et palette sombre : SECTION 0 + gabarit. */

/* ========================================================================== */
/*  BASE                                                                       */
/* ========================================================================== */
body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--rd-accent-tint-2); color: var(--text); }
h1, h2, h3, h4 { text-wrap: balance; letter-spacing: -.018em; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px;
}

/* ========================================================================== */
/*  HEADER / NAV                                                               */
/* ========================================================================== */
.pal-nav, .pal-header {
  background: color-mix(in srgb, var(--surface) 86%, transparent) !important;
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--rd-line);
}
.pal-nav-link, .pal-menu-link { position: relative; transition: color var(--rd-t); }
.pal-nav-link::after, .pal-menu-link::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -3px; height: 2px;
  background: var(--primary); border-radius: 2px; transition: right var(--rd-t);
}
.pal-nav-link:hover, .pal-menu-link:hover { color: var(--primary); }
.pal-nav-link:hover::after, .pal-menu-link:hover::after { right: 0; }

.pal-search input, .pal-search-input {
  transition: box-shadow var(--rd-t), border-color var(--rd-t);
}
.pal-search:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--rd-accent-tint-2);
}
.pal-icon-btn-badge, #cart-badge, #wishlistCount {
  background: var(--primary) !important; color: var(--rd-accent-ink) !important;
}

/* Promo bar : léger dégradé de marque */
.pal-promo-bar, .pal-topbar {
  background: var(--text);
  color: var(--bg);
}

/* Mega-menu : panneau premium + CTA sur la marque */
.pal-mega {
  background: var(--surface);
  border: 1px solid var(--rd-line);
  border-radius: var(--rd-r);
  box-shadow: var(--rd-sh-3);
}
.pal-mega-link {
  color: var(--text); border-radius: var(--rd-r-sm);
  transition: background var(--rd-t), color var(--rd-t), transform var(--rd-t);
}
.pal-mega-link:hover { background: var(--rd-accent-tint); color: var(--primary); transform: translateX(3px); }
.pal-mega-link i { color: var(--primary); opacity: .55; }
.pal-mega-cta {
  background: var(--primary) !important; color: var(--rd-accent-ink) !important;
  border-radius: var(--rd-pill); font-weight: 600;
}
.pal-mega-cta:hover { background: var(--rd-accent-600) !important; color: var(--rd-accent-ink) !important; }
.pal-dropdown { background: var(--surface); border: 1px solid var(--rd-line); border-radius: var(--rd-r); box-shadow: var(--rd-sh-2); }
.pal-dropdown-link { color: var(--text); transition: background var(--rd-t), color var(--rd-t); }
.pal-dropdown-link:hover { background: var(--rd-accent-tint); color: var(--primary); }

/* ========================================================================== */
/*  BOUTONS                                                                    */
/* ========================================================================== */
/* Boutons : SECTION 6. */

/* ========================================================================== */
/*  EN-TÊTE DE SECTION (produits / catégories)                                 */
/* ========================================================================== */
.pal-section-sm, .pal-cat-section { padding-block: clamp(44px, 6vw, 84px); }
.pal-cat-eyebrow, .pal-section-eyebrow {
  font-size: var(--fs-12); font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--primary);
}
.pal-cat-subtitle, .pal-section-sub { color: var(--text-secondary); }
.pal-section-link {
  font-weight: 600; color: var(--primary) !important; display: inline-flex; gap: 6px; align-items: center;
}
.pal-section-link i, .pal-section-link svg { transition: transform var(--rd-t); }
.pal-section-link:hover i, .pal-section-link:hover svg { transform: translateX(4px); }


/* ========================================================================== */
/*  CATÉGORIES                                                                 */
/* ========================================================================== */
.pal-cat-card, .pal-category-tile {
  border-radius: var(--rd-r); overflow: hidden;
  transition: transform var(--rd-t), box-shadow var(--rd-t);
}
.pal-cat-card:hover, .pal-category-tile:hover { transform: translateY(-4px); box-shadow: var(--rd-sh-3); }
.pal-cat-card img, .pal-category-tile img { transition: transform .6s cubic-bezier(.22,.61,.36,1); }
.pal-cat-card:hover img, .pal-category-tile:hover img { transform: scale(1.06); }

/* ========================================================================== */
/*  CARTES / SURFACES GÉNÉRIQUES                                               */
/* ========================================================================== */
.pal-card {
  background: var(--surface);
  border: 1px solid var(--rd-line);
  border-radius: var(--rd-r);
  box-shadow: var(--rd-sh-1);
}
.pal-section-sm:nth-of-type(even) { background: var(--rd-surface-2); }

/* ========================================================================== */
/*  FORMULAIRES                                                                */
/* ========================================================================== */
.form-control, .form-select, .pal-input, input[type="text"].pal-field, input[type="email"].pal-field {
  background: var(--surface); color: var(--text);
  border: 1px solid var(--rd-line); border-radius: var(--rd-r-sm);
  transition: border-color var(--rd-t), box-shadow var(--rd-t);
}
.form-control:focus, .form-select:focus, .pal-input:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px var(--rd-accent-tint-2);
}
.form-control::placeholder { color: var(--rd-faint); }

/* ========================================================================== */
/*  NEWSLETTER / BANDEAUX                                                       */
/* ========================================================================== */
.pal-newsletter, .pal-section-newsletter {
  background: linear-gradient(120deg, var(--text), color-mix(in srgb, var(--text) 68%, var(--primary)));
  color: var(--bg);
}
.pal-newsletter input { background: color-mix(in srgb, var(--surface) 96%, transparent); }

/* ========================================================================== */
/*  FOOTER                                                                      */
/* ========================================================================== */
.pal-footer { border-top: 1px solid var(--rd-line); }
.pal-footer a { transition: color var(--rd-t); }
.pal-footer a:hover { color: var(--primary); }

/* ========================================================================== */
/*  TOGGLE THÈME (bouton flottant)                                             */
/* ========================================================================== */
.pal-theme-fab {
  position: fixed; bottom: 22px; right: 22px; z-index: 900;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--rd-line); background: var(--surface); color: var(--text);
  box-shadow: var(--rd-sh-2); cursor: pointer; display: grid; place-items: center;
  transition: transform var(--rd-t), color var(--rd-t);
}
.pal-theme-fab:hover { transform: scale(1.08); color: var(--primary); }
/* Décalage si le bouton WhatsApp flottant est présent à droite */
body:has(.pal-wa-float) .pal-theme-fab { bottom: 86px; }

/* ========================================================================== */
/*  BOOTSTRAP *-primary → COULEUR DE MARQUE                                     */
/*  (icônes/spinners/boutons bleus « text-primary » etc. suivent la marque)    */
/* ========================================================================== */
.text-primary { color: var(--primary) !important; }
.bg-primary   { background-color: var(--primary) !important; }
.border-primary { border-color: var(--primary) !important; }
.link-primary { color: var(--primary) !important; }
.btn-primary {
  --bs-btn-bg: var(--primary); --bs-btn-border-color: var(--primary);
  --bs-btn-hover-bg: var(--rd-accent-600); --bs-btn-hover-border-color: var(--rd-accent-600);
  --bs-btn-active-bg: var(--rd-accent-600); --bs-btn-active-border-color: var(--rd-accent-600);
  --bs-btn-color: var(--rd-accent-ink); --bs-btn-hover-color: var(--rd-accent-ink);
  border-radius: var(--rd-pill);
}
.btn-outline-primary {
  --bs-btn-color: var(--primary); --bs-btn-border-color: var(--primary);
  --bs-btn-hover-bg: var(--primary); --bs-btn-hover-border-color: var(--primary);
  --bs-btn-hover-color: var(--rd-accent-ink);
}
.spinner-border.text-primary, .spinner-grow.text-primary { color: var(--primary) !important; }
.form-check-input:checked { background-color: var(--primary); border-color: var(--primary); }
.form-check-input:focus { border-color: var(--primary); box-shadow: 0 0 0 .2rem var(--rd-accent-tint-2); }
a { color: inherit; }
.text-decoration-none:hover { color: var(--primary); }

/* ========================================================================== */
/*  PANIER / CHECKOUT — pages de conversion                                     */
/* ========================================================================== */
/* Lignes d'articles */
.pal-cart-item, .co-line, .pal-cart-row {
  border: 1px solid var(--rd-line); border-radius: var(--rd-r);
  background: var(--surface); transition: box-shadow var(--rd-t), border-color var(--rd-t);
}
.pal-cart-item:hover, .co-line:hover { box-shadow: var(--rd-sh-1); }
/* Stepper quantité */
.pal-qty, .qty-stepper, .pal-qty-box {
  border: 1px solid var(--rd-line); border-radius: var(--rd-pill); overflow: hidden; background: var(--surface);
}
.pal-qty button, .qty-stepper button { background: transparent; color: var(--text); border: 0; transition: background var(--rd-t), color var(--rd-t); }
.pal-qty button:hover, .qty-stepper button:hover { background: var(--rd-surface-2); color: var(--primary); }
/* Résumé de commande (carte sticky) */
.pal-summary, .pal-order-summary, .pal-nl-card.pal-summary {
  background: var(--surface); border: 1px solid var(--rd-line); border-radius: var(--rd-r);
  box-shadow: var(--rd-sh-1);
}
.pal-summary-total, .pal-summary-row strong { color: var(--text); font-variant-numeric: tabular-nums; }
.pal-summary-divider { border-color: var(--rd-line); }
/* Coupon */
.pal-coupon-input, #cart-coupon-input { border-radius: var(--rd-pill); }
/* Stepper du checkout */
.pal-step .pal-step-num {
  background: var(--rd-surface-2); color: var(--text-secondary);
  border: 1px solid var(--rd-line);
}
.pal-step.is-active .pal-step-num { background: var(--primary); color: var(--rd-accent-ink); border-color: var(--primary); }
.pal-step.is-done .pal-step-num { background: var(--rd-good); color: var(--success-ink); border-color: var(--rd-good); }
.pal-step-bar { background: var(--rd-line); }
.pal-step.is-done + .pal-step-bar { background: var(--rd-good); }
/* Badge rupture / stock sur la fiche */
.pal-stock-badge-out, .pal-pd-stock-out {
  background: color-mix(in srgb, var(--error) 12%, var(--surface));
  color: var(--error); border-radius: var(--rd-pill);
}

/* ========================================================================== */
/*  BARRE DE CATÉGORIES (marketplace) — sous le header, desktop                */
/* ========================================================================== */
.pal-catbar {
  background: var(--surface);
  border-bottom: 1px solid var(--rd-line);
  position: relative; z-index: 40;
}
.pal-catbar-inner {
  display: flex; align-items: stretch; gap: 8px;
  height: 48px;
}
.pal-catbar-all {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 0 18px; font-weight: 700; font-size: 14px;
  background: var(--primary); color: var(--rd-accent-ink);
  text-decoration: none; white-space: nowrap;
  border-radius: 0 0 var(--rd-r-sm) var(--rd-r-sm);
  transition: background var(--rd-t);
}
.pal-catbar-all:hover { background: var(--rd-accent-600); color: var(--rd-accent-ink); }
.pal-catbar-all i { font-size: 15px; }
.pal-catbar-links {
  display: flex; align-items: center; gap: 2px;
  flex: 1 1 auto; min-width: 0; overflow: hidden;
}
.pal-catbar-link {
  display: inline-flex; align-items: center; height: 100%;
  padding: 0 13px; font-size: 14px; font-weight: 500;
  color: var(--text-secondary); text-decoration: none; white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color var(--rd-t), border-color var(--rd-t);
}
.pal-catbar-link:hover { color: var(--primary); border-bottom-color: var(--primary); }
.pal-catbar-promo {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 0 16px; font-weight: 700; font-size: var(--fs-14); white-space: nowrap;
  color: var(--primary); text-decoration: none;
}
.pal-catbar-promo i { font-size: 15px; }
.pal-catbar-promo:hover { color: var(--rd-accent-600); }
@media (max-width: 1199.98px) {
  .pal-catbar-link { padding: 0 10px; font-size: var(--fs-14); }
}

/* ========================================================================== */
/*  POLISH VITRINE MARKETPLACE — rythme de sections + titres                   */
/* ========================================================================== */
.pal-section-title { letter-spacing: -.02em; }
.pal-ftabs .pal-products-grid { margin-top: .25rem; }

/* ========================================================================== */
/*  LANDING PAGE PRODUIT — primitives PARTAGÉES par toutes les sections        */
/*  (définies ici, pas dans un partial : le bouton de conversion doit être     */
/*   stylé même quand la section qui le définissait n'est pas rendue)          */
/* ========================================================================== */
.pal-pdl-title {
  font-size: var(--fs-30); font-weight: 800;
  letter-spacing: -.02em; margin: 0 0 24px; color: var(--text);
  text-align: center;
}
/* .pal-pdl-btn : rendu en .sf-btn (section 6). */

/* ========================================================================== */
/*  REVEAL AU SCROLL (le layout pose .pal-reveal) + accessibilité              */
/* ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; scroll-behavior: auto !important; }
  .product-card:hover { transform: none; }
}

/* ========================================================================== */
/*  MODES DE PAIEMENT — puces derivees des modes REELLEMENT actifs            */
/*  (audit BUG-002 / UX-002 : plus de logos PayPal/Apple Pay en dur)          */
/* ========================================================================== */
.pal-footer-payments { opacity: 1; }
.pal-pay-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: var(--rd-pill);
  background: color-mix(in srgb, var(--footer-text) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--footer-text) 28%, transparent);
  color: var(--footer-text);
  font-size: var(--fs-13); font-weight: 600; line-height: 1.2; white-space: nowrap;
}
.pal-pay-chip i { font-size: 15px; }
.cart-payment-icons .pal-pay-chip {
  background: color-mix(in srgb, var(--text) 7%, transparent);
  border-color: color-mix(in srgb, var(--text) 18%, transparent);
  color: var(--text);
}

/* ========================================================================== */
/*  STOCK — « Me prevenir » et plafonds de quantite (audit BUG-001)           */
/* ========================================================================== */

.cart-row-stock {
  grid-area: auto;
  font-size: 12px; font-weight: 600;
  color: var(--warning-strong);
  margin-top: 4px;
}

.pal-variant-pill.is-out-of-stock,
.pal-variant-pill:disabled {
  opacity: .5; cursor: not-allowed; text-decoration: line-through;
}


/* Aucun mode de paiement proposable (audit BUG-002) */
.pal-pay-empty {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; margin: 0 16px 16px;
  background: color-mix(in srgb, var(--warning) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--warning) 40%, transparent);
  border-radius: 10px; font-size: var(--fs-14); font-weight: 600;
  color: var(--text);
}
.pal-pay-instructions {
  display: block; margin-top: 6px; padding: 8px 10px;
  background: var(--surface);
  border-radius: 8px; font-size: var(--fs-13); white-space: pre-line;
  color: var(--text-secondary);
}

/* ==========================================================================
   MODE SOMBRE — COUVERTURE COMPLETE DE LA VITRINE (audit BUG-005)
   --------------------------------------------------------------------------
   Constat de l'audit : « seul l'en-tete devient sombre ; nom de la boutique
   a 1,08:1, icones favoris/comparer/panier invisibles, champ de recherche
   blanc ; le reste de la page reste clair ».

   Deux causes, et la seconde explique le `!important` de ce bloc :

   1. La palette sombre du marchand (`theme.dark_mode.colors`) n'etait ecrite
      nulle part par le gabarit — corrige dans `layouts/store.blade.php`, qui
      pose maintenant `body.dark-theme { --bg, --surface, --text, --header-bg,
      --footer-bg, ... }`.

   2. CHAQUE page de la vitrine embarque son propre bloc `<style>` avec des
      couleurs claires en dur (`background: #fff`, `#f8fafc`, `#f1f5f9`...).
      Ces blocs sont servis APRES cette feuille : a specificite egale, c'est
      le dernier qui gagne. Les neutraliser depuis ici exige donc
      `!important` — exactement la raison documentee en tete de
      `_dark_overrides.scss` pour l'administration.

   Regle tenue : aucune couleur de MARQUE en dur. Les surfaces derivent de
   `--surface` / `--bg` / `--text`, donc de la palette du marchand.
   ========================================================================== */

/* ── Surfaces : cartes, tuiles, vignettes, encarts ───────────────────────── */
body.dark-theme .pal-card,
body.dark-theme .pal-contact-card,
body.dark-theme .product-card,
body.dark-theme .store-homepage .product-card,
body.dark-theme .pal-cat-img,
body.dark-theme .pal-cat-list-img,
body.dark-theme .pal-cat-placeholder,
body.dark-theme .pal-categories-strip a,
body.dark-theme .store-categories-strip a,
body.dark-theme .pal-tst-photo,
body.dark-theme .pal-cd-box,
body.dark-theme .pal-pdl-cd-box,
body.dark-theme .pal-pd-thumb,
body.dark-theme .pal-qty,
body.dark-theme .pal-variant-pill,
body.dark-theme .pal-stock-alert-card,
body.dark-theme .cmp-picker-modal,
body.dark-theme .cmp-picker-card,
body.dark-theme .cmp-add-tile,
body.dark-theme .cmp-remove-btn,
body.dark-theme .track-timeline,
body.dark-theme .filters-card,
body.dark-theme .pal-filters,
body.dark-theme .pal-minicart,
body.dark-theme .pal-drawer {
  background: var(--surface) !important;
  border-color: var(--rd-line) !important;
  color: var(--text) !important;
}

/* Media d'une carte : un ton PLUS SOMBRE que la carte, sinon une image en
   PNG transparent se fond dans la carte et le produit disparait. */
body.dark-theme .product-media,
body.dark-theme .store-homepage .product-media,
body.dark-theme .product-img-wrap,
body.dark-theme .cmp-picker-card-img {
  background: var(--rd-surface-2) !important;
}

/* ── Champs de saisie ───────────────────────────────────────────────────── */
body.dark-theme .pal-input,
body.dark-theme .pal-textarea,
body.dark-theme .pal-nl-input,
body.dark-theme .pal-search input,
body.dark-theme .pal-search-input,
body.dark-theme .pal-stock-alert-field input,
body.dark-theme .form-control,
body.dark-theme .form-select,
body.dark-theme input[type="text"],
body.dark-theme input[type="email"],
body.dark-theme input[type="tel"],
body.dark-theme input[type="search"],
body.dark-theme input[type="number"],
body.dark-theme textarea,
body.dark-theme select {
  background: var(--rd-surface-2) !important;
  border-color: var(--rd-line) !important;
  color: var(--text) !important;
}
body.dark-theme ::placeholder { color: var(--rd-faint) !important; opacity: 1; }

/* ── En-tete : le nom et les icones NE prennent PAS la couleur de marque ──
   Le nom de la boutique heritait de `--primary`. Avec une marque sombre
   (#0f172a par defaut), cela donnait 1,08:1 sur l'en-tete sombre — du texte
   invisible. En sombre, l'en-tete ecrit avec le texte du theme. */
body.dark-theme .pal-nav,
body.dark-theme .pal-header,
body.dark-theme .pal-topbar-modern {
  background: var(--header-bg) !important;
  border-color: var(--rd-line) !important;
}
body.dark-theme .pal-brand,
body.dark-theme .pal-brand-name,
body.dark-theme .pal-nav a,
body.dark-theme .pal-menu-link,
body.dark-theme .pal-nav-icon,
body.dark-theme .pal-nav-action,
body.dark-theme .pal-nav-action i,
body.dark-theme .pal-icon-btn,
body.dark-theme .pal-icon-btn i {
  color: var(--text) !important;
}
body.dark-theme .pal-menu-link:hover,
body.dark-theme .pal-nav a:hover { color: var(--primary) !important; }

/* Compteur du panier : garde la marque, mais sur une encre lisible. */
body.dark-theme .pal-cart-count,
body.dark-theme #cart-badge {
  background: var(--primary) !important;
  color: var(--rd-accent-ink) !important;
}

/* ── Pied de page ───────────────────────────────────────────────────────── */
body.dark-theme .pal-footer {
  background: var(--footer-bg) !important;
  color: var(--footer-text) !important;
  border-top: 1px solid var(--rd-line) !important;
}
body.dark-theme .pal-footer-link,
body.dark-theme .pal-footer a { color: var(--footer-text) !important; }
body.dark-theme .pal-footer-link:hover { color: var(--primary) !important; }

/* ── Pagination ─────────────────────────────────────────────────────────── */
body.dark-theme .pagination .page-item .page-link {
  background: var(--surface) !important;
  border-color: var(--rd-line) !important;
  color: var(--text) !important;
}
body.dark-theme .pagination .page-item.active .page-link {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: var(--rd-accent-ink) !important;
}

/* ── Textes secondaires et separateurs ──────────────────────────────────── */
body.dark-theme .text-muted,
body.dark-theme .pal-muted,
body.dark-theme .cart-row-variant,
body.dark-theme .product-card-cat,
body.dark-theme .product-card-rating-empty { color: var(--text-secondary) !important; }
body.dark-theme hr,
body.dark-theme .pal-divider { border-color: var(--rd-line) !important; }

/* ── Bandeaux et modales ────────────────────────────────────────────────── */
body.dark-theme .pal-cookie-banner,
body.dark-theme .pal-popup,
body.dark-theme .modal-content {
  background: var(--surface) !important;
  color: var(--text) !important;
  border-color: var(--rd-line) !important;
}

/* ── Le bouton de bascule vit dans l'en-tete, plus en bas a gauche ───────
   L'audit le decrivait comme « un carre blanc non style en bas a gauche ». */

/* ==========================================================================
   RESP-001 — AUCUN DEBORDEMENT HORIZONTAL (audit du 12/11/2026)
   --------------------------------------------------------------------------
   Constat : `scrollWidth` 1150 > `clientWidth` 1138, avec `div.pal-minicart-head`
   mesure a `right: 1578`. Le tiroir du mini-panier etait sorti de l'ecran par
   `right: -440px`, donc sa largeur comptait dans la zone defilable.

   On le sort par TRANSLATION : une transformation ne participe pas au calcul
   du debordement, et l'animation devient compositee (plus fluide, et plus de
   reflow de toute la page a chaque ouverture).

   `overflow-x: clip` et non `hidden` : `hidden` sur `html` ou `body` casse
   `position: sticky` des descendants — or l'en-tete collant et la barre
   d'achat mobile en dependent. `clip` coupe sans creer de conteneur de
   defilement.
   ========================================================================== */
html, body { overflow-x: clip; max-width: 100%; }

.pal-minicart {
  right: 0 !important;
  transform: translateX(105%);
  transition: transform var(--rd-t), box-shadow var(--rd-t);
  will-change: transform;
}
.pal-minicart.is-open { transform: translateX(0); }

/* Replis pour les navigateurs sans `overflow-x: clip` (Safari < 16) :
   `hidden` sur un conteneur interne, qui ne casse pas le `sticky` du body. */
@supports not (overflow-x: clip) {
  html, body { overflow-x: hidden; }
}

/* Garde-fous generiques : les coupables classiques d'un debordement de
   quelques pixels sur une vitrine. */
img, video, iframe, table { max-width: 100%; }
/* Les contenus larges defilent DANS leur bloc, jamais la page entiere. */
.pal-table-wrap, .pal-scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ==========================================================================
   RESP-002 — VITRINE MOBILE (audit du 12/11/2026)
   --------------------------------------------------------------------------
   Trois constats a 390 px :
     · aucun champ de recherche dans l'en-tete mobile (menu, logo, favoris,
       panier seulement) — or la recherche est le premier geste sur une
       boutique de catalogue ;
     · categories en tuiles de 2 colonnes a ~180 px, soit 3 rangees pour
       6 categories, et un grand vide avant « Produits en vedette » ;
     · la barre « prix + Ajouter au panier » collante CHEVAUCHE le bloc de
       garanties en bas de la fiche produit.
   ========================================================================== */
@media (max-width: 991.98px) {
  /* ── Recherche TOUJOURS visible, juste sous l'en-tete ──────────────── */
  .pal-mobile-search {
    display: block;
    padding: 8px 12px 10px;
    background: var(--header-bg);
    border-bottom: 1px solid var(--rd-line);
    position: sticky; top: var(--pal-header-h, 64px); z-index: 1020;
  }
  .pal-mobile-search form { display: flex; gap: 8px; }
  .pal-mobile-search input {
    flex: 1 1 auto; min-width: 0; height: 42px;
    padding: 0 14px; border-radius: var(--rd-pill);
    border: 1px solid var(--rd-line); background: var(--surface);
    color: var(--text); font-size: 15px;
  }
  .pal-mobile-search input:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--rd-accent-tint-2);
  }
  .pal-mobile-search .sf-btn { flex: 0 0 auto; }

  /* ── Categories en CERCLES defilants, une seule rangee ─────────────── */
  .pal-cat-circles {
    display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x proximity;
    padding: 12px 12px 6px; margin: 0 -12px;
    scrollbar-width: none;
  }
  .pal-cat-circles::-webkit-scrollbar { display: none; }
  .pal-cat-circles > * { scroll-snap-align: start; flex: 0 0 auto; width: 76px; text-align: center; }
  .pal-cat-circles .pal-cat-img,
  .pal-cat-circles .pal-cat-placeholder {
    width: 68px; height: 68px; border-radius: 50%; object-fit: cover; margin: 0 auto 6px;
  }
  .pal-cat-circles .pal-cat-name {
    font-size: var(--fs-12); line-height: 1.25; display: block;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }

  /* ── Le hero ne mange plus tout le premier ecran ───────────────────── */
  .pal-hero, .pal-hero-slide { min-height: 42vh !important; max-height: 60vh; }

  /* ── Les grands vides des en-tetes de page ─────────────────────────── */
  .pal-shop-head { padding-top: 14px !important; padding-bottom: 14px !important; }

  /* Barre d'achat collante : section 7.7. */
}


/* ============================================================================
   OFFRES ÉCLAIR + FLUX « À DÉCOUVRIR »          (audit 12/11/2026, partie B)
   ----------------------------------------------------------------------------
   Deux sections de place de marché. Aucune couleur en dur : tout passe par les
   jetons `--rd-*` définis en tête de fichier, qui sont eux-mêmes dérivés de la
   palette du marchand — donc le mode sombre suit sans bloc dédié (règle 4 du
   CLAUDE.md : la variable, jamais l'élément isolé).
   ========================================================================== */

/* ── Offres éclair ─────────────────────────────────────────────────────── */
.pal-flash { padding: 28px 0; }

.pal-flash-head {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.pal-flash-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--fs-24);
  font-weight: 700;
  color: var(--text);
}
.pal-flash-title .bi { color: var(--rd-star); }

.pal-flash-all {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--rd-accent);
  text-decoration: none;
}
.pal-flash-all:hover { color: var(--rd-accent-600); text-decoration: underline; }

/* Compte à rebours. Chiffres en chasse fixe : sans cela chaque seconde change
   la largeur de la case et le bloc entier tremble. */
.pal-flash-countdown {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border: 1px solid var(--rd-line);
  border-radius: var(--rd-pill);
  background: var(--rd-accent-tint);
}
.pal-flash-cd-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--rd-muted);
}
.pal-flash-cd-boxes { display: inline-flex; align-items: center; gap: 6px; }
.pal-flash-cd-box {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
}
.pal-flash-cd-box b {
  min-width: 2ch;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.pal-flash-cd-box i {
  font-style: normal;
  font-size: var(--fs-12);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--rd-muted);
}

.pal-flash-item { display: flex; flex-direction: column; }
.pal-flash-item > .product-card { flex: 1 1 auto; }

/* Barre « x % vendus ». Rendue seulement quand elle est CALCULABLE : le
   gabarit ne l'émet pas si `sold_percent` est null. */
.pal-flash-sold {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 2px;
}
.pal-flash-sold-bar {
  flex: 1 1 auto;
  height: 6px;
  border-radius: var(--rd-pill);
  background: var(--rd-line);
  overflow: hidden;
}
.pal-flash-sold-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--rd-accent), var(--rd-star));
}
.pal-flash-sold-text {
  flex: 0 0 auto;
  font-size: var(--fs-12);
  font-weight: 600;
  /* --rd-muted sur --surface tient 4.5:1 dans les deux thèmes ; --rd-faint,
     lui, ne le tient pas et n'est réservé qu'au texte large. */
  color: var(--rd-muted);
  font-variant-numeric: tabular-nums;
}

/* ── Flux « À découvrir » ──────────────────────────────────────────────── */
.pal-feed { padding: 28px 0 40px; }

.pal-feed-title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: var(--fs-24);
  font-weight: 700;
  color: var(--text);
}

/* Pastilles de catégories. Défilement horizontal au doigt sur mobile, sans
   barre visible — le geste d'une place de marché. */
.pal-feed-chips {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.pal-feed-chips::-webkit-scrollbar { display: none; }

/* Pastilles : .sf-btn-secondary.sf-btn-sm (section 6) ; la classe reste un crochet JS. */
.pal-feed-chip { flex: 0 0 auto; }
.pal-feed-chip small { font-weight: 600; opacity: .85; }

.pal-feed-foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-top: 24px;
}
.pal-feed-more:disabled { opacity: .55; cursor: default; }

.pal-feed-empty {
  margin: 0;
  font-size: 14px;
  color: var(--rd-muted);
  text-align: center;
}

.pal-feed-spinner {
  width: 22px;
  height: 22px;
  border: 2px solid var(--rd-line);
  border-top-color: var(--rd-accent);
  border-radius: 50%;
  animation: pal-feed-spin .7s linear infinite;
}
@keyframes pal-feed-spin { to { transform: rotate(360deg); } }

/* Réserve de place pendant le premier chargement : sans hauteur minimale, la
   grille vide fait remonter le pied de page puis le repousse d'un coup. */
.pal-feed .pal-grid-marketplace[aria-busy="true"]:empty { min-height: 320px; }

@media (prefers-reduced-motion: reduce) {
  .pal-feed-spinner { animation-duration: 2.4s; }
}

/* ============================================================================
   MODÈLE D'EN-TÊTE « MARKETPLACE »            (audit 12/11/2026, partie B.4)
   ----------------------------------------------------------------------------
   B.4 : « En-tête principal sur la couleur principale du thème : logo, liens
   rapides avec icônes, recherche large centrale, compte, aide, langue, panier
   avec compteur », précédé d'une « barre d'engagements (fond secondaire du
   thème, texte clair, 1-4 items, collante, défilement sur mobile) ».

   Les couleurs viennent du thème du marchand (--primary, --secondary), jamais
   d'une palette copiée : « le rendu vient du thème du marchand ».
   ========================================================================== */

/* -- Barre d'engagements ------------------------------------------------- */
.pal-engage {
  /* Fond secondaire du thème, avec un repli sur une teinte sombre dérivée du
     texte — jamais un noir en dur, qui jurerait avec un thème clair. */
  background: var(--secondary);
  color: var(--secondary-ink);
  font-size: var(--fs-13);
  line-height: 1.3;
}
.pal-engage.is-sticky {
  position: sticky;
  top: 0;
  z-index: 1035;
}

.pal-engage-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  margin: 0;
  padding: 7px 0;
  list-style: none;
  flex-wrap: wrap;
}
.pal-engage-item { display: inline-flex; }
.pal-engage-text,
.pal-engage-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  /* 92 % d'opacité : au-delà de ~85 % le contraste d'un texte clair sur fond
     secondaire reste au-dessus de 4.5:1 pour toutes les teintes du thème. */
  opacity: .92;
}
.pal-engage-link:hover { opacity: 1; text-decoration: underline; }
.pal-engage-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
  border-radius: 3px;
}
.pal-engage-item i { font-size: 13px; }

/* Mobile : un seul item tient. Le script fait tourner is-current ; sans lui
   (JS désactivé, mouvement réduit) le premier reste affiché — jamais une
   barre vide. */
@media (max-width: 767.98px) {
  .pal-engage-list { gap: 0; padding: 6px 0; justify-content: center; }
  .pal-engage-list.is-rotating .pal-engage-item { display: none; }
  .pal-engage-list.is-rotating .pal-engage-item.is-current { display: inline-flex; }
  .pal-engage-text,
  .pal-engage-link {
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* -- En-tête coloré ----------------------------------------------------- */
.pal-nav.header-model-4 {
  background: var(--primary);
  color: var(--primary-ink);
  border-bottom: none;
}
.pal-nav.header-model-4 .pal-brand,
.pal-nav.header-model-4 .pal-nav-link,
.pal-nav.header-model-4 .pal-icon-btn,
.pal-nav.header-model-4 .pal-burger,
.pal-nav.header-model-4 .pal-theme-toggle,
.pal-nav.header-model-4 .pal-phone-btn,
.pal-nav.header-model-4 .pal-lang-btn {
  color: var(--primary-ink);
}
.pal-nav.header-model-4 .pal-icon-btn,
.pal-nav.header-model-4 .pal-burger,
.pal-nav.header-model-4 .pal-theme-toggle {
  /* Pastilles translucides : elles se détachent du fond coloré sans imposer
     une seconde couleur au thème. */
  background: color-mix(in srgb, var(--primary-ink) 14%, transparent);
  border-color: color-mix(in srgb, var(--primary-ink) 24%, transparent);
}
.pal-nav.header-model-4 .pal-icon-btn:hover,
.pal-nav.header-model-4 .pal-burger:hover,
.pal-nav.header-model-4 .pal-theme-toggle:hover {
  background: color-mix(in srgb, var(--primary-ink) 24%, transparent);
}
.pal-nav.header-model-4 .pal-icon-btn:focus-visible,
.pal-nav.header-model-4 .pal-burger:focus-visible {
  outline: 2px solid var(--primary-ink);
  outline-offset: 2px;
}

/* Le badge du panier doit rester lisible sur le fond coloré : encre du thème
   sur fond clair, l'inverse exact des autres modèles. */
.pal-nav.header-model-4 .pal-icon-btn-badge {
  background: var(--primary-ink);
  color: var(--primary);
}

/* Recherche large centrale : elle prend la place disponible, au lieu de la
   pastille étroite des autres modèles. */
.pal-nav.header-model-4 .pal-search {
  flex: 1 1 auto;
  max-width: 680px;
  background: var(--surface);
  border: 2px solid color-mix(in srgb, var(--primary-ink) 34%, transparent);
  border-radius: var(--rd-pill);
}
.pal-nav.header-model-4 .pal-search:focus-within {
  border-color: var(--primary-ink);
}
.pal-nav.header-model-4 .pal-search input {
  color: var(--text);
  font-size: var(--fs-15);
}
.pal-nav.header-model-4 .pal-search-icon { color: var(--rd-muted); }

@media (max-width: 991.98px) {
  .pal-nav.header-model-4 .pal-search { max-width: none; }
}

/* -- Liens rapides (seconde rangée) ------------------------------------- */
.pal-quick {
  border-top: 1px solid color-mix(in srgb, var(--primary-ink) 18%, transparent);
}
.pal-quick-list {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.pal-quick-list::-webkit-scrollbar { display: none; }

.pal-quick-item { position: relative; flex: 0 0 auto; }

.pal-quick-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border: 0;
  background: transparent;
  color: var(--primary-ink);
  font-size: var(--fs-14);
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  border-radius: var(--rd-r-sm);
  cursor: pointer;
  transition: background var(--rd-t);
}
.pal-quick-link:hover,
.pal-quick-item.is-open > .pal-quick-link {
  background: color-mix(in srgb, var(--primary-ink) 16%, transparent);
  color: var(--primary-ink);
}
.pal-quick-link:focus-visible {
  outline: 2px solid var(--primary-ink);
  outline-offset: -2px;
}
.pal-quick-link i { font-size: 15px; }
.pal-quick-chev { font-size: var(--fs-12) !important; transition: transform var(--rd-t); }
.pal-quick-mega-btn[aria-expanded="true"] .pal-quick-chev { transform: rotate(180deg); }

/* -- Méga-menu des catégories ------------------------------------------- */
.pal-quick-mega {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 1060;
  min-width: min(92vw, 720px);
  padding: 14px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--rd-line);
  border-radius: var(--rd-r);
  box-shadow: var(--rd-sh-3);
}
.pal-quick-mega-inner {
  display: grid;
  grid-template-columns: repeat(var(--pal-mega-cols, 4), minmax(0, 1fr));
  gap: 4px;
  max-height: min(62vh, 460px);
  overflow-y: auto;
}

.pal-quick-cat {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--rd-r-sm);
  color: var(--text);
  text-decoration: none;
  transition: background var(--rd-t);
}
.pal-quick-cat:hover { background: var(--rd-accent-tint); color: var(--text); }
.pal-quick-cat:focus-visible { outline: 2px solid var(--rd-accent); outline-offset: -2px; }

/* Pastille d'icône, ou initiale en repli. La table des catégories n'a pas de
   colonne image : on n'affiche donc pas un cercle vide ni une image
   générique. */
.pal-quick-cat-badge {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--rd-accent-tint-2);
  color: var(--rd-accent-600);
  font-size: 14px;
  font-weight: 700;
  /* Une image de categorie deborderait du cercle sans cette coupe. */
  overflow: hidden;
}
.pal-quick-cat-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pal-quick-cat-body { min-width: 0; display: flex; align-items: center; gap: 6px; }
.pal-quick-cat-name {
  font-size: var(--fs-14);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pal-quick-cat-count {
  flex: 0 0 auto;
  font-size: var(--fs-12);
  font-weight: 600;
  color: var(--rd-muted);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 767.98px) {
  .pal-quick-mega { position: fixed; left: 8px; right: 8px; min-width: 0; }
  .pal-quick-mega-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ============================================================================
   BANDEAU DE CONFIANCE + RANG RÉEL           (audit 12/11/2026, partie B.4)
   ----------------------------------------------------------------------------
   B.4, accueil : « 1. Bandeau de confiance (3 garanties tirées d'Avantages
   boutique ; masqué s'il n'y en a pas) » et « 5. Meilleures ventes classées
   (#1, #2…) sur 30 jours ».

   Le bandeau est une DISPOSITION de la section Avantages, pas une seconde
   source : B.2 demande « une seule source ». Il hérite donc du masquage
   automatique quand aucune garantie n'est configurée.
   ========================================================================== */

/* -- Bandeau de confiance ------------------------------------------------ */
.pal-adv-section.pal-adv-band {
  /* Teinte accentuée dérivée de la couleur de marque, pas un vert en dur :
     « le rendu vient du thème du marchand ». */
  background: var(--rd-accent-tint-2);
  border-bottom: 1px solid var(--rd-line-soft);
  padding: 10px 0;
}
.pal-adv-section.pal-adv-band .container {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.pal-adv-band-title {
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.pal-adv-band-row {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.pal-adv-band-row::-webkit-scrollbar { display: none; }

.pal-adv-band-item {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
/* En bande, chaque garantie se réduit à son icône et son libellé : le texte
   secondaire et le lien « En savoir plus » n'y tiennent pas, et les tronquer
   donnerait des phrases coupées. Ils restent servis dans les autres
   dispositions. */
.pal-adv-band-item p,
.pal-adv-band-item .pal-adv-link { display: none; }

.pal-adv-band-item .pal-adv-icon {
  margin: 0 !important;
  width: 26px;
  height: 26px;
  min-width: 26px;
  font-size: 14px;
  border-radius: 50%;
}
.pal-adv-band-item h5 {
  margin: 0 !important;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

@media (max-width: 767.98px) {
  .pal-adv-section.pal-adv-band .container { gap: 12px; }
  .pal-adv-band-title { display: none; }
  .pal-adv-band-row { gap: 18px; }
  .pal-adv-band-item h5 { font-size: 12px; }
}

/* -- Pastille de rang --------------------------------------------------- */
/* Rendue uniquement quand la source de la section est un classement réel par
   les ventes (voir section-products.blade.php) : sur une sélection manuelle,
   « #1 » refléterait l'ordre de saisie et non une popularité. */
.pal-rank-wrap { position: relative; display: flex; }
.pal-rank-wrap > .product-card { flex: 1 1 auto; }

.pal-rank-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  min-width: 30px;
  height: 24px;
  padding: 0 8px;
  justify-content: center;
  border-radius: var(--rd-pill);
  background: var(--rd-accent);
  color: var(--rd-accent-ink);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  box-shadow: var(--rd-sh-1);
  pointer-events: none;
}

/* ============================================================================
   BOUTON « RETOUR EN HAUT »                   (audit 12/11/2026, partie B.4)
   ----------------------------------------------------------------------------
   B.2 : « Boutons flottants (aide, haut de page) » → « Bouton thème non stylé
   en bas à gauche » → à faire : « Bouton WhatsApp flottant + “Haut” ; thème
   déplacé dans l'en-tête ».

   Il s'empile au-dessus du WhatsApp quand les deux sont présents : sans
   décalage, les deux pastilles occupent exactement la même place et la
   seconde devient inatteignable.
   ========================================================================== */

.pal-top-btn {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1000;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--rd-line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  box-shadow: var(--rd-sh-2);
  transition: transform .15s, background var(--rd-t);
}
.pal-top-btn:hover {
  background: var(--rd-accent-tint);
  transform: translateY(-2px);
}
.pal-top-btn:focus-visible {
  outline: 2px solid var(--rd-accent);
  outline-offset: 2px;
}

/* Empilement des flottants : section 8.5 (lot 4). */

/* Le bouton `hidden` doit vraiment disparaître : `display: grid` l'emporte
   sinon sur l'attribut, et il resterait visible en haut de page. */
.pal-top-btn[hidden] { display: none; }

/* ============================================================================
   PASTILLES D'IMAGE DES VARIANTES          (audit 12/11/2026, partie B.4)
   ----------------------------------------------------------------------------
   « Variantes en pastilles d'image ». L'option `swatches` était proposée par
   le constructeur depuis le départ, mais le gabarit ne distinguait que
   `dropdown` : un marchand qui la choisissait obtenait des pastilles de
   texte, sans aucun message.

   Une variante sans image garde son libellé (`.is-text`) : un carré vide ne
   dit rien au client.
   ========================================================================== */

.pal-variant-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pal-variant-swatch {
  position: relative;
  width: 56px;
  height: 56px;
  padding: 0;
  overflow: hidden;
  border: 2px solid var(--rd-line);
  border-radius: var(--rd-r-sm);
  background: var(--surface);
  cursor: pointer;
  transition: border-color var(--rd-t), transform .12s;
}
.pal-variant-swatch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pal-variant-swatch:hover:not(:disabled) {
  border-color: var(--rd-accent);
  transform: translateY(-1px);
}
.pal-variant-swatch.is-active {
  border-color: var(--rd-accent);
  box-shadow: 0 0 0 2px var(--rd-accent-tint-2);
}
.pal-variant-swatch:focus-visible {
  outline: 2px solid var(--rd-accent);
  outline-offset: 2px;
}

/* Variante sans image : la pastille s'élargit et porte le libellé. Elle reste
   à la même hauteur que les autres pour que la rangée ne se déforme pas. */
.pal-variant-swatch.is-text {
  width: auto;
  min-width: 56px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pal-variant-swatch-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

/* Rupture de stock : barrée en diagonale, et non simplement grisée — un gris
   clair sur fond clair tombe sous 4.5:1 et se confond avec « non choisie ». */
.pal-variant-swatch.is-out-of-stock {
  cursor: not-allowed;
  opacity: .55;
}
.pal-variant-swatch.is-out-of-stock::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom right,
    transparent calc(50% - 1px),
    var(--rd-muted) calc(50% - 1px),
    var(--rd-muted) calc(50% + 1px),
    transparent calc(50% + 1px)
  );
}

/* Nom de la variante choisie : une grille d'images seule ne dit pas laquelle
   est sélectionnée ni comment elle s'appelle. */
.pal-variant-swatch-current {
  margin: 8px 0 0;
  min-height: 1.2em;
  font-size: var(--fs-14);
  font-weight: 600;
  color: var(--text);
}

@media (max-width: 575.98px) {
  .pal-variant-swatch { width: 48px; height: 48px; }
  .pal-variant-swatch.is-text { width: auto; min-width: 48px; }
}

/* ============================================================================
   FICHE PRODUIT : PLEIN ÉCRAN, CTA, WHATSAPP   (audit 12/11/2026, partie B.4)
   ----------------------------------------------------------------------------
   « Galerie à miniatures verticales + vidéo ; zoom ; plein écran. […] CTA
   pleine largeur “Ajouter au panier” + “Acheter maintenant” + “Commander sur
   WhatsApp” (si activé). […] Mobile : barre d'achat fixée en bas. »
   ========================================================================== */

/* -- Visionneuse plein écran -------------------------------------------- */
/* Le bouton portait l'icône du plein écran depuis le départ mais ne faisait
   que basculer le zoom à la loupe : rien ne s'ouvrait. */
.pal-pd-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 48px 16px;
  /* Fond très sombre quel que soit le thème : c'est une visionneuse d'image,
     et l'image doit porter seule la lumière. */
  background: var(--scrim-strong);
}
.pal-pd-lightbox[hidden] { display: none; }

.pal-pd-lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
}

/* La page ne défile plus derrière la visionneuse : sans cela, la molette
   fait bouger le contenu sous une image immobile. */
body.pal-pd-lb-open { overflow: hidden; }

.pal-pd-lb-close,
.pal-pd-lb-nav {
  position: absolute;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--on-image) 14%, transparent);
  color: var(--on-image);
  cursor: pointer;
  transition: background .15s;
}
.pal-pd-lb-close:hover,
.pal-pd-lb-nav:hover { background: color-mix(in srgb, var(--on-image) 26%, transparent); }
.pal-pd-lb-close:focus-visible,
.pal-pd-lb-nav:focus-visible {
  outline: 2px solid var(--on-image);
  outline-offset: 2px;
}

.pal-pd-lb-close {
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  font-size: 18px;
}
.pal-pd-lb-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  font-size: var(--fs-20);
}
.pal-pd-lb-prev { left: 14px; }
.pal-pd-lb-next { right: 14px; }

.pal-pd-lb-count {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 4px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--on-image) 14%, transparent);
  color: var(--on-image);
  font-size: var(--fs-13);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Le second bouton de la scène : loupe et plein écran côte à côte. */
.pal-pd-stage-full {
  position: absolute;
  right: 10px;
  bottom: 52px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--rd-line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  box-shadow: var(--rd-sh-1);
  transition: background var(--rd-t);
}
.pal-pd-stage-full:hover { background: var(--rd-accent-tint); }
.pal-pd-stage-full:focus-visible { outline: 2px solid var(--rd-accent); outline-offset: 2px; }

@media (max-width: 575.98px) {
  .pal-pd-lightbox { padding: 56px 8px; }
  .pal-pd-lb-nav { width: 40px; height: 40px; font-size: var(--fs-18); }
}

/* CTA de la fiche et barre d'achat mobile : .sf-btn (SECTION 6.1 / 6.7). */

/* ##########################################################################
   SECTION 4 — CALQUE « MARKETPLACE PREMIUM » (audit E2E 13/11/2026)
   ##########################################################################

   ── 4.1  ALIAS RESOLUS PAR THEME (BUG-001, LIS-003, UX-012) ───────────────
   Les trois systemes historiques declaraient leurs alias sur :root :
       :root { --c-text: var(--text); }
   Une propriete personnalisee est RESOLUE la ou elle est declaree : sur
   :root, `var(--text)` vaut la couleur CLAIRE. `body.dark-theme` change bien
   `--text`, mais `--c-text` a deja ete calcule et se transmet tel quel —
   d'ou le nom du produit, son prix, le logo et le mini-panier en bleu nuit
   sur fond #121212 (1,05:1) releves par l'audit.

   Les alias sont donc redeclares ici sur `body` (et `body.dark-theme`, pour
   passer devant les valeurs figees du calque 3) : ils se resolvent sur
   l'element qui porte la classe de theme, avec les couleurs du theme actif.
   Toutes les valeurs derivent des tokens injectes par le gabarit depuis
   store_configs.config — aucune couleur de marque en dur.
   ========================================================================== */
/* 4.1 : alias deplaces en SECTION 0 (lot 1, 18/11/2026). */

/* ── 4.2  FOCUS : un seul contour, partout (UX-010) ─────────────────────── */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--primary) !important;
  outline-offset: 2px;
  box-shadow: none !important;
}
:where(input, select, textarea):focus { box-shadow: none !important; }
:where(input, select, textarea):focus:not(:focus-visible) { outline: none; }

/* ── 4.3  CARTES EN RUPTURE : le badge suffit (corrections UI 17/11/2026) ── */
/* Reglage product_list.out_of_stock_image_style, pose en classe sur <body>
   par le gabarit : normal (DEFAUT) | faded | grayscale. Les cartes rendues
   en JavaScript (flux « A decouvrir ») en heritent sans code a elles. */
.product-card.is-out-of-stock,
.product-card.is-out-of-stock:hover { opacity: 1; }
.product-card.is-out-of-stock .product-img,
.product-card.is-out-of-stock .product-img-alt { filter: none; opacity: 1; }
.pal-oos-faded .product-card.is-out-of-stock .product-img,
.pal-oos-faded .product-card.is-out-of-stock .product-img-alt { opacity: .85; }
.pal-oos-grayscale .product-card.is-out-of-stock .product-img,
.pal-oos-grayscale .product-card.is-out-of-stock .product-img-alt { filter: grayscale(1); opacity: .85; }

/* ── 4.4  BOOTSTRAP : composants recolores sur la marque ────────────────── */
.btn-primary, .btn-primary:hover, .btn-primary:focus, .nav-pills .nav-link.active {
  background-color: var(--primary); border-color: var(--primary); color: var(--primary-ink);
}
.text-primary { color: var(--primary) !important; }
.nav-link { color: var(--text); }
.nav-tabs .nav-link.active, .nav-link.active { color: var(--primary); }
.form-check-input:checked { background-color: var(--primary); border-color: var(--primary); }
.text-muted { color: var(--text-secondary) !important; }
/* ── 4.5  EN-TETE (UX-013, UX-010, BUG-001) ─────────────────────────────── */
/* Libelles du menu sur UNE ligne : « Nous contacter » passait sur deux. */
.pal-nav-link, .pal-nav-link span { white-space: nowrap; }
.pal-brand, .pal-brand span { color: var(--header-ink, var(--text)); }
.pal-nav .pal-icon-btn, .pal-nav .pal-icon-btn i { color: var(--header-ink, var(--text)); }
/* Recherche : UNE pastille (le formulaire), plus une pastille dans une
   autre ; la loupe dans le champ ; plus large, c'est l'element central. */
.pal-search {
  flex: 1 1 420px; max-width: 640px; min-width: 220px;
  padding: 0 !important; height: 44px;
  background: transparent !important; border: 0 !important; box-shadow: none !important;
}
.pal-search:focus-within { box-shadow: none !important; }
.pal-search input {
  width: 100%; height: 44px !important;
  background: var(--surface-2) !important; color: var(--text) !important;
  border: 1px solid var(--border) !important; border-radius: 999px !important;
  padding: 0 40px 0 44px !important; box-shadow: none !important;
}
.pal-search input:focus { background: var(--surface) !important; border-color: var(--primary) !important; }
.pal-search input::placeholder { color: var(--muted) !important; opacity: 1; }
.pal-search .pal-search-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; z-index: 1; }
/* Suggestions : au moins la largeur du champ, prix jamais coupe, pas de
   vignette vide (UX-010). */
.pal-suggest { min-width: max(100%, 360px); max-width: min(560px, calc(100vw - 32px)); background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.pal-suggest a, .pal-suggest [role="option"] { color: var(--text); }
.pal-suggest img:not([src]), .pal-suggest img[src=""] { display: none; }
.pal-suggest [class*="price"] { white-space: nowrap; flex-shrink: 0; color: var(--primary); font-variant-numeric: tabular-nums; }
.pal-suggest [class*="name"] { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* ── 4.6  BARRE DE CATEGORIES & MEGA-MENU ───────────────────────────────── */
.pal-catbar { background: var(--surface); border-bottom: 1px solid var(--border); }
.pal-catbar-link { color: var(--text-2); }
.pal-catbar-link:hover { color: var(--primary); }
.pal-catbar-all { background: var(--primary); color: var(--primary-ink); }
.pal-catbar-all:hover { background: var(--rd-accent-600); color: var(--primary-ink); }
.pal-catbar-promo { color: var(--deal); }
.pal-mega, .pal-dropdown { background: var(--surface); }
.pal-mega-cta, .pal-mega-cta:hover { color: var(--primary-ink) !important; }

/* ── 4.7  BOUTONS PLEINS DE MARQUE : encre calculee (LIS-001) ───────────── */
.pal-icon-btn-badge, #cart-badge { color: var(--primary-ink) !important; }
/* Prix : chiffres tabulaires, montant a la couleur du texte (refonte). */
.product-card-price, .pal-pd-price, .cart-row-total, .pal-minicart-line { font-variant-numeric: tabular-nums; }

/* ── 4.8  TIROIR PANIER, JAUGE, TOAST (UX-004) ──────────────────────────── */
.pal-minicart { background: var(--surface); color: var(--text); }
.pal-minicart-title, .pal-minicart-name, .pal-minicart-body, .pal-minicart-foot { color: var(--text); }
.pal-minicart-foot { border-top: 1px solid var(--border); }
.pal-minicart-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; color: var(--text-2); margin-bottom: 4px; }
.pal-minicart-row strong { color: var(--text); font-variant-numeric: tabular-nums; }
.pal-minicart-grand { font-size: 18px; font-weight: 800; color: var(--text); margin-bottom: 12px; }
.pal-minicart-links { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; }
.pal-minicart-links a {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: var(--fs-13); color: var(--text-2); text-decoration: underline; text-underline-offset: 3px;
  background: none; border: 0; padding: 0;
}
.pal-minicart-clear:hover { color: var(--deal); }
.pal-freeship { margin: 0 0 12px; }
.pal-freeship-text { margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--text); }
.pal-freeship-bar { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.pal-freeship-bar span { display: block; height: 100%; width: 0; background: var(--brand); border-radius: inherit; transition: width .2s ease; }
.pal-freeship.is-reached .pal-freeship-text { color: var(--success-strong); }
.pal-freeship.is-reached .pal-freeship-bar span { background: var(--success-strong); }
/* Toast : #palFlash, section 7.8. */

/* ── 4.9  Barre d'achat mobile : section 7.7. */

/* ── 4.10  FICHE PRODUIT (BUG-001, UX-003) ──────────────────────────────── */
@media (max-width: 575.98px) {
  /* Favoris et comparer restent sur la ligne du bouton, a largeur fixe.
     Flex et non plus grille (corrections UI 17/11/2026, point 3) : la grille
     a trois colonnes cassait des que le comparateur etait masque. */
  .pal-pd-actions { display: flex !important; flex-wrap: wrap; gap: 8px; }
  .pal-pd-actions .pal-qty { flex: 1 1 100%; }
}


/* ── 4.12  FORMULAIRES & DIVERS ─────────────────────────────────────────── */
.pal-req { color: var(--deal); font-weight: 700; }
.pal-form-label { color: var(--text); }
.pal-input, .pal-filter-input { background: var(--surface); color: var(--text); border-color: var(--border); }
.pal-filters { background: var(--surface); color: var(--text); border-color: var(--border); }
.pal-footer-bottom, .pal-footer-about { color: var(--footer-muted, var(--footer-text)); }
.pal-footer-link { color: var(--footer-ink, var(--footer-text)); }
.pal-pagination { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.pal-pagination-summary { margin: 0; font-size: 14px; color: var(--text-2); }
.pagination .page-link { color: var(--text); background: var(--surface); border-color: var(--border); min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.pagination .page-item.active .page-link { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
/* ── 4.13  CORRECTIFS DU SCAN DE CONTRASTE (clair + sombre) ─────────────── */
/* Bandeau du haut : en sombre, le calque 3 force un fond sombre ; l'encre
   calculee pour la couleur du marchand ne vaut plus, on prend le texte. */
body.dark-theme .pal-topbar-modern,
body.dark-theme .pal-topbar-modern .pal-topbar-text,
body.dark-theme .pal-topbar-modern .pal-topbar-util { color: var(--text) !important; }
.pal-auth-submit, .pal-auth-submit span { color: var(--primary-ink) !important; }
.pal-promo-card-sub { opacity: 1 !important; }
.pal-cat-eyebrow, .pal-brands-eyebrow, .pal-section-eyebrow { color: var(--primary); }
.pal-shop-head { padding: 24px 0 16px !important; background: none; }
.pal-shop-head .pal-shop-title { margin: 4px 0 2px; }
/* ── 4.14  BARRE DE NAVIGATION BASSE (mobile, refonte) ──────────────────── */
.pal-bottom-nav { display: none; }
@media (max-width: 991.98px) {
  .pal-bottom-nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030;
    display: grid; grid-template-columns: repeat(5, 1fr);
    background: var(--surface); border-top: 1px solid var(--border);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-shadow: 0 -4px 16px color-mix(in srgb, var(--text) 8%, transparent);
  }
  .pal-bottom-nav > a, .pal-bottom-nav > button {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    min-height: 56px; padding: 6px 2px; background: none; border: 0;
    color: var(--text-2); font-size: var(--fs-12); font-weight: 600; text-decoration: none; line-height: 1.1;
  }
  .pal-bottom-nav i { font-size: 20px; }
  .pal-bottom-nav .is-active { color: var(--primary); }
  .pal-bottom-nav-badge {
    position: absolute; top: 4px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px;
    border-radius: 999px; background: var(--primary); color: var(--primary-ink); font-size: var(--fs-12); line-height: 18px;
  }
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px)); }
  /* Fiche produit : la barre d'achat collante prend le bas de l'ecran. */
  body.pal-has-sticky-buy .pal-bottom-nav { display: none; }
  /* Boutons flottants au-dessus de la barre. */
  /* .pal-wa-float : position et decalages en section 8.5 (lot 4). */
  .pal-flash { bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 991.98px) { body.pal-has-sticky-buy .pal-flash { bottom: calc(96px + env(safe-area-inset-bottom, 0px)); } }

/* Sur-titres poses sur la pastille --brand-soft : encre calculee contre CE fond. */
.pal-cat-eyebrow { color: var(--brand-soft-ink) !important; }

/* ── 4.15  RYTHME VERTICAL (UX-015) ──────────────────────────────────────
   Le calque 2 impose `padding: var(--mv2-sp-9) 0 !important` (96 px en haut
   ET en bas) a TOUTE section `pal-*` : jusqu'a ~190 px de vide entre deux
   blocs, et un en-tete de catalogue de 250 px pour un titre. Le jeton passe a
   40 px sur mobile, 64 px sur ordinateur (refonte : « sections 40 / 64 px »). */
body { --mv2-sp-9: clamp(40px, 5vw, 64px); }
/* En-tetes de page (catalogue, panier, suivi, pages) : compacts. `:not(#_)`
   porte la specificite au-dessus de la regle generique ci-dessus. */
section.pal-shop-head:not(#_) { padding: 20px 0 12px !important; background: none; border-bottom: 0; }
@media (max-width: 991.98px) {
  section.pal-shop-head:not(#_) { padding: 12px 0 4px !important; }
  #sortForm select { max-width: 52vw; }
  /* Le bandeau cookies passe au-dessus de la barre basse. */
  .pal-cookie-banner { bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important; }
}

/* ==========================================================================
   5. CORRECTIONS UI DU 17/11/2026 (audit/prompt-claude-code-boutique-fiavia-ui.md)
   Chargees en DERNIER : elles l'emportent sur les calques 1 a 4.
   ========================================================================== */

/* ── 5.2  Pile de badges des cartes : verticale, jamais superposee ──────── */

/* ── 5.3  Fiche produit : libelle du bouton principal sur une ligne ─────── */
/* Le conteneur `.pal-pd-actions` est un flex (product-show.blade.php). */
#palPdAdd .pal-pd-btn-label,
#palPdNotify .pal-pd-btn-label {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
#palPdAdd > i, #palPdNotify > i { flex: 0 0 auto; }

/* Marge interieure reduite : « Prevenez-moi quand disponible » tient en
   entier des ~320 px au lieu de se couper en « … » a 1024 px. */


/* ==========================================================================
   6. DESIGN SYSTEM DE LA VITRINE — lot 1 de l'audit du 18/11/2026
   (audit/analyse-boutique-fiavia-2026-11-18.md, section 7, Lot 1)
   --------------------------------------------------------------------------
   Chargee en DERNIER : ces regles l'emportent sur les calques 1 a 5.
   Aucune couleur, taille ni rayon litteral : tout vient des jetons poses par
   le gabarit depuis theme.colors, theme.fonts, theme.borders, theme.buttons.

   Constats corriges ici : 17 styles de boutons sur l'accueil (UI-002),
   CTA de carte de 12 px visible au survol seul (UI-001, RESP-001), rayons
   6 / 8 / 10 / 12 / 18 / 999 alors que button_radius vaut « md » (ADMIN-004),
   deux « primaires » (vert du theme et #14211a), 20 tailles de police dont
   148 textes sous 12 px (UI-003), titres de section de 4 tailles (UI-005),
   badge « Nouveaute » vert sur la fiche et noir sur les cartes (UI-007).
   ========================================================================== */

/* ── 6.1  BOUTONS : .sf-btn — quatre variantes, trois tailles, cinq etats ──
   .sf-btn-primary    plein, couleur principale du theme, encre calculee
   .sf-btn-secondary  contour de la couleur principale
   .sf-btn-ghost      texte seul, fond doux au survol
   .sf-btn-icon       carre, icone seule (44 x 44 par defaut)
   Tailles : .sf-btn-sm (36), defaut (44), .sf-btn-lg (52). La base suit
   theme.buttons.size (--btn-h) ; sm et lg sont la base moins / plus 8 px.
   Etats : survol (fond assombri de 8 %), actif, focus visible, desactive
   (opacite .5), chargement (.is-loading : spinner, libelle conserve).
   Mobile : tout bouton fait 44 px au moins ; .sf-btn-cta prend la largeur. */
.sf-btn {
  --sf-h:  var(--btn-h, 44px);
  --sf-px: var(--btn-px, 20px);
  --sf-fs: var(--btn-fs, 15px);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--sp-2);
  box-sizing: border-box;
  min-height: var(--sf-h); height: var(--sf-h);
  padding: 0 var(--sf-px);
  border: 1.5px solid transparent;
  border-radius: var(--radius-button);
  background: transparent; color: var(--text);
  font-family: var(--font-body), -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: var(--sf-fs); font-weight: var(--btn-weight, 600); line-height: 1;
  letter-spacing: 0; text-transform: var(--btn-case, none);
  text-decoration: none; white-space: nowrap; cursor: pointer; user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background var(--t) var(--ease), color var(--t) var(--ease),
              border-color var(--t) var(--ease), box-shadow var(--t) var(--ease),
              transform var(--t-fast) var(--ease), opacity var(--t) var(--ease);
}
.sf-btn:hover, .sf-btn:focus { text-decoration: none; }
.sf-btn > i, .sf-btn > svg { flex: 0 0 auto; font-size: 1.1em; line-height: 1; width: auto; height: auto; }
.sf-btn > svg { width: 1.15em; height: 1.15em; }
.sf-btn > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

.sf-btn-sm { --sf-h: calc(var(--btn-h, 44px) - 8px); --sf-px: calc(var(--btn-px, 20px) - 4px); --sf-fs: calc(var(--btn-fs, 15px) - 1px); }
.sf-btn-lg { --sf-h: calc(var(--btn-h, 44px) + 8px); --sf-px: calc(var(--btn-px, 20px) + 4px); --sf-fs: calc(var(--btn-fs, 15px) + 1px); }
.sf-btn-block { width: 100%; }

.sf-btn-primary { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.sf-btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: var(--primary-ink); }
.sf-btn-primary:active { background: var(--primary-active); border-color: var(--primary-active); color: var(--primary-ink); transform: translateY(1px); }

.sf-btn-secondary { background: transparent; color: var(--primary); border-color: var(--primary); }
.sf-btn-secondary:hover { background: var(--primary-soft); color: var(--primary-soft-ink); border-color: var(--primary); }
.sf-btn-secondary:active { background: var(--primary-tint-2); color: var(--primary-soft-ink); transform: translateY(1px); }

.sf-btn-ghost { background: transparent; color: var(--text); border-color: transparent; }
.sf-btn-ghost:hover { background: var(--surface-2); color: var(--primary); }
.sf-btn-ghost:active { background: color-mix(in srgb, var(--text) 10%, var(--surface)); transform: translateY(1px); }

.sf-btn.sf-btn-icon {
  width: var(--sf-h); min-width: var(--sf-h); padding: 0; flex: 0 0 auto;
  background: var(--surface-2); color: var(--text); border-color: transparent;
}
.sf-btn.sf-btn-icon:hover { background: var(--primary-soft); color: var(--primary-soft-ink); }
.sf-btn.sf-btn-icon.sf-btn-primary { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.sf-btn.sf-btn-icon.sf-btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
/* Un seul aspect pour l'icone « neutre » : le modificateur secondaire n'en
   change pas la forme (une seule variante icone, mesuree). */
.sf-btn.sf-btn-icon.sf-btn-secondary { background: var(--surface-2); border-color: transparent; color: var(--text); }
.sf-btn.sf-btn-icon.sf-btn-secondary:hover { color: var(--primary-soft-ink); background: var(--primary-soft); }
.sf-btn.sf-btn-icon.sf-btn-ghost { background: transparent; }
.sf-btn.sf-btn-icon.sf-btn-ghost:hover { background: var(--surface-2); color: var(--primary); }
.sf-btn.sf-btn-icon > i, .sf-btn.sf-btn-icon > svg { font-size: 1.25em; }
/* Bouton pose SUR une photo ou un fond sombre (hero, bannieres, visionneuse,
   bandeau cookies) : la paire fond / encre devient « on-image », constante
   dans les deux themes puisque l'image porte la lumiere. */
.sf-btn-on-image {
  --primary: var(--on-image); --primary-ink: var(--on-image-ink);
  --primary-hover: var(--on-image); --primary-active: var(--on-image);
  --primary-soft: color-mix(in srgb, var(--on-image) 18%, transparent); --primary-soft-ink: var(--on-image);
  --primary-tint-2: color-mix(in srgb, var(--on-image) 28%, transparent);
}
.sf-btn-ghost.sf-btn-on-image { color: var(--on-image); }
.sf-btn-ghost.sf-btn-on-image:hover { background: color-mix(in srgb, var(--on-image) 16%, transparent); color: var(--on-image); }
.sf-btn.sf-btn-icon.sf-btn-on-image {
  background: color-mix(in srgb, var(--on-image) 86%, transparent);
  color: var(--on-image-ink); border-color: transparent;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: var(--shadow-sm);
}
.sf-btn.sf-btn-icon.sf-btn-on-image:hover { background: var(--on-image); color: var(--on-image-ink); }

/* Modificateurs de COULEUR : pas de nouvelle forme, les memes regles lisent
   une autre paire fond / encre. */
.sf-btn-danger {
  --primary: var(--deal); --primary-ink: var(--deal-ink);
  --primary-hover: var(--deal); --primary-active: var(--deal);
  --primary-soft: var(--error-soft); --primary-soft-ink: var(--deal); --primary-tint-2: var(--error-soft);
}
/* WhatsApp : bouton secondaire, l'icone seule porte la couleur de la marque
   (le vert #1DA851 sous du blanc tenait 3,1:1 — UI-008). */
.sf-btn-wa > svg, .sf-btn-wa > i { color: var(--wa); }

/* Etats */
.sf-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; box-shadow: var(--focus-ring) !important; }
.sf-btn:disabled, .sf-btn.is-disabled, .sf-btn[aria-disabled="true"] {
  opacity: .5; cursor: not-allowed; pointer-events: none; transform: none; box-shadow: none;
}
.sf-btn.is-loading { pointer-events: none; }
.sf-btn.is-loading::before {
  content: ""; width: 1em; height: 1em; flex: 0 0 auto;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
  animation: sf-spin .7s linear infinite;
}
@keyframes sf-spin { to { transform: rotate(360deg); } }
/* Bascules (onglets, puces de filtre, favori, comparer) : l'etat actif
   prend la forme pleine de la primaire. */
.sf-btn.is-active, .sf-btn[aria-selected="true"], .sf-btn[aria-pressed="true"] {
  background: var(--primary); color: var(--primary-ink); border-color: var(--primary);
}
.sf-btn.is-active:hover, .sf-btn[aria-selected="true"]:hover, .sf-btn[aria-pressed="true"]:hover {
  background: var(--primary-hover); border-color: var(--primary-hover); color: var(--primary-ink);
}
.sf-btn .pal-icon-btn-badge, .sf-btn .sf-badge-count {
  position: absolute; top: -4px; right: -4px;
  min-width: 18px; height: 18px; padding: 0 5px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-pill); font-size: var(--fs-12); font-weight: 700; line-height: 1;
  background: var(--primary); color: var(--primary-ink);
  border: 2px solid var(--surface);
}

/* Tactile : 44 px au moins pour TOUS les boutons, CTA pleine largeur. */
@media (max-width: 767.98px) {
  .sf-btn { --sf-h: max(var(--btn-h, 44px), 44px); }
  .sf-btn-sm { --sf-h: 44px; --sf-fs: var(--fs-14); }
  .sf-btn-cta { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .sf-btn, .sf-btn.is-loading::before { transition: none; animation-duration: 1.6s; }
}

/* ── 6.2  TITRES DE SECTION : un seul H2 (30 px bureau, 24 px mobile),
   surtitre et sous-titre poses par store.partials.section-heading. ───────── */
.sf-section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--sp-4); flex-wrap: wrap; margin: 0 0 var(--sp-6);
}
.sf-section-head > div { min-width: 0; flex: 1 1 auto; }
.sf-section-head.is-center { justify-content: center; text-align: center; }
.sf-section-head.is-center > div { flex: 0 1 100%; }
.sf-eyebrow {
  display: inline-block; margin: 0 0 var(--sp-2);
  font-size: var(--fs-12); font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--primary);
}
.sf-h2,
.pal-section-title, .pal-cat-title, .pal-cats-title, .pal-products-title,
.pal-testimonials-title, .pal-advantages-title, .pal-feed-title, .pal-flash-title,
.pal-stats-title, .pal-newsletter-banner-title, .pal-shop-title, .pal-pd-name,
.pal-page-title {
  font-family: var(--font-heading), var(--font-body), "Segoe UI", system-ui, sans-serif;
  font-size: var(--fs-30); font-weight: var(--font-heading-weight, 700);
  line-height: 1.2; letter-spacing: -.02em; margin: 0;
  color: var(--text); display: block;
}
.pal-newsletter-banner-title { color: var(--footer-ink); }
.sf-sub, .pal-section-sub, .pal-cat-subtitle, .pal-stats-subtitle {
  margin: var(--sp-1) 0 0; font-size: var(--fs-15); line-height: 1.5;
  color: var(--text-2); max-width: 64ch;
}
.sf-section-head .sf-btn { flex: 0 0 auto; margin-bottom: 2px; }
@media (max-width: 767.98px) {
  .sf-h2,
  .pal-section-title, .pal-cat-title, .pal-cats-title, .pal-products-title,
  .pal-testimonials-title, .pal-advantages-title, .pal-feed-title, .pal-flash-title,
  .pal-stats-title, .pal-newsletter-banner-title, .pal-shop-title, .pal-pd-name,
  .pal-page-title { font-size: var(--fs-24); }
  .sf-section-head { margin-bottom: var(--sp-4); gap: var(--sp-3); }
  .sf-sub { font-size: var(--fs-14); }
}

/* ── 6.3  BADGES : une couleur par type, lue des jetons, 12 px au moins ──
   new = primaire · sale = couleur d'erreur du theme (promo) · feat = fond
   doux de la primaire · out = neutre borde · rank = texte sur fond. Le meme
   badge sert aux cartes, a la galerie et au titre de la fiche. */
.sf-badge, .product-badge, .pal-pd-gallery-badge, .pal-pd-mini-badge, .pal-rank-badge, .pal-badge {
  display: inline-flex; align-items: center; gap: var(--sp-1);
  min-height: 22px; padding: 0 var(--sp-2);
  border-radius: var(--radius-sm); border: 0;
  font-size: var(--fs-12); font-weight: 700; line-height: 1; letter-spacing: .02em;
  text-transform: none; white-space: nowrap; box-shadow: none;
}
.product-badge.sale, .sf-badge-sale, .pal-pd-badge-sale, .pal-pd-price-save { background: var(--deal); color: var(--deal-ink); }
.product-badge.new,  .sf-badge-new,  .pal-pd-badge-new,  .pal-pd-mini-badge.is-new      { background: var(--primary); color: var(--primary-ink); }
.product-badge.feat, .sf-badge-feat, .pal-pd-badge-feat, .pal-pd-mini-badge.is-featured { background: var(--primary-soft); color: var(--primary-soft-ink); }
.product-badge.out,  .sf-badge-out,  .pal-pd-badge-out { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.product-badge.rank, .sf-badge-rank, .pal-rank-badge { background: var(--text); color: var(--bg); }
.product-card.is-out-of-stock .product-badge.out { background: var(--surface); color: var(--text); }
.sf-badge-success { background: var(--success-soft); color: var(--success-strong); }
.sf-badge-warning { background: var(--warning-soft); color: var(--warning-strong); }
.sf-badge-muted   { background: var(--surface-2); color: var(--text-2); }

/* ── 6.4 CARTE PRODUIT : une seule carte pour toutes les grilles ──────────
   Lot 2 de l'audit du 18/11/2026 (UI-001, UI-006, RESP-001, A11Y-002).
   Gabarit : store.partials.product-card — <article>, lien sur l'image et sur
   le titre, boutons HORS des liens. Rayon unique lu de theme.borders (6.5),
   image au rapport du reglage image_ratio sur --surface-2, corps 12 px,
   categorie 12 px en capitales, titre 14 / 500 sur deux lignes a hauteur
   reservee, prix 18 / 700, barre d'actions permanente (36 px au bureau,
   44 px sous 1024). Prix et CTA restent alignes en bas quelle que soit la
   longueur du titre : la carte prend toute la hauteur de sa rangee. ────── */
.product-card {
  position: relative; display: flex; flex-direction: column; height: 100%;
  background: var(--surface); color: var(--text); text-decoration: none; cursor: default;
  border: 1px solid var(--border-soft); border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
}
.pal-products-grid > .product-card, .pal-products-grid > * > .product-card { height: 100%; }

/* Image : lien plein cadre, rapport configurable, fond de surface. */
.product-img-wrap {
  position: relative; aspect-ratio: var(--card-img-ratio, 1 / 1); overflow: hidden;
  background: var(--surface-2); border-radius: var(--radius-card) var(--radius-card) 0 0;
}
.product-card-media { position: absolute; inset: 0; display: block; }
.product-img, .product-img-alt {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover;
  transition: transform var(--t) var(--ease), opacity var(--t) var(--ease);
}
.product-img-alt { opacity: 0; }

/* Badges : une pile en haut a gauche, deux au plus (couleurs en 6.3). */
.product-badges {
  position: absolute; top: var(--sp-3); left: var(--sp-3); z-index: 3;
  display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-1);
  max-width: calc(100% - 2 * var(--sp-3)); pointer-events: none;
}
.product-badges .product-badge { position: static; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 575.98px) {
  .product-badges { top: var(--sp-2); left: var(--sp-2); max-width: calc(100% - 2 * var(--sp-2)); }
}

/* Outils sur l'image, hors du lien : favori, comparer, apercu rapide.
   36 px au bureau, 44 px au doigt. L'apercu n'existe qu'au survol. */
.product-card-tools {
  position: absolute; top: var(--sp-2); right: var(--sp-2); z-index: 3;
  display: flex; flex-direction: column; gap: var(--sp-1);
}
.product-card-tools .sf-btn { --sf-h: 44px; }
@media (hover: hover) and (pointer: fine) and (min-width: 992px) { .product-card-tools .sf-btn { --sf-h: 36px; } }
.product-card .product-fav-btn.is-active, .product-card .product-fav-btn.on { color: var(--deal); }
.product-card .product-fav-btn.is-active svg, .product-card .product-fav-btn.on svg { fill: currentColor; }
.product-card .product-cmp-btn.is-active { background: var(--primary); color: var(--primary-ink); }
.product-qv-btn { display: none; }
@media (hover: hover) and (min-width: 992px) { .product-qv-btn { display: inline-flex; } }

/* Corps : categorie, titre (2 lignes reservees), extrait (vue liste), note,
   stock, mentions, puis le prix cale en bas. */
.product-info-wrap {
  display: flex; flex-direction: column; flex: 1 1 auto; gap: var(--sp-1); min-width: 0;
  padding: var(--sp-3) var(--sp-3) var(--sp-2); border-radius: 0;
}
.product-card-cat {
  margin: 0; font-size: var(--fs-12); font-weight: 500; letter-spacing: .05em; text-transform: uppercase;
  color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.product-card-title {
  margin: 0; font-size: var(--fs-14); font-weight: 500; line-height: 1.35; color: var(--text); overflow-wrap: anywhere;
}
/* Lot 7 : la coupe a deux lignes est portee par le LIEN, bloc d'au moins
   44 px (cible tactile ; deux lignes en font 38). Le lien inline mesurait
   17 px de haut. */
.product-card-link {
  color: inherit; text-decoration: none;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 44px;
}
.product-card-link:hover, .product-card-link:focus-visible { color: var(--primary); }
.product-card-desc {
  display: none; margin: 0; font-size: var(--fs-13); line-height: 1.45; color: var(--text-2);
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card-rating { display: flex; align-items: center; gap: 4px; font-size: var(--fs-13); color: var(--text-secondary); }
.product-card-rating .bi-star-fill, .product-card-rating .bi-star-half { color: var(--rd-star); }
.product-card-rating .bi-star { color: var(--border); }
.product-card-rating-count { color: var(--muted); }
.product-card-stock { margin: 0; display: flex; align-items: center; gap: 5px; font-size: var(--fs-13); }
.product-card-stock-low { color: var(--warning-strong); }
.product-card-stock-ok { color: var(--success-strong); }
.product-card-stock-out { color: var(--muted); }
.product-card-sales, .product-card-rank {
  margin: 0; font-size: var(--fs-12); font-weight: 600;
  max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.product-card-sales { color: var(--text-secondary); }
.product-card-rank { color: var(--primary); display: inline-flex; align-items: center; gap: 4px; }
.product-card-foot { margin-top: auto; padding-top: var(--sp-2); display: flex; align-items: baseline; gap: var(--sp-2); }
.product-card-price { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: var(--sp-2); font-variant-numeric: tabular-nums; }
.product-card-price-now { font-size: var(--fs-18); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; color: var(--text); }
.product-card-price-now.is-promo { color: var(--deal); }
.product-card-old-price { font-size: var(--fs-13); font-weight: 500; color: var(--muted); text-decoration: line-through; }

/* Barre d'actions permanente, dans le flux, sous le prix. */
.product-card .product-actions {
  position: static; display: flex; flex-direction: row; gap: var(--sp-2);
  padding: 0 var(--sp-3) var(--sp-3); margin: 0; opacity: 1; transform: none; transition: none;
}
.product-card .product-actions .sf-btn { flex: 1 1 auto; min-width: 0; }
.product-card .product-actions .sf-btn > span { display: inline; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 992px) {
  .product-card .product-actions .sf-btn { --sf-h: 36px; --sf-fs: var(--fs-13); --sf-px: var(--sp-3); }
}
@media (max-width: 991.98px) {
  .product-card .product-actions .sf-btn { --sf-h: 44px; --sf-fs: var(--fs-14); }
}

/* Survol : elevation de 2 px et image a 1,03 en 200 ms ; rien au doigt. */
@media (hover: hover) {
  .product-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--border); }
  .product-card:hover .product-img { transform: scale(1.03); }
  .product-card:hover .product-img-alt { opacity: 1; transform: scale(1.03); }
}
@media (hover: none) {
  .product-card:hover { transform: none; box-shadow: var(--shadow-sm); }
  .product-card .product-img-alt { display: none; }
}

/* Squelette : la grille du flux reserve sa place pendant le chargement. */
.product-card.is-skeleton { pointer-events: none; border-color: transparent; box-shadow: none; }
.product-card.is-skeleton .product-img-wrap, .product-card.is-skeleton .sk { background: linear-gradient(90deg, var(--surface-2) 0%, var(--surface) 50%, var(--surface-2) 100%); background-size: 200% 100%; animation: pal-skel 1.4s infinite linear; }
.product-card.is-skeleton .sk { display: block; height: 12px; border-radius: var(--radius-sm); }
.product-card.is-skeleton .sk-cat { width: 40%; }
.product-card.is-skeleton .sk-title { height: 14px; width: 85%; }
.product-card.is-skeleton .sk-title + .sk-title { width: 60%; }
.product-card.is-skeleton .sk-price { height: 18px; width: 45%; margin-top: var(--sp-2); }
.product-card.is-skeleton .sk-btn { height: 36px; border-radius: var(--radius-button); }
@media (max-width: 991.98px) { .product-card.is-skeleton .sk-btn { height: 44px; } }


/* ── 6.5  FORMES : tout rayon vient de theme.borders ───────────────────── */
.product-card, .product-card-model-d, .pal-card, .pal-summary, .pal-filters, .filters-card,
.pal-popup-card, .pal-stock-alert-card, .pal-dropdown-menu, .pal-dropdown, .pal-mega,
.pal-suggest, .pal-minicart-thumb, .pal-cart-img, .pal-pd-stage, .pal-pd-thumb,
.cmp-picker-card, .pal-cookie-banner, .pal-social-proof, .pal-flash, .pal-pay-chip-group {
  border-radius: var(--radius-card);
}
.product-card .product-img-wrap, .product-card-model-d .product-img-wrap {
  border-radius: var(--radius-card) var(--radius-card) 0 0;
}
.product-card .product-info-wrap, .product-card-model-d .product-info-wrap { border-radius: 0; }
.pal-input, .pal-filter-input, .form-control, .form-select, .pal-qty, .pal-nl-input,
.pal-stock-alert-field input, .pal-auth-input {
  border-radius: var(--radius-field);
}
.pal-search input, .pal-mobile-search input { border-radius: var(--radius-pill) !important; }
.pal-pay-chip, .pal-variant-pill, .pal-topbar-tag, .pal-topbar-util, .pal-hero-eyebrow,
.pal-section-eyebrow, .pal-cat-eyebrow, .pal-brands-eyebrow, .pal-tst-eyebrow, .pal-promo-card-eyebrow {
  border-radius: var(--radius-sm);
}

/* ── 6.6  ECHELLE TYPOGRAPHIQUE : 12 / 13 / 14 / 15 / 16 / 18 / 20 / 24 / 30 / 36.
   Rien sous 12 px (UI-003 : 148 textes a 11 et 11,5 px). ─────────────── */
body { font-size: var(--font-base-size); }
small, .small, .text-muted.small, .pal-cat-count, .pal-pd-rating-count, .pal-minicart-line,
.pal-footer-bottom, .pal-newsletter-banner-msg, .pal-newsletter-banner-trust, .pal-engage,
.pal-topbar, .pal-topbar-modern, .pal-promo-bar, .pal-cat-list-count, .pal-flash-cd-label,
.pal-flash-sold-text, .pal-feed-chip small, .product-card-rating, .product-card-stock,
.cart-row-stock, .pal-pd-meta-row, .pal-step-label, .pal-shop-meta, .pal-pagination-summary { font-size: var(--fs-13); }
.product-card .product-card-cat, .product-card-sales, .product-card-rank, .pal-hero-card-sub,
.pal-flash-cd-box i, .pal-topbar-tag, .pal-icon-btn-badge, .pal-bottom-nav > a, .pal-bottom-nav > button,
.pal-menu-badge, .pal-sp-msg, .pal-quick-cat-count, .pal-flag { font-size: var(--fs-12) !important; }
.pal-nav-link, .pal-drawer-link, .pal-footer-link, .pal-catbar-link, .pal-quick-link, .pal-input, .pal-filter-input,
.form-control, .form-select, .pal-tab, .pal-dropdown-link, .pal-mega-link { font-size: var(--fs-15); }
.pal-pd-price-now { font-size: var(--fs-30); }
.pal-pd-price-old { font-size: var(--fs-16); }
.pal-summary-total, .pal-minicart-grand { font-size: var(--fs-20); }
.pal-hero-title { font-size: var(--fs-36) !important; }
.pal-hero-sub { font-size: var(--fs-18) !important; }
@media (max-width: 767.98px) {
  .pal-hero-title { font-size: var(--fs-24) !important; }
  .pal-hero-sub { font-size: var(--fs-15) !important; }
  .pal-pd-price-now { font-size: var(--fs-24); }
}
/* Champs : 16 px sur mobile, sinon iOS zoome a la saisie (A11Y-003). */
@media (max-width: 767.98px) {
  .pal-input, .pal-filter-input, .form-control, .form-select, .pal-search input,
  .pal-mobile-search input, .pal-qty input, .pal-stock-alert-field input, .pal-auth-input { font-size: var(--fs-16); }
}

/* ── 6.7  BARRE D'ACHAT MOBILE : 64 px, CTA de 52 px ───────────────────── */
@media (max-width: 767.98px) {
  .pal-pd-sticky-mobile { min-height: 64px; gap: var(--sp-3); padding: 6px var(--sp-3) calc(6px + env(safe-area-inset-bottom)); }
  .pal-pd-sticky-mobile .sf-btn { --sf-h: 52px; flex: 1 1 auto; }
  .pal-pd-sticky-mobile .sf-btn-icon { flex: 0 0 auto; }
  .pal-pd-sticky-mobile-price { font-size: var(--fs-18); font-weight: 700; flex: 0 0 auto; }
}
/* Fiche : un seul rayon et une seule hauteur dans le bloc d'actions. */
.pal-pd-actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: stretch; }
.pal-pd-actions .sf-btn { --sf-h: 52px; }
.pal-pd-actions .sf-btn-icon { width: 52px; min-width: 52px; }
.pal-pd-actions .pal-qty { height: 52px; border-radius: var(--radius-field); }
.pal-pd-actions .pal-qty button { width: 44px; }
.pal-pd-cta-row { display: flex; flex-direction: column; gap: var(--sp-2); margin-top: var(--sp-2); }
.pal-pd-cta-row .sf-btn { --sf-h: 52px; }

/* ── 6.8  STEPPERS, PAGINATION, FERMETURES : la forme du systeme ──────── */
.pal-qty { display: inline-flex; align-items: center; height: 44px; border: 1.5px solid var(--border); overflow: hidden; background: var(--surface); }
.pal-qty button { width: 44px; height: 100%; border: 0; background: transparent; color: var(--text); font-size: var(--fs-18); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.pal-qty button:hover { background: var(--surface-2); color: var(--primary); }
.pal-qty input { width: 48px; height: 100%; border: 0; background: transparent; text-align: center; font-weight: 600; font-size: var(--fs-15); color: var(--text); }
.pagination { gap: var(--sp-1); }
.pagination .page-item .page-link {
  min-width: 44px; min-height: 44px; padding: 0 var(--sp-3);
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-button) !important; border: 1.5px solid transparent;
  background: var(--surface-2); color: var(--text); font-weight: 600; font-size: var(--fs-14);
  transition: background var(--t) var(--ease), color var(--t) var(--ease);
}
.pagination .page-item .page-link:hover { background: var(--primary-soft); color: var(--primary-soft-ink); }
.pagination .page-item.active .page-link { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.pagination .page-item.disabled .page-link { opacity: .5; background: var(--surface-2); color: var(--text); }
.btn-close { width: 44px; height: 44px; padding: 0; margin: 0; border-radius: var(--radius-button); background: var(--surface-2); opacity: 1; filter: none; display: inline-flex; align-items: center; justify-content: center; }
.btn-close::before { content: "\f659"; font-family: "bootstrap-icons"; font-size: var(--fs-18); color: var(--text); }
.btn-close:hover { background: var(--primary-soft); }

/* Pastilles du bandeau du haut (langue, compte, telephone) : boutons discrets
   qui HERITENT de l'encre du bandeau, dont les couleurs sont celles du marchand. */
.pal-topbar-modern .sf-btn, .pal-topbar .sf-btn { color: inherit; border-color: color-mix(in srgb, currentColor 15%, transparent); }
.pal-topbar-modern .sf-btn:hover, .pal-topbar .sf-btn:hover { color: inherit; background: color-mix(in srgb, currentColor 14%, transparent); }
.pal-topbar-modern .pal-topbar-right { align-items: center; }
@media (max-width: 767.98px) {
  /* Libelle masque sur mobile : la pastille garde une cible de 44 px. */
  .pal-topbar-modern .sf-btn { min-width: 44px; justify-content: center; }
}

/* ── 6.9  TIROIRS ET FLOTTANTS : jetons partout ────────────────────────── */
.pal-drawer, .pal-minicart { background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); }
.pal-drawer-overlay, .pal-minicart-overlay, .pal-popup-overlay, .pal-stock-alert-overlay { background: var(--scrim); }
.pal-wa-float { background: var(--wa); color: var(--wa-ink); box-shadow: var(--shadow-md); }
.pal-wa-float:hover { color: var(--wa-ink); }
.pal-top-btn { background: var(--surface); color: var(--text); border-color: var(--border); box-shadow: var(--shadow-md); }


/* ── 6.10 GRILLES : un seul systeme de colonnes (lot 2, UI-006) ───────────
   Les gabarits posent leurs colonnes en variables sur la grille :
     --pl-cols-d   bureau  (≥ 1200)   alias : --pal-cols-desktop, --strip-cols-d
     --pl-cols-l   portable (992–1199)
     --pl-cols-t   tablette (768–991) alias : --pal-cols-tablet
     --pl-cols-m   mobile  (< 768)    alias : --pal-cols-mobile
   Defauts 5 / 4 / 3 / 2 ; le catalogue avec filtres lateraux pose 4 / 3 / 3 / 2
   (shop.blade.php) ; une section d'accueil suit son reglage « columns ».
   Gouttiere 16 px, 12 px sous 576 px, identique partout. ────────────────── */
.pal-products-grid, .pal-grid-marketplace, .pal-pd-strip-grid {
  --sf-cols-xl: var(--pl-cols-d, var(--pal-cols-desktop, var(--strip-cols-d, 5)));
  --sf-cols-lg: var(--pl-cols-l, 4);
  --sf-cols-md: var(--pl-cols-t, var(--pal-cols-tablet, 3));
  --sf-cols-sm: var(--pl-cols-m, var(--pal-cols-mobile, 2));
  display: grid; gap: var(--sp-4); padding: 0; margin-top: 0;
  grid-template-columns: repeat(var(--sf-cols-xl), minmax(0, 1fr));
}
@media (max-width: 1199.98px) {
  .pal-products-grid, .pal-grid-marketplace, .pal-pd-strip-grid { grid-template-columns: repeat(var(--sf-cols-lg), minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
  .pal-products-grid, .pal-grid-marketplace, .pal-pd-strip-grid { grid-template-columns: repeat(var(--sf-cols-md), minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
  .pal-products-grid, .pal-grid-marketplace, .pal-pd-strip-grid { grid-template-columns: repeat(var(--sf-cols-sm), minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
  .pal-products-grid, .pal-grid-marketplace, .pal-pd-strip-grid { gap: var(--sp-3); }
}
.pal-flash-item { display: flex; flex-direction: column; min-width: 0; }
.pal-flash-item > .product-card { flex: 1 1 auto; }

/* Vue liste du catalogue (≥ 992 px seulement ; au-dessous, la grille) :
   image de 160 px, titre, categorie, deux lignes d'extrait, prix, et le CTA
   de 44 px a droite (UX-003 : la moitie droite etait vide). */
@media (min-width: 992px) {
  .pal-products-grid.is-list { grid-template-columns: minmax(0, 1fr); gap: var(--sp-3); }
  .pal-products-grid.is-list > .product-card {
    display: grid; grid-template-columns: 160px minmax(0, 1fr) auto; grid-template-areas: "media body actions";
    align-items: center; height: auto;
  }
  .pal-products-grid.is-list .product-img-wrap { grid-area: media; aspect-ratio: 1 / 1; border-radius: var(--radius-card) 0 0 var(--radius-card); }
  /* Outils en bas de l'image : en haut, ils chevauchaient la pile de badges sur 160 px. */
  .pal-products-grid.is-list .product-card-tools { flex-direction: row; top: auto; bottom: var(--sp-2); }
  .pal-products-grid.is-list .product-info-wrap { grid-area: body; padding: var(--sp-4); }
  .pal-products-grid.is-list .product-card-title { -webkit-line-clamp: 1; min-height: 0; font-size: var(--fs-16); }
  .pal-products-grid.is-list .product-card-desc { display: -webkit-box; }
  .pal-products-grid.is-list .product-card-foot { margin-top: var(--sp-2); }
  .pal-products-grid.is-list .product-actions { grid-area: actions; padding: var(--sp-4); }
  .pal-products-grid.is-list .product-actions .sf-btn { --sf-h: 44px; --sf-fs: var(--fs-14); flex: 0 0 auto; min-width: 200px; }
}


/* ══════════════════════════════════════════════════════════════════════════
   7. FICHE PRODUIT (lot 3 de l'audit du 18/11/2026 : UX-002, UI-008,
      RESP-006, RESP-008, RESP-010, UX-011, SEO-001)
   Les regles vivaient dans le <style> de product-show.blade.php, par-dessus
   une premiere generation restee en section 12 : deux jeux de regles pour
   la meme page. Tout est ici, en jetons du theme. Les hauteurs du bloc
   d'actions et de la barre mobile sont fixees en 6.7.
   ══════════════════════════════════════════════════════════════════════════ */

/* ── 7.1 Fil d'Ariane : une ligne, le dernier element coupe en « … ». ──── */
.pal-pd-breadcrumb {
  display: flex; align-items: center; flex-wrap: nowrap; gap: var(--sp-2); min-width: 0; overflow: hidden;
  padding: 22px 0 10px; font-size: var(--fs-13); letter-spacing: .02em; color: var(--text-2);
}
.pal-pd-breadcrumb a {
  color: var(--text-2); text-decoration: none; display: inline-flex; align-items: center; gap: 5px;
  flex: 0 0 auto; white-space: nowrap; transition: color var(--t-fast) var(--ease);
}
.pal-pd-breadcrumb a:hover { color: var(--text); }
.pal-bc-sep { color: var(--text-2); font-size: var(--fs-12); flex: 0 0 auto; }
.pal-bc-current { color: var(--text); font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 767.98px) { .pal-pd-breadcrumb { padding: 14px 0 8px; font-size: var(--fs-12); } }

/* ── 7.2 Grille : deux colonnes des 768 px, une en dessous. ────────────── */
.pal-pd-grid {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; padding: 20px 0 48px;
  /* `backwards` et non `both` (audit 13/11/2026, BUG-004) : avec `both`, la
     derniere image de l'animation restait appliquee — `transform: matrix(…)` —
     et tout descendant `position: fixed` se calait sur la grille. */
  animation: palFadeIn .2s cubic-bezier(.16, 1, .3, 1) backwards;
}
@keyframes palFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .pal-pd-grid { animation: none; } }
@media (max-width: 991.98px) { .pal-pd-grid { gap: 28px; padding: 12px 0 24px; } }
@media (max-width: 767.98px) { .pal-pd-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 8px 0 16px; } }
.pal-pd-grid.pd-gallery-pos-right .pal-pd-gallery-col { order: 2; }
.pal-pd-grid.pd-gallery-pos-right .pal-pd-info { order: 1; }
.pal-pd-grid.pd-gallery-pos-top, .pal-pd-grid.pd-gallery-pos-center { display: block; }
.pal-pd-grid.pd-gallery-pos-top .pal-pd-gallery-col, .pal-pd-grid.pd-gallery-pos-center .pal-pd-gallery-col { width: 100%; margin-bottom: var(--sp-6); }

/* ── 7.3 Galerie : miniatures verticales a gauche des 1024 px, bande
      horizontale en dessous ; image plafonnee a 60 vh sous 1024 px pour que
      le prix et le CTA restent au premier ecran (RESP-008). ─────────────── */
.pal-pd-gallery { position: relative; display: flex; flex-direction: column-reverse; gap: var(--sp-3); min-width: 0; }
.pal-pd-stage {
  position: relative; overflow: hidden; background: var(--surface-2);
  border: 1px solid var(--border-soft); border-radius: var(--radius-card); box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t) var(--ease);
}
.pal-pd-stage:hover { box-shadow: var(--shadow-md); }
.pal-pd-grid.pd-ratio-1-1 .pal-pd-stage { aspect-ratio: 1 / 1; }
.pal-pd-grid.pd-ratio-4-5 .pal-pd-stage { aspect-ratio: 4 / 5; }
.pal-pd-grid.pd-ratio-3-4 .pal-pd-stage { aspect-ratio: 3 / 4; }
.pal-pd-grid.pd-ratio-16-9 .pal-pd-stage { aspect-ratio: 16 / 9; }
.pal-pd-stage-img { width: 100%; height: 100%; object-fit: contain; padding: var(--sp-6); display: block; transition: transform .35s var(--ease); }
.pal-pd-stage.is-zoomed .pal-pd-stage-img { cursor: zoom-out; transform: scale(1.5); padding: 0; }
.pal-pd-stage-zoom { position: absolute; right: var(--sp-3); bottom: var(--sp-3); z-index: 4; }
.pal-pd-gallery-badge { position: absolute; top: var(--sp-4); left: var(--sp-4); z-index: 3; }
.pal-pd-thumbs { display: flex; gap: var(--sp-2); overflow-x: auto; padding: 2px 0; scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
.pal-pd-thumb {
  flex: 0 0 84px; width: 84px; height: 84px; background: var(--surface-2);
  border: 2px solid transparent; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.pal-pd-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.pal-pd-thumb:hover { border-color: var(--border); }
.pal-pd-thumb.is-active { border-color: var(--primary); background: var(--surface); }
.pal-pd-grid.pd-gallery-style-full_carousel .pal-pd-thumbs { display: none; }
@media (min-width: 992px) {
  .pal-pd-grid.pd-gallery-style-thumbs_left .pal-pd-gallery { flex-direction: row-reverse; align-items: flex-start; }
  .pal-pd-grid.pd-gallery-style-thumbs_left .pal-pd-thumbs { flex-direction: column; flex: 0 0 90px; max-height: 580px; overflow-y: auto; overflow-x: hidden; }
  .pal-pd-grid.pd-gallery-style-thumbs_left .pal-pd-stage { flex: 1 1 auto; min-width: 0; }
}
@media (max-width: 991.98px) {
  .pal-pd-grid .pal-pd-stage { aspect-ratio: auto; height: min(60vh, 520px); }
  .pal-pd-stage-img { padding: var(--sp-3); }
  .pal-pd-stage-zoom { right: 10px; bottom: 10px; }
}
@media (max-width: 767.98px) {
  .pal-pd-grid .pal-pd-stage { height: auto; aspect-ratio: 1 / 1; max-height: 60vh; }
  .pal-pd-thumb { flex-basis: 64px; width: 64px; height: 64px; }
  .pal-pd-thumb img { padding: 4px; }
}

/* ── 7.4 Colonne d'infos ──────────────────────────────────────────────── */
.pal-pd-info { display: flex; flex-direction: column; gap: var(--sp-4); align-self: start; min-width: 0; }
/* Collante seulement si elle TIENT dans l'ecran : la classe `is-sticky` est
   posee par le script de la fiche (mesure reelle), jamais de hauteur imposee
   (audit 13/11/2026, BUG-005). */
@media (min-width: 992px) { .pal-pd-info.is-sticky { position: sticky; top: 100px; } }
@media (max-width: 767.98px) { .pal-pd-info { gap: var(--sp-3); position: static !important; } }
.pal-pd-cat { text-transform: uppercase; letter-spacing: .18em; font-size: var(--fs-12); font-weight: 700; color: var(--text-2); margin-bottom: 4px; }
.pal-pd-name {
  font-family: var(--font-heading), var(--font-body), system-ui, sans-serif; font-weight: 700; line-height: 1.15;
  color: var(--text); margin: 4px 0; letter-spacing: -.01em; overflow-wrap: anywhere;
}
.pal-pd-name-sm { font-size: var(--fs-24); }
.pal-pd-name-md, .pal-pd-name-lg { font-size: var(--fs-30); }
.pal-pd-name-xl { font-size: var(--fs-36); }
.pal-pd-meta-inline { display: flex; flex-wrap: wrap; gap: var(--sp-2) 14px; align-items: center; margin: 2px 0 var(--sp-2); }
.pal-pd-brand { font-size: var(--fs-13); color: var(--text-2); }
.pal-pd-brand strong { color: var(--text); font-weight: 600; }
.pal-pd-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 2px; }
.pal-pd-tag { padding: 4px 10px; background: var(--surface-2); border: 1px solid var(--border-soft); border-radius: var(--radius-sm); font-size: var(--fs-12); color: var(--text); }
@media (max-width: 767.98px) {
  .pal-pd-cat { letter-spacing: .08em; }
  .pal-pd-name, .pal-pd-name-xl, .pal-pd-name-lg, .pal-pd-name-md { font-size: var(--fs-24); line-height: 1.2; }
  .pal-pd-brand { font-size: var(--fs-12); }
}

/* Prix */
.pal-pd-prices {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px 14px; padding: 14px 0 8px; margin-top: 6px;
  border-top: 1px solid var(--border-soft); color: var(--text);
}
.pal-unit-select {
  margin-left: 10px; padding: 4px 10px; border-radius: var(--radius-field); border: 1.5px solid var(--border);
  background: var(--surface); color: inherit; font-size: var(--fs-14); cursor: pointer; vertical-align: middle;
}
.pal-pd-price-now { font-size: var(--fs-30); font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; letter-spacing: -.02em; line-height: 1; }
.pal-pd-price-old { font-size: var(--fs-16); text-decoration: line-through; color: var(--muted); font-weight: 500; }
.pal-pd-price-save {
  display: inline-flex; align-items: center; gap: 4px; background: var(--deal); color: var(--deal-ink);
  padding: 4px 10px; border-radius: var(--radius-sm); font-size: var(--fs-13); font-weight: 700; letter-spacing: .04em;
}
.pal-pd-savings { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-13); color: var(--success-strong); font-weight: 600; }
@media (max-width: 767.98px) { .pal-pd-prices { padding: 10px 0 6px; gap: 8px 10px; } .pal-pd-price-now { font-size: var(--fs-24); } }

/* Stock : une pastille, couleurs d'etat du theme. */
.pal-pd-stock { display: inline-flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-13); font-weight: 600; padding: 8px 14px; border-radius: var(--radius-pill); }
.pal-pd-stock.is-ok  { color: var(--success-strong); background: var(--success-soft); }
.pal-pd-stock.is-low { color: var(--warning-strong); background: var(--warning-soft); }
.pal-pd-stock.is-out { color: var(--deal); background: var(--error-soft); }
.pal-pd-stock-notify { margin-top: var(--sp-2); }
.pal-pd-countdown {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px;
  background: var(--error-soft); color: var(--deal); border: 1px solid color-mix(in srgb, var(--deal) 20%, transparent);
  border-radius: var(--radius-md); font-weight: 600; font-size: var(--fs-13);
}
.pal-pd-countdown-clock { font-variant-numeric: tabular-nums; font-weight: 800; font-size: var(--fs-15); }

/* Description courte */
.pal-pd-short { font-size: var(--fs-15); line-height: 1.65; color: var(--text-2); }
@media (max-width: 767.98px) {
  .pal-pd-short { font-size: var(--fs-14); line-height: 1.6; -webkit-line-clamp: unset !important; display: block !important; overflow: visible !important; }
  .pal-pd-short img, .pal-pd-short table, .pal-pd-short iframe { max-width: 100% !important; height: auto !important; }
}

/* Variantes */
.pal-pd-variants { padding-top: 4px; }
.pal-form-label { font-size: var(--fs-12); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--text-2); margin-bottom: 10px; }
.pal-variant-pill {
  padding: 10px 16px; border: 1.5px solid var(--border); background: var(--surface); color: var(--text);
  border-radius: var(--radius-button); font-weight: 600; transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.pal-variant-pill:hover { border-color: var(--text); }
.pal-variant-pill.sf-btn-primary, .pal-variant-pill.is-active { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }

/* Bloc d'actions : un seul rayon (celui des boutons), hauteurs en 6.7. */
.pal-pd-actions .pal-qty { flex: 0 0 auto; border-radius: var(--radius-button); }
.pal-pd-actions .sf-btn-cta { flex: 1 1 0; min-width: 0; }
.pal-pd-actions #palPdNotify { padding-left: 14px; padding-right: 14px; gap: 6px; }
@media (max-width: 575.98px) { .pal-pd-actions .pal-qty { flex: 1 1 100%; } }

/* Reassurance : sous le prix, alimentee par les promesses, les zones de
   livraison et les modes de paiement actifs. */
.pal-pd-reassurance {
  list-style: none; margin: var(--sp-2) 0 0; padding: var(--sp-3) var(--sp-4);
  display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-2);
  background: var(--surface-2); border-radius: var(--radius-card);
}
.pal-pd-reassurance-row { display: flex; align-items: flex-start; gap: var(--sp-3); font-size: var(--fs-13); line-height: 1.4; color: var(--text); min-width: 0; }
.pal-pd-reassurance-row i { font-size: var(--fs-18); color: var(--primary); flex-shrink: 0; margin-top: 1px; }
.pal-pd-reassurance-row > div { min-width: 0; }
.pal-pd-reassurance-row strong { display: block; font-size: var(--fs-13); margin-bottom: 1px; }
.pal-pd-reassurance-row span { color: var(--text-2); font-size: var(--fs-13); overflow-wrap: anywhere; }
.pal-pd-share { display: flex; align-items: center; gap: var(--sp-3); padding-top: var(--sp-4); margin-top: var(--sp-2); border-top: 1px solid var(--border-soft); font-size: var(--fs-13); flex-wrap: wrap; }
.pal-pd-share-label { font-weight: 600; color: var(--text-2); }

/* Badges de confiance (section trust_badges) */
.pal-pd-trust {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); padding: var(--sp-4); margin-top: 4px;
  background: var(--surface-2); border: 1px solid var(--border-soft); border-radius: var(--radius-card);
}
.pal-pd-trust-item { display: flex; align-items: center; gap: var(--sp-3); font-size: var(--fs-13); color: var(--text); font-weight: 500; padding: 6px 4px; }
.pal-pd-trust-item i {
  font-size: var(--fs-20); width: 38px; height: 38px; border-radius: 50%; background: var(--surface); color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: var(--shadow-sm);
}
@media (max-width: 575.98px) { .pal-pd-trust { grid-template-columns: 1fr; } }

/* ── 7.5 Onglets : Description, Caracteristiques, Livraison et retours,
      Video, Avis — un onglet sans contenu n'est pas rendu. ───────────────── */
.pal-pd-content { margin-top: 40px; padding: 32px 0; border-top: 1px solid var(--border-soft); }
.pal-tabs { display: flex; gap: var(--sp-2); flex-wrap: wrap; border-bottom: 1px solid var(--border-soft); padding-bottom: var(--sp-3); margin-bottom: 28px; }
.pal-tab-panel { display: none; padding: 4px 0; }
.pal-tab-panel.is-active { display: block; animation: palFadeIn .25s ease; }
.pal-pd-tab-text { max-width: 760px; font-size: var(--fs-15); line-height: 1.7; color: var(--text); }
.pal-pd-tab-text img, .pal-pd-tab-text iframe, .pal-pd-tab-text video { max-width: 100%; height: auto; border-radius: var(--radius-md); }
.pal-pd-tab-text table { display: block; max-width: 100%; overflow-x: auto; }
.pal-tab-panel h2, .pal-tab-panel h3 { font-family: var(--font-heading), var(--font-body), system-ui, sans-serif; }
.pal-tabs-style-pills .pal-tabs { border: 0; }
.pal-tabs-style-bordered .pal-tabs { border: 1px solid var(--border); border-radius: var(--radius-card); padding: 4px; }
.pal-specs-table { width: 100%; max-width: 760px; border-collapse: collapse; font-size: var(--fs-15); line-height: 1.6; color: var(--text); }
.pal-specs-table th, .pal-specs-table td { padding: 12px 4px; border-bottom: 1px solid var(--border-soft); text-align: left; vertical-align: top; }
.pal-specs-table th { font-weight: 600; color: var(--text-2); width: 40%; }
.pal-specs-table thead th { color: var(--text); font-size: var(--fs-13); text-transform: uppercase; letter-spacing: .05em; width: auto; }
.pal-pd-shipping-title { font-size: var(--fs-18); font-weight: 700; margin: var(--sp-5) 0 var(--sp-3); color: var(--text); }
.pal-pd-shipping-title:first-child { margin-top: 0; }
.pal-pd-shipping-table th small { display: block; font-weight: 400; color: var(--muted); font-size: var(--fs-12); }
.pal-pd-payments { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--sp-2); }
.pal-pd-payments li { display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; }
.pal-pd-payments li i { color: var(--primary); }
.pal-pd-payments li small { color: var(--muted); font-size: var(--fs-13); }
.pal-pd-video { max-width: 760px; }
.pal-pd-video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius-card); display: block; background: var(--scrim-strong); }
@media (max-width: 767.98px) {
  .pal-pd-content { margin-top: 24px; padding: 22px 0; }
  .pal-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; margin-bottom: 18px; }
  .pal-tabs::-webkit-scrollbar { display: none; }
  .pal-pd-tab-text, .pal-specs-table { font-size: var(--fs-14); line-height: 1.6; }
  .pal-specs-table th, .pal-specs-table td { padding: 10px 0; }
}

/* ── 7.6 Produits associes : meme fond que la page, carrousel au doigt. ── */
.pal-pd-strip { padding: 40px 0; margin-top: 24px; border-radius: var(--radius-lg); }
@media (max-width: 767.98px) {
  .pal-pd-strip { padding: 28px 0; margin-top: 16px; }
  .pal-pd-strip-grid {
    display: flex; overflow-x: auto; gap: var(--sp-3); padding: 0 0 var(--sp-2);
    scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .pal-pd-strip-grid::-webkit-scrollbar { display: none; }
  .pal-pd-strip-grid > .product-card { flex: 0 0 72vw; max-width: 300px; scroll-snap-align: start; }
}

/* ── 7.7 Barre d'achat mobile : 64 px, CTA de 52 px (hauteurs en 6.7) ; le
      corps de page lui reserve sa place ; invisible tant que le CTA principal
      est a l'ecran. ─────────────────────────────────────────────────────── */
.pal-pd-sticky-mobile { display: none; }
@media (max-width: 767.98px) {
  .pal-pd-sticky-mobile {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040;
    display: flex; align-items: center;
    background: var(--surface); color: var(--text); border-top: 1px solid var(--border); box-shadow: var(--shadow-lg);
    transform: translateY(110%); transition: transform var(--t) var(--ease); visibility: hidden;
  }
  .pal-pd-sticky-mobile.is-visible { transform: none; visibility: visible; }
  .pal-pd-sticky-mobile-price { color: var(--text); white-space: nowrap; }
  body.pal-has-sticky-buy { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { .pal-pd-sticky-mobile { transition: none; } }

/* ── 7.8 Toast (#palFlash) : invisible et inerte quand il est inactif
      (opacity 0 + visibility hidden), au-dessus de la barre d'achat quand il
      s'affiche (RESP-006). Cible par identifiant : `.pal-flash` est aussi la
      classe de la section des offres eclair. ──────────────────────────────── */
#palFlash {
  position: fixed; top: auto; bottom: 24px; right: 24px; left: auto; z-index: 1100;
  display: flex; align-items: center; gap: var(--sp-3); max-width: 360px; padding: 14px 18px;
  background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-card);
  box-shadow: var(--shadow-lg); font-size: var(--fs-14);
  opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(16px);
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease), visibility 0s linear var(--t);
}
#palFlash.is-show { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition: opacity var(--t) var(--ease), transform var(--t) var(--ease), visibility 0s; }
#palFlash i { font-size: var(--fs-20); color: var(--success-strong); }
#palFlash.error i { color: var(--deal); }
#palFlash .text-muted { color: var(--text-2) !important; }
body.pal-mc-open #palFlash { right: auto; left: 24px; }
@media (max-width: 767.98px) {
  #palFlash, body.pal-mc-open #palFlash { left: 16px; right: 16px; bottom: 16px; max-width: none; }
  body.pal-has-sticky-buy #palFlash { bottom: calc(80px + env(safe-area-inset-bottom)); }
}

/* ── 7.9 Modale d'alerte stock : icone du theme, champs de 16 px, croix de
      44 px (.pal-popup-close est un .sf-btn-icon). ──────────────────────── */
.pal-sa-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-soft-ink); display: inline-flex; align-items: center; justify-content: center; font-size: var(--fs-30); margin: 0 auto 12px; }
.pal-sa-title { font-size: var(--fs-20); font-weight: 700; margin: 0 0 4px; color: var(--text); }
.pal-sa-product { font-weight: 600; color: var(--text); margin: 0 0 var(--sp-2); font-size: var(--fs-14); min-height: 1em; }
.pal-sa-desc { color: var(--text-2); font-size: var(--fs-14); margin: 0 0 var(--sp-4); line-height: 1.5; }
.pal-sa-field { text-align: left; margin-bottom: var(--sp-3); }
.pal-sa-field label { display: block; font-size: var(--fs-13); font-weight: 600; color: var(--text); margin-bottom: 4px; }
.pal-sa-field input { width: 100%; height: 48px; padding: 0 14px; font-size: var(--fs-16); color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-field); }
.pal-sa-field input:focus { outline: 2px solid var(--primary-soft); outline-offset: 1px; border-color: var(--primary); }
.pal-sa-hint { font-size: var(--fs-13); color: var(--text-2); text-align: left; margin: calc(-1 * var(--sp-1)) 0 var(--sp-3); }
.pal-sa-msg { min-height: 1.25rem; font-size: var(--fs-13); margin-top: var(--sp-2); }
/* Le formulaire de la modale n'est pas celui du popup de bienvenue
   (`.pal-popup-card form { display: flex }`, champs de 14 px) : en colonne, 16 px. */
#palStockAlertForm { display: block; margin-top: 0; }
#palStockAlertForm input[type="tel"], #palStockAlertForm input[type="email"] { font-size: var(--fs-16); height: 48px; padding: 0 14px; border-radius: var(--radius-field); flex: none; }

/* ══════════════════════════════════════════════════════════════════════════
   8. EN-TETE, NAVIGATION, PIED DE PAGE, FLOTTANTS (lot 4 de l'audit du
      18/11/2026 : RESP-002, RESP-003, RESP-005, A11Y-001, UI-009, UI-010,
      UI-012, ADMIN-001, ADMIN-007)
   Les trois generations de regles de l'en-tete restent au-dessus ; cette
   section fixe ce qui comptait : aucun debordement de 320 a 1920 px, des
   cibles de 44 px, le meme conteneur que le contenu, un pied de page a
   quatre colonnes fidele a footer.links, des flottants qui s'empilent.
   ══════════════════════════════════════════════════════════════════════════ */

/* ── 8.1 Conteneur : celui du contenu (1200 px), sauf header.full_width. ── */
.pal-nav-contained .pal-nav-container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--bs-gutter-x, 12px); }
.pal-nav-wide .pal-nav-container { padding-inline: clamp(12px, 3vw, 48px); }
/* Le mega-menu se cale sur la rangee, en mode contenu comme en pleine largeur
   (memes regles que `.pal-nav-wide` dans le layout, BUG-003 du 13/11/2026). */
.pal-nav-contained .pal-nav-row { position: relative; }
.pal-nav-contained .pal-menu-item.is-mega, .pal-nav-contained .pal-menu-builder { position: static; }

/* ── 8.2 Rangee : rien ne deborde. Le menu se compacte, la recherche se
      reduit puis se replie en icone, la marque se tronque. ─────────────── */
.pal-nav-row { display: flex; align-items: center; flex-wrap: nowrap; min-width: 0; gap: var(--sp-3); }
.pal-brand { flex: 0 1 auto; min-width: 0; display: inline-flex; align-items: center; gap: 10px; }
.pal-brand img { height: 32px; max-width: 140px; width: auto; flex: 0 0 auto; }
.pal-brand span { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.pal-nav-links { flex: 0 1 auto; min-width: 0; overflow: hidden; }
.pal-nav-actions { flex: 0 0 auto; gap: var(--sp-1); margin-left: auto; }
.pal-nav-actions .sf-btn-icon { --sf-h: 44px; }
.pal-nav .pal-burger { --sf-h: 44px; }
/* Le bouton « effacer » de la recherche : .sf-btn (section 6) le remettait en
   flux (position: relative, display: inline-flex) — il tombait sous le champ. */
.pal-search .pal-search-clear { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); display: none; --sf-h: 40px; }
.pal-search input:not(:placeholder-shown) + .pal-search-clear { display: inline-flex; }
.pal-search { flex: 1 1 180px; min-width: 140px; max-width: 560px; }
.pal-search-toggle { display: none; }
@media (max-width: 1199.98px) {
  /* Portable : le menu se resserre, la recherche de la rangee cede la place
     a une icone qui ouvre la rangee de recherche (sous l'en-tete). */
  .pal-nav-row { gap: var(--sp-2); }
  .pal-nav-link { padding: 8px 10px !important; }
  .pal-nav .pal-search { display: none; }
  .pal-search-toggle { display: inline-flex; }
}
@media (max-width: 991.98px) {
  .pal-search-toggle { display: none; }
  .pal-nav-row { padding: 10px 0; }
  .pal-brand span { font-size: var(--fs-18); max-width: calc(100vw - 232px); }
  .pal-brand { min-height: 44px; }
  .pal-brand img { height: 28px; max-width: 110px; }
}
@media (max-width: 575.98px) { .pal-brand span { max-width: calc(100vw - 212px); } }

/* Rangee de recherche : sous l'en-tete. Toujours visible sous 992 px ; de
   992 a 1199 px, ouverte par l'icone. Jamais au-dela (la rangee de l'en-tete
   porte la recherche). */
.pal-search-row { display: none; }
@media (max-width: 991.98px) { .pal-search-row { display: block; } }
@media (min-width: 992px) and (max-width: 1199.98px) { .pal-search-row.is-open { display: block; } }
.pal-search-row form { display: flex; gap: var(--sp-2); align-items: center; }
.pal-search-row input { flex: 1 1 auto; min-width: 0; height: 44px; font-size: var(--fs-16); }
.pal-search-row .sf-btn { --sf-h: 44px; }
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Ouverte par l'icone : sous l'en-tete, dans le meme conteneur que lui
     (la rangee est un bloc frere de <header>, pas un enfant du conteneur). */
  .pal-search-row { padding: 8px 0 10px; background: var(--header-bg); border-bottom: 1px solid var(--border); }
  .pal-search-row form { display: flex; gap: var(--sp-2); max-width: 1200px; margin-inline: auto; padding-inline: var(--bs-gutter-x, 12px); }
  body:has(.pal-nav-wide) .pal-search-row form { max-width: none; padding-inline: clamp(12px, 3vw, 48px); }
}

/* Compteurs : favoris, comparateur, panier — meme pastille. */
.pal-icon-btn-badge { top: 2px; right: 2px; }

/* Bandeau du haut : le texte peut prendre deux lignes au doigt plutot que
   d'etre coupe ; les pastilles font 44 px. */
@media (max-width: 767.98px) {
  .pal-topbar-modern .pal-topbar-text { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.3; }
  .pal-topbar-modern .pal-topbar-util { --sf-h: 44px; min-height: 44px; }
}

/* Liens rapides (modele Marketplace) et barre de categories : cibles de 44 px. */
.pal-quick-link { min-height: 44px; }
/* Modele Marketplace : l'en-tete est peint sur --header-bg (regle « mv2 »
   !important, plus haut), jamais sur la couleur primaire. Les liens rapides
   et les bordures ecrivent donc avec l'encre de l'en-tete — avec les couleurs
   par defaut, l'encre sur primaire donnait du blanc sur blanc. */
.pal-nav.header-model-4 { color: var(--header-ink); }
.pal-quick { border-top-color: color-mix(in srgb, var(--header-ink) 12%, transparent); }
.pal-quick .pal-quick-link { color: var(--header-ink); }
.pal-quick .pal-quick-link:hover, .pal-quick .pal-quick-item.is-open > .pal-quick-link { background: color-mix(in srgb, var(--header-ink) 8%, transparent); color: var(--header-ink); }
.pal-quick .pal-quick-link:focus-visible { outline-color: var(--primary); }
.pal-nav.header-model-4 .pal-search { border-color: color-mix(in srgb, var(--header-ink) 16%, transparent); }
.pal-nav.header-model-4 .pal-search:focus-within { border-color: var(--primary); }
.pal-catbar-link, .pal-catbar-all, .pal-catbar-promo { min-height: 44px; display: inline-flex; align-items: center; }

/* ── 8.3 Tiroir (burger) : categories repliables, liens, compte, langue —
      boutons de 44 px. ─────────────────────────────────────────────────── */
.pal-drawer-link { min-height: 44px; }
.pal-drawer-cats .pal-drawer-acc-body { max-height: 50vh; overflow: auto; }
.pal-drawer-foot .sf-btn { --sf-h: 44px; }

/* ── 8.4 Pied de page : fidele a footer.model ───────────────────────────
      1 = quatre colonnes (marque et contact, boutique, assistance,
          informations tirees de footer.links et des pages) ;
      2 = centre, minimaliste ; 3 = grand, aere. Accordeons sous 768 px. ── */
.pal-footer .pal-footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr)); gap: var(--sp-8) var(--sp-6); }
.pal-footer-col { min-width: 0; }
.pal-footer-col > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); cursor: default; }
.pal-footer-col > summary::-webkit-details-marker { display: none; }
.pal-footer-col > summary .bi { display: none; }
.pal-footer-col-body { display: flex; flex-direction: column; }
.pal-footer-link { min-height: 32px; display: flex; align-items: center; }
.pal-footer-socials { display: inline-flex; gap: var(--sp-2); flex-wrap: wrap; }
.pal-footer-socials a { width: 44px; height: 44px; margin: 0; }
.pal-footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-3); text-align: left; }
.pal-footer-payments { justify-content: center; }
@media (max-width: 991.98px) { .pal-footer .pal-footer-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-6) var(--sp-5); } }
@media (max-width: 767.98px) {
  .pal-footer .pal-footer-grid { grid-template-columns: 1fr; gap: 0; }
  .pal-footer-col { border-top: 1px solid color-mix(in srgb, var(--footer-ink) 12%, transparent); }
  .pal-footer-col > summary { cursor: pointer; min-height: 48px; margin: 0; padding: var(--sp-3) 0; }
  .pal-footer-col > summary .bi { display: inline-block; transition: transform var(--t) var(--ease); }
  .pal-footer-col[open] > summary .bi { transform: rotate(180deg); }
  .pal-footer-col > summary::after { display: none; }
  .pal-footer-col-body { padding-bottom: var(--sp-3); }
  .pal-footer-link { min-height: 44px; }
  .pal-footer-bottom { flex-direction: column; align-items: flex-start; }
}
/* Modele 2 : centre, une colonne, liens en ligne. */
.pal-footer.footer-model-2 .pal-footer-grid { grid-template-columns: 1fr; text-align: center; gap: var(--sp-5); }
.pal-footer.footer-model-2 .pal-footer-col > summary { justify-content: center; }
.pal-footer.footer-model-2 .pal-footer-col-body { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: var(--sp-2) var(--sp-5); }
.pal-footer.footer-model-2 .pal-footer-about { margin-inline: auto; }
.pal-footer.footer-model-2 .pal-footer-bottom { justify-content: center; text-align: center; }
/* Modele 3 : grand, aere. */
.pal-footer.footer-model-3 { padding-top: clamp(56px, 8vw, 112px) !important; }
.pal-footer.footer-model-3 .pal-footer-grid { gap: var(--sp-10, 40px) var(--sp-8); }
@media (max-width: 767.98px) {
  .pal-footer.footer-model-2 .pal-footer-col-body { flex-direction: column; }
}

/* ── 8.5 Flottants : WhatsApp puis « haut de page », empiles avec 12 px
      d'ecart, au-dessus de la barre basse sur mobile, jamais sur un montant
      ni un CTA (barre d'achat, panier), masques au checkout. ─────────────── */
.pal-wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 1000; width: 56px; height: 56px; }
.pal-top-btn { position: fixed; right: 28px; bottom: 22px; z-index: 1000; width: 44px; height: 44px; }
.pal-top-btn.has-wa { bottom: 90px; }
@media (max-width: 991.98px) {
  /* 60 px de barre basse + marge. */
  .pal-wa-float { right: 16px; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); width: 52px; height: 52px; }
  .pal-top-btn { right: 20px; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .pal-top-btn.has-wa { bottom: calc(140px + env(safe-area-inset-bottom, 0px)); }
  /* Fiche produit : la barre d'achat prend le bas ; les flottants montent au-dessus. */
  body.pal-has-sticky-buy .pal-wa-float, body.pal-has-sticky-buy .pal-top-btn { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
  body.pal-has-sticky-buy .pal-top-btn.has-wa { bottom: calc(144px + env(safe-area-inset-bottom, 0px)); }
  /* Panier : le recapitulatif et ses montants restent lisibles. */
  html[data-route="store-cart"] .pal-wa-float, html[data-route="cart"] .pal-wa-float { display: none; }
}
html[data-route="checkout"] .pal-wa-float, html[data-route="checkout"] .pal-top-btn,
html[data-route="store-checkout"] .pal-wa-float, html[data-route="store-checkout"] .pal-top-btn { display: none !important; }

/* ── 8.6 Hero : le texte hors de la zone des fleches, fleches masquees sous
      768 px, hauteur fidele au reglage (plafonnee a 60 vh au doigt). ──── */
.pal-hero-slider.has-arrows .pal-hero-content { padding-inline: 76px; }
@media (max-width: 767.98px) {
  .pal-hero-slider .pal-hero-arrow { display: none !important; }
  .pal-hero-slider.has-arrows .pal-hero-content { padding-inline: 1rem; }
}
.pal-hero-arrow { --sf-h: 44px; }

/* ── 8.7 Suggestions de recherche : vignette de 40 px, prix, rupture. ──── */
.pal-suggest-item img { width: 40px; height: 40px; object-fit: cover; border-radius: var(--radius-sm); background: var(--surface-2); flex: 0 0 40px; }
.pal-suggest-item .s-out { flex: 0 0 auto; font-size: var(--fs-12); font-weight: 600; color: var(--deal); background: var(--error-soft); padding: 2px 8px; border-radius: var(--radius-sm); }
.pal-suggest-item.is-out .s-price { color: var(--muted); }
/* Le panneau est opaque : le layout le peignait avec `--card`, jeton inexistant. */
.pal-nav .pal-suggest, .pal-search .pal-suggest { background: var(--surface); color: var(--text); border-color: var(--border); }

/* ══════════════════════════════════════════════════════════════════════════
   9. PANIER, COMMANDE, CONFIRMATION, COMPTE (lot 5 de l'audit du
      18/11/2026 : UX-001, UX-006, UX-007, RESP-007, RESP-010, UI-003)
   Les gabarits cart / checkout / thank-you / auth n'ont plus de <style> :
   champs de 48 px en 16 px, erreurs sous le champ, steppers de 44 px,
   cartes radio de livraison et de paiement, resume collant, etapes
   compactes au doigt, pages de connexion et d'inscription partagees.
   ══════════════════════════════════════════════════════════════════════════ */

/* ── 9.1 Champs : 48 px, 16 px (pas de zoom iOS), erreur sous le champ ── */
.pal-checkout .pal-input, .pal-checkout .form-control, .pal-checkout .form-select, .pal-auth .pal-auth-input {
  box-sizing: border-box; width: 100%; height: 48px; padding: 0 14px;
  font-size: var(--fs-16); line-height: 1.3; font-family: inherit;
  background: var(--surface); color: var(--text);
  border: 1.5px solid var(--border); border-radius: var(--radius-md); outline: none;
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
  -webkit-appearance: none; appearance: none;
}
.pal-checkout .pal-input::placeholder, .pal-auth .pal-auth-input::placeholder { color: var(--muted); opacity: 1; }
.pal-checkout .pal-input:focus, .pal-checkout .form-control:focus, .pal-checkout .form-select:focus, .pal-auth .pal-auth-input:focus {
  border-color: var(--primary); box-shadow: var(--focus-ring);
}
.pal-checkout .pal-input.is-invalid, .pal-auth .pal-auth-input.is-invalid { border-color: var(--deal); }
.pal-checkout .pal-input.is-invalid:focus, .pal-auth .pal-auth-input.is-invalid:focus { box-shadow: 0 0 0 4px var(--error-soft); }
/* Liste deroulante : chevron en CSS (aucune image, aucun hex). */
.pal-field-select { position: relative; }
.pal-field-select .pal-select { padding-right: 44px; cursor: pointer; }
.pal-field-select::after {
  content: ''; position: absolute; right: 18px; top: 42px; width: 9px; height: 9px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); pointer-events: none;
}
.pal-field-error {
  display: flex; align-items: flex-start; gap: 6px; margin: 6px 0 0;
  font-size: var(--fs-13); line-height: 1.4; color: var(--deal);
}
.pal-field-error::before {
  content: '!'; flex: 0 0 16px; width: 16px; height: 16px; border-radius: 50%; margin-top: 1px;
  background: var(--error-soft); color: var(--deal);
  font-size: var(--fs-12); font-weight: 700; line-height: 16px; text-align: center;
}
.pal-field-error[hidden] { display: none; }
.pal-field-hint { margin: 6px 0 0; font-size: var(--fs-13); line-height: 1.45; color: var(--muted); }
.pal-field-hint[hidden] { display: none; }
.pal-field-hint a { color: var(--primary); }
.pal-fields { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.pal-field { min-width: 0; }
.pal-field--full { grid-column: 1 / -1; }
.pal-static { font-size: var(--fs-15); color: var(--text); }
@media (max-width: 767.98px) { .pal-fields { grid-template-columns: 1fr; } }
.pal-checkout .pal-form-label { font-size: var(--fs-13); font-weight: 600; color: var(--text); margin-bottom: 6px; display: block; }
.pal-req { color: var(--deal); }
.pal-optional { color: var(--muted); font-weight: 400; }
.pal-form-error {
  margin: 12px 0 0; padding: 10px 12px; border-radius: var(--radius-md);
  background: var(--error-soft); color: var(--deal); font-size: var(--fs-14); line-height: 1.45;
}
.pal-form-error[hidden] { display: none; }

/* ── 9.2 Cartes du tunnel, etapes ─────────────────────────────────────── */
.pal-checkout .pal-card { padding: var(--sp-5); border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); box-shadow: none; }
.pal-checkout .pal-card-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); margin-bottom: var(--sp-4); padding-bottom: var(--sp-3); border-bottom: 1px solid var(--border); }
.pal-checkout .pal-card-title { display: flex; align-items: center; font-size: var(--fs-16); font-weight: 700; margin: 0; min-width: 0; }
.pal-card-step {
  display: inline-flex; flex: 0 0 26px; width: 26px; height: 26px; align-items: center; justify-content: center;
  border-radius: 50%; margin-right: 10px;
  background: var(--primary); color: var(--primary-ink); font-size: var(--fs-13); font-weight: 700;
}
.pal-card-aside { font-size: var(--fs-13); color: var(--muted); white-space: nowrap; }
.pal-card-link { color: var(--primary); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.pal-card-link:hover { text-decoration: underline; }
.pal-empty-icon { font-size: 36px; color: var(--muted); }
.pal-steps { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 16px 0 0; flex-wrap: nowrap; }
.pal-step { display: inline-flex; align-items: center; gap: 8px; }
.pal-step-num { width: 28px; height: 28px; flex: 0 0 28px; }
.pal-step-label { font-size: var(--fs-13); white-space: nowrap; }
.pal-step-bar { width: 32px; flex: 0 0 auto; }
@media (max-width: 575.98px) {
  /* Etapes compactes : numeros, et le libelle de l'etape en cours seulement. */
  .pal-steps { gap: 6px; margin-top: 12px; }
  .pal-step { gap: 6px; }
  .pal-step:not(.is-active) .pal-step-label { display: none; }
  .pal-step-bar { width: 18px; }
  .pal-step-label { font-size: var(--fs-12); }
}

/* ── 9.3 Options de livraison et modes de paiement : cartes radio ≥ 48 px ── */
.pal-ship-options { display: flex; flex-direction: column; gap: 8px; }
.ship-opt {
  display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius-md); cursor: pointer; background: var(--surface);
  transition: border-color var(--t) var(--ease), background var(--t) var(--ease);
}
.ship-opt:hover { border-color: var(--primary); }
.ship-opt.is-on { border-color: var(--primary); background: var(--primary-soft); }
.ship-opt input { margin: 0; width: 18px; height: 18px; flex: 0 0 18px; accent-color: var(--primary); }
.ship-opt-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ship-opt-title { font-weight: 600; font-size: var(--fs-14); color: var(--text); }
.ship-opt-meta { font-size: var(--fs-12); color: var(--muted); }
.ship-opt-price { font-weight: 700; font-size: var(--fs-14); white-space: nowrap; color: var(--text); }
.ship-opt-free { color: var(--success-strong); }
.ship-empty { display: flex; gap: 10px; align-items: flex-start; padding: 12px; background: var(--error-soft); color: var(--deal); border-radius: var(--radius-md); font-size: var(--fs-14); line-height: 1.45; }
.ship-free-banner { padding: 10px 12px; margin-bottom: 4px; background: var(--success-soft); color: var(--success-strong); border-radius: var(--radius-md); font-size: var(--fs-13); font-weight: 600; }
.pal-pay-list { display: flex; flex-direction: column; gap: 10px; }
.pal-pay-option {
  position: relative; display: flex; align-items: flex-start; gap: 12px; min-height: 48px; padding: 12px 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius-md); cursor: pointer; background: var(--surface);
  transition: border-color var(--t) var(--ease), background var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.pal-pay-option:hover { border-color: var(--primary); }
.pal-pay-option.is-selected { border-color: var(--primary); background: var(--primary-soft); }
.pal-pay-option:focus-within { box-shadow: var(--focus-ring); }
.pal-pay-option input { position: absolute; opacity: 0; pointer-events: none; }
.pal-pay-radio { flex: 0 0 18px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border); margin-top: 2px; position: relative; }
.pal-pay-option.is-selected .pal-pay-radio { border-color: var(--primary); }
.pal-pay-option.is-selected .pal-pay-radio::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--primary); }
.pal-pay-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pal-pay-label { font-weight: 600; font-size: var(--fs-14); color: var(--text); }
.pal-pay-desc, .pal-pay-instructions { font-size: var(--fs-13); line-height: 1.45; color: var(--muted); }
.pal-pay-instructions { white-space: pre-line; }
.pal-pay-empty { display: flex; gap: 10px; align-items: flex-start; padding: 12px; background: var(--warning-soft); color: var(--warning-strong); border-radius: var(--radius-md); font-size: var(--fs-14); line-height: 1.45; }

/* ── 9.4 Lignes d'articles du tunnel : deux rangees au doigt, steppers 44 ── */
.co-line { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto auto auto; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.co-line:last-child { border-bottom: 0; }
.co-thumb { width: 64px; height: 64px; border-radius: var(--radius-sm); object-fit: cover; background: var(--surface-2); }
.co-name { min-width: 0; }
.co-title { font-weight: 600; font-size: var(--fs-14); line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.js-line { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.qty-mini { display: inline-flex; align-items: center; height: auto; border: 1.5px solid var(--border); border-radius: var(--radius-md); overflow: hidden; background: var(--surface); }
.qty-mini button { flex: 0 0 44px; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; font-size: var(--fs-18); color: var(--text); display: inline-flex; align-items: center; justify-content: center; }
.qty-mini button:hover { background: var(--primary-soft); color: var(--primary); }
.qty-mini input { flex: 0 0 44px; width: 44px; height: 44px; border: 0; outline: 0; text-align: center; font-weight: 600; font-size: var(--fs-15); background: transparent; color: var(--text); -moz-appearance: textfield; }
.qty-mini input::-webkit-outer-spin-button, .qty-mini input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pal-checkout .pal-cart-remove { width: 44px; height: 44px; border-radius: var(--radius-md); border: 1.5px solid var(--border); background: transparent; color: var(--deal); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.pal-checkout .pal-cart-remove:hover { background: var(--error-soft); border-color: var(--deal); }
@media (max-width: 575.98px) {
  .co-line { grid-template-columns: 56px minmax(0, 1fr) auto; grid-template-areas: "img name remove" "img qty total"; row-gap: 8px; }
  .co-thumb { grid-area: img; width: 56px; height: 56px; }
  .co-name { grid-area: name; }
  .co-line .qty-mini { grid-area: qty; }
  .co-line .js-line { grid-area: total; text-align: right; }
  .co-line .pal-cart-remove { grid-area: remove; justify-self: end; }
}

/* ── 9.5 Resume collant et montants ───────────────────────────────────── */
.pal-checkout .pal-summary { position: sticky; top: calc(var(--pal-header-h, 72px) + 16px); padding: var(--sp-5); border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); box-shadow: none; }
@media (max-width: 991.98px) { .pal-checkout .pal-summary { position: static; } }
.pal-checkout .pal-summary-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: var(--fs-14); }
.pal-checkout .pal-summary-row strong { font-weight: 600; font-variant-numeric: tabular-nums; }
.pal-checkout .pal-summary-total { font-size: var(--fs-20); font-weight: 800; }
.pal-checkout .pal-summary-divider { border: 0; border-top: 1px solid var(--border); margin: 12px 0; }
.pal-checkout .pal-summary a:not(.sf-btn) { display: inline-flex; align-items: center; min-height: 44px; }

/* ── 9.6 Panier : estimation de livraison, ventes croisees ────────────── */
.cart-ship-row { align-items: flex-start !important; gap: 12px; }
.cart-ship-estimate { font-weight: 600; color: var(--text); text-align: right; font-size: var(--fs-14); }
.cart-ship-pick { margin: 2px 0 10px; }
.cart-ship-select {
  box-sizing: border-box; width: 100%; height: 44px; padding: 0 40px 0 12px; font-size: var(--fs-15); font-family: inherit;
  border: 1.5px solid var(--border); border-radius: var(--radius-md); background: var(--surface); color: var(--text);
  -webkit-appearance: none; appearance: none;
}
.cart-ship-pick { position: relative; }
.cart-ship-pick::after { content: ''; position: absolute; right: 16px; top: 16px; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); pointer-events: none; }
.cart-ship-select:focus { outline: none; border-color: var(--primary); box-shadow: var(--focus-ring); }
.cart-cross-sell { margin-top: var(--sp-8); }
.cart-cross-sell[hidden] { display: none; }
.cart-cross-sell .pal-products-grid { margin-top: var(--sp-4); }

/* ── 9.7 Confirmation ─────────────────────────────────────────────────── */
.pal-thankyou .pal-card { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); padding: var(--sp-5); box-shadow: none; }
.ty-hero { text-align: center; padding: var(--sp-10, 40px) var(--sp-6) !important; }
.ty-check { width: 80px; height: 80px; margin: 0 auto 18px; border-radius: 50%; background: var(--success-strong); color: var(--success-ink); display: inline-flex; align-items: center; justify-content: center; font-size: 38px; }
.ty-title { font-size: var(--fs-30); margin: 0 0 8px; }
.ty-sub { color: var(--muted); margin: 0 0 12px; }
.ty-ref { display: inline-block; padding: 8px 18px; border-radius: var(--radius-pill); background: var(--primary-soft); color: var(--primary-soft-ink); font-weight: 700; font-size: var(--fs-14); }
.ty-date { color: var(--muted); font-size: var(--fs-13); margin-top: 8px; }
.ty-line { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); }
.ty-line:last-child { border-bottom: 0; }
.ty-thumb { width: 56px; height: 56px; border-radius: var(--radius-sm); object-fit: cover; background: var(--surface-2); }
.ty-name { min-width: 0; }
.ty-grand { font-size: var(--fs-16); font-weight: 800; }
.ty-pay-instructions { margin: 8px 0 0; padding: 10px 12px; border-radius: var(--radius-md); background: var(--surface-2); color: var(--text); font-size: var(--fs-13); line-height: 1.5; white-space: pre-line; }
.ty-pay-instructions[hidden] { display: none; }
.ty-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: var(--sp-5); }
.ty-actions .sf-btn { flex: 1 1 220px; }
.ty-empty { text-align: center; padding: 64px 24px; background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius-lg); }
.ty-empty-icon { width: 80px; height: 80px; margin: 0 auto 16px; border-radius: 50%; background: var(--surface-2); color: var(--muted); display: flex; align-items: center; justify-content: center; font-size: var(--fs-30); }
.ty-empty-title { font-size: var(--fs-24); margin: 0; }
.pal-thankyou .pal-summary-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: var(--fs-14); }
.pal-thankyou .pal-summary-row[hidden] { display: none; }
.pal-thankyou .pal-summary-divider { border: 0; border-top: 1px solid var(--border); margin: 12px 0; }
@media print {
  .pal-topbar, .pal-nav, .pal-search-row, .pal-catbar, .pal-footer, .pal-minicart, #palFlash, .pal-bottom-nav,
  .pal-wa-float, .pal-top-btn, .ty-actions, .ty-account-offer, .pal-cookie { display: none !important; }
}

/* ── 9.8 Connexion et inscription (styles partages, plus de <style> en vue) ── */
.pal-auth { display: grid; grid-template-columns: 1fr; min-height: calc(100vh - var(--pal-header-h, 72px) - 60px); background: var(--surface); }
@media (min-width: 992px) {
  .pal-auth { grid-template-columns: minmax(380px, 1fr) minmax(360px, 560px); }
  .pal-auth--register { grid-template-columns: minmax(380px, 1fr) minmax(380px, 640px); }
}
.pal-auth-brand {
  position: relative; padding: 48px 40px; overflow: hidden;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-active, var(--primary)) 100%);
  color: var(--primary-ink);
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
}
.pal-auth-brand::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(80% 60% at 20% 10%, color-mix(in srgb, var(--primary-ink) 12%, transparent), transparent 60%),
              radial-gradient(60% 80% at 90% 90%, color-mix(in srgb, var(--primary-ink) 8%, transparent), transparent 50%);
}
.pal-auth-brand > * { position: relative; z-index: 1; }
.pal-auth-brand-logo { display: inline-flex; align-items: center; min-height: 44px; gap: 12px; font-size: var(--fs-20); font-weight: 700; letter-spacing: .02em; color: var(--primary-ink); text-decoration: none; }
.pal-auth-brand-logo:hover { color: var(--primary-ink); }
.pal-auth-brand-logo img { max-height: 40px; width: auto; }
.pal-auth-brand-hero h2 { font-size: var(--fs-36); font-weight: 700; line-height: 1.15; margin: 0 0 16px; color: var(--primary-ink); }
.pal-auth-brand-hero p { font-size: var(--fs-15); opacity: .85; max-width: 420px; margin: 0; }
.pal-auth-perks { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.pal-auth-perk { display: flex; align-items: center; gap: 12px; font-size: var(--fs-14); }
.pal-auth-perk-icon { width: 36px; height: 36px; flex: 0 0 36px; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--primary-ink) 14%, transparent); display: inline-flex; align-items: center; justify-content: center; font-size: 16px; }
.pal-auth-form { padding: 48px 32px; display: flex; flex-direction: column; justify-content: center; background: var(--bg); }
@media (min-width: 768px) { .pal-auth-form { padding: 48px 56px; } }
@media (max-width: 575.98px) { .pal-auth-form { padding: 24px 16px 32px; } }
.pal-auth-form-inner { width: 100%; max-width: 440px; margin: 0 auto; }
.pal-auth-form-inner--wide { max-width: 540px; }
.pal-auth-eyebrow { display: inline-block; font-size: var(--fs-12); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--primary-soft-ink); background: var(--primary-soft); padding: 4px 10px; border-radius: var(--radius-pill); margin-bottom: 14px; }
.pal-auth-title { font-size: var(--fs-30); font-weight: 700; line-height: 1.2; margin: 0 0 8px; color: var(--text); }
.pal-auth-subtitle { font-size: var(--fs-14); color: var(--muted); margin: 0 0 24px; }
@media (max-width: 575.98px) { .pal-auth-title { font-size: var(--fs-24); } }
.pal-auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 575.98px) { .pal-auth-grid { grid-template-columns: 1fr; } }
.pal-auth-grid--full { grid-column: 1 / -1; }
.pal-auth-field { display: flex; flex-direction: column; margin-bottom: 16px; min-width: 0; }
.pal-auth-label { font-size: var(--fs-13); font-weight: 600; color: var(--text); margin-bottom: 6px; }
.pal-auth-input-wrap { position: relative; }
.pal-auth .pal-auth-input { padding-left: 42px; }
.pal-auth .pal-auth-input--toggle { padding-right: 52px; }
.pal-auth-input-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 16px; pointer-events: none; }
.pal-auth-toggle { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); --sf-h: 44px; }
.pal-auth-hint { font-size: var(--fs-12); color: var(--muted); margin-top: 6px; }
.pal-auth-strength { height: 4px; background: var(--surface-2); border-radius: 2px; margin-top: 8px; overflow: hidden; }
.pal-auth-strength > span { display: block; height: 100%; width: 0; transition: width .25s ease, background .25s ease; background: var(--deal); }
.pal-auth-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; flex-wrap: wrap; gap: 10px; }
.pal-auth-remember { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: var(--fs-14); color: var(--text); cursor: pointer; user-select: none; }
.pal-auth-remember input, .pal-auth-terms input { width: 18px; height: 18px; flex: 0 0 18px; accent-color: var(--primary); margin: 0; }
.pal-auth-link { font-size: var(--fs-14); font-weight: 500; color: var(--primary); text-decoration: none; }
.pal-auth-link:hover { text-decoration: underline; color: var(--primary); }
.pal-auth-terms { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 8px; font-size: var(--fs-13); line-height: 1.45; color: var(--muted); }
.pal-auth-terms input { margin-top: 2px; }
.pal-auth-terms.is-invalid { color: var(--deal); }
.pal-auth-submit { margin-top: 12px; }
.pal-auth-footer-text { text-align: center; font-size: var(--fs-14); color: var(--muted); margin-top: 24px; }
.pal-auth-alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-md); background: var(--error-soft); color: var(--deal); margin-bottom: 18px; font-size: var(--fs-14); line-height: 1.45; }
.pal-auth-alert--ok { background: var(--success-soft); color: var(--success-strong); }

/* ══════════════════════════════════════════════════════════════════════════
   10. PAGES SECONDAIRES ET ETATS (lot 6 de l'audit du 18/11/2026 : BUG-003,
       BUG-005, BUG-006, UX-005, UX-009, UX-010)
   Formulaires hors tunnel (.pal-form), pages statiques (gabarit editorial),
   pages d'erreur habillees, mot de passe oublie, comparateur, recherche.
   ══════════════════════════════════════════════════════════════════════════ */

/* ── 10.1 Formulaires hors tunnel : memes champs que la section 9.1 ────── */
.pal-form .pal-input, .pal-form .form-control, .pal-form .form-select {
  box-sizing: border-box; width: 100%; height: 48px; padding: 0 14px;
  font-size: var(--fs-16); line-height: 1.3; font-family: inherit;
  background: var(--surface); color: var(--text);
  border: 1.5px solid var(--border); border-radius: var(--radius-md); outline: none;
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
  -webkit-appearance: none; appearance: none;
}
.pal-form textarea.pal-input, .pal-form textarea.form-control { height: auto; min-height: 120px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.pal-form .pal-input::placeholder, .pal-form .form-control::placeholder { color: var(--muted); opacity: 1; }
.pal-form .pal-input:focus, .pal-form .form-control:focus, .pal-form .form-select:focus { border-color: var(--primary); box-shadow: var(--focus-ring); }
.pal-form .pal-input.is-invalid, .pal-form .form-control.is-invalid { border-color: var(--deal); }
.pal-form .pal-form-label { font-size: var(--fs-13); font-weight: 600; color: var(--text); margin-bottom: 6px; display: block; }

/* ── 10.2 Pages statiques : gabarit editorial de 720 px ───────────────── */
.store-builder-page { width: 100%; }
.store-builder-page img { max-width: 100%; height: auto; }
.store-builder-page a { text-decoration: none; }
.store-builder-page h1, .store-builder-page h2, .store-builder-page h3 { font-family: inherit; }
.store-static-page {
  max-width: 720px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px) clamp(16px, 4vw, 48px);
  color: var(--text); font-size: var(--fs-16); line-height: 1.7;
}
.store-static-page > :first-child { margin-top: 0; }
.store-static-page h1, .store-static-page h2, .store-static-page h3, .store-static-page h4 { color: var(--text); margin-top: 1.5em; margin-bottom: .6em; font-weight: 700; line-height: 1.25; }
.store-static-page h1 { font-size: var(--fs-30); }
.store-static-page h2 { font-size: var(--fs-24); }
.store-static-page h3 { font-size: var(--fs-20); }
.store-static-page h4 { font-size: var(--fs-18); }
.store-static-page p { margin-bottom: 1em; }
.store-static-page ul, .store-static-page ol { margin-bottom: 1em; padding-left: 1.5em; }
.store-static-page li { margin-bottom: .35em; }
.store-static-page a { color: var(--brand-strong, var(--primary)); text-decoration: underline; }
.store-static-page a:hover { color: var(--text); }
.store-static-page-pending { color: var(--muted); }
.store-static-page img { max-width: 100%; height: auto; border-radius: var(--radius-sm); margin: 1em 0; }
.store-static-page blockquote { border-left: 4px solid var(--primary); padding: .5em 1.2em; margin: 1em 0; background: var(--primary-soft); color: var(--text); font-style: italic; }
.store-static-page hr { margin: 2em 0; border: 0; border-top: 1px solid var(--border); }
.store-static-page table { width: 100%; border-collapse: collapse; margin: 1em 0; display: block; overflow-x: auto; }
.store-static-page table th, .store-static-page table td { border: 1px solid var(--border); padding: .6em .8em; text-align: left; }
.store-static-page table th { background: var(--surface-2); font-weight: 600; }
.store-static-page code { background: var(--surface-2); padding: 2px 6px; border-radius: 4px; font-size: .9em; }

/* ── 10.3 Pages d'erreur habillees (404, 500, 503) ────────────────────── */
.pal-error-page { padding: clamp(32px, 6vw, 64px) 0 clamp(40px, 8vw, 96px); }
.pal-error-card { max-width: 640px; margin: 0 auto; text-align: center; }
.pal-error-code { font-size: clamp(64px, 14vw, 120px); font-weight: 800; line-height: 1; letter-spacing: -.02em; color: var(--primary); opacity: .22; }
.pal-error-title { font-size: var(--fs-30); margin: 8px 0; color: var(--text); }
.pal-error-text { color: var(--muted); font-size: var(--fs-16); line-height: 1.5; margin: 0 0 24px; }
.pal-error-search { display: flex; gap: 8px; max-width: 480px; margin: 0 auto 20px; }
.pal-error-search .pal-input { box-sizing: border-box; flex: 1 1 auto; min-width: 0; height: 48px; padding: 0 14px; font-size: var(--fs-16); background: var(--surface); color: var(--text); border: 1.5px solid var(--border); border-radius: var(--radius-md); outline: none; }
.pal-error-search .pal-input:focus { border-color: var(--primary); box-shadow: var(--focus-ring); }
.pal-error-search .sf-btn { --sf-h: 48px; flex: 0 0 auto; }
.pal-error-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
@media (max-width: 575.98px) { .pal-error-actions .sf-btn { flex: 1 1 100%; } .pal-error-search { flex-direction: column; } }

/* ── 10.4 Mot de passe oublie / nouveau mot de passe : une seule colonne ─ */
.pal-auth--single { grid-template-columns: 1fr; min-height: 0; }
.pal-auth--single .pal-auth-form { padding-top: clamp(32px, 6vw, 64px); padding-bottom: clamp(40px, 8vw, 80px); }
.pal-auth--single .pal-auth-form-inner { max-width: 480px; }

/* ── 10.5 Catalogue : description de collection ───────────────────────── */
.pal-shop-desc { color: var(--muted); max-width: 720px; margin: 6px 0 0; font-size: var(--fs-15); line-height: 1.5; }

/* ═══════════════════════════════════════
   11. MOBILE, ACCESSIBILITE, PERFORMANCE (lot 7 de l'audit du 18/11/2026)
   Polices hebergees, lien d'evitement, cibles de 44 px, contrastes, image
   du hero en variable CSS.

   Points de rupture : QUATRE, ceux de Bootstrap 5 (grille, d-lg-none…),
   et aucune autre valeur dans cette feuille ni dans les vues de la vitrine :
       max-width: 575.98px | 767.98px | 991.98px | 1199.98px
       min-width: 576px    | 768px    | 992px    | 1200px
   (540, 576, 600, 700, 768, 900, 991, 1023.98 et 1024 ont ete ramenes a la
   valeur Bootstrap la plus proche ; un test unitaire refuse toute autre.)
   ═══════════════════════════════════════ */

/* ── 11.1 Polices hebergees (Inter, Plus Jakarta Sans) ──────────────────
   Fichiers variables : graisses 400 a 800 dans UN fichier par alphabet ;
   le navigateur ne telecharge que l'alphabet utilise (unicode-range), le
   fichier latin de la police du texte est precharge par le gabarit.
   Licence SIL OFL 1.1 (fonts/OFL-*.txt).
   ⚠ latin-ext AVANT latin, comme chez Google : les deux plages se
   recouvrent (œ, ı…) et la DERNIERE face declaree l'emporte — dans l'autre
   ordre, « Coup de cœur » faisait telecharger le fichier latin-ext (85 Ko). */
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('fonts/plus-jakarta-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('fonts/plus-jakarta-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── 11.2 Lien d'evitement « Aller au contenu » ─────────────────────────
   Premier arret de tabulation ; hors de l'ecran tant qu'il n'a pas le focus. */
.pal-skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 3000;
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  background: var(--primary); color: var(--primary-ink); font-weight: 600; font-size: var(--fs-15);
  border-radius: var(--radius-button); text-decoration: none; box-shadow: var(--sh-lg);
  transform: translateY(calc(-100% - 16px));
}
.pal-skip-link:focus, .pal-skip-link:focus-visible { transform: none; color: var(--primary-ink); outline: none; box-shadow: var(--focus-ring), var(--sh-lg); }
main#contenu:focus { outline: none; }
@media (prefers-reduced-motion: no-preference) { .pal-skip-link { transition: transform .15s ease; } }

/* ── 11.3 Cibles tactiles : 44 px au minimum ────────────────────────────
   Mesure a 375 px avant le lot : nom de produit 17 px de haut, fil d'Ariane
   16, lien « Mot de passe oublie » 22, marque du pied de page 29, tri 42. */
/* Nom du produit : coupe a deux lignes portee par le lien (section 6.4). */
.pal-products-grid.is-list .product-card-link { -webkit-line-clamp: 1; line-clamp: 1; }
/* Fils d'Ariane (catalogue, panier, paiement, compte, pages) et lien de la
   politique de retour : ligne de 44 px. */
.pal-pd-breadcrumb { padding-top: 12px; padding-bottom: 4px; }
.pal-pd-breadcrumb a,
main a.text-muted.text-decoration-none { display: inline-flex; align-items: center; min-height: 44px; }
.pal-footer-brand { min-height: 44px; }
.pal-auth-link { display: inline-flex; align-items: center; min-height: 44px; }
.cmp-prod-name { display: flex !important; align-items: center; min-height: 44px; }
.pal-sort-select { height: 44px; min-width: 200px; }
/* Tablettes et ecrans tactiles : les 44 px du telephone (section 6) valent
   jusqu'a 991 px et sur tout appareil sans souris. A 768 px restaient les
   petits boutons de 36 px (onglets, pastilles) et les liens du pied de page
   (34 px). */
@media (max-width: 991.98px), (pointer: coarse) {
  .sf-btn { --sf-h: max(var(--btn-h, 44px), 44px); }
  .sf-btn-sm { --sf-h: 44px; --sf-fs: var(--fs-14); }
  .pal-footer-link, .pal-footer-col > summary { min-height: 44px; }
}

/* ── 11.4 Contrastes ────────────────────────────────────────────────────
   Pastille de stock de la fiche : l'encre « -strong » est calculee lisible
   sur les SURFACES, pas sur sa propre teinte pale (4,26:1 sur success-soft).
   Un peu d'encre du texte la porte au-dela de 4,5:1, dans les deux themes
   (--text est la couleur la plus contrastee avec le fond, clair ou sombre). */
.pal-pd-stock.is-ok  { color: color-mix(in srgb, var(--success-strong) 78%, var(--text)); }
.pal-pd-stock.is-low { color: color-mix(in srgb, var(--warning-strong) 78%, var(--text)); }
.pal-pd-stock.is-out { color: color-mix(in srgb, var(--deal) 78%, var(--text)); }
/* Compteur des pastilles du fil de decouverte : plus d'opacite reduite (3,96:1). */
.pal-feed-chip small { opacity: 1; }

/* ── 11.5 Hero : une seule image telechargee ───────────────────────────
   L'image du slide est portee par --hero-img (et --hero-img-m pour la
   version mobile) : sous 768 px seule la version mobile est telechargee.
   Avant, l'image bureau etait posee en style puis remplacee par script, et
   le telephone telechargeait les deux. */
.pal-hero-slide { background-image: var(--hero-img, none); }
@media (max-width: 767.98px) {
  .pal-hero-slide { background-image: var(--hero-img-m, var(--hero-img, none)); }
}

/* ==========================================================================
   12. FONCTIONNALITES DU LOT 8 (audit boutique du 18/11/2026)
   ========================================================================== */

/* 12.1 Catalogue : case « En stock uniquement » (cible de 44 px). */
.pal-filter-check { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; color: var(--text); font-size: var(--fs-14); }
.pal-filter-check input { width: 18px; height: 18px; flex: 0 0 18px; margin: 0; accent-color: var(--primary); }
/* Pastilles des filtres actifs : 44 px au tactile (30 px avant ; non mesurees
   au lot 7, aucun filtre n'etant actif sur le banc). */
@media (max-width: 991.98px), (pointer: coarse) {
  .pal-chip { min-height: 44px; }
}
/* Lien « Réinitialiser » du panneau de filtres : 21 px de haut avant. */
.pal-filters-reset { display: inline-flex; align-items: center; min-height: 44px; color: var(--c-text-muted); }

/* 12.2 Lot 8.2 : prix revendeur, prix par quantite (fiche) et mention au panier. */
.pal-pd-reseller { display: flex; align-items: center; gap: 8px; margin-top: 8px; color: var(--text); font-size: var(--fs-14); }
.pal-pd-reseller strong { color: var(--success-strong); }
.pal-pd-tiers { margin-top: 12px; border: 1px solid var(--border); border-radius: var(--radius-md, 8px); overflow: hidden; }
.pal-pd-tiers-title { padding: 8px 12px; font-size: var(--fs-14); font-weight: 700; color: var(--text); background: var(--surface-2, var(--surface)); border-bottom: 1px solid var(--border); }
.pal-pd-tiers-table { width: 100%; border-collapse: collapse; font-size: var(--fs-14); color: var(--text); }
.pal-pd-tiers-table th, .pal-pd-tiers-table td { padding: 8px 12px; text-align: left; font-weight: 400; }
.pal-pd-tiers-table td { text-align: right; font-weight: 700; }
.pal-pd-tiers-table tr + tr th, .pal-pd-tiers-table tr + tr td { border-top: 1px solid var(--border); }
.pal-pd-tiers-unit { font-weight: 400; color: var(--text-secondary); }
.cart-row-pricetag { display: inline-block; margin-top: 2px; font-size: var(--fs-12); font-weight: 600; color: var(--success-strong); }
.pal-reseller-state { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--text); }
.pal-reseller-state.is-ok i { color: var(--success-strong); }
.pal-reseller-intro { margin: 0 0 8px; color: var(--text-secondary); }

/* 12.3 Lot 8.3 : questions-reponses de la fiche produit. */
.pal-pd-qa { margin-top: 32px; margin-bottom: 32px; }
.pal-pd-qa-title { font-size: var(--fs-20, 20px); font-weight: 700; color: var(--text); margin: 0 0 16px; }
.pal-pd-qa-flash { padding: 12px 16px; border-radius: var(--radius-md, 8px); background: var(--surface-2, var(--surface)); color: var(--text); border: 1px solid var(--border); }
.pal-pd-qa-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; }
.pal-pd-qa-item { padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-md, 8px); background: var(--surface); }
.pal-pd-qa-q, .pal-pd-qa-a { display: flex; gap: 10px; margin: 0 0 8px; color: var(--text); white-space: pre-line; }
.pal-pd-qa-q { font-weight: 600; }
.pal-pd-qa-tag { flex: 0 0 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: var(--fs-12); font-weight: 700; background: var(--surface-2, var(--surface)); color: var(--text); border: 1px solid var(--border); }
.pal-pd-qa-tag.is-answer { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.pal-pd-qa-meta { margin: 0; font-size: var(--fs-12); color: var(--text-secondary); }
.pal-pd-qa-empty { color: var(--text-secondary); margin: 0 0 16px; }
.pal-pd-qa-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* 12.4 Lot 8.4 : precommande (fiche et panier). */
.pal-pd-preorder { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; padding: 10px 12px; border-radius: var(--radius-md, 8px); border: 1px solid var(--border); background: var(--surface-2, var(--surface)); color: var(--text); font-size: var(--fs-14); }
.pal-pd-preorder i { color: var(--primary); }
.cart-row-preorder { display: block; margin-top: 2px; font-size: var(--fs-12); font-weight: 600; color: var(--text-secondary); }

/* 12.5 Lot 8.5 : blog. */
.pal-blog-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.pal-blog-card { border: 1px solid var(--border); border-radius: var(--radius-md, 8px); overflow: hidden; background: var(--surface); }
.pal-blog-card-link { display: flex; flex-direction: column; height: 100%; color: var(--text); text-decoration: none; }
.pal-blog-card-img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--surface-2, var(--surface)); }
.pal-blog-card-noimg { display: flex; align-items: center; justify-content: center; font-size: 32px; color: var(--text-secondary); }
.pal-blog-card-body { display: flex; flex-direction: column; gap: 6px; padding: 16px; }
.pal-blog-card-title { margin: 0; font-size: var(--fs-18, 18px); font-weight: 700; color: var(--text); }
.pal-blog-card-excerpt { margin: 0; color: var(--text-secondary); font-size: var(--fs-14); }
.pal-blog-more { margin-top: auto; padding-top: 6px; font-weight: 600; color: var(--primary); min-height: 24px; }
.pal-blog-date { font-size: var(--fs-12); color: var(--text-secondary); }
.pal-blog-empty { color: var(--text-secondary); }
.pal-blog-cover { display: block; width: 100%; height: auto; border-radius: var(--radius-md, 8px); margin: 0 0 24px; }
.pal-blog-others-title { font-size: var(--fs-18, 18px); font-weight: 700; color: var(--text); margin: 0 0 8px; }
.pal-blog-others { margin: 0; padding-left: 18px; }
.pal-blog-others a { display: inline-flex; align-items: center; min-height: 44px; color: var(--primary); }

/* 12.6 Lot 8.7 : « Continuer avec Google ». */
.pal-auth-or { display: flex; align-items: center; gap: 12px; margin: 20px 0 12px; color: var(--text-secondary); font-size: var(--fs-14); }
.pal-auth-or::before, .pal-auth-or::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.pal-auth-google { gap: 10px; }

/* 12.7 Lot 9.1 : rangee defilante des sections produits (reglage « Carrousel »),
   formulaire de la section contact. Memes colonnes que la grille (6.10). */
.pal-products-grid.pal-products-row { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: calc((100% - (var(--sf-cols-xl) - 1) * var(--sp-4)) / var(--sf-cols-xl)); overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; padding-bottom: 8px; }
.pal-products-grid.pal-products-row > * { scroll-snap-align: start; }
@media (max-width: 1199.98px) { .pal-products-grid.pal-products-row { grid-template-columns: none; grid-auto-columns: calc((100% - (var(--sf-cols-lg) - 1) * var(--sp-4)) / var(--sf-cols-lg)); } }
@media (max-width: 991.98px) { .pal-products-grid.pal-products-row { grid-template-columns: none; grid-auto-columns: calc((100% - (var(--sf-cols-md) - 1) * var(--sp-4)) / var(--sf-cols-md)); } }
@media (max-width: 767.98px) { .pal-products-grid.pal-products-row { grid-template-columns: none; grid-auto-columns: calc((100% - (var(--sf-cols-sm) - 1) * var(--sp-4)) / var(--sf-cols-sm)); } }
.pal-contact-form { max-width: 720px; margin: 32px auto 0; }
.pal-contact-form-title { font-size: var(--fs-18, 18px); font-weight: 700; color: var(--text); margin: 0 0 12px; }
.pal-nl-eyebrow { color: inherit; opacity: .9; }

/* ==========================================================================
   13. CHIFFRES CLES (section d'accueil `stats`) — correctif du 20/11/2026
   Fond, encre et colonnes viennent du constructeur, calcules par
   App\Services\Store\StatsSection et poses en proprietes locales
   (--stats-c1, --stats-c2, --stats-img, --stats-ink, --stats-cols).
   Le selecteur a trois composants : la regle generique
   `.pal-section-sm:nth-of-type(even)` (fond --rd-surface-2) l'emportait et
   posait un fond clair sous l'encre blanche.
   ========================================================================== */
section.pal-section-sm.pal-stats-section {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--stats-c1, var(--primary));
  color: var(--stats-ink, var(--primary-ink));
}
section.pal-section-sm.pal-stats-section.is-gradient {
  background: linear-gradient(120deg, var(--stats-c1, var(--primary)), var(--stats-c2, var(--stats-c1, var(--primary))));
}
section.pal-section-sm.pal-stats-section.is-image {
  background: var(--stats-c1, var(--primary)) var(--stats-img, none) center / cover no-repeat;
}
.pal-stats-section.has-scrim::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--scrim);
  pointer-events: none;
}
.pal-stats-section .pal-stats-title,
.pal-stats-section .pal-stats-subtitle,
.pal-stats-section .pal-stats-eyebrow,
.pal-stats-section .pal-stat-value,
.pal-stats-section .pal-stat-label,
.pal-stats-section .pal-stat-icon { color: var(--stats-ink, var(--primary-ink)); }
.pal-stats-section .pal-stats-subtitle { opacity: .88; margin-inline: auto; }
.pal-stats-section .pal-stats-eyebrow { opacity: .9; }
.pal-stats-section .sf-section-head { margin-bottom: var(--sp-6); }
/* Rangees de --stats-cols colonnes ; une rangee incomplete est centree. */
.pal-stats-grid {
  --stats-n: var(--stats-cols, 4);
  display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start;
  row-gap: var(--sp-6);
}
.pal-stat-item { flex: 0 0 calc(100% / var(--stats-n)); padding: var(--sp-2) var(--sp-3); text-align: center; min-width: 0; }
.pal-stat-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: color-mix(in srgb, var(--stats-ink, var(--primary-ink)) 16%, transparent);
  font-size: var(--fs-24); margin-bottom: var(--sp-3);
}
.pal-stat-value {
  font-size: var(--fs-36); font-weight: 800; line-height: 1.1;
  letter-spacing: -.02em; font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.pal-stat-label { opacity: .9; font-size: var(--fs-15); margin-top: var(--sp-1); overflow-wrap: anywhere; }
.pal-stats-section.is-animated .pal-stat-item { animation: palStatIn .2s ease-out backwards; }
@keyframes palStatIn { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .pal-stats-section.is-animated .pal-stat-item { animation: none; } }
@media (max-width: 991.98px) {
  .pal-stats-grid { --stats-n: var(--stats-cols-t, 3); }
}
@media (max-width: 767.98px) {
  .pal-stats-grid { --stats-n: var(--stats-cols-m, 2); row-gap: var(--sp-4); }
  .pal-stat-item { padding-inline: var(--sp-2); }
  .pal-stat-value { font-size: var(--fs-30); }
  .pal-stat-icon { width: 48px; height: 48px; font-size: var(--fs-20); }
}

/* ==========================================================================
   14. FORMULAIRES PERSONNALISES SUR LA VITRINE — correctif du 20/11/2026
   Page /store/forms/{slug}, section d'accueil « Formulaire » et formulaires
   inseres dans une page statique (partiel store.partials.store-form).
   Champs : .pal-input / .pal-form-label (deja couverts en clair et sombre).
   ========================================================================== */
.sf-store-form-page { max-width: 760px; margin-inline: auto; }
.sf-store-form { padding: var(--sp-6); text-align: start; }
.store-static-page .sf-store-form, .store-builder-page .sf-store-form { margin: var(--sp-8) auto; max-width: 760px; }
.sf-store-form-head { margin-bottom: var(--sp-4); }
.sf-store-form-title { font-family: var(--font-heading), var(--font-body), sans-serif; font-size: var(--fs-24); font-weight: var(--font-heading-weight, 700); color: var(--text); margin: 0 0 var(--sp-1); }
.sf-store-form-desc { color: var(--text-2); font-size: var(--fs-15); margin: 0; }
.sf-store-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); }
.sf-store-form-field { min-width: 0; display: flex; flex-direction: column; }
.sf-store-form-field.is-full { grid-column: 1 / -1; }
.sf-store-form .sf-store-form-field .pal-input { width: 100%; font-size: var(--fs-16, 16px); }
.sf-store-form .sf-store-form-field .pal-input[aria-invalid="true"] { border-color: var(--deal); }
.sf-store-form-req { color: var(--deal); }
.sf-store-form-help { display: block; margin-top: var(--sp-1); color: var(--text-2); font-size: var(--fs-13, 13px); }
.sf-store-form-error { display: block; margin-top: var(--sp-1); color: var(--deal); font-size: var(--fs-13, 13px); font-weight: 600; }
.sf-store-form-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.sf-store-form-group legend { float: none; width: auto; }
.sf-store-form-check { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; color: var(--text); font-size: var(--fs-15); }
.sf-store-form-check input { width: 18px; height: 18px; flex: 0 0 18px; margin: 0; accent-color: var(--primary); }
.sf-store-form-file { padding-top: 10px; }
.sf-store-form-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sf-store-form-alert {
  margin-bottom: var(--sp-4); padding: var(--sp-3) var(--sp-4); border-radius: var(--radius-md, 8px);
  background: color-mix(in srgb, var(--deal) 12%, transparent); color: var(--deal); font-weight: 600; font-size: var(--fs-14);
}
.sf-store-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3) var(--sp-4); margin-top: var(--sp-6); }
.sf-store-form-required-note { color: var(--text-2); font-size: var(--fs-13, 13px); }
.sf-store-form-success { text-align: center; padding: var(--sp-6) var(--sp-2); }
.sf-store-form-success > .bi { font-size: var(--fs-36); color: var(--success-strong); }
.sf-store-form-success-text { margin: var(--sp-2) 0 var(--sp-4); color: var(--text); font-size: var(--fs-16, 16px); font-weight: 600; }
@media (max-width: 767.98px) {
  .sf-store-form { padding: var(--sp-4); }
  .sf-store-form-grid { grid-template-columns: minmax(0, 1fr); }
  .sf-store-form-actions .sf-btn { width: 100%; justify-content: center; }
}

/* ── Promotions programmées (21/11/2026) ─────────────────────────────────
   Badge de campagne (fiche, page de campagne), bannière et état de la page
   /store/promotions/{slug}. Couleurs : jetons de la vitrine ; la couleur de
   badge choisie par le marchand passe par --pal-campaign-color. */
.pal-pd-campaign {
  display: inline-flex; align-items: center; gap: 6px; margin: 6px 0; padding: 4px 12px;
  border-radius: 999px; font-weight: 700; font-size: var(--fs-13); text-decoration: none;
  background: var(--pal-campaign-color, var(--deal)); color: var(--deal-ink, #fff);
}
.pal-pd-campaign:hover { filter: brightness(1.05); color: var(--deal-ink, #fff); }
.pal-promo-banner { display: block; margin: var(--sp-3, 12px) 0; }
.pal-promo-banner img { width: 100%; max-height: 320px; object-fit: cover; border-radius: var(--radius-md); display: block; }
.pal-promo-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 6px; }
.pal-promo-state { font-weight: 600; font-size: var(--fs-13); color: var(--deal); }
.pal-promo-clock { font-variant-numeric: tabular-nums; }
