/* ═══════════════════════════════════════════════
   MLR TECH — Mobile-first styles
   ═══════════════════════════════════════════════ */

/* ── Reset ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: .3px;
  color: var(--c-text);
  background: var(--c-white);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a  { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--font); border: none; background: none; }
input, select { font-family: var(--font); font-size: 16px; }
ul { list-style: none; }

/* ── Accessibility ──────────────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  clip: rect(0,0,0,0); overflow: hidden; white-space: nowrap;
}
:focus-visible {
  outline: 2px solid var(--c-black);
  outline-offset: 3px;
}

/* ═══════════════════════════════════════════════
   HEADER  (2 rangées — leboncoin style ; burger jusqu'à 1024px)
   ═══════════════════════════════════════════════ */
.header {
  position: sticky;            /* reste visible au scroll */
  top: 0;
  z-index: var(--z-header, 100);
  background: #000000;
  border-bottom: 1px solid #333;
  box-shadow: var(--shadow-md);
  transition: transform var(--t-med); /* slide doux pour l'auto-hide */
}
.header--hidden { transform: translateY(-100%); } /* masqué au scroll vers le bas */

.header-row { width: 100%; }
.header-container {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 12px;
  position: relative;
}

/* ── RANGÉE 1 : logo · recherche · actions ── */
.header-row-main > .header-container {
  flex-wrap: wrap;             /* mobile : la recherche bascule en 2e ligne */
  min-height: 60px;
  padding-top: 8px;
  padding-bottom: 8px;
  row-gap: 8px;
}

/* Menu burger (mobile / tablette) */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 11px;
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  order: 1;
}
.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: transform var(--t-med), opacity var(--t-med);
}
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Logo */
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  order: 2;
  margin-right: auto;          /* pousse les actions à droite (mobile) */
}
.logo img {
  width: 96px;
  height: auto;
  display: block;
}

/* Barre de recherche (centre, toujours visible) */
.header-search {
  order: 4;                    /* mobile : pleine largeur sur 2e ligne */
  flex: 1 0 100%;
  display: flex;
  align-items: center;
  height: 44px;
  background: #1a1a1a;
  border: 1px solid #555;
  border-radius: var(--radius);
  overflow: hidden;
}
.header-search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 14px;
  border: none;
  outline: none;
  background: transparent;
  color: #ffffff;
  font-size: 16px;
}
.header-search input::placeholder { color: #999; }
.header-search-btn {
  flex-shrink: 0;
  width: 48px; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a1a1a;
  color: #ffffff;
  border: none;
  border-left: 1px solid #333;
  cursor: pointer;
  transition: background var(--t-fast);
}
.header-search-btn:hover { background: #333; }

/* Actions : Favoris · Compte · Panier */
.header-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  order: 3;
  flex-shrink: 0;
}
.header-action {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 54px; height: 50px;
  padding: 4px 6px;
  color: #ffffff;
  background: none;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--t-fast);
}
.header-action:hover { background: #333; }
.header-action svg { display: block; }
.header-action-label {
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  color: #ffffff;
  white-space: nowrap;
}

.account-wrap { position: relative; display: flex; align-items: center; flex-shrink: 0; }

/* Pastille « connecté » (affichée par JS) */
.account-dot {
  position: absolute;
  top: 4px; right: 12px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e;
  border: 1.5px solid #000;
  display: none;
}
.account-dot.show { display: block; }

/* Badge compteur du panier (vert drapeau Madagascar) */
.cart-count {
  position: absolute;
  top: 0; right: 8px;
  display: none;               /* affiché par JS quand > 0 (flex) */
  align-items: center;
  justify-content: center;
  min-width: 18px; height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  background: #007e3a;         /* vert du drapeau malgache */
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  border: 1.5px solid #000;
}

/* Cœur Favoris (header) : contour rouge, label blanc */
.header-action--fav svg { stroke: #e11d2a; }
/* Pastille compteur favoris (header) */
.fav-count {
  position: absolute;
  top: 0; right: 8px;
  display: none;               /* affiché par JS quand > 0 (flex) */
  align-items: center;
  justify-content: center;
  min-width: 18px; height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  background: #e11d2a;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  border: 1.5px solid #000;
}

/* Menu déroulant compte (panneau blanc) */
.account-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 230px;
  max-width: calc(100vw - 16px);
  background: var(--c-white);
  color: var(--c-text);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  display: none;
  z-index: 150;
}
.account-menu.open { display: block; }
.account-menu .am-greeting {
  padding: 6px 12px 12px;
  font-size: 13px;
  color: var(--c-muted);
  border-bottom: 1px solid var(--c-border);
  margin-bottom: 6px;
}
.account-menu .am-greeting strong { display: block; color: var(--c-text); font-size: 15px; font-weight: 700; }
.account-menu a,
.account-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  text-align: left;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--c-text);
  background: none;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--t-fast);
}
.account-menu a:hover,
.account-menu button:hover { background: var(--c-bg); }
.account-menu .am-primary {
  background: var(--c-black);
  color: var(--c-white);
  justify-content: center;
  margin-bottom: 6px;
}
.account-menu .am-primary:hover { background: var(--c-accent); }
.account-menu .am-logout { color: var(--c-error); }

/* ── RANGÉE 2 : catégories · langue · devise ──
   Mobile : invisible (catégories + langue/devise dans le panneau burger).
   La <nav> reste un enfant mais devient un panneau fixe (voir .nav). */
.header-row-nav > .header-container {
  min-height: 0;
  padding-top: 0;
  padding-bottom: 0;
}

/* Navigation catégories — panneau latéral (mobile / tablette) */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 82%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: calc(var(--header-h) + 18px) 18px 24px;
  background: #000000;
  border-right: 1px solid #333;
  z-index: 95;
  transform: translateX(-100%);
  transition: transform var(--t-med);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.nav.open { transform: translateX(0); }
