/* ============================================================================
   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 1 — reprise integrale de store-premium.css
   ########################################################################## */

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

/* --------------------------------------------------------------------------
   1. TOKENS — couleurs / typographie / espacement / ombres / radius
   -------------------------------------------------------------------------- */
:root {
  /* Couleurs principales (peuvent être surchargées via inline style avec --brand) */
  --c-bg: #ffffff;
  --c-bg-alt: #f8f9fb;
  --c-bg-soft: #f3f4f8;
  --c-text: #0f172a;
  --c-text-muted: #6b7280;
  --c-text-soft: #9aa3af;
  --c-border: #e5e7eb;
  --c-border-soft: #eef0f3;
  --c-success: #10b981;
  --c-warning: #f59e0b;
  --c-danger: #ef4444;
  --c-info: #3b82f6;

  /* Brand (overrides Bootstrap --bs-primary visually) */
  --c-brand: var(--brand, #0f172a);
  --c-brand-2: var(--brand-2, #4f46e5);
  --c-brand-soft: rgba(79, 70, 229, .08);

  /* Typographie */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Inter", "Segoe UI", system-ui, sans-serif;

  /* Espacements verticaux entre sections */
  --section-y: clamp(48px, 6vw, 96px);
  --section-y-sm: clamp(32px, 4vw, 56px);

  /* Radius */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  /* Ombres */
  --sh-xs: 0 1px 2px rgba(15, 23, 42, .04);
  --sh-sm: 0 1px 3px rgba(15, 23, 42, .06), 0 1px 2px rgba(15, 23, 42, .04);
  --sh-md: 0 4px 12px rgba(15, 23, 42, .08), 0 2px 4px rgba(15, 23, 42, .04);
  --sh-lg: 0 12px 32px rgba(15, 23, 42, .12), 0 4px 8px rgba(15, 23, 42, .06);
  --sh-xl: 0 24px 56px rgba(15, 23, 42, .18);
  --sh-brand: 0 12px 32px rgba(79, 70, 229, .25);

  /* Transitions */
  --tr-fast: .12s ease;
  --tr-mid: .22s cubic-bezier(.2, .8, .2, 1);
  --tr-slow: .35s cubic-bezier(.2, .8, .2, 1);
}

/* --------------------------------------------------------------------------
   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: #d1d5db; border-radius: 10px; border: 2px solid #fff; }
  ::-webkit-scrollbar-thumb:hover { background: #9ca3af; }
}

/* --------------------------------------------------------------------------
   3. TOPBAR (announcement)
   -------------------------------------------------------------------------- */
.pal-topbar {
  background: linear-gradient(90deg, var(--c-brand), var(--c-brand-2));
  color: #fff;
  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: rgba(255, 255, 255, .9); text-decoration: none; }
.pal-topbar a:hover { color: #fff; }
.pal-topbar-tag {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(255, 255, 255, .2); padding: 2px 10px;
  border-radius: 999px; font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .04em;
}

/* --------------------------------------------------------------------------
   4. NAVBAR
   -------------------------------------------------------------------------- */
.pal-nav {
  background: #fff;
  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: rgba(255, 255, 255, .92);
}
.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: 1.15rem; 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: 10px;
  font-size: 14px; 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: #fff; border-color: var(--c-brand-2);
  box-shadow: 0 0 0 4px var(--c-brand-soft);
}
.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: 8px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; border: none;
  background: transparent; color: var(--c-text-muted); cursor: pointer; display: none;
}
.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 {
  position: relative;
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--c-bg-alt); border: none; border-radius: 12px;
  color: var(--c-text); font-size: 18px; cursor: pointer; text-decoration: none;
  transition: background var(--tr-fast), color var(--tr-fast), transform var(--tr-fast);
}
.pal-icon-btn:hover { background: var(--c-brand-soft); color: var(--c-brand-2); transform: translateY(-1px); }
.pal-icon-btn-badge {
  position: absolute; top: 4px; right: 4px;
  min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--c-brand-2); color: #fff;
  border-radius: 999px; font-size: 11px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
}

/* lang dropdown */
.pal-lang-btn { gap: 6px; font-size: 13px; font-weight: 600; padding: 0 12px; width: auto; height: 42px; }
.pal-dropdown-menu {
  background: #fff; border: 1px solid var(--c-border-soft);
  border-radius: 14px; box-shadow: var(--sh-lg);
  padding: 6px; min-width: 200px;
}
.pal-dropdown-menu .dropdown-item {
  border-radius: 8px; padding: 10px 12px; font-size: 14px; 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; width: 42px; height: 42px;
  border: none; background: var(--c-bg-alt); border-radius: 12px;
  align-items: center; justify-content: center; font-size: 20px; cursor: pointer; color: var(--c-text);
}

@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-icon-btn { width: 40px; height: 40px; }
  .pal-lang-btn { display: none; }
}

/* mobile offcanvas drawer */
.pal-drawer {
  position: fixed; top: 0; bottom: 0; left: -340px;
  width: 320px; max-width: 88vw; background: #fff; z-index: 1080;
  display: flex; flex-direction: column;
  transition: left var(--tr-mid); box-shadow: 8px 0 32px rgba(0, 0, 0, .12);
}
.pal-drawer.is-open { left: 0; }
.pal-drawer-overlay {
  position: fixed; inset: 0; background: rgba(15, 23, 42, .35);
  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: 10px; color: var(--c-text); text-decoration: none;
  font-size: 15px; 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 — premium variants
   -------------------------------------------------------------------------- */
.btn-pal {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 12px; border: 1.5px solid transparent;
  font-size: 14px; font-weight: 600; line-height: 1; cursor: pointer;
  transition: transform var(--tr-fast), box-shadow var(--tr-fast), background var(--tr-fast), color var(--tr-fast);
  text-decoration: none; user-select: none; white-space: nowrap;
}
.btn-pal:hover { transform: translateY(-1px); }
.btn-pal:active { transform: translateY(0); }
.btn-pal:disabled { opacity: .55; cursor: not-allowed; transform: none !important; }

.btn-pal-primary { background: var(--c-brand-2); color: #fff !important; box-shadow: 0 4px 14px rgba(79, 70, 229, .3); }
.btn-pal-primary:hover { background: #4338ca; box-shadow: 0 8px 20px rgba(79, 70, 229, .4); color: #fff !important; }

.btn-pal-dark { background: var(--c-text); color: #fff !important; }
.btn-pal-dark:hover { background: #1e293b; color: #fff !important; }

.btn-pal-light { background: #fff; color: var(--c-text) !important; border-color: var(--c-border); }
.btn-pal-light:hover { background: var(--c-bg-alt); border-color: var(--c-text-soft); color: var(--c-text) !important; }

.btn-pal-outline { background: transparent; color: var(--c-text) !important; border-color: var(--c-border); }
.btn-pal-outline:hover { background: var(--c-text); color: #fff !important; border-color: var(--c-text); }

.btn-pal-ghost { background: transparent; color: var(--c-text) !important; }
.btn-pal-ghost:hover { background: var(--c-bg-alt); color: var(--c-brand-2) !important; }

.btn-pal-success { background: var(--c-success); color: #fff !important; box-shadow: 0 4px 14px rgba(16, 185, 129, .25); }
.btn-pal-success:hover { background: #059669; color: #fff !important; }

.btn-pal-danger { background: var(--c-danger); color: #fff !important; }

.btn-pal-sm { padding: 8px 14px; font-size: 13px; border-radius: 10px; }
.btn-pal-lg { padding: 16px 28px; font-size: 16px; border-radius: 14px; }
.btn-pal-block { width: 100%; }
.btn-pal-icon-only { padding: 12px; aspect-ratio: 1; }

/* --------------------------------------------------------------------------
   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: .12em; font-size: 12px;
  color: var(--c-brand-2); font-weight: 700; margin-bottom: 6px;
}
.pal-section-title { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 800; margin: 0; line-height: 1.15; }
.pal-section-sub { color: var(--c-text-muted); margin-top: 8px; font-size: 15px; }
.pal-section-link { color: var(--c-text); font-weight: 600; font-size: 14px; 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, #fff 0%, #f7f8fb 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, rgba(0, 194, 255, .08) 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: clamp(2rem, 4.5vw, 3.5rem); 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(--c-brand-2), #06b6d4); -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: 28px; 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: #fff; 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: 11px; 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: #fff; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--c-brand-2);
  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: #fff; box-shadow: var(--sh-sm);
}
.pal-cat-name { font-size: 13px; font-weight: 600; margin: 0; }
.pal-cat-count { font-size: 11px; 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. PRODUCT CARD — Sora-inspired (portrait 3:4, slide-up actions)
   -------------------------------------------------------------------------- */

/* Local tokens for the card aesthetic */
:root {
  --pc-bg: #ffffff;
  --pc-img-bg: #f3ede4;            /* warm beige tint behind product image */
  --pc-text: #2d2118;              /* deep earth text */
  --pc-muted: #8b7d6e;              /* muted brown */
  --pc-cta-bg: #f5f0e8;            /* cream */
  --pc-cta-bg-hover: #ede5d8;      /* warm */
  --pc-cta-text: #2d2118;
  --pc-shadow: 0 16px 40px rgba(74, 40, 64, .12);
  --pc-radius: 16px;
}

.pal-products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 24px; }
@media (max-width: 1199.98px) { .pal-products-grid { grid-template-columns: repeat(3, 1fr); gap: 28px 20px; } }
@media (max-width: 767.98px)  { .pal-products-grid { grid-template-columns: repeat(2, 1fr); gap: 18px 12px; } }
@media (max-width: 380px)     { .pal-products-grid { grid-template-columns: 1fr; } }

.product-card {
  display: block; text-decoration: none; color: inherit; cursor: pointer;
  background: var(--pc-bg);
  border-radius: var(--pc-radius); overflow: hidden;
  transition: transform .4s cubic-bezier(.25, .46, .45, .94), box-shadow .4s ease;
  box-shadow: 0 1px 3px rgba(74, 40, 64, .04);
  position: relative;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--pc-shadow);
  color: inherit;
}

/* ── Image wrapper ────────────────────────────────────────────────────── */
.product-img-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--pc-img-bg);
  border-top-left-radius: var(--pc-radius);
  border-top-right-radius: var(--pc-radius);
}
.product-img-wrap::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(200, 168, 107, .08) 100%);
  opacity: 0; transition: opacity .4s ease;
  pointer-events: none; z-index: 1;
}
.product-card:hover .product-img-wrap::after { opacity: 1; }

.product-img,
.product-img-alt {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .6s cubic-bezier(.16, 1, .3, 1);
}
.product-card:hover .product-img { transform: scale(1.07); }

.product-img-alt {
  position: absolute; inset: 0; opacity: 0; transition: opacity .4s ease;
}
.product-card:hover .product-img-alt { opacity: 1; }

/* ── Badge (top-left) ─────────────────────────────────────────────────── */
.product-badge {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  padding: 5px 10px;
  font-size: 10px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  line-height: 1;
}
.product-badge.sale { background: #2d2118; color: #f5f0e8; }
.product-badge.new  { background: #b5c0a8; color: #ffffff; }
.product-badge.feat { background: #c8a86b; color: #2d2118; }
.product-badge.out  { background: #4a3d30; color: #f5f0e8; }

/* ── Slide-up actions bar ─────────────────────────────────────────────── */
.product-actions {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; gap: 0; width: 100%;
  transform: translateY(100%);
  transition: transform .35s cubic-bezier(.25, .46, .45, .94);
  z-index: 3;
}
.product-card:hover .product-actions { transform: translateY(0); }

.product-add-btn {
  flex: 1 1 auto; height: 44px; border: 0; cursor: pointer;
  background: var(--pc-cta-bg); color: var(--pc-cta-text);
  font-size: 11px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  font-family: inherit;
  transition: background .3s ease, color .3s ease;
  display: inline-flex; align-items: center; justify-content: center;
}
.product-add-btn:hover { background: var(--pc-cta-bg-hover); }
.product-add-btn.is-disabled, .product-add-btn:disabled {
  background: #e8e1d4; color: rgba(45, 33, 24, .5); cursor: not-allowed;
}

.product-fav-btn {
  flex: 0 0 44px; width: 44px; height: 44px; border: 0; cursor: pointer;
  background: rgba(245, 240, 232, .92); backdrop-filter: blur(4px);
  color: var(--pc-cta-text);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .3s ease;
}
.product-fav-btn:hover { background: #f5f0e8; }
.product-fav-btn.is-active { color: #c8a86b; }
.product-fav-btn.is-active svg { fill: currentColor; }

/* hidden quick-view trigger (used by image click on mobile) */
.product-qv-trigger { display: none; }

/* ── Info section ─────────────────────────────────────────────────────── */
.product-info-wrap {
  padding: 18px 20px;
  display: flex; flex-direction: column;
  min-height: 130px;
  border-bottom-left-radius: var(--pc-radius);
  border-bottom-right-radius: var(--pc-radius);
}

.product-card-title {
  font-size: 1rem; font-weight: 500; color: var(--pc-text);
  margin: 0 0 4px; line-height: 1.3;
  font-family: var(--font-display, "Inter", system-ui, sans-serif);
  letter-spacing: -.005em;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.6em;
}

.product-card-cat {
  font-size: 10.5px; color: var(--pc-muted);
  letter-spacing: .14em; text-transform: uppercase; font-weight: 500;
  margin: 0 0 12px; line-height: 1.3;
}

.product-card-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-top: auto;
}

.product-card-price {
  font-size: 1.05rem; font-weight: 500; color: var(--pc-text);
  font-family: var(--font-display, "Inter", system-ui, sans-serif);
  letter-spacing: -.01em;
  display: inline-flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
}
.product-card-old-price {
  font-size: .85rem; color: var(--pc-muted);
  text-decoration: line-through; font-weight: 400;
}

/* ── Mobile adaptation ────────────────────────────────────────────────── */
@media (max-width: 639px) {
  .product-card { border-radius: 12px; box-shadow: 0 2px 8px rgba(74, 40, 64, .06); }
  .product-card:hover { transform: none; box-shadow: 0 4px 12px rgba(74, 40, 64, .08); }
  .product-img-wrap { border-radius: 12px 12px 0 0; }
  .product-info-wrap { padding: 12px 14px; min-height: 110px; border-radius: 0 0 12px 12px; }
  .product-card-title { font-size: .9rem; min-height: 2.4em; }
  .product-card-price { font-size: .95rem; }
  .product-card-old-price { font-size: .78rem; }
  .product-card-cat { font-size: 9.5px; margin-bottom: 8px; }
  .product-badge { top: 10px; left: 10px; padding: 4px 8px; font-size: 9px; letter-spacing: .12em; }
  /* Always show actions on mobile */
  .product-actions { transform: translateY(0); }
  .product-add-btn { height: 38px; font-size: 10px; letter-spacing: .12em; }
  .product-fav-btn { flex: 0 0 38px; width: 38px; height: 38px; }
}

/* ── Polish 2026 : ombre + radius + OOS + rating empty ────────────────── */
.product-card {
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(20, 14, 10, .06), 0 1px 2px rgba(20, 14, 10, .04);
  transition: transform .25s cubic-bezier(.25, .46, .45, .94), box-shadow .25s ease, opacity .25s ease;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px -8px rgba(20, 14, 10, .14), 0 4px 10px -4px rgba(20, 14, 10, .08);
}
.product-img-wrap {
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
}
.product-info-wrap {
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
}
.product-card:hover .product-img { transform: scale(1.05); }

/* Image : transition fluide quand on switch sur le placeholder SVG genere */
.product-img { background: #fafaf9; }

/* Badge legere ombre pour le faire ressortir */
.product-badge {
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .14);
}

/* Rupture de stock : carte plus discrete + badge marque */
.product-card.is-out-of-stock { opacity: .68; }
.product-card.is-out-of-stock:hover { opacity: .85; transform: translateY(-1px); }
.product-card.is-out-of-stock .product-img { filter: grayscale(.35); }
.product-card.is-out-of-stock .product-badge.out {
  background: #dc2626; color: #fff; font-weight: 700;
}

/* Rating quand 0 avis : indication discrete au lieu de 5 etoiles vides */
.product-card-rating-empty {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--pc-muted, #9b9384);
  font-style: italic;
  margin: 0 0 8px;
  opacity: .8;
}
.product-card-rating-empty i { font-size: 11px; opacity: .7; }

/* Wishlist heart : feedback hover plus marque (existing slide-up bar) */
.product-fav-btn { transition: background .25s ease, color .25s ease, transform .15s ease; }
.product-fav-btn:hover { transform: scale(1.08); color: #dc2626; }
.product-fav-btn:hover svg { fill: currentColor; }

@media (max-width: 639px) {
  .product-card,
  .product-img-wrap,
  .product-info-wrap { border-radius: 14px; }
  .product-img-wrap { border-radius: 14px 14px 0 0; }
  .product-info-wrap { border-radius: 0 0 14px 14px; }
}

/* ── List view ────────────────────────────────────────────────────────── */
.pal-products-grid.is-list { grid-template-columns: 1fr; }
.pal-products-grid.is-list .product-card { display: grid; grid-template-columns: 220px 1fr; align-items: stretch; }
.pal-products-grid.is-list .product-img-wrap { aspect-ratio: 1 / 1; border-radius: var(--pc-radius) 0 0 var(--pc-radius); }
.pal-products-grid.is-list .product-info-wrap { border-radius: 0 var(--pc-radius) var(--pc-radius) 0; padding: 24px; }
.pal-products-grid.is-list .product-actions { transform: translateY(0); }
@media (max-width: 575.98px) {
  .pal-products-grid.is-list .product-card { grid-template-columns: 1fr; }
  .pal-products-grid.is-list .product-img-wrap { border-radius: 12px 12px 0 0; aspect-ratio: 3/4; }
  .pal-products-grid.is-list .product-info-wrap { border-radius: 0 0 12px 12px; padding: 14px; }
}

/* --------------------------------------------------------------------------
   11. SHOP PAGE
   -------------------------------------------------------------------------- */
.pal-shop-head {
  background: linear-gradient(180deg, var(--c-bg-alt), #fff);
  border-bottom: 1px solid var(--c-border-soft);
  padding: 32px 0;
}
.pal-shop-title { font-size: clamp(1.5rem, 3vw, 2rem); 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;
}
.pal-shop-view button {
  width: 32px; height: 32px; border: none; background: transparent;
  border-radius: 6px; color: var(--c-text-muted); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; font-size: 14px;
}
.pal-shop-view button.is-active { background: #fff; color: var(--c-text); box-shadow: var(--sh-xs); }

/* sidebar filters card */
.pal-filters {
  background: #fff; 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: 14px; background: #fff; 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: 999px; background: var(--c-bg-alt); color: var(--c-text);
  text-decoration: none; font-size: 12px; 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. PRODUCT DETAIL PAGE
   -------------------------------------------------------------------------- */
.pal-pd-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; padding: 32px 0 64px; }
@media (max-width: 991.98px) { .pal-pd-grid { grid-template-columns: 1fr; gap: 32px; } }

.pal-pd-gallery { display: grid; grid-template-columns: 80px 1fr; gap: 16px; }
.pal-pd-thumbs { display: flex; flex-direction: column; gap: 10px; max-height: 540px; overflow-y: auto; padding-right: 6px; }
.pal-pd-thumb {
  width: 80px; height: 80px; border-radius: var(--r-md);
  overflow: hidden; cursor: pointer; flex: 0 0 80px;
  border: 2px solid transparent; transition: border-color var(--tr-fast);
}
.pal-pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pal-pd-thumb.is-active { border-color: var(--c-text); }

.pal-pd-stage {
  position: relative; aspect-ratio: 1 / 1; background: var(--c-bg-alt);
  border-radius: var(--r-xl); overflow: hidden;
}
.pal-pd-stage-img { width: 100%; height: 100%; object-fit: contain; }
.pal-pd-stage-zoom {
  position: absolute; bottom: 16px; right: 16px;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, .92); border: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: var(--sh-sm); font-size: 16px; color: var(--c-text);
}

@media (max-width: 575.98px) {
  .pal-pd-gallery { grid-template-columns: 1fr; }
  .pal-pd-thumbs { flex-direction: row; max-height: none; overflow-x: auto; padding-right: 0; padding-bottom: 6px; }
  .pal-pd-thumb { flex: 0 0 64px; width: 64px; height: 64px; }
}

.pal-pd-info { display: flex; flex-direction: column; gap: 16px; }
.pal-pd-cat { font-size: 12px; color: var(--c-text-muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.pal-pd-name { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; margin: 0; line-height: 1.15; }
.pal-pd-rating { display: inline-flex; align-items: center; gap: 8px; }
.pal-pd-rating-stars { color: var(--c-warning); }
.pal-pd-rating-count { font-size: 13px; color: var(--c-text-muted); }
.pal-pd-prices { display: flex; align-items: baseline; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--c-border-soft); }
.pal-pd-price-now { font-size: 32px; font-weight: 800; color: var(--c-text); letter-spacing: -.02em; }
.pal-pd-price-old { font-size: 18px; color: var(--c-text-muted); text-decoration: line-through; }
.pal-pd-price-save { background: var(--c-danger); color: #fff; padding: 4px 10px; border-radius: 6px; font-size: 12px; font-weight: 700; }
.pal-pd-short { color: var(--c-text-muted); font-size: 15px; line-height: 1.6; }

/* qty stepper */
.pal-qty {
  display: inline-flex; align-items: center; height: 48px;
  border: 1.5px solid var(--c-border); border-radius: 12px; overflow: hidden;
}
.pal-qty button {
  width: 44px; height: 100%; background: transparent; border: none; cursor: pointer;
  font-size: 18px; color: var(--c-text); display: inline-flex; align-items: center; justify-content: center;
}
.pal-qty button:hover { background: var(--c-bg-alt); }
.pal-qty input {
  width: 56px; height: 100%; border: none; outline: none; text-align: center;
  font-size: 15px; font-weight: 600; color: var(--c-text);
  background: transparent;
}
.pal-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.pal-pd-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.pal-pd-actions .btn-pal { flex: 1 1 auto; min-width: 160px; height: 48px; }

.pal-pd-meta {
  display: flex; flex-direction: column; gap: 8px;
  border-top: 1px solid var(--c-border-soft); padding-top: 16px; margin-top: 8px;
}
.pal-pd-meta-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--c-text-muted); }
.pal-pd-meta-row strong { color: var(--c-text); font-weight: 600; }

/* tabs */
.pal-tabs { border-bottom: 1px solid var(--c-border); display: flex; gap: 4px; margin-bottom: 24px; flex-wrap: wrap; }
.pal-tab {
  padding: 14px 18px; background: transparent; border: none; cursor: pointer;
  font-size: 14px; font-weight: 600; color: var(--c-text-muted);
  position: relative; transition: color var(--tr-fast);
}
.pal-tab:hover { color: var(--c-text); }
.pal-tab.is-active { color: var(--c-text); }
.pal-tab.is-active::after {
  content: ""; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px;
  background: var(--c-text); border-radius: 2px;
}
.pal-tab-panel { display: none; padding: 8px 0; line-height: 1.65; color: var(--c-text); }
.pal-tab-panel.is-active { display: block; animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.pal-specs-table { width: 100%; border-collapse: collapse; }
.pal-specs-table tr { border-bottom: 1px solid var(--c-border-soft); }
.pal-specs-table th, .pal-specs-table td { padding: 12px 4px; font-size: 14px; text-align: left; }
.pal-specs-table th { color: var(--c-text-muted); font-weight: 500; width: 35%; }
.pal-specs-table td { color: var(--c-text); font-weight: 600; }

/* video block */
.pal-pd-video { aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: #000; box-shadow: var(--sh-md); }
.pal-pd-video iframe { width: 100%; height: 100%; border: 0; }

/* --------------------------------------------------------------------------
   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: 14px; background: #fff; 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: #fff; 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(--c-danger); color: #fff; border-color: var(--c-danger); }

@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: #fff; 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: 22px; 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(--c-success); color: #fff; }
.pal-step.is-active .pal-step-num { background: var(--c-text); color: #fff; }
.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: #fff; z-index: 1080;
  display: flex; flex-direction: column;
  box-shadow: -8px 0 32px rgba(0, 0, 0, .12); transition: right var(--tr-mid);
}
.pal-minicart.is-open { right: 0; }
.pal-minicart-overlay {
  position: fixed; inset: 0; background: rgba(15, 23, 42, .35);
  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: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--c-border); background: #fff; 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(--c-danger); background: rgba(239, 68, 68, .08); }
.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: #0f172a; color: #cbd5e1; 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: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: #fff; margin: 0 0 16px;
}
.pal-footer-link {
  display: block; padding: 6px 0; color: #cbd5e1; text-decoration: none;
  font-size: 14px; transition: color var(--tr-fast);
}
.pal-footer-link:hover { color: #fff; }
.pal-footer-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: #fff; text-decoration: none; margin-bottom: 12px; }
.pal-footer-brand img { height: 32px; }
.pal-footer-about { font-size: 14px; color: #94a3b8; line-height: 1.7; max-width: 360px; }

.pal-footer-newsletter input {
  width: 100%; height: 44px; background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14); border-radius: 10px;
  padding: 0 14px; color: #fff; font-size: 14px; outline: none; transition: border-color var(--tr-fast);
}
.pal-footer-newsletter input::placeholder { color: #64748b; }
.pal-footer-newsletter input:focus { border-color: var(--c-brand-2); }
.pal-footer-newsletter button {
  margin-top: 8px; width: 100%; padding: 12px;
  background: var(--c-brand-2); color: #fff;
  border: none; border-radius: 10px; font-weight: 600; font-size: 14px; cursor: pointer;
  transition: background var(--tr-fast);
}
.pal-footer-newsletter button:hover { background: #4338ca; }

.pal-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 20px 0; display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; font-size: 13px; color: #94a3b8;
}
.pal-footer-socials { display: inline-flex; gap: 8px; }
.pal-footer-social {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255, 255, 255, .08); border: none;
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; cursor: pointer; transition: background var(--tr-fast); text-decoration: none;
}
.pal-footer-social:hover { background: var(--c-brand-2); color: #fff; }

@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, #f0f3f7 0%, #f8f9fb 50%, #f0f3f7 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: #fff; 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 */
.pal-flash {
  position: fixed; top: 90px; right: 24px; z-index: 1100;
  background: #fff; border: 1px solid var(--c-border-soft); border-radius: 12px;
  padding: 14px 18px; box-shadow: var(--sh-lg);
  display: flex; align-items: center; gap: 12px; font-size: 14px;
  transform: translateX(120%); transition: transform var(--tr-mid);
  max-width: 360px;
}
.pal-flash.is-show { transform: translateX(0); }
.pal-flash i { font-size: 20px; color: var(--c-success); }
.pal-flash.error i { color: var(--c-danger); }

/* 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. */

:root {
  /* Color tokens premium (override store-premium si nécessaire) */
  --mv2-bg:           #FAFAFA;
  --mv2-surface:      #FFFFFF;
  --mv2-surface-alt:  #F5F5F4;
  --mv2-text:         #18181B;
  --mv2-text-muted:   #71717A;
  --mv2-border:       #E7E5E4;
  --mv2-border-soft:  #F4F4F5;

  /* Accent principal — peut être surchargé via les variables boutique */
  --mv2-accent:       var(--primary, #1E3A8A);
  --mv2-accent-2:     var(--secondary, #3B82F6);
  --mv2-accent-soft:  rgba(30, 58, 138, 0.08);

  /* Typo — suit les polices du marchand (builder), fallback système */
  --mv2-font-sans:    var(--font-body, -apple-system), -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mv2-font-serif:   var(--font-heading, Georgia), Georgia, 'Times New Roman', serif;

  /* Espacements */
  --mv2-sp-1: 4px;  --mv2-sp-2: 8px;  --mv2-sp-3: 12px;  --mv2-sp-4: 16px;
  --mv2-sp-5: 24px; --mv2-sp-6: 32px; --mv2-sp-7: 48px;  --mv2-sp-8: 64px;
  --mv2-sp-9: 96px;

  /* Rayons */
  --mv2-r-sm: 8px;
  --mv2-r-md: 12px;
  --mv2-r-lg: 18px;
  --mv2-r-xl: 24px;
  --mv2-r-pill: 999px;

  /* Ombres premium (élévation cohérente) */
  --mv2-shadow-1: 0 1px 2px rgba(0,0,0,0.04), 0 1px 1px rgba(0,0,0,0.02);
  --mv2-shadow-2: 0 4px 6px rgba(0,0,0,0.05), 0 2px 4px rgba(0,0,0,0.04);
  --mv2-shadow-3: 0 10px 25px rgba(0,0,0,0.08), 0 4px 10px rgba(0,0,0,0.05);
  --mv2-shadow-4: 0 20px 50px rgba(0,0,0,0.12), 0 10px 20px rgba(0,0,0,0.06);
  --mv2-shadow-hover: 0 24px 60px rgba(0,0,0,0.15), 0 12px 24px rgba(0,0,0,0.08);

  /* Transitions */
  --mv2-tr-fast: 150ms cubic-bezier(.4, 0, .2, 1);
  --mv2-tr: 250ms cubic-bezier(.4, 0, .2, 1);
  --mv2-tr-slow: 400ms cubic-bezier(.4, 0, .2, 1);
}

body.dark-theme {
  --mv2-bg:          #0B0B0F;
  --mv2-surface:     #161619;
  --mv2-surface-alt: #1F1F23;
  --mv2-text:        #F4F4F5;
  --mv2-text-muted:  #A1A1AA;
  --mv2-border:      #2A2A2E;
  --mv2-border-soft: #1F1F23;
  --mv2-accent-soft: rgba(59, 130, 246, 0.15);
}

/* ── 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, rgba(255,255,255,0.08), 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: rgba(255,255,255,0.18);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  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: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px;
  color: inherit;
  font-size: 12.5px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--mv2-tr);
  white-space: nowrap;
}
.pal-topbar-util:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.3);
  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: 768px) {
  .pal-topbar-modern { padding: 6px 0; font-size: 12px; }
  .pal-topbar-text { font-size: 11.5px; }
  .pal-topbar-util { padding: 3px 8px; font-size: 11.5px; }
}

/* ─── 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: rgba(255, 255, 255, 0.92) !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);
}
body.dark-theme .pal-nav { background: rgba(11, 11, 15, 0.92) !important; }
.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: 22px;
}
.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; }

/* Action icons (account, wishlist, cart) */
.pal-nav-actions .pal-icon-btn,
.pal-nav-actions .pal-action-pill {
  width: 42px; height: 42px;
  border-radius: var(--mv2-r-pill);
  background: var(--mv2-surface-alt);
  border: 0;
  transition: all var(--mv2-tr);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
}
.pal-nav-actions .pal-icon-btn:hover,
.pal-nav-actions .pal-action-pill:hover {
  background: var(--mv2-accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--mv2-shadow-3);
}
.pal-nav-actions .pal-icon-badge {
  position: absolute; top: -2px; right: -2px;
  min-width: 18px; height: 18px;
  background: var(--mv2-accent-2);
  color: #fff;
  border-radius: var(--mv2-r-pill);
  font-size: 10px; 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, #0F172A 0%, #1E293B 100%) !important;
  position: relative;
}
.pal-hero-slider::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.15), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(245, 158, 11, 0.10), 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: clamp(2.5rem, 6vw, 4.5rem) !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: clamp(1.05rem, 1.6vw, 1.25rem) !important;
  font-weight: 400;
  max-width: 620px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.2);
}
.pal-hero-cta {
  padding: 14px 28px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  border-radius: var(--mv2-r-pill) !important;
  background: #fff !important;
  color: var(--mv2-accent) !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  transition: all var(--mv2-tr) !important;
}
.pal-hero-cta:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 40px rgba(0,0,0,0.25);
  background: var(--mv2-accent) !important;
  color: #fff !important;
}
.pal-hero-cta i { transition: transform var(--mv2-tr); }
.pal-hero-cta:hover i { transform: translateX(4px); }

.pal-hero-arrow {
  width: 52px !important; height: 52px !important;
  background: rgba(255,255,255,0.15) !important;
  color: #fff !important;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.25) !important;
  box-shadow: var(--mv2-shadow-3) !important;
  transition: all var(--mv2-tr) !important;
}
.pal-hero-arrow:hover {
  background: #fff !important;
  color: var(--mv2-text) !important;
  transform: translateY(-50%) scale(1.08);
}

.pal-hero-dot { width: 8px !important; height: 8px !important; transition: all var(--mv2-tr) !important; }
.pal-hero-dot.is-active { width: 32px !important; background: linear-gradient(90deg, #fff, rgba(255,255,255,0.6)) !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; }

.pal-section-title,
.pal-cats-title,
.pal-products-title,
.pal-testimonials-title,
.pal-advantages-title {
  font-family: var(--mv2-font-serif) !important;
  font-size: clamp(1.875rem, 3vw, 2.75rem) !important;
  font-weight: 700 !important;
  letter-spacing: -0.025em !important;
  margin-bottom: 12px !important;
  position: relative;
  display: inline-block;
}
.pal-section-subtitle,
.pal-cats-subtitle,
.pal-products-subtitle,
.pal-testimonials-subtitle {
  font-size: 16px !important;
  color: var(--mv2-text-muted) !important;
  max-width: 580px;
  margin: 0 auto var(--mv2-sp-7) !important;
  line-height: 1.65;
}

/* Petits "eyebrow" labels au-dessus des titres */
.pal-section-eyebrow {
  display: inline-block;
  padding: 4px 14px;
  background: var(--mv2-accent-soft);
  color: var(--mv2-accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--mv2-r-pill);
  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: rgba(255,255,255,0.96);
  -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: #fff;
  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: #fff;
  font-size: 11px;
  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: linear-gradient(135deg, #DC2626, #F59E0B);
}
.pal-product-badge.is-new {
  background: linear-gradient(135deg, #10B981, #059669);
}

.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: #F59E0B; font-size: 13px; gap: 3px; }

/* Add to cart in card */
.pal-product .btn-pal-primary,
.pal-product-card .btn-pal-primary,
.pal-product-add-cart {
  width: 100%;
  padding: 10px 16px !important;
  border-radius: var(--mv2-r-md) !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: var(--mv2-text) !important;
  color: #fff !important;
  border: 0 !important;
  transition: all var(--mv2-tr) !important;
  margin-top: 12px;
}
.pal-product .btn-pal-primary:hover,
.pal-product-card .btn-pal-primary:hover,
.pal-product-add-cart:hover {
  background: var(--mv2-accent) !important;
  transform: translateY(-1px);
  box-shadow: var(--mv2-shadow-3);
}

/* ════════════════════════════════════════════════════════════════ */
/*  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: #fff;
}
.pal-cat-card-title {
  font-size: 17px !important; font-weight: 700 !important;
  color: #fff !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: 28px !important;
  margin: 0 auto var(--mv2-sp-4) !important;
}
.pal-advantage-title {
  font-size: 17px !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: #fff !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%, rgba(255,255,255,0.15), transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(255,255,255,0.1), transparent 50%);
  pointer-events: none;
}
.pal-newsletter > * { position: relative; z-index: 1; }
.pal-newsletter-title { color: #fff !important; font-family: var(--mv2-font-serif); font-size: 2.25rem; }
.pal-newsletter-sub { color: rgba(255,255,255,0.9); margin-bottom: 32px; }
.pal-newsletter-form {
  display: flex; gap: 8px; max-width: 480px; margin: 0 auto;
  background: rgba(255,255,255,0.15);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 6px;
  border-radius: var(--mv2-r-pill);
  border: 1px solid rgba(255,255,255,0.25);
}
.pal-newsletter-form input {
  flex: 1; border: 0; background: transparent;
  padding: 10px 16px; color: #fff;
  font-size: 14px;
}
.pal-newsletter-form input::placeholder { color: rgba(255,255,255,0.7); }
.pal-newsletter-form input:focus { outline: 0; }
.pal-newsletter-form button {
  padding: 10px 24px;
  background: #fff;
  color: var(--mv2-accent);
  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: 0 8px 24px rgba(0,0,0,0.2);
}

/* ════════════════════════════════════════════════════════════════ */
/*  8B. NEWSLETTER BANNER — pleine largeur avant le footer           */
/* ════════════════════════════════════════════════════════════════ */
.pal-newsletter-banner {
  position: relative;
  padding: var(--mv2-sp-9) 0 !important;
  background:
    linear-gradient(135deg, #0B0F1E 0%, #161B2D 50%, #1E1B3C 100%);
  color: #fff;
  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%, rgba(59, 130, 246, 0.22), transparent 50%),
    radial-gradient(circle at 85% 70%, rgba(245, 158, 11, 0.18), transparent 50%),
    radial-gradient(circle at 50% 100%, rgba(124, 58, 237, 0.20), transparent 60%);
  pointer-events: none;
}
.pal-newsletter-banner::after {
  /* Pattern décoratif subtil */
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.05) 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: 991px) {
  .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: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 12px;
  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: 991px) {
  .pal-newsletter-banner-eyebrow { align-self: center; }
}
.pal-newsletter-banner-title {
  font-family: var(--mv2-font-serif);
  font-size: clamp(1.875rem, 3.8vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: #fff;
  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: rgba(255, 255, 255, 0.78);
  margin: 0;
  max-width: 520px;
}
@media (max-width: 991px) {
  .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: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  -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: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.08);
}
.pal-newsletter-banner-icon {
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.65);
  font-size: 18px;
  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: #fff;
  font-size: 15px;
  font-family: var(--mv2-font-sans);
  min-width: 0;
}
.pal-newsletter-banner-field input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.pal-newsletter-banner-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: #fff;
  color: #0B0F1E;
  border: 0;
  border-radius: var(--mv2-r-pill);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.01em;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: all var(--mv2-tr);
  flex-shrink: 0;
}
.pal-newsletter-banner-btn:hover {
  background: #F59E0B;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(245, 158, 11, 0.4);
}
.pal-newsletter-banner-btn i {
  transition: transform var(--mv2-tr);
}
.pal-newsletter-banner-btn:hover i { transform: translateX(4px); }

.pal-newsletter-banner-msg {
  font-size: 13.5px;
  min-height: 18px;
  color: rgba(255, 255, 255, 0.9);
  padding: 0 8px;
}
.pal-newsletter-banner-msg.is-success {
  color: #10B981;
  font-weight: 500;
}
.pal-newsletter-banner-msg.is-error {
  color: #FCA5A5;
  font-weight: 500;
}
.pal-newsletter-banner-trust {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  padding: 0 8px;
}
.pal-newsletter-banner-trust i { color: #10B981; }
@media (max-width: 991px) {
  .pal-newsletter-banner-trust { justify-content: center; }
}

/* Mobile : stack input + button verticalement */
@media (max-width: 540px) {
  .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-btn {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
  }
}

/* ════════════════════════════════════════════════════════════════ */
/*  9. FOOTER — modern dark, espacement aéré                         */
/* ════════════════════════════════════════════════════════════════ */
.pal-footer {
  background: linear-gradient(180deg, #0F172A 0%, #020617 100%) !important;
  color: #CBD5E1 !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: 991px) {
  .pal-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .pal-footer-grid { grid-template-columns: 1fr; gap: 32px !important; }
}
.pal-footer-title {
  color: #fff !important;
  font-size: 14px !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: #94A3B8 !important;
  font-size: 14px;
  padding: 5px 0;
  text-decoration: none;
  transition: all var(--mv2-tr);
}
.pal-footer-link:hover {
  color: #fff !important;
  transform: translateX(4px);
}
.pal-footer-brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mv2-font-serif);
  font-size: 22px;
  font-weight: 700;
  color: #fff !important;
  margin-bottom: 14px;
}
.pal-footer-about {
  color: #94A3B8 !important;
  font-size: 14px;
  line-height: 1.7;
}
.pal-footer-payments {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  margin-top: 24px;
}
.pal-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
  margin-top: 16px;
  font-size: 13px;
  color: #64748B;
  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: rgba(255,255,255,0.08);
  color: #fff !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: 0 8px 20px rgba(59, 130, 246, 0.4);
}

/* Newsletter du footer */
.pal-footer-newsletter form {
  display: flex; gap: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--mv2-r-pill);
  padding: 4px;
}
.pal-footer-newsletter input {
  background: transparent;
  border: 0;
  padding: 8px 14px;
  color: #fff;
  flex: 1;
  font-size: 13px;
  outline: 0;
}
.pal-footer-newsletter input::placeholder { color: #64748B; }
.pal-footer-newsletter button {
  background: var(--mv2-accent-2);
  color: #fff;
  border: 0;
  padding: 8px 16px;
  border-radius: var(--mv2-r-pill);
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
}

/* ════════════════════════════════════════════════════════════════ */
/* 10. BOUTONS & FORMS — modern partout                              */
/* ════════════════════════════════════════════════════════════════ */
.btn-pal {
  font-family: var(--mv2-font-sans) !important;
  font-weight: 600 !important;
  letter-spacing: -0.005em !important;
  border-radius: var(--mv2-r-md) !important;
  transition: all var(--mv2-tr) !important;
  padding: 10px 22px !important;
}
.btn-pal-primary {
  background: var(--mv2-text) !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow: var(--mv2-shadow-2);
}
.btn-pal-primary:hover {
  background: var(--mv2-accent) !important;
  transform: translateY(-2px);
  box-shadow: var(--mv2-shadow-3);
}
.btn-pal-lg { padding: 14px 32px !important; font-size: 15px !important; }
.btn-pal-light {
  background: var(--mv2-surface-alt) !important;
  color: var(--mv2-text) !important;
  border: 1px solid var(--mv2-border) !important;
}
.btn-pal-light:hover {
  background: var(--mv2-surface) !important;
  border-color: var(--mv2-accent) !important;
  color: var(--mv2-accent) !important;
}

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

/* ════════════════════════════════════════════════════════════════ */
/* 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: 768px) {
  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: clamp(2rem, 8vw, 3rem) !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, ...).
   ========================================================================== */

:root {
  /* ── Neutres dérivés de la palette marchand (jamais figés) ────────────── */
  --rd-surface-2: color-mix(in srgb, var(--text) 4%, var(--surface));
  --rd-line:      color-mix(in srgb, var(--text) 11%, var(--bg));
  --rd-line-soft: color-mix(in srgb, var(--text) 6%, var(--bg));
  --rd-muted:     var(--text-secondary);
  --rd-faint:     color-mix(in srgb, var(--text-secondary) 70%, var(--bg));

  /* ── Teintes d'accent dérivées de la marque ──────────────────────────── */
  --rd-accent:        var(--primary);
  --rd-accent-ink:    #ffffff;
  --rd-accent-600:    color-mix(in srgb, var(--primary) 82%, #000);
  --rd-accent-tint:   color-mix(in srgb, var(--primary) 9%,  var(--surface));
  --rd-accent-tint-2: color-mix(in srgb, var(--primary) 16%, var(--surface));
  --rd-accent-glow:   color-mix(in srgb, var(--primary) 38%, transparent);
  --rd-star:          #e8a317;
  --rd-good:          var(--success, #1c8a5b);

  /* ── Élévation feutrée, en couches ───────────────────────────────────── */
  --rd-sh-1: 0 1px 2px color-mix(in srgb, var(--text) 5%, transparent), 0 1px 3px color-mix(in srgb, var(--text) 6%, transparent);
  --rd-sh-2: 0 6px 16px color-mix(in srgb, var(--text) 9%, transparent), 0 2px 6px color-mix(in srgb, var(--text) 6%, transparent);
  --rd-sh-3: 0 18px 44px color-mix(in srgb, var(--text) 14%, transparent), 0 6px 14px color-mix(in srgb, var(--text) 8%, transparent);

  /* ── Rayons & transitions ────────────────────────────────────────────── */
  --rd-r:    10px;
  --rd-r-sm: 6px;
  --rd-pill: 999px;
  --rd-t:    .28s cubic-bezier(.22,.61,.36,1);

  /* ── Re-branchement de store-premium (--c-*) sur la marque + neutres ──── */
  --c-brand:      var(--primary);
  --c-brand-2:    var(--primary);
  --c-brand-soft: var(--rd-accent-tint);
  --c-bg:         var(--surface);
  --c-bg-alt:     var(--rd-surface-2);
  --c-bg-soft:    var(--rd-surface-2);
  --c-text:       var(--text);
  --c-text-muted: var(--text-secondary);
  --c-text-soft:  var(--rd-faint);
  --c-border:     var(--rd-line);
  --c-border-soft:var(--rd-line-soft);

  /* ── POLICES : un seul jeu, celui du thème (audit BUG-003) ───────────────
     Les trois systèmes nommaient leurs polices différemment et DEUX d'entre
     eux figeaient « Inter » en dur, hors de toute configuration :

       · store-premium  : --font-sans / --font-display = "Inter" en dur ;
       · modern-v2      : --mv2-font-sans / --mv2-font-serif, qui chaînent
                          bien sur --font-body / --font-heading mais
                          retombent sur Georgia puis « Times New Roman » ;
       · le gabarit      : --font-body / --font-heading, les seules pilotées
                          par le constructeur.

     Conséquence observée : la police des titres choisie par le marchand
     n'était jamais appliquée par store-premium, et le repli serif de
     modern-v2 donnait le rendu « Times New Roman » du rapport d'audit.
     Les deux jeux concurrents sont désormais DÉRIVÉS du thème. */
  --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;
  /* Plus de repli Georgia / Times New Roman : le « serif » de modern-v2 est
     la police de TITRE du marchand, qui n'a aucune raison d'être serif. */
  --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;

  /* ── Re-branchement de modern-v2 (--mv2-*) ────────────────────────────── */
  --mv2-bg:          var(--bg);
  --mv2-surface:     var(--surface);
  --mv2-surface-alt: var(--rd-surface-2);
  --mv2-text:        var(--text);
  --mv2-text-muted:  var(--text-secondary);
  --mv2-border:      var(--rd-line);
  --mv2-border-soft: var(--rd-line-soft);
  --mv2-accent:      var(--primary);
  --mv2-accent-2:    var(--primary);
  --mv2-accent-soft: var(--rd-accent-tint);
}

/* ── Mode sombre : on garde la MARQUE, on réécrit les neutres ───────────── */
body.dark-theme {
  --bg:             #0E1012;
  --surface:        #16191C;
  --text:           #ECEEF1;
  --text-secondary: #9BA1A9;
  /* Accent éclairci pour rester lisible sur fond sombre */
  --primary:        color-mix(in srgb, var(--brand) 78%, #ffffff);
  --rd-accent-600:  color-mix(in srgb, var(--brand) 60%, #ffffff);
  --rd-accent-ink:  #130a07;
  --rd-surface-2:   #1C2024;
  --rd-line:        #262B30;
  --rd-line-soft:   #1E2227;
  --rd-faint:       #6B727A;
  --rd-sh-1: 0 1px 2px rgba(0,0,0,.4);
  --rd-sh-2: 0 6px 18px rgba(0,0,0,.45);
  --rd-sh-3: 0 20px 48px rgba(0,0,0,.6);
  color: var(--text);
}
body.dark-theme { background: var(--bg); }

/* ========================================================================== */
/*  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 { transition: background var(--rd-t), color var(--rd-t); border-radius: var(--rd-pill); }
.pal-icon-btn:hover { background: var(--rd-surface-2); color: var(--primary); }
.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: color-mix(in srgb, var(--bg) 88%, #fff);
}

/* 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                                                                    */
/* ========================================================================== */
.btn-pal {
  border-radius: var(--rd-pill);
  font-weight: 600;
  transition: transform var(--rd-t), background var(--rd-t), box-shadow var(--rd-t), color var(--rd-t), border-color var(--rd-t);
}
.btn-pal-primary {
  background: var(--primary) !important;
  color: var(--rd-accent-ink) !important;
  box-shadow: 0 6px 18px var(--rd-accent-glow);
}
.btn-pal-primary:hover {
  background: var(--rd-accent-600) !important;
  box-shadow: 0 10px 28px var(--rd-accent-glow);
  transform: translateY(-1px);
}
.btn-pal-dark {
  background: var(--text) !important; color: var(--bg) !important;
}
.btn-pal-dark:hover { background: color-mix(in srgb, var(--text) 86%, var(--primary)) !important; color: var(--bg) !important; transform: translateY(-1px); }
.btn-pal-light {
  background: var(--surface) !important; color: var(--text) !important;
  border: 1px solid var(--rd-line); box-shadow: var(--rd-sh-1);
}
.btn-pal-light:hover { box-shadow: var(--rd-sh-2); transform: translateY(-1px); border-color: var(--rd-line); }
.btn-pal-outline { border: 1px solid var(--rd-line); color: var(--text) !important; background: transparent !important; }
.btn-pal-outline:hover { background: var(--text) !important; color: var(--bg) !important; border-color: var(--text); }
.btn-pal-ghost:hover { background: var(--rd-surface-2) !important; color: var(--primary) !important; }
.btn-pal-lg { padding: 15px 28px; font-size: 15.5px; border-radius: var(--rd-pill); }
.btn-pal-sm { border-radius: var(--rd-pill); }

/* ========================================================================== */
/*  EN-TÊTE DE SECTION (produits / catégories)                                 */
/* ========================================================================== */
.pal-section-sm, .pal-cat-section { padding-block: clamp(44px, 6vw, 84px); }
.pal-section-title, .pal-cat-title {
  font-size: clamp(22px, 3vw, 32px); font-weight: 700; letter-spacing: -.025em;
  color: var(--text);
}
.pal-cat-eyebrow, .pal-section-eyebrow {
  font-size: 11.5px; font-weight: 600; letter-spacing: .16em; 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); }

/* ========================================================================== */
/*  GRILLE & CARTES PRODUIT — le gros gain visuel                              */
/* ========================================================================== */
.pal-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 22px;
}
@media (max-width: 576px) { .pal-products-grid { grid-template-columns: 1fr 1fr; gap: 14px; } }

.product-card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--rd-line);
  border-radius: var(--rd-r);
  overflow: hidden;
  color: var(--text);
  transition: transform var(--rd-t), box-shadow var(--rd-t), border-color var(--rd-t);
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--rd-sh-3);
  border-color: transparent;
}
.product-card.is-out-of-stock { opacity: .96; }

/* Image */
.product-img-wrap {
  position: relative; aspect-ratio: 1; overflow: hidden;
  background: var(--rd-surface-2);
}
.product-img, .product-img-alt {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s cubic-bezier(.22,.61,.36,1), opacity var(--rd-t);
}
.product-img-alt { opacity: 0; }
.product-card:hover .product-img { transform: scale(1.07); }
.product-card:hover .product-img-alt { opacity: 1; transform: scale(1.07); }

/* Badge unique */
.product-badge {
  position: absolute; top: 12px; left: 12px; z-index: 3;
  font-size: 11px; font-weight: 700; letter-spacing: .03em;
  padding: 5px 10px; border-radius: var(--rd-pill); line-height: 1;
}
.product-badge.sale { background: var(--primary); color: var(--rd-accent-ink); }
.product-badge.new  { background: var(--text); color: var(--bg); }
.product-badge.feat { background: var(--rd-accent-tint-2); color: var(--primary); }
.product-badge.out  { background: color-mix(in srgb, var(--text) 55%, var(--bg)); color: var(--bg); }

/* Favori / comparer : apparition au survol */
.product-fav-btn, .product-cmp-btn {
  position: absolute; z-index: 3; right: 10px;
  width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: var(--text); display: grid; place-items: center;
  opacity: 0; transform: translateY(-6px);
  transition: opacity var(--rd-t), transform var(--rd-t), color var(--rd-t);
  box-shadow: var(--rd-sh-1);
}
.product-fav-btn { top: 10px; }
.product-cmp-btn { top: 54px; }
.product-card:hover .product-fav-btn,
.product-card:hover .product-cmp-btn { opacity: 1; transform: translateY(0); }
.product-fav-btn:hover, .product-cmp-btn:hover { color: var(--primary); }
.product-fav-btn.is-active, .product-fav-btn.on { color: var(--primary); opacity: 1; transform: none; }

/* Barre d'actions coulissante */
.product-actions {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 3;
  display: flex; gap: 8px;
  transform: translateY(16px); opacity: 0;
  transition: opacity var(--rd-t), transform var(--rd-t);
}
.product-card:hover .product-actions { transform: translateY(0); opacity: 1; }
.product-add-btn {
  flex: 1; border: 0; cursor: pointer;
  background: var(--text); color: var(--bg);
  border-radius: var(--rd-pill); padding: 11px 14px;
  font-weight: 600; font-size: 13.5px; line-height: 1;
  transition: background var(--rd-t), color var(--rd-t);
}
.product-add-btn:hover:not(.is-disabled) { background: var(--primary); color: var(--rd-accent-ink); }
.product-add-btn.is-disabled { background: color-mix(in srgb, var(--text) 30%, var(--bg)); cursor: not-allowed; }

/* Corps */
.product-info-wrap { padding: 15px 16px 16px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.product-card-cat {
  font-size: 11.5px; letter-spacing: .055em; text-transform: uppercase;
  color: var(--rd-faint); margin: 0;
}
.product-card-title {
  font-size: 15px; font-weight: 600; letter-spacing: -.01em; line-height: 1.35;
  color: var(--text); margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card-rating { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.product-card-rating .bi-star-fill, .product-card-rating .bi-star-half { color: var(--rd-star); }
.product-card-rating .bi-star { color: color-mix(in srgb, var(--text) 22%, var(--bg)); }
.product-card-rating-count { color: var(--rd-faint); }
.product-card-rating-empty { color: var(--rd-faint); font-size: 11.5px; }
.product-card-stock { font-size: 12px; margin: 2px 0 0; display: flex; align-items: center; gap: 5px; }
.product-card-stock-low { color: var(--warning, #c2751a); }
.product-card-stock-ok  { color: var(--rd-good); }
.product-card-stock-out { color: var(--rd-faint); }
.product-card-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: baseline; gap: 9px; }
.product-card-price {
  font-size: 16.5px; font-weight: 700; letter-spacing: -.01em; color: var(--text);
  font-variant-numeric: tabular-nums;
}
.product-card-old-price {
  font-size: 13px; color: var(--rd-faint); text-decoration: line-through;
  font-variant-numeric: tabular-nums;
}

/* ========================================================================== */
/*  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: 46px; height: 46px; 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: #fff; 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, #ef4444) 12%, var(--surface));
  color: var(--error, #ef4444); 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: 13.5px; 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: 1200px) {
  .pal-catbar-link { padding: 0 10px; font-size: 13.5px; }
}

/* ========================================================================== */
/*  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: clamp(1.35rem, 2.5vw, 1.9rem); font-weight: 800;
  letter-spacing: -.02em; margin: 0 0 24px; color: var(--text);
  text-align: center;
}
.pal-pdl-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary); color: #fff;
  font-weight: 700; padding: 12px 26px; border-radius: var(--rd-pill);
  text-decoration: none; border: 0; cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.pal-pdl-btn:hover {
  color: #fff; transform: translateY(-1px);
  box-shadow: 0 10px 24px var(--rd-accent-glow);
}

/* ========================================================================== */
/*  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, 999px);
  background: color-mix(in srgb, var(--footer-text, #cbd5e1) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--footer-text, #cbd5e1) 28%, transparent);
  color: var(--footer-text, #cbd5e1);
  font-size: 12.5px; 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, #1f2937) 7%, transparent);
  border-color: color-mix(in srgb, var(--text, #1f2937) 18%, transparent);
  color: var(--text, #1f2937);
}
@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .pal-pay-chip { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.28); }
  .cart-payment-icons .pal-pay-chip { background: rgba(0,0,0,.05); border-color: rgba(0,0,0,.15); }
}

/* ========================================================================== */
/*  STOCK — « Me prevenir » et plafonds de quantite (audit BUG-001)           */
/* ========================================================================== */
.product-add-btn.product-notify-btn {
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  color: var(--primary);
  border: 1px solid color-mix(in srgb, var(--primary) 40%, transparent);
  font-weight: 700;
}
.product-add-btn.product-notify-btn:hover {
  background: var(--primary); color: #fff;
}
.product-card.is-out-of-stock .product-img { opacity: .62; }

.cart-row-stock {
  grid-area: auto;
  font-size: 12px; font-weight: 600;
  color: #b45309;
  margin-top: 4px;
}
body.dark-theme .cart-row-stock { color: #fbbf24; }

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

#palPdNotify {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  flex: 1 1 auto; min-height: 48px; padding: 0 22px;
  border-radius: var(--rd-pill, 999px); border: 1px solid var(--primary);
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  color: var(--primary); font-weight: 700; cursor: pointer;
}
#palPdNotify:hover { background: var(--primary); color: #fff; }

/* 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, #f59e0b) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--warning, #f59e0b) 40%, transparent);
  border-radius: 10px; font-size: 13.5px; font-weight: 600;
  color: var(--text, #1f2937);
}
.pal-pay-instructions {
  display: block; margin-top: 6px; padding: 8px 10px;
  background: var(--surface, #f8fafc);
  border-radius: 8px; font-size: 12.5px; white-space: pre-line;
  color: var(--text-secondary, #6b7280);
}
@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .product-add-btn.product-notify-btn { background: rgba(0,0,0,.05); }
  .pal-pay-empty { background: rgba(245,158,11,.14); border-color: rgba(245,158,11,.4); }
  #palPdNotify { background: rgba(0,0,0,.05); }
}

/* ==========================================================================
   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 ». */
.pal-theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; padding: 0;
  border-radius: 999px; border: 1px solid var(--rd-line);
  background: transparent; color: var(--text);
  cursor: pointer; transition: background var(--rd-t), color var(--rd-t);
}
.pal-theme-toggle:hover { background: var(--rd-accent-tint); color: var(--primary); }
body.dark-theme .pal-theme-toggle { color: var(--text); border-color: var(--rd-line); }

/* ==========================================================================
   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, var(--surface));
    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 button {
    flex: 0 0 auto; width: 42px; height: 42px; border: 0;
    border-radius: 50%; background: var(--primary); color: var(--rd-accent-ink);
    display: inline-flex; align-items: center; justify-content: center;
  }

  /* ── 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: 12px; 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; }

  /* ── La barre d'achat collante ne chevauche plus rien ──────────────── */
  .pal-pd-sticky-mobile {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: var(--surface); border-top: 1px solid var(--rd-line);
    box-shadow: 0 -6px 18px color-mix(in srgb, var(--text) 10%, transparent);
  }
  /* On REND sa hauteur au contenu : sans cette reserve, la barre recouvre le
     dernier bloc de la page — c'est exactement le chevauchement releve. */
  body.pal-has-sticky-buy { padding-bottom: 86px; }
}

/* ==========================================================================
   MODELE DE CARTE « D — MARKETPLACE » (audit du 12/11/2026, partie B)
   --------------------------------------------------------------------------
   Carte DENSE : image carree 1:1, titre sur une ligne, prix en gros, ventes
   reelles et rang dans la categorie. L'ecart avec la reference tenait a la
   densite — les cartes faisaient 390 x 480 px pour 2 colonnes a 1150 px, la
   ou une place de marche en montre cinq.

   Les mentions de ventes et de rang ne sont RENDUES que si le serveur a des
   chiffres reels a leur donner : le gabarit ne les affiche pas du tout
   autrement (voir `product-card.blade.php`). Ce CSS ne cree donc jamais une
   ligne vide.
   ========================================================================== */
.product-card-model-d {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--rd-line-soft);
  border-radius: var(--rd-r);
  overflow: hidden;
  transition: box-shadow var(--rd-t), transform var(--rd-t), border-color var(--rd-t);
}
.product-card-model-d:hover {
  box-shadow: var(--rd-sh-2);
  transform: translateY(-2px);
  border-color: var(--rd-line);
}

/* Image CARREE : le portrait 3:4 laissait de grands vides sans photo. */
.product-card-model-d .product-img-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--rd-surface-2);
}
.product-card-model-d .product-img,
.product-card-model-d .product-img-alt {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
/* Seconde image au survol : elle existe deja dans le gabarit (`product-img-alt`),
   aucun des modeles precedents ne la revelait. */
.product-card-model-d .product-img-alt { opacity: 0; transition: opacity var(--rd-t); }
.product-card-model-d:hover .product-img-alt { opacity: 1; }

.product-card-model-d .product-info-wrap { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; }

/* Titre sur UNE ligne (deux sur mobile) : une place de marche montre plus de
   produits, pas plus de texte. */
.product-card-model-d .product-card-title {
  font-size: 13.5px; line-height: 1.35; font-weight: 500;
  margin: 0; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 767.98px) {
  .product-card-model-d .product-card-title { -webkit-line-clamp: 2; font-size: 13px; }
}

/* Prix en GROS : c'est l'information que l'oeil cherche en premier. */
.product-card-model-d .product-card-price {
  font-size: 19px; font-weight: 800; letter-spacing: -.02em;
  color: var(--text); line-height: 1.15;
}
.product-card-model-d .product-card-old-price {
  font-size: 12.5px; font-weight: 500; margin-right: 6px;
  color: var(--rd-faint); text-decoration: line-through;
}

/* Ventes et classement — REELS, et seulement au-dela des seuils. */
.product-card-sales {
  margin: 0; font-size: 12px; font-weight: 600;
  color: var(--text-secondary);
}
.product-card-rank {
  margin: 0; font-size: 11.5px; font-weight: 600;
  color: var(--primary);
  display: inline-flex; align-items: center; gap: 4px;
}
.product-card-rank i { font-size: 12px; }

/* Bouton panier ROND, pose sur l'image. */
.product-card-model-d .product-actions {
  position: absolute; right: 8px; bottom: 8px;
  display: flex; flex-direction: column; gap: 6px;
  opacity: 0; transform: translateY(6px);
  transition: opacity var(--rd-t), transform var(--rd-t);
}
.product-card-model-d:hover .product-actions,
.product-card-model-d:focus-within .product-actions { opacity: 1; transform: none; }
.product-card-model-d .product-add-btn {
  width: 38px; height: 38px; padding: 0;
  border-radius: 50%; border: 0;
  background: var(--primary); color: var(--rd-accent-ink);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: var(--rd-sh-2); cursor: pointer;
}
.product-card-model-d .product-add-btn .add-default { display: none; }
.product-card-model-d .product-add-btn::before {
  content: "\f24f"; /* bi-plus-lg */
  font-family: "bootstrap-icons"; font-size: 15px; font-weight: 700;
}
/* « Me prevenir » garde son libelle : une icone seule ne dirait pas quoi. */
.product-card-model-d .product-notify-btn {
  width: auto; height: 32px; padding: 0 12px;
  border-radius: var(--rd-pill); font-size: 11.5px;
}
.product-card-model-d .product-notify-btn::before { content: none; }
.product-card-model-d .product-notify-btn .add-default,
.product-card-model-d .product-notify-btn span { display: inline; }

/* Les touches de l'ecran tactile n'ont pas de survol : on montre le bouton. */
@media (hover: none) {
  .product-card-model-d .product-actions { opacity: 1; transform: none; }
  .product-card-model-d .product-img-alt { display: none; }
}

/* Grille dense : 5 colonnes au bureau, 3 en tablette, 2 en mobile. */
.pal-grid-marketplace {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(var(--pal-cols-mobile, 2), minmax(0, 1fr));
}
@media (min-width: 768px) {
  .pal-grid-marketplace { grid-template-columns: repeat(var(--pal-cols-tablet, 3), minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
  .pal-grid-marketplace { grid-template-columns: repeat(var(--pal-cols-desktop, 5), minmax(0, 1fr)); }
}

/* ============================================================================
   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: clamp(18px, 2.4vw, 24px);
  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: 10px;
  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: 11px;
  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: clamp(18px, 2.4vw, 24px);
  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; }

.pal-feed-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border: 1px solid var(--rd-line);
  border-radius: var(--rd-pill);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--rd-t), border-color var(--rd-t), color var(--rd-t);
}
.pal-feed-chip:hover { border-color: var(--rd-accent); }
.pal-feed-chip:focus-visible {
  outline: 2px solid var(--rd-accent);
  outline-offset: 2px;
}
.pal-feed-chip small {
  font-size: 11px;
  font-weight: 600;
  color: var(--rd-muted);
}
.pal-feed-chip.is-active {
  background: var(--rd-accent);
  border-color: var(--rd-accent);
  color: var(--rd-accent-ink);
}
.pal-feed-chip.is-active small {
  /* Hérite de l'encre de l'accent, atténuée : du gris clair sur un fond
     accentué descendrait sous 4.5:1. */
  color: color-mix(in srgb, var(--rd-accent-ink) 78%, transparent);
}

.pal-feed-foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-top: 24px;
}
.pal-feed-more {
  padding: 11px 28px;
  border: 1px solid var(--rd-line);
  border-radius: var(--rd-pill);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--rd-t), border-color var(--rd-t);
}
.pal-feed-more:hover:not(:disabled) {
  background: var(--rd-accent-tint);
  border-color: var(--rd-accent);
}
.pal-feed-more:disabled { opacity: .55; cursor: default; }
.pal-feed-more:focus-visible { outline: 2px solid var(--rd-accent); outline-offset: 2px; }

.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-mix(in srgb, var(--text) 92%, var(--bg)));
  color: var(--secondary-ink, #ffffff);
  font-size: 12.5px;
  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: 767px) {
  .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, #ffffff);
  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, #ffffff);
}
.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, #ffffff 14%, transparent);
  border-color: color-mix(in srgb, #ffffff 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, #ffffff 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, #ffffff);
  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, #ffffff);
  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, #ffffff 34%, transparent);
  border-radius: var(--rd-pill);
}
.pal-nav.header-model-4 .pal-search:focus-within {
  border-color: var(--primary-ink, #ffffff);
}
.pal-nav.header-model-4 .pal-search input {
  color: var(--text);
  font-size: 14.5px;
}
.pal-nav.header-model-4 .pal-search-icon { color: var(--rd-muted); }

@media (max-width: 991px) {
  .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, #ffffff 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, #ffffff);
  font-size: 13.5px;
  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, #ffffff 16%, transparent);
  color: var(--primary-ink, #ffffff);
}
.pal-quick-link:focus-visible {
  outline: 2px solid var(--primary-ink, #ffffff);
  outline-offset: -2px;
}
.pal-quick-link i { font-size: 15px; }
.pal-quick-chev { font-size: 11px !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: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pal-quick-cat-count {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 600;
  color: var(--rd-muted);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 767px) {
  .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: 767px) {
  .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;
}

/* Au-dessus du WhatsApp : 56 px de pastille + 22 px de marge basse + 12 px
   d'écart = 90 px. */
.pal-top-btn.has-wa { bottom: 90px; }

@media (max-width: 576px) {
  .pal-top-btn { right: 16px; bottom: 16px; width: 40px; height: 40px; }
  /* 52 px de pastille mobile + 16 px de marge + 10 px d'écart = 78 px. */
  .pal-top-btn.has-wa { bottom: 78px; }
}

/* 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: 13.5px;
  font-weight: 600;
  color: var(--text);
}

@media (max-width: 575px) {
  .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: rgba(8, 10, 14, .94);
}
.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: rgba(255, 255, 255, .14);
  color: #ffffff;
  cursor: pointer;
  transition: background .15s;
}
.pal-pd-lb-close:hover,
.pal-pd-lb-nav:hover { background: rgba(255, 255, 255, .26); }
.pal-pd-lb-close:focus-visible,
.pal-pd-lb-nav:focus-visible {
  outline: 2px solid #ffffff;
  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: 22px;
}
.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: rgba(255, 255, 255, .14);
  color: #ffffff;
  font-size: 12.5px;
  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: 575px) {
  .pal-pd-lightbox { padding: 56px 8px; }
  .pal-pd-lb-nav { width: 40px; height: 40px; font-size: 19px; }
}

/* -- CTA pleine largeur -------------------------------------------------- */
.pal-pd-cta-full {
  width: 100%;
  margin-top: 10px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: var(--rd-r-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.pal-pd-cta-full:focus-visible { outline: 2px solid var(--rd-accent); outline-offset: 2px; }

/* WhatsApp garde sa couleur de marque : c'est un repère que les clients de la
   zone identifient immédiatement, et l'encre blanche y tient 4.5:1. */
.pal-pd-cta-wa {
  background: #1DA851;
  color: #ffffff;
}
.pal-pd-cta-wa:hover { background: #178F44; color: #ffffff; }

/* -- Barre d'achat mobile ------------------------------------------------ */
.pal-pd-sticky-wa {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: var(--rd-r-sm);
  background: #1DA851;
  color: #ffffff;
  text-decoration: none;
}
.pal-pd-sticky-wa:hover { background: #178F44; color: #ffffff; }
.pal-pd-sticky-wa:focus-visible { outline: 2px solid #ffffff; outline-offset: -3px; }

/* ##########################################################################
   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.
   ========================================================================== */
body,
body.dark-theme {
  /* calque 3 (redesign) */
  --rd-surface-2:     var(--surface-2);
  --rd-line:          var(--border);
  --rd-line-soft:     color-mix(in srgb, var(--border) 55%, var(--surface));
  --rd-muted:         var(--text-secondary);
  --rd-faint:         var(--muted);
  --rd-accent:        var(--primary);
  --rd-accent-ink:    var(--primary-ink);
  --rd-accent-600:    color-mix(in srgb, var(--primary) 86%, var(--text));
  --rd-accent-tint:   var(--brand-soft);
  --rd-accent-tint-2: color-mix(in srgb, var(--brand) 18%, var(--surface));
  --rd-accent-glow:   color-mix(in srgb, var(--brand) 32%, transparent);
  --rd-good:          var(--success-strong);

  /* calque 1 (premium, --c-*) — l'indigo d'un ancien theme (--c-brand-soft
     rgba(79,70,229,.08), --sh-brand) est remplace par la marque (UX-012). */
  --c-brand:        var(--primary);
  --c-brand-2:      var(--primary);
  --c-brand-soft:   var(--brand-soft);
  --c-primary:      var(--primary);
  --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:  color-mix(in srgb, var(--border) 55%, var(--surface));
  --c-success:      var(--success-strong);
  --c-danger:       var(--deal);
  --c-info:         var(--primary);
  --sh-brand:       0 10px 28px color-mix(in srgb, var(--brand) 22%, transparent);

  /* calque 2 (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: color-mix(in srgb, var(--border) 55%, var(--surface));
  --mv2-accent:      var(--primary);
  --mv2-accent-2:    var(--primary);
  --mv2-accent-soft: var(--brand-soft);

  /* carte produit (--pc-*) : la palette beige « parfumerie » (#8B7D6E a
     4,0:1, puis 2,37:1 sous l'opacite des ruptures) devient la palette du
     theme (LIS-002, UX-012). */
  --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(--rd-sh-2);

  /* Bootstrap : plus de bleu #0D6EFD hors charte (UX-009, UX-012). */
  --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);
}

/* ── 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 : seule l'image est atténuée (LIS-002) ──────── */
.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: grayscale(1); opacity: .6; }
.product-card .product-badge.out {
  background: var(--surface); color: var(--text); border: 1px solid var(--border);
}

/* ── 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; }
.pal-theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: transparent; border: 1px solid var(--border); color: var(--header-ink, var(--text));
}

/* ── 4.7  BOUTONS PLEINS DE MARQUE : encre calculee (LIS-001) ───────────── */
.btn-pal-primary, .btn-pal-primary:hover, .pal-ftab-btn.is-active,
.pal-cookie-btn-primary, .pal-drawer-link-cta, .pal-hero .btn-pal-primary,
.pal-icon-btn-badge, #cart-badge {
  color: var(--primary-ink) !important;
}
.btn-pal-primary, .pal-ftab-btn.is-active, .pal-cookie-btn-primary, .pal-drawer-link-cta { background: var(--primary) !important; border-color: var(--primary) !important; }
.pal-cookie-btn-ghost { background: transparent !important; color: inherit !important; border: 1px solid currentColor !important; }
.pal-ftab-btn { color: var(--text-2); }
/* 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, .pal-minicart-clear {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 13px; 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 EN BAS (refonte) : au centre sur mobile, a droite sur ordinateur ;
   a GAUCHE quand le tiroir est ouvert, pour ne jamais le recouvrir. */
.pal-flash {
  top: auto; bottom: 24px; right: 24px; left: auto;
  background: var(--surface); color: var(--text); border: 1px solid var(--border);
  transform: translateY(160%);
}
.pal-flash.is-show { transform: none; }
.pal-flash .text-muted { color: var(--text-2) !important; }
body.pal-mc-open .pal-flash { right: auto; left: 24px; }
@media (max-width: 767.98px) {
  .pal-flash, body.pal-mc-open .pal-flash { left: 16px; right: 16px; bottom: 16px; max-width: none; }
  body.pal-has-sticky-buy .pal-flash { bottom: 96px; }
}

/* ── 4.9  BARRE D'ACHAT MOBILE (BUG-004) ────────────────────────────────── */
@media (max-width: 767.98px) {
  .pal-pd-sticky-mobile {
    display: flex !important; align-items: center; gap: 12px;
    background: var(--surface); border-top: 1px solid var(--border); color: var(--text);
    transform: translateY(110%); transition: transform .2s ease; visibility: hidden;
  }
  .pal-pd-sticky-mobile.is-visible { transform: none; visibility: visible; }
  .pal-pd-sticky-mobile-price { color: var(--text) !important; }
  .pal-pd-sticky-mobile button { background: var(--primary) !important; color: var(--primary-ink) !important; min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) { .pal-pd-sticky-mobile { transition: none; } }

/* ── 4.10  FICHE PRODUIT (BUG-001, UX-003) ──────────────────────────────── */
.pal-pd-name, .pal-pd-price, .pal-bc-current, .pal-pd-prices { color: var(--text); }
.pal-pd-breadcrumb, .pal-pd-breadcrumb a { color: var(--text-2); }
#palPdAdd { background: var(--primary) !important; color: var(--primary-ink) !important; border-color: var(--primary) !important; }
#palPdNotify, .pal-pd-stock-notify {
  background: transparent !important; color: var(--primary) !important;
  border: 1.5px solid var(--primary) !important; white-space: nowrap;
}
.pal-pd-stock-notify { margin-top: 8px; }
.pal-pd-stock.is-low { color: color-mix(in srgb, var(--warning, #f59e0b) 30%, var(--text)); }
.pal-pd-meta { background: var(--surface-2); }
@media (max-width: 575.98px) {
  /* Favoris et comparer restent sur la ligne du bouton, a largeur egale. */
  .pal-pd-actions { display: grid !important; grid-template-columns: 1fr 48px 48px; gap: 8px; }
  .pal-pd-actions .pal-qty { grid-column: 1 / -1; }
  .pal-pd-actions > button { min-height: 48px; }
}

/* ── 4.11  CARTE PRODUIT : extrait (vue liste) ───────────────────────────── */
.product-card-desc {
  display: none; margin: 4px 0 6px; font-size: 13px; line-height: 1.45; color: var(--text-2);
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card-title { color: var(--pc-text); }
.product-card-cat { color: var(--muted); }
.product-card-price { color: var(--text); }
.product-card-old-price { color: var(--muted); }
.product-img-wrap { background: var(--surface-2); }

/* ── 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); }
.pal-drawer-foot .btn-pal.is-active { background: 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-pd-stock.is-out { color: var(--deal); background: color-mix(in srgb, var(--deal) 10%, var(--surface)); }
.pal-pd-stock.is-low { color: color-mix(in srgb, var(--warning, #f59e0b) 45%, var(--text)); background: color-mix(in srgb, var(--warning, #f59e0b) 12%, var(--surface)); }
.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: 11px; 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: 11px; 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 { bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important; }
  .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; }
}