.nav-link {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  border-radius: var(--radius);
  transition: background var(--t-fast), color var(--t-fast);
}
.nav-link:hover,
.nav-link:focus-visible { background: #1a1a1a; }
.nav-link.active { background: #1a1a1a; }

/* Nav items avec sous-menus (mobile : accordéon) */
.nav-item {
  display: flex;
  flex-direction: column;
}
.nav-item > .nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.nav-caret {
  font-style: normal;
  font-size: 11px;
  margin-left: 8px;
  transition: transform var(--t-fast);
  flex-shrink: 0;
  opacity: .6;
}
.nav-item.open > .nav-link .nav-caret { transform: rotate(90deg); }
.nav-sub {
  display: none;
  flex-direction: column;
  margin: 4px 0 4px 14px;
  padding-left: 12px;
  border-left: 1px solid #333;
  gap: 0;
}
.nav-item.open > .nav-sub { display: flex; }
.nav-sub a {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 0 10px;
  font-size: 14px;
  font-weight: 400;
  color: rgba(255,255,255,.65);
  transition: background var(--t-fast), color var(--t-fast);
  border-radius: var(--radius);
}
.nav-sub a:hover,
.nav-sub a:focus-visible { background: #1a1a1a; color: #fff; }

/* Langue + devise dans le burger (mobile) */
.nav-mobile-extras {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #333;
}
.nav-mobile-extras .lang-select,
.nav-mobile-extras .currency-select {
  height: 46px;
  padding: 0 12px;
  border: 1px solid #555;
  border-radius: var(--radius);
  font-size: 15px;
  background: #1a1a1a;
  color: #ffffff;
  cursor: pointer;
}

/* Overlay du menu mobile */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 90;
}
.nav-overlay.open { display: block; }

/* Outils desktop (langue/devise en pills) — cachés en mobile */
.header-tools { display: none; }
.header-tools.desktop-only { display: none; }

/* Pills langue / devise */
.header-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 22px 0 10px;
  background: #1a1a1a;
  border: 1px solid #444;
  border-radius: 999px;
  color: #ffffff;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.header-pill:hover { background: #333; border-color: #666; }
.header-pill::after {
  content: "▾";
  position: absolute;
  right: 9px; top: 50%;
  transform: translateY(-50%);
  font-size: 9px;
  opacity: .7;
  pointer-events: none;
}
.header-pill .pill-globe { opacity: .8; flex-shrink: 0; }
.header-pill .lang-select,
.header-pill .currency-select {
  height: 28px;
  border: none;
  background: transparent;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding: 0;
}
.header-pill .lang-select:focus,
.header-pill .currency-select:focus { outline: none; }
.header-pill option { color: #000; }

/* ═══════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════ */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46vh;
  text-align: center;
  color: var(--c-white);
  background:
    linear-gradient(rgba(0,0,0,.65), rgba(0,0,0,.65)),
    url('../assets/images/hero-banner.png') center/cover no-repeat;
  padding: 60px 20px;
}
.hero-content { max-width: 700px; }
.hero h1 {
  font-size: clamp(28px, 6vw, 56px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
}
.hero-subtitle {
  font-size: clamp(15px, 2.5vw, 22px);
  opacity: .88;
  margin-bottom: 36px;
}

/* ═══════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 700;
  border-radius: var(--radius);
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
  white-space: nowrap;
}
.btn-primary {
  background: var(--c-black);
  color: var(--c-white);
}
.btn-primary:hover {
  background: var(--c-accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-secondary {
  background: var(--c-white);
  color: var(--c-black);
  border: 2px solid var(--c-black);
}
.btn-secondary:hover { background: var(--c-bg); }
.btn-ghost {
  background: transparent;
  color: var(--c-black);
  border: 1px solid var(--c-border);
}
.btn-ghost:hover { background: var(--c-bg); }
.btn-text {
  background: none;
  color: var(--c-muted);
  text-decoration: underline;
  font-size: 14px;
  min-height: 44px;
  padding: 8px 0;
}
.btn-full { width: 100%; }
.btn-hero { font-size: 18px; padding: 16px 40px; }

/* ═══════════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════════ */
.section { padding: 48px 16px; }
.section-title {
  font-size: clamp(22px, 4vw, 36px);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 32px;
}

/* ── Categories ─────────────────────────────── */
.categories { background: var(--c-white); }
.categories-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.category-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--c-border);
  transition: box-shadow var(--t-med);
}
.category-card:hover { box-shadow: var(--shadow-md); }
.category-card-link { display: block; }
.category-img-wrap { aspect-ratio: 16/9; overflow: hidden; }
.category-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-med); }
.category-card:hover .category-img-wrap img { transform: scale(1.03); }
.category-card-body { padding: 16px; }
.category-card-body h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.category-card-body p { font-size: 13px; color: var(--c-muted); margin-bottom: 14px; line-height: 1.5; }

/* ── USP / Pourquoi MLR TECH ────────────────── */
.usp { background: var(--c-bg); }
.usp-inner { max-width: 1100px; margin: 0 auto; text-align: center; }
.usp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  text-align: left;
}
.usp-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.usp-icon { font-size: 24px; flex-shrink: 0; line-height: 1; }

/* ── Products grid ──────────────────────────── */
.products { background: var(--c-bg); }
.products-header { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.filter-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.price-slider { flex: 1; min-width: 120px; accent-color: var(--c-black); }
#priceDisplay { font-size: 14px; font-weight: 600; white-space: nowrap; min-width: 60px; }

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

/* ── Product card ───────────────────────────── */
.product-card {
  background: var(--c-white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--c-border);
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--t-med);
}
.product-card:hover { box-shadow: var(--shadow-md); }
.product-card-link { display: flex; flex-direction: column; flex: 1; }
.product-img-wrap { position: relative; aspect-ratio: 1; overflow: hidden; background: #fff; }
.product-img-wrap img { width: 100%; height: 100%; object-fit: contain; transition: transform var(--t-med); }
.product-card:hover .product-img-wrap img { transform: scale(1.04); }

/* Cœur favori sur la carte produit (contour rouge, rempli si actif) */
.fav-toggle {
  position: absolute;
  top: 8px; right: 8px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  padding: 0;
  background: rgba(255,255,255,.92);
  border: none;
  border-radius: 50%;
  color: #e11d2a;              /* contour rouge (stroke = currentColor) */
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,.18);
  transition: transform var(--t-fast), background var(--t-fast);
}
.fav-toggle svg { fill: none; stroke: currentColor; transition: fill var(--t-fast); }
.fav-toggle:hover { transform: scale(1.1); background: #fff; }
.fav-toggle.active svg { fill: #e11d2a; }
.product-card-body { padding: 10px; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.product-cat { font-size: 11px; text-transform: uppercase; color: var(--c-muted); letter-spacing: .6px; }
.product-name {
  font-size: 13px; font-weight: 700;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.product-rating { font-size: 11px; color: #f59e0b; letter-spacing: 1px; }
.product-price-row { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; flex-wrap: wrap; gap: 4px; }
.product-price { font-size: 16px; font-weight: 800; }
.dhl-badge {
  font-size: 10px;
  color: var(--c-muted);
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: 4px;
  padding: 2px 6px;
  white-space: nowrap;
}
.btn-add-cart {
  width: 100%;
  min-height: 44px;
  padding: 10px;
  font-size: 13px;
  font-weight: 700;
  background: var(--c-black);
  color: var(--c-white);
  border-radius: 0 0 var(--radius) var(--radius);
  transition: background var(--t-fast);
}
.btn-add-cart:hover { background: var(--c-accent); }

/* ── Product detail ─────────────────────────── */
.product-detail-section { padding: 24px 16px; }
.product-back { margin-bottom: 20px; }
.product-back a { font-size: 14px; color: var(--c-muted); }
.product-back a:hover { color: var(--c-black); }
.product-detail { display: flex; flex-direction: column; gap: 0; }

/* Bloc principal image + info */
.pd-main { display: flex; flex-direction: column; gap: 24px; margin-bottom: 40px; }
.product-detail-img img { width: 100%; max-height: 70vh; object-fit: contain; border-radius: var(--radius); background: #fff; }

/* Galerie avec miniatures */
.pd-gallery { display: flex; gap: 10px; align-items: flex-start; }
.pd-thumbs { display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }
.pd-thumb {
  width: 72px; height: 72px;
  border: 2px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  padding: 0;
  transition: border-color var(--t-fast);
}
.pd-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pd-thumb:hover { border-color: #888; }
.pd-thumb.active { border-color: var(--c-black); border-width: 2.5px; }
.pd-main-img { flex: 1; width: 0; min-width: 0; max-height: 70vh; object-fit: contain; border-radius: var(--radius); background: #fff; }

/* Compatibilité accessoire */
.pd-compat-intro { font-size: 13px; color: var(--c-muted); margin-bottom: 14px; }
.pd-compat-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.pd-compat-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px; font-weight: 600;
  border: 1.5px solid transparent;
}
.pd-compat-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.pd-compat-ps5   { background: #e8eef8; color: #003087; border-color: #b3c6e8; }
.pd-compat-ps5   .pd-compat-dot { background: #003087; }
.pd-compat-switch { background: #fde8e8; color: #c0000d; border-color: #f5b3b3; }
.pd-compat-switch .pd-compat-dot { background: #e60012; }
.pd-compat-xbox  { background: #e8f4e8; color: #107c10; border-color: #a8d8a8; }
.pd-compat-xbox  .pd-compat-dot { background: #107c10; }
.pd-compat-pc    { background: #f0f0f0; color: #333333; border-color: #cccccc; }
.pd-compat-pc    .pd-compat-dot { background: #555555; }
.pd-compat-mobile { background: #fff3e0; color: #e65100; border-color: #ffcc80; }
.pd-compat-mobile .pd-compat-dot { background: #f57c00; }

.product-cat-label { font-size: 12px; text-transform: uppercase; color: var(--c-muted); letter-spacing: .6px; margin-bottom: 8px; }
.product-detail-name { font-size: clamp(22px, 4vw, 32px); font-weight: 800; line-height: 1.25; margin-bottom: 10px; }
.product-detail-rating { font-size: 14px; color: #f59e0b; margin-bottom: 12px; }
.product-detail-rating span { color: var(--c-muted); font-size: 13px; margin-left: 6px; }
.product-detail-price { font-size: 28px; font-weight: 800; margin-bottom: 16px; }

/* Sélecteur de variante couleur */
.pd-variants { margin-bottom: 16px; }
.pd-variant-label { font-size: 14px; color: var(--c-muted); margin-bottom: 10px; }
.pd-variant-label strong { color: var(--c-text); }
.pd-variant-swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.pd-variant-swatch {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2.5px solid #ccc;
  cursor: pointer;
  transition: border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
  position: relative;
}
.pd-variant-swatch:hover { transform: scale(1.1); }
.pd-variant-swatch.active {
  border-color: var(--c-black);
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--c-black);
}

.pd-storage { margin-bottom: 16px; }
.pd-storage-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.pd-storage-btn {
  padding: 8px 18px;
  border-radius: 8px;
  border: 2px solid var(--c-border);
  background: var(--c-bg);
  color: var(--c-text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.pd-storage-btn:hover { border-color: var(--c-black); }
.pd-storage-btn.active {
  border-color: var(--c-black);
  background: var(--c-black);
  color: #fff;
}

.product-features { margin-bottom: 24px; }
.product-features li { padding: 8px 0; border-bottom: 1px solid var(--c-border); font-size: 14px; }
.product-features li::before { content: '✓  '; font-weight: 700; }
.btn-add-big { font-size: 16px; min-height: 52px; }

/* Livraison inline (bloc principal) */
.pd-delivery-inline { display: flex; align-items: center; gap: 8px; background: rgba(34,197,94,.08); border: 1px solid rgba(34,197,94,.25); border-radius: var(--radius); padding: 10px 14px; margin-bottom: 16px; font-size: 14px; color: #22c55e; }
.pd-delivery-inline svg { flex-shrink: 0; stroke: #22c55e; }

/* Sections détail */
.pd-sections { display: flex; flex-direction: column; }
.pd-section { border-top: 1px solid var(--c-border); }

/* Accordéon */
.pd-acc-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 18px 0; background: none; border: none; font-size: 16px; font-weight: 700; color: var(--c-text); cursor: pointer; text-align: left; gap: 8px; }
.pd-acc-caret { transition: transform var(--t-fast); flex-shrink: 0; }
.pd-accordion.open > .pd-acc-toggle .pd-acc-caret { transform: rotate(180deg); }
.pd-acc-body { overflow: hidden; max-height: 0; transition: max-height 250ms ease; }
.pd-acc-inner { padding-bottom: 24px; }

/* Description */
.pd-desc-text { font-size: 15px; color: var(--c-muted); line-height: 1.8; }

/* Contenu boîte */
.pd-box-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.pd-box-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.5; }
.pd-box-list li svg { flex-shrink: 0; margin-top: 2px; }

/* Dimensions */
.pd-dims-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 20px; }
.pd-dim-card { background: var(--c-bg); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 16px 12px; text-align: center; }
.pd-dim-icon { display: flex; justify-content: center; margin-bottom: 8px; color: var(--c-muted); }
.pd-dim-icon svg { display: block; }
.pd-dim-val { display: block; font-size: 18px; font-weight: 700; }
.pd-dim-label { display: block; font-size: 12px; color: var(--c-muted); margin-top: 3px; }

/* Avis */
.reviews-loading, .reviews-empty { font-size: 14px; color: var(--c-muted); font-style: italic; padding: 8px 0; }
.reviews-avg { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--c-border); }
.reviews-avg-score { font-size: 52px; font-weight: 800; line-height: 1; }
.reviews-avg-stars { font-size: 22px; color: #f59e0b; margin-bottom: 4px; }
.reviews-avg-count { font-size: 14px; color: var(--c-muted); }
.reviews-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }
.review-card { background: var(--c-bg); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 16px; }
.review-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.review-author { font-weight: 700; font-size: 14px; }
.review-stars { color: #f59e0b; font-size: 14px; }
.review-date { font-size: 12px; color: var(--c-muted); margin-left: auto; }
.review-comment { font-size: 14px; color: var(--c-muted); line-height: 1.6; }
.review-form-wrap h4 { font-size: 16px; font-weight: 700; margin-bottom: 16px; padding-top: 8px; border-top: 1px solid var(--c-border); }
.star-input { display: flex; gap: 4px; margin-bottom: 8px; }
.star-btn { font-size: 30px; color: #ddd; background: none; border: none; cursor: pointer; transition: color var(--t-fast); line-height: 1; padding: 0; }
.star-btn.active { color: #f59e0b; }
.star-input-hint { font-size: 12px; color: var(--c-muted); margin-bottom: 12px; }
.review-textarea { width: 100%; border: 1px solid var(--c-border); border-radius: var(--radius); padding: 12px; font-family: inherit; font-size: 14px; background: var(--c-bg); color: var(--c-text); resize: vertical; box-sizing: border-box; }
.review-textarea:focus { outline: none; border-color: var(--c-primary); }
.review-error { font-size: 13px; color: #ef4444; min-height: 18px; margin: 6px 0 10px; }
.review-login-prompt, .review-already { font-size: 14px; color: var(--c-muted); padding: 12px 0; }
.review-login-prompt a { color: var(--c-primary); text-decoration: underline; }

/* Sticky cart bar (mobile) */
.sticky-cart-bar { position: fixed; bottom: 0; left: 0; right: 0; background: var(--c-white); border-top: 1px solid var(--c-border); padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; z-index: 100; transform: translateY(100%); transition: transform var(--t-med); box-shadow: 0 -4px 20px rgba(0,0,0,.12); }
.sticky-cart-bar.visible { transform: translateY(0); }
.sticky-cart-price { font-size: 20px; font-weight: 800; }
.sticky-cart-btn { flex-shrink: 0; min-width: 160px; }

/* Similar products */
.similar-section { padding: 32px 16px 48px; background: var(--c-bg); }

/* ── Page hero (category / product top bar) ── */
.page-hero {
  background: var(--c-black);
  color: var(--c-white);
  padding: 40px 16px;
}
.page-hero h1 { font-size: clamp(24px, 4vw, 40px); font-weight: 800; }

/* ── No results ─────────────────────────────── */
.no-results { grid-column: 1/-1; text-align: center; color: var(--c-muted); padding: 40px; }

/* État vide de la page Favoris */
.fav-empty {
  text-align: center;
  color: var(--c-muted);
  font-size: 16px;
  padding: 60px 24px;
  max-width: 480px;
  margin: 0 auto;
}

/* Bouton « Ajouter aux favoris » sur la fiche produit */
.btn-fav-detail {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  margin-top: 10px;
  padding: 0 16px;
  font-size: 15px;
  font-weight: 600;
  color: #e11d2a;
  background: #fff;
  border: 1.5px solid #e11d2a;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
}
.btn-fav-detail svg { fill: none; stroke: currentColor; transition: fill var(--t-fast); }
.btn-fav-detail:hover { background: #fff0f1; }
.btn-fav-detail.active { background: #e11d2a; color: #fff; }
.btn-fav-detail.active svg { fill: #fff; }

/* ═══════════════════════════════════════════════
   CART PANEL
   ═══════════════════════════════════════════════ */
.cart-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 89;
  backdrop-filter: blur(2px);
}
.cart-overlay.open { display: block; }

.cart-panel {
  position: fixed;
  right: 0; bottom: 0;
  left: 0;
  max-height: 92dvh;
  background: var(--c-white);
  z-index: 90;
  border-radius: 16px 16px 0 0;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform var(--t-med);
}
.cart-panel.open { transform: translateY(0); }

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--c-border);
  flex-shrink: 0;
}
.cart-title { font-size: 18px; font-weight: 700; }
.cart-close {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  border-radius: 50%;
  transition: background var(--t-fast);
}
.cart-close:hover { background: var(--c-bg); }

.cart-body { flex: 1; overflow-y: auto; padding: 12px 20px; }
.cart-empty { text-align: center; color: var(--c-muted); padding: 40px 0; }

.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--c-border);
}
.cart-item img { width: 60px; height: 60px; object-fit: cover; border-radius: var(--radius); flex-shrink: 0; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-price { font-size: 13px; color: var(--c-muted); margin-top: 2px; }
.cart-item-actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.qty-btn {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--c-border);
  border-radius: 50%;
  font-size: 16px;
  transition: background var(--t-fast);
}
.qty-btn:hover { background: var(--c-bg); }
.qty-val { font-size: 14px; font-weight: 600; min-width: 20px; text-align: center; }
.remove-btn {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  color: var(--c-muted);
  font-size: 14px;
  margin-left: 4px;
  transition: color var(--t-fast);
}
.remove-btn:hover { color: var(--c-error); }

.cart-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--c-border);
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}
.cart-total-row { display: flex; justify-content: space-between; font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.cart-total-amount { font-size: 20px; }

/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */
.footer { background: var(--c-black); color: var(--c-white); }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 48px 20px 32px;
}
.footer-col h4 { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; margin-bottom: 12px; }
.footer-col p, .footer-col a { font-size: 13px; color: rgba(255,255,255,.65); line-height: 1.7; }
.footer-col a:hover { color: var(--c-white); }
.social-links { display: flex; gap: 14px; margin-top: 12px; align-items: center; }
.social-links a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  color: rgba(255,255,255,.85);
  transition: transform var(--t-fast), opacity var(--t-fast);
}
.social-links a:hover { transform: translateY(-2px); opacity: .85; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  text-align: center;
  padding: 20px;
  font-size: 12px;
  color: rgba(255,255,255,.45);
}
/* Listes de liens (catégories / informations) */
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
/* Logos réseaux sociaux : vrais logos officiels en couleur (SVG autoporteurs) */
.social-links a svg { width: 30px; height: 30px; display: block; }
.social-links a.social-mail svg { color: rgba(255,255,255,.85); } /* e-mail = glyphe monochrome discret */

/* ── Page Contact ─────────────────────────────── */
.contact-page .contact-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 28px 0 40px; }
.contact-card { border: 1px solid var(--c-border); border-radius: var(--radius); padding: 24px; background: var(--c-white); }
.contact-card-icon { width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--c-bg); color: var(--c-text); margin-bottom: 14px; }
.contact-card h2 { font-size: 17px; margin-bottom: 8px; }
.contact-card p { font-size: 15px; margin-bottom: 6px; }
.contact-card a:not(.btn) { color: var(--c-text); font-weight: 600; }
.contact-card a:not(.btn):hover { text-decoration: underline; }
.contact-hours, .contact-sub { color: var(--c-muted); font-size: 14px; }
.contact-card .btn { margin-top: 10px; display: inline-block; }
.contact-faq { border-top: 1px solid var(--c-border); padding-top: 28px; }
.contact-faq h2 { font-size: 19px; margin-bottom: 14px; }
.contact-faq-links { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 10px; }
.contact-faq-links a { color: var(--c-text); text-decoration: underline; }
.contact-faq-all { font-weight: 700; color: var(--c-text); }
@media (min-width: 768px) { .contact-page .contact-grid { grid-template-columns: repeat(3, 1fr); } }

/* ═══════════════════════════════════════════════
   PAGES DE CONTENU (À propos, CGV, mentions, FAQ…)
   ═══════════════════════════════════════════════ */
.legal-page { max-width: 820px; margin: 0 auto; padding: 40px 20px 72px; }
.legal-page h1 { font-size: 28px; line-height: 1.2; margin-bottom: 6px; }
.legal-updated { color: var(--c-muted); font-size: 13px; margin-bottom: 28px; }
.legal-page h2 { font-size: 19px; margin: 36px 0 10px; }
.legal-page h3 { font-size: 15px; margin: 18px 0 6px; }
.legal-page p, .legal-page li { font-size: 15px; line-height: 1.75; color: var(--c-text); }
.legal-page ul { padding-left: 22px; margin: 10px 0 16px; }
.legal-page li { margin-bottom: 6px; }
.legal-page a { text-decoration: underline; }
.legal-note { background: var(--c-bg); border-left: 3px solid var(--c-black); padding: 12px 16px; border-radius: 4px; margin: 16px 0; font-size: 14px; }
.faq-item { border-bottom: 1px solid var(--c-border); padding: 18px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-item h3 { font-size: 16px; margin: 0 0 8px; }
.faq-item p { margin: 0; color: var(--c-muted); }

/* ═══════════════════════════════════════════════
   COMPTE CLIENT — Auth (login / register)
   ═══════════════════════════════════════════════ */
.auth-page {
  max-width: 480px;
  margin: 0 auto;
  padding: 48px 20px 72px;
}
.auth-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 28px 24px;
}
.auth-card h1 { font-size: 26px; font-weight: 800; margin-bottom: 6px; }
.auth-sub { font-size: 14px; color: var(--c-muted); margin-bottom: 20px; }
.auth-card form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin: 14px 0 6px;
}
.auth-card form label .opt { font-weight: 400; color: var(--c-muted); }
.auth-card input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  font-size: 16px;
  background: var(--c-white);
  transition: border-color var(--t-fast);
}
.auth-card input:focus-visible { outline: none; border-color: var(--c-black); }
.auth-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-row { display: flex; justify-content: flex-end; margin: 12px 0 4px; }
.auth-link { font-size: 13px; color: var(--c-muted); text-decoration: underline; }
.auth-card .btn-full { margin-top: 20px; }
.auth-foot { text-align: center; font-size: 14px; color: var(--c-muted); margin-top: 18px; }
.auth-foot a { color: var(--c-black); font-weight: 600; text-decoration: underline; }

/* Messages de formulaire */
.form-msg { font-size: 14px; margin: 4px 0; min-height: 0; }
.form-msg.err { color: var(--c-error); }
.form-msg.ok  { color: #16a34a; }
.form-msg:empty { margin: 0; }

/* ═══════════════════════════════════════════════
   TABLEAU DE BORD (compte.html)
   ═══════════════════════════════════════════════ */
.dash-section {
  border-top: 1px solid var(--c-border);
  padding-top: 24px;
  margin-top: 24px;
}
.dash-section:first-of-type { border-top: none; padding-top: 0; margin-top: 8px; }
.dash-form { max-width: 480px; }
.dash-form label { display: block; font-size: 13px; font-weight: 600; margin: 14px 0 6px; }
.dash-form label .opt { font-weight: 400; color: var(--c-muted); }
.dash-form input {
  width: 100%; height: 46px; padding: 0 14px;
  border: 1px solid var(--c-border); border-radius: var(--radius);
  font-size: 16px; background: var(--c-white);
}
.dash-form input:focus-visible { outline: none; border-color: var(--c-black); }
.dash-form .btn { margin-top: 16px; }
.muted { color: var(--c-muted); font-size: 14px; }

/* Adresses */
.address-list { display: grid; gap: 12px; margin-bottom: 12px; }
.address-card {
  display: flex; flex-direction: column; gap: 2px;
  border: 1px solid var(--c-border); border-radius: var(--radius);
  padding: 14px 16px; font-size: 14px;
}
.address-card strong { font-size: 15px; margin-bottom: 2px; }
.address-card .addr-del { align-self: flex-start; margin-top: 8px; color: var(--c-error); }
.addr-add { margin-top: 8px; }
.addr-add summary { cursor: pointer; font-size: 14px; font-weight: 600; padding: 8px 0; }

/* Commandes + suivi */
.order-list { display: grid; gap: 16px; }
.order-card {
  border: 1px solid var(--c-border); border-radius: var(--radius);
  padding: 18px 18px 20px;
}
.order-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.order-num { font-weight: 700; font-size: 15px; }
.order-meta { font-size: 13px; color: var(--c-muted); margin: 4px 0 16px; }
.order-status {
  font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 20px;
  background: var(--c-bg); border: 1px solid var(--c-border); white-space: nowrap;
}
.order-status.st-prep    { background: #fef3c7; color: #92400e; border-color: #fde68a; }
.order-status.st-ship    { background: #dbeafe; color: #1e40af; border-color: #bfdbfe; }
.order-status.st-transit { background: #e0e7ff; color: #3730a3; border-color: #c7d2fe; }
.order-status.st-done    { background: #dcfce7; color: #166534; border-color: #bbf7d0; }
.order-track { font-size: 13px; margin-top: 14px; }

/* Barre de progression suivi */
.tracker { display: flex; align-items: flex-start; justify-content: space-between; gap: 4px; margin: 6px 0; }
.tracker-step { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; position: relative; }
.tracker-step::before {
  content: ''; position: absolute; top: 6px; left: -50%; width: 100%; height: 2px;
  background: var(--c-border); z-index: 0;
}
.tracker-step:first-child::before { display: none; }
.tracker-dot {
  width: 14px; height: 14px; border-radius: 50%; background: var(--c-border);
  position: relative; z-index: 1;
}
.tracker-step.done .tracker-dot { background: #16a34a; }
.tracker-step.done::before { background: #16a34a; }
.tracker-label { font-size: 10px; color: var(--c-muted); text-align: center; line-height: 1.3; }
.tracker-step.done .tracker-label { color: var(--c-text); font-weight: 600; }

/* ═══════════════════════════════════════════════
   ADMIN (admin.html)
   ═══════════════════════════════════════════════ */
.admin-order {
  border: 1px solid var(--c-border); border-radius: var(--radius);
  padding: 14px 16px; margin-bottom: 12px;
}
.admin-order > div:first-child { margin-bottom: 10px; font-size: 14px; }
.admin-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.admin-row select, .admin-row input {
  height: 42px; padding: 0 10px; border: 1px solid var(--c-border);
  border-radius: var(--radius); font-size: 14px; background: var(--c-white);
}
.admin-row .admin-tracking, .admin-row .admin-carrier { flex: 1; min-width: 120px; }
.admin-row .btn { min-height: 42px; padding: 8px 18px; }

/* ═══════════════════════════════════════════════
   TOAST
   ═══════════════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--c-accent);
  color: var(--c-white);
  padding: 12px 24px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity var(--t-med), transform var(--t-med);
  z-index: 200;
  box-shadow: var(--shadow-lg);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ═══════════════════════════════════════════════
   SCROLL ANIMATIONS
   ═══════════════════════════════════════════════ */
.fade-in { opacity: 0; transform: translateY(16px); transition: opacity var(--t-med), transform var(--t-med); }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ═══════════════════════════════════════════════
   CART PAGE (cart.html)
   ═══════════════════════════════════════════════ */
.cart-page { max-width: 800px; margin: 0 auto; padding: 32px 16px; }
.cart-page h1 { font-size: 28px; font-weight: 800; margin-bottom: 24px; }
.cart-page-total { font-size: 20px; font-weight: 700; text-align: right; margin: 20px 0; }

/* ═══════════════════════════════════════════════
   CTA bannière coque personnalisée (category.html)
   ═══════════════════════════════════════════════ */
.cz-cta-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--c-black); color: var(--c-white);
  border-radius: var(--radius);
  padding: 18px 22px; margin-bottom: 20px;
  text-decoration: none;
  transition: transform var(--t-fast);
}
.cz-cta-banner:hover { transform: scale(1.01); }
.cz-cta-text { display: flex; flex-direction: column; gap: 4px; }
.cz-cta-text strong { font-size: 17px; }
.cz-cta-text span { font-size: 13px; color: #ccc; }
.cz-cta-btn {
  flex-shrink: 0; background: var(--c-white); color: var(--c-black);
  padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: 14px;
}

/* ═══════════════════════════════════════════════
   CONFIGURATEUR DE COQUES (coque-personnalisee.html)
   ═══════════════════════════════════════════════ */
.cz-section { padding: 0 16px 60px; }
.cz-wrap { max-width: 1200px; margin: 0 auto; }

.cz-stepper { display: flex; justify-content: center; gap: 0; margin: 24px 0 40px; flex-wrap: wrap; }
.cz-step {
  display: flex; align-items: center; gap: 8px;
  padding: 0 20px; opacity: .4; transition: opacity var(--t-fast);
}
.cz-step.active, .cz-step.done { opacity: 1; }
.cz-step-num {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--c-border); color: var(--c-text);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
}
.cz-step.active .cz-step-num, .cz-step.done .cz-step-num { background: var(--c-black); color: var(--c-white); }
.cz-step-label { font-size: 14px; font-weight: 600; }

.cz-stepbox { display: none; }
.cz-stepbox.active { display: block; }
.cz-step-title { font-size: 18px; font-weight: 700; margin-bottom: 16px; }

/* Étape 1 — marques & modèles */
.cz-brands { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; margin-bottom: 32px; }
.cz-brand-btn {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 18px 8px; border: 2px solid var(--c-border); border-radius: var(--radius);
  background: var(--c-white); cursor: pointer; font-weight: 600; font-size: 14px;
  transition: border-color var(--t-fast);
}
.cz-brand-btn:hover { border-color: var(--c-black); }
.cz-brand-btn.active { border-color: var(--c-black); background: #f5f5f5; }
.cz-brand-icon { color: var(--c-text); }

.cz-models-wrap { margin-top: 8px; }
.cz-model-search {
  width: 100%; max-width: 360px; padding: 10px 14px; margin-bottom: 14px;
  border: 2px solid var(--c-border); border-radius: 999px; font-size: 14px;
}
.cz-model-search:focus { border-color: var(--c-black); outline: none; }
.cz-no-results { color: var(--c-muted); font-size: 14px; padding: 12px 0; }
.cz-models { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.cz-model-btn {
  padding: 12px 14px; border: 2px solid var(--c-border); border-radius: var(--radius);
  background: var(--c-white); cursor: pointer; font-size: 14px; text-align: left;
  transition: border-color var(--t-fast);
}
.cz-model-btn:hover { border-color: var(--c-black); }
.cz-model-btn.active { border-color: var(--c-black); background: #f5f5f5; font-weight: 700; }

/* Étape 2 — types de coque */
.cz-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-bottom: 20px; }
.cz-type-card {
  position: relative; text-align: left;
  padding: 18px; border: 2px solid var(--c-border); border-radius: var(--radius);
  background: var(--c-white); cursor: pointer;
  transition: border-color var(--t-fast);
}
.cz-type-card:hover { border-color: var(--c-black); }
.cz-type-card.active { border-color: var(--c-black); background: #f5f5f5; }
.cz-type-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; padding-right: 70px; }
.cz-type-desc { font-size: 13px; color: var(--c-muted); margin-bottom: 6px; }
.cz-type-sides { font-size: 12px; color: var(--c-muted); margin-bottom: 10px; }
.cz-type-price { font-size: 16px; font-weight: 800; }
.cz-badge-popular {
  position: absolute; top: 14px; right: 14px;
  background: var(--c-black); color: var(--c-white);
  font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 999px;
}

.cz-back-btn { margin-top: 10px; }

/* Étape 3 — éditeur */
.cz-editor { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.cz-canvas-wrap { position: relative; }
#czCanvas {
  width: 100%; max-width: 480px; aspect-ratio: 1/1; display: block; margin: 0 auto;
  touch-action: none; cursor: grab; border-radius: var(--radius);
  background: #fafafa;
}
.cz-upload-zone {
  margin: 16px auto 0; max-width: 480px;
  border: 2px dashed var(--c-border); border-radius: var(--radius);
  padding: 20px; text-align: center; cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.cz-upload-zone:hover, .cz-upload-zone.dragover { border-color: var(--c-black); background: #fafafa; }
.cz-upload-zone.has-image { padding: 10px; }
.cz-upload-zone p { font-size: 13px; margin: 0; }
.cz-upload-hint { color: var(--c-muted); font-size: 11px !important; margin-top: 6px !important; }
.cz-upload-warning { color: var(--c-error); font-size: 12px; text-align: center; margin-top: 8px; max-width: 480px; margin-inline: auto; }

.cz-tools { display: flex; flex-direction: column; gap: 22px; }
.cz-tool-group h3 { font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.cz-tool-label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--c-muted); margin-bottom: 10px; }
.cz-tool-label input[type="range"] { width: 100%; }
.cz-mirror-btns { display: flex; gap: 8px; }
.btn-storage-like {
  flex: 1; padding: 9px 12px; border: 2px solid var(--c-border); border-radius: var(--radius);
  background: var(--c-white); cursor: pointer; font-size: 13px; font-weight: 600;
  transition: border-color var(--t-fast);
}
.btn-storage-like:hover { border-color: var(--c-black); }

.cz-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.cz-filter-btn {
  padding: 8px 14px; border: 2px solid var(--c-border); border-radius: 999px;
  background: var(--c-white); cursor: pointer; font-size: 13px; font-weight: 600;
  transition: border-color var(--t-fast);
}
.cz-filter-btn:hover { border-color: var(--c-black); }
.cz-filter-btn.active { border-color: var(--c-black); background: var(--c-black); color: var(--c-white); }

.cz-text-input {
  width: 100%; padding: 10px 12px; border: 2px solid var(--c-border); border-radius: var(--radius);
  font-size: 14px; margin-bottom: 12px;
}
.cz-text-row { display: flex; align-items: flex-end; gap: 12px; margin-bottom: 12px; }
.cz-text-size { flex: 1; margin-bottom: 0; }
.cz-text-pos { display: flex; gap: 8px; }
.cz-pos-btn {
  flex: 1; padding: 8px; border: 2px solid var(--c-border); border-radius: var(--radius);
  background: var(--c-white); cursor: pointer; font-size: 13px; font-weight: 600;
  transition: border-color var(--t-fast);
}
.cz-pos-btn:hover { border-color: var(--c-black); }
.cz-pos-btn.active { border-color: var(--c-black); background: var(--c-black); color: var(--c-white); }

.cz-summary {
  background: #fafafa; border-radius: var(--radius); padding: 16px;
  display: flex; flex-direction: column; gap: 4px; font-size: 14px;
}
.cz-summary h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.cz-sum-price { font-size: 16px; margin-top: 6px; }

/* Swatches couleur appareil / coque */
.cz-swatches { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.cz-swatch {
  width: 44px; height: 44px; border-radius: 50%;
  border: 2.5px solid #ccc; cursor: pointer;
  transition: border-color var(--t-fast), transform var(--t-fast);
}
.cz-swatch:hover { transform: scale(1.08); }
.cz-swatch.active { border-color: var(--c-black); box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--c-black); }

/* Toggle Image unique / Collage */
.cz-artwork-toggle { display: flex; gap: 8px; justify-content: center; margin-bottom: 12px; }
.cz-artwork-btn {
  padding: 8px 16px; border: 2px solid var(--c-border); border-radius: 999px;
  background: var(--c-white); cursor: pointer; font-size: 13px; font-weight: 600;
  transition: border-color var(--t-fast);
}
.cz-artwork-btn:hover { border-color: var(--c-black); }
.cz-artwork-btn.active { border-color: var(--c-black); background: var(--c-black); color: var(--c-white); }

/* Zone collage : grille 2x2 de slots uploadables */
.cz-collage-zone {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin: 16px auto 0; max-width: 480px;
}
.cz-collage-zone[hidden] { display: none; }
.cz-collage-slot {
  aspect-ratio: 1/1; border: 2px dashed var(--c-border); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; color: var(--c-muted); cursor: pointer;
  background-size: cover; background-position: center;
  transition: border-color var(--t-fast);
}
.cz-collage-slot:hover { border-color: var(--c-black); }
.cz-collage-slot.filled { border-style: solid; }
.cz-collage-slot.filled span { display: none; }

@media (max-width: 860px) {
  .cz-editor { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════
   CONFIGURATEUR — app à sidebar (Produit/Photo/Texte)
   ═══════════════════════════════════════════════ */
.cz-app { display: grid; grid-template-columns: 88px 360px 1fr; gap: 0; max-width: 1280px; margin: 0 auto; min-height: 600px; border: 1px solid var(--c-border); border-radius: var(--radius); overflow: hidden; }

.cz-sidebar { display: flex; flex-direction: column; background: #fafafa; border-right: 1px solid var(--c-border); padding: 16px 0; }
.cz-tab {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 14px 4px; border: none; background: transparent; cursor: pointer;
  color: var(--c-muted); font-size: 11px; font-weight: 600;
  transition: color var(--t-fast), background var(--t-fast);
}
.cz-tab:hover { background: #f0f0f0; }
.cz-tab.active { color: var(--c-black); background: #ececec; border-right: 3px solid var(--c-black); }

.cz-panel { padding: 22px 20px; border-right: 1px solid var(--c-border); overflow-y: auto; max-height: 80vh; }
.cz-panel-page { display: none; }
.cz-panel-page.active { display: block; }
.cz-panel-title { font-size: 16px; font-weight: 800; margin-bottom: 16px; }

.cz-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 4px; border-bottom: 1px solid var(--c-border);
  cursor: pointer; transition: background var(--t-fast);
}
.cz-row:hover { background: #fafafa; }
.cz-row-label { font-size: 14px; font-weight: 600; }
.cz-row-value-wrap { display: flex; align-items: center; gap: 8px; }
.cz-row-value { font-size: 14px; color: var(--c-muted); }
.cz-row-chevron { color: var(--c-muted); font-size: 16px; }
.cz-row-swatch-dot { width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--c-border); display: inline-block; }
.cz-row-expand { padding: 14px 4px 18px; border-bottom: 1px solid var(--c-border); }

.cz-canvas-area { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px; gap: 18px; position: relative; }
.cz-canvas-area .cz-canvas-wrap { width: 100%; max-width: 360px; }
.cz-canvas-area #czCanvas { max-width: 360px; background: transparent; box-shadow: none; }
.cz-canvas-placeholder {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 80%; text-align: center; color: var(--c-muted); font-size: 14px; pointer-events: none;
}
.cz-canvas-summary { text-align: center; }
.cz-sum-line { font-size: 15px; font-weight: 700; }
.cz-sum-price { font-size: 20px; font-weight: 800; margin-top: 4px; }
#czAddToCart { max-width: 320px; }

@media (max-width: 980px) {
  .cz-app { grid-template-columns: 1fr; }
  .cz-sidebar { flex-direction: row; justify-content: center; border-right: none; border-bottom: 1px solid var(--c-border); overflow-x: auto; }
  .cz-tab.active { border-right: none; border-bottom: 3px solid var(--c-black); }
  .cz-panel { border-right: none; border-bottom: 1px solid var(--c-border); max-height: none; }
  .cz-canvas-area { order: -1; padding: 20px; }
}
