/* ════════════════════════════════════════════════════════════════
   VOLT PC — Design system  ·  v2 « Lumière »
   Clair · moderne · premium — blanc, ardoise & indigo électrique
   ════════════════════════════════════════════════════════════════ */

/* ════════════════════════════════════════════════════════════════
   VOLT PC — Design system  ·  v4 « Cupertino »
   Style Apple : accent unique Action Blue, surfaces plates blanc /
   parchemin / anthracite, zéro dégradé, une seule ombre (visuels
   produit), typo SF Pro/Inter serrée, CTA en pilule.
   ════════════════════════════════════════════════════════════════ */
:root {
  /* ── Identité « SUNSET » (thème principal, clair & chaleureux) ──
     Orange coucher de soleil + secondaire corail/rose, sur papier chaud. */
  --bg: #fbf4ed;            /* papier pêche chaud */
  --bg-soft: #f4e6d9;
  --surface: #fffaf5;       /* blanc chaud des cartes */
  --surface-2: #f7ebdf;
  --header-bg: rgba(255, 250, 245, 0.82);
  --hero-base: linear-gradient(155deg, #fff6ee 0%, #ffe7d4 55%, #ffd6cb 100%);
  --hero-glow-1: rgba(239, 90, 12, 0.18);    /* halo orange */
  --hero-glow-2: rgba(255, 77, 109, 0.16);   /* halo corail (secondaire) */
  --tile-dark: #2a1c12;

  --border: rgba(60, 32, 16, 0.10);
  --border-strong: #e7cfb9;

  --text: #2a1b11;          /* espresso chaud */
  --text-dim: #74604f;
  --text-faint: #a48d78;

  --accent: #ef5a0c;            /* orange coucher de soleil (primaire) */
  --accent-soft: #ff7a2e;
  --accent-ink: #c2410c;        /* variante texte (contraste sur clair) */
  --accent-2: #ff4d6d;          /* corail / rose (secondaire) */
  --accent-on-dark: #ff8a4d;
  --gradient: linear-gradient(115deg, #ffa23d 0%, #ef5a0c 48%, #ff3d6e 100%);  /* dégradé sunset */
  --accent-wash: rgba(239, 90, 12, 0.09);
  --accent-wash-strong: rgba(239, 90, 12, 0.16);
  --on-primary: #ffffff;

  --green: #1c7d4d;
  --green-soft: #2dbd6e;
  --red: #d63a3a;
  --amber: #b45309;

  /* Rayons */
  --radius: 20px;
  --radius-sm: 13px;

  /* Élévation : ombres chaudes douces */
  --shadow-xs: none;
  --shadow-sm: none;
  --shadow: none;
  --shadow-lg: 0 18px 44px -20px rgba(80, 40, 16, 0.28);
  --shadow-accent: 0 12px 30px -12px rgba(239, 90, 12, 0.42);
  --shadow-product: rgba(80, 40, 16, 0.18) 0 8px 36px 2px;

  /* Typo : display caractériel + grotesk de lecture + mono (prix/specs) */
  --font-display: "Bricolage Grotesque", -apple-system, system-ui, sans-serif;
  --font-body: "Manrope", -apple-system, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-size: 17px;                 /* pace de lecture Apple (pas 16) */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.02em; color: var(--text); }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }

/* Chiffres tabulaires : prix & stats ne « sautent » pas */
.price, .price-old, .kpi-value, .hero-stat strong, .summary-line, .cart-totals,
.specs-table td, .mini-table td { font-variant-numeric: tabular-nums; }

::selection { background: rgba(37, 99, 235, 0.22); color: var(--text); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ─── Fond animé : la carte mère cachée (canvas circuit) ─── */
#bgfx {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.9;
}

/* ─── Bandeau annonce ─── */
.announce {
  position: relative;
  background: var(--gradient);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-align: center;
  padding: 9px 16px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.announce strong { font-weight: 800; }
.announce-ico { vertical-align: -2px; margin-right: 2px; }

/* ─── Header ─── */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 14px 28px;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.logo em { font-style: normal; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav { display: flex; gap: 2px; }
.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.2s, background 0.2s;
}
.nav a:hover { color: var(--text); background: rgba(15, 23, 42, 0.05); }
.nav a.active { color: var(--accent-ink); background: var(--accent-wash); }
.nav .chev { font-size: 0.55rem; opacity: 0.6; vertical-align: 2px; }
.nav-sale { color: var(--accent); font-weight: 600; }
.nav-sale:hover { color: var(--accent-ink); background: var(--accent-wash); }

/* ─── Sous-menus déroulants ─── */
.nav-item { position: relative; }
.nav-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  translate: 0 6px;
  min-width: 250px;
  max-width: min(560px, calc(100vw - 24px));
  display: grid;
  gap: 2px;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, translate 0.18s ease, visibility 0.18s;
  z-index: 70;
}
.nav-menu::before {           /* pont invisible pour le survol */
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}
.nav-item:hover .nav-menu,
.nav-item:focus-within .nav-menu {
  opacity: 1;
  visibility: visible;
  translate: 0 0;
}
.nav-menu-grid { grid-template-columns: 1fr 1fr; min-width: 460px; }
.nav-menu-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 0.87rem;
  font-weight: 500;
  color: var(--text-dim);
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.nav-menu-link:hover { background: var(--accent-wash); color: var(--accent-ink); }
.nav-menu-ico { width: 27px; height: 27px; flex: none; display: grid; place-items: center; }
.nav-menu-ico svg { width: 100%; height: 100%; }
.nav-menu-all {
  grid-column: 1 / -1;
  margin-top: 7px;
  padding: 10px 12px 4px;
  border-top: 1px solid var(--border);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
}
.nav-menu-all:hover { color: var(--accent-ink); }
@media (max-width: 920px) {
  .nav-menu { display: none; }
  .nav .chev { display: none; }
}

.header-search {
  flex: 1;
  max-width: 420px;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 16px;
  color: var(--text-faint);
  box-shadow: var(--shadow-xs);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.header-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14); }
.header-search input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 0.92rem;
}
.header-search input::placeholder { color: var(--text-faint); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.header-search svg, .icon-btn svg { display: block; flex-shrink: 0; }
.icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-dim);
  padding: 9px 14px;
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s;
}
.icon-btn:hover { color: var(--accent-ink); border-color: var(--border-strong); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  background: var(--gradient);
  color: #fff;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0 5px;
  box-shadow: var(--shadow-accent);
  border: 2px solid var(--surface);
}

/* ─── Layout ─── */
.app { max-width: 1280px; margin: 0 auto; padding: 32px 28px 80px; min-height: 60vh; }
.section { margin-top: 64px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 22px; }
.section-head h2 { font-size: 1.7rem; }
.section-head a { color: var(--accent); font-size: 0.9rem; font-weight: 600; transition: color 0.15s; }
.section-head a:hover { color: var(--accent-ink); }

/* ─── Hero ─── */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
  padding: 68px 56px;
  border-radius: 32px;
  background:
    radial-gradient(ellipse 70% 90% at 82% 18%, var(--hero-glow-1), transparent 60%),
    radial-gradient(ellipse 60% 80% at 6% 88%, var(--hero-glow-2), transparent 60%),
    var(--hero-base);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(79, 70, 229, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 70, 229, 0.045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 75% 75% at 50% 45%, black, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 75% 75% at 50% 45%, black, transparent 75%);
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--accent-wash);
  border: 1px solid rgba(37, 99, 235, 0.28);
  padding: 7px 15px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero-kicker svg { width: 14px; height: 14px; }
.hero h1 {
  font-size: clamp(2.3rem, 4.8vw, 3.6rem);
  line-height: 1.05;
  font-weight: 700;
  margin-bottom: 20px;
}
.hero h1 .grad { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--text-dim); font-size: 1.08rem; line-height: 1.7; max-width: 480px; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-art { position: relative; z-index: 1; display: grid; place-items: center; }
.hero-art svg { width: 100%; max-width: 380px; filter: drop-shadow(0 30px 50px rgba(37, 99, 235, 0.30)); animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-16px) rotate(2deg); } }

.hero-stats { display: flex; gap: 40px; margin-top: 40px; }
.hero-stat strong { display: block; font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; }
.hero-stat span { color: var(--text-faint); font-size: 0.82rem; }

/* ─── Boutons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  padding: 13px 26px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: transform 0.15s, box-shadow 0.25s, background 0.2s, opacity 0.2s, color 0.2s, border-color 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--gradient); color: var(--on-primary); box-shadow: var(--shadow-accent); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 24px 50px -16px rgba(37, 99, 235, 0.6); }
.btn-ghost { background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); box-shadow: var(--shadow-xs); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-sm); }
.btn-sm { padding: 9px 18px; font-size: 0.86rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-block { width: 100%; }

/* ─── Catégories ─── */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.25s;
}
.cat-card:hover { transform: translateY(-4px); border-color: rgba(37, 99, 235, 0.45); box-shadow: var(--shadow); }
.cat-card .cat-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: var(--accent-wash); color: var(--accent); }
.cat-card h3 { font-size: 1rem; }
.cat-card span { color: var(--text-faint); font-size: 0.82rem; }

/* ─── Grille produits ─── */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: transform 0.22s, border-color 0.22s, box-shadow 0.28s;
  cursor: pointer;
}
.product-card:hover { transform: translateY(-6px); border-color: rgba(37, 99, 235, 0.40); box-shadow: var(--shadow); }

.product-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 80% at 50% 115%, var(--tint, rgba(37, 99, 235, 0.10)), transparent 70%),
    linear-gradient(180deg, #ffffff, #eef1f8);
  border-bottom: 1px solid var(--border);
}
.product-visual svg { width: 58%; height: auto; transition: transform 0.3s; }
.product-card:hover .product-visual svg { transform: scale(1.08) rotate(-1.5deg); }

/* Photo produit : recouvre le visuel SVG ; si l'image manque,
   onerror la retire et le SVG en dessous reste visible. */
.pimg {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #ffffff;
  padding: 14px;
  transition: transform 0.3s;
}
.product-card:hover .pimg { transform: scale(1.05); }
.badge { z-index: 2; }
.cart-item-visual, .picker-visual { position: relative; overflow: hidden; }
.cart-item-visual .pimg { padding: 4px; border-radius: 11px; }
.picker-visual .pimg { padding: 3px; border-radius: 8px; }
.product-page-visual { overflow: hidden; }
.product-page-visual .pimg { padding: 36px; animation: none; }

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  color: var(--text-dim);
}
.badge.promo { color: #be123c; border-color: rgba(244, 63, 94, 0.4); }
.badge.top { color: #b45309; border-color: rgba(245, 158, 11, 0.45); }
.badge.flagship { color: var(--accent-ink); border-color: rgba(37, 99, 235, 0.45); }
.badge.new { color: #15803d; border-color: rgba(34, 197, 94, 0.45); }

.product-info { display: flex; flex-direction: column; gap: 7px; padding: 16px 18px 18px; flex: 1; }
.product-brand { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--accent); }
.product-name { font-size: 0.98rem; font-weight: 600; line-height: 1.35; color: var(--text); }
.product-rating { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--text-dim); }
.stars { color: var(--amber); letter-spacing: 1.5px; font-size: 0.8rem; }
.product-bottom { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding-top: 8px; }
.price { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--text); }
.price-old { display: block; color: var(--text-faint); font-size: 0.8rem; text-decoration: line-through; font-weight: 400; }
.stock-dot { font-size: 0.76rem; color: var(--green); font-weight: 500; }
.stock-dot.low { color: var(--amber); }
.stock-dot.out { color: var(--red); }

.add-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: none;
  background: var(--gradient);
  color: var(--on-primary);
  box-shadow: var(--shadow-accent);
  transition: transform 0.15s, box-shadow 0.2s;
}
.add-btn:hover { transform: scale(1.1); box-shadow: 0 12px 26px -8px rgba(37, 99, 235, 0.6); }
.add-btn:disabled { background: var(--surface-2); color: var(--text-faint); cursor: not-allowed; transform: none; box-shadow: none; }

/* ─── Bannière promo ─── */
.promo-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 38px 44px;
  border-radius: var(--radius);
  color: #fff;
  background: var(--gradient);
  box-shadow: var(--shadow-accent);
  position: relative;
  overflow: hidden;
}
.promo-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 120% at 90% 0%, rgba(255,255,255,0.22), transparent 60%),
    radial-gradient(ellipse 40% 120% at 10% 100%, rgba(255,255,255,0.12), transparent 60%);
  pointer-events: none;
}
.promo-banner > * { position: relative; z-index: 1; }
.promo-banner h3 { font-size: 1.6rem; margin-bottom: 6px; color: #fff; display: flex; align-items: center; gap: 10px; }
.promo-banner p { color: rgba(255, 255, 255, 0.88); }
.promo-banner code { background: rgba(255, 255, 255, 0.22); color: #fff; padding: 2px 10px; border-radius: 8px; font-weight: 700; }
.promo-banner .btn-primary { background: #fff; color: var(--accent-ink); box-shadow: 0 14px 30px -12px rgba(0,0,0,0.35); }
.promo-banner .btn-primary:hover { box-shadow: 0 20px 40px -14px rgba(0,0,0,0.45); }

/* ─── Atouts ─── */
.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.perk { display: flex; gap: 14px; align-items: flex-start; padding: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-xs); transition: transform 0.2s, box-shadow 0.25s; }
.perk:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.perk-icon { flex-shrink: 0; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; background: var(--accent-wash); color: var(--accent); }
.perk-icon svg { width: 22px; height: 22px; }
.perk h4 { font-size: 0.95rem; margin-bottom: 4px; }
.perk p { font-size: 0.82rem; color: var(--text-dim); line-height: 1.55; }

/* ─── Page catalogue ─── */
.catalog-layout { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start; }
.filters { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 22px; padding: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-xs); }
.filters h3 { font-size: 1.05rem; }
.filter-group { display: flex; flex-direction: column; gap: 8px; }
.filter-group > span { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-faint); }
.filter-option { display: flex; align-items: center; gap: 9px; font-size: 0.9rem; color: var(--text-dim); cursor: pointer; padding: 3px 0; transition: color 0.15s; }
.filter-option:hover { color: var(--text); }
.filter-option input { accent-color: var(--accent); width: 16px; height: 16px; }
.price-inputs { display: flex; gap: 8px; align-items: center; }
.price-inputs input {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  padding: 9px 11px;
  font-size: 0.86rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.price-inputs input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12); }

.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.catalog-toolbar h1 { font-size: 1.6rem; }
.catalog-toolbar .count { color: var(--text-faint); font-size: 0.88rem; margin-left: 10px; font-family: var(--font-body); font-weight: 400; }
.select {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--text);
  padding: 9px 16px;
  font-size: 0.88rem;
  outline: none;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.15s;
}
.select:hover { border-color: var(--accent); }

.empty-state { text-align: center; padding: 80px 20px; color: var(--text-dim); }
.empty-state .big { font-size: 2.6rem; margin-bottom: 12px; }

/* ─── Page produit ─── */
.breadcrumb { display: flex; gap: 8px; font-size: 0.85rem; color: var(--text-faint); margin-bottom: 24px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--accent); }

.product-page { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.product-gallery { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 12px; }
.pp-thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.pp-thumb {
  width: 66px; height: 66px; padding: 4px; flex: none;
  background: #ffffff; border: 1px solid var(--border-strong); border-radius: 14px;
  cursor: pointer; display: grid; place-items: center; overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.pp-thumb img { width: 100%; height: 100%; object-fit: contain; }
.pp-thumb:hover { border-color: var(--accent); transform: translateY(-2px); }
.pp-thumb.active { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.22); }
.product-page-visual {
  position: relative;   /* ancre l'image absolue .pimg DANS le carré (sinon elle déborde sur la galerie et masque les miniatures) */
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 26px;
  background:
    radial-gradient(ellipse 90% 80% at 50% 115%, var(--tint, rgba(37, 99, 235, 0.12)), transparent 70%),
    linear-gradient(180deg, #ffffff, #eef1f8);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.product-page-visual svg { width: 62%; filter: drop-shadow(0 22px 44px rgba(15, 23, 42, 0.18)); animation: float 7s ease-in-out infinite; }

.product-page-info h1 { font-size: 2rem; line-height: 1.18; margin: 6px 0 14px; }
.product-page-info .product-brand { font-size: 0.85rem; }
.product-page-info .desc { color: var(--text-dim); line-height: 1.7; margin: 18px 0 24px; }
.price-row { display: flex; align-items: baseline; gap: 14px; margin: 18px 0; }
.price-row .price { font-size: 2.3rem; }
.price-row .price-old { font-size: 1.05rem; display: inline; }
.discount-chip { background: rgba(239, 68, 68, 0.12); color: #be123c; font-size: 0.8rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; }

.buy-row { display: flex; gap: 12px; align-items: stretch; margin: 22px 0; }
.qty-picker { display: flex; align-items: center; border: 1px solid var(--border-strong); border-radius: 999px; overflow: hidden; background: var(--surface); }
.qty-picker button { width: 42px; height: 100%; min-height: 46px; background: none; border: none; color: var(--text); font-size: 1.1rem; transition: background 0.15s, color 0.15s; }
.qty-picker button:hover { background: var(--accent-wash); color: var(--accent-ink); }
.qty-picker span { min-width: 38px; text-align: center; font-weight: 600; }

.specs-table { width: 100%; border-collapse: collapse; margin-top: 14px; }
.specs-table td { padding: 12px 14px; font-size: 0.9rem; border-bottom: 1px solid var(--border); }
.specs-table td:first-child { color: var(--text-faint); width: 42%; }
.specs-table tr:last-child td { border-bottom: none; }
.specs-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 6px; box-shadow: var(--shadow-xs); }

.reviews { margin-top: 56px; }
.review-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 12px; box-shadow: var(--shadow-xs); }
.review-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.review-head strong { font-size: 0.94rem; }
.review-card p { color: var(--text-dim); font-size: 0.92rem; line-height: 1.6; }
.review-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 14px; margin-top: 20px; box-shadow: var(--shadow-xs); }
.review-form textarea {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); padding: 12px 14px; font-size: 0.92rem; min-height: 90px; resize: vertical; outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.review-form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12); }
.star-picker { display: flex; gap: 4px; font-size: 1.5rem; }
.star-picker button { background: none; border: none; color: var(--text-faint); transition: color 0.12s, transform 0.12s; }
.star-picker button.on { color: var(--amber); }
.star-picker button:hover { transform: scale(1.2); }

/* ─── Panier latéral ─── */
.drawer-overlay, .modal-overlay {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.2s;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 100;
  width: min(430px, 100vw);
  display: flex; flex-direction: column;
  background: var(--bg);
  border-left: 1px solid var(--border);
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.2, 0.9, 0.3, 1);
  box-shadow: -28px 0 70px -20px rgba(15, 23, 42, 0.3);
}
.cart-drawer.open { transform: translateX(0); }
.cart-drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--border); background: var(--surface); }
.cart-drawer-body { flex: 1; overflow-y: auto; padding: 18px 24px; }
.cart-drawer-foot { padding: 20px 24px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 12px; background: var(--surface); }

.cart-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.cart-item-visual {
  flex-shrink: 0; width: 70px; height: 70px; display: grid; place-items: center;
  border-radius: 14px; background: #ffffff; border: 1px solid var(--border);
}
.cart-item-visual svg { width: 70%; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-info h4 { font-size: 0.88rem; font-weight: 600; line-height: 1.3; margin-bottom: 4px; }
.cart-item-info .price { font-size: 0.95rem; }
.cart-item-qty { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.cart-item-qty button {
  width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text); font-size: 0.95rem; line-height: 1;
  transition: border-color 0.15s, color 0.15s;
}
.cart-item-qty button:hover { border-color: var(--accent); color: var(--accent); }
.cart-item-remove { background: none; border: none; color: var(--text-faint); font-size: 0.78rem; margin-top: 6px; }
.cart-item-remove:hover { color: var(--red); text-decoration: underline; }

.cart-totals { display: flex; flex-direction: column; gap: 7px; font-size: 0.92rem; }
.cart-totals .row { display: flex; justify-content: space-between; color: var(--text-dim); }
.cart-totals .row.total { color: var(--text); font-weight: 700; font-size: 1.15rem; padding-top: 8px; border-top: 1px solid var(--border); margin-top: 4px; }
.cart-totals .row .green { color: var(--green); }

.cart-trust {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.cart-trust span, .trust-strip span {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: var(--text-dim);
  font-size: 0.78rem;
  font-weight: 600;
}
.cart-trust svg, .trust-strip svg {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--accent);
}
.shipping-meter {
  position: relative;
  overflow: hidden;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--accent-wash);
  color: var(--accent-ink);
  font-size: 0.8rem;
  font-weight: 700;
}
.shipping-meter span { position: relative; z-index: 1; }
.shipping-meter b {
  position: absolute;
  inset: 0 auto 0 0;
  display: block;
  background: rgba(0, 102, 204, 0.14);
}

.promo-row { display: flex; gap: 8px; }
.promo-row input {
  flex: 1; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 999px;
  color: var(--text); padding: 10px 16px; font-size: 0.86rem; outline: none; text-transform: uppercase;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.promo-row input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12); }

/* ─── Modales ─── */
.modal-overlay { display: grid; place-items: center; padding: 20px; }
.modal {
  position: relative;
  width: min(420px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 30px;
  box-shadow: var(--shadow-lg);
  animation: popIn 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
@keyframes popIn { from { opacity: 0; transform: translateY(14px) scale(0.97); } to { opacity: 1; transform: none; } }
.modal-close { position: absolute; top: 16px; right: 16px; background: none; border: none; color: var(--text-faint); font-size: 1rem; }
.modal-close:hover { color: var(--text); }

.auth-tabs { display: flex; gap: 6px; background: var(--surface-2); padding: 5px; border-radius: 999px; margin-bottom: 22px; }
.auth-tab { flex: 1; padding: 9px; border: none; border-radius: 999px; background: none; color: var(--text-dim); font-weight: 600; font-size: 0.9rem; transition: background 0.2s, color 0.2s, box-shadow 0.2s; }
.auth-tab.active { background: var(--gradient); color: var(--on-primary); box-shadow: var(--shadow-accent); }

.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-form label { display: flex; flex-direction: column; gap: 6px; font-size: 0.84rem; font-weight: 600; color: var(--text-dim); }
.auth-form input, .auth-form select, .auth-form textarea,
.form-grid input, .form-grid select, .form-grid textarea {
  width: 100%;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); padding: 12px 14px; font-size: 0.94rem; outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.auth-form input:focus, .auth-form select:focus, .auth-form textarea:focus,
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14); }
/* Select : on retire l'apparence native et on dessine une flèche cohérente. */
.auth-form select, .form-grid select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234a5568' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.auth-form select option, .form-grid select option { background: var(--surface); color: var(--text); }
.auth-form textarea, .form-grid textarea { resize: vertical; min-height: 64px; line-height: 1.5; }
.auth-hint { font-size: 0.8rem; color: var(--text-faint); text-align: center; }
.auth-hint a { color: var(--accent); }
.auth-hint a:hover { color: var(--accent-ink); text-decoration: underline; }
.auth-hint code { color: var(--accent); }

/* ─── Checkout ─── */
.checkout-layout { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 28px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-xs); }
.panel h2 { font-size: 1.25rem; margin-bottom: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid label { display: flex; flex-direction: column; gap: 6px; font-size: 0.84rem; font-weight: 600; color: var(--text-dim); }
.form-grid label.full { grid-column: 1 / -1; }
.summary-line { display: flex; justify-content: space-between; padding: 9px 0; font-size: 0.9rem; color: var(--text-dim); border-bottom: 1px solid var(--border); }
.summary-line:last-of-type { border: none; color: var(--text); font-weight: 700; font-size: 1.1rem; }

/* ─── Pages de confiance ─── */
.content-page {
  max-width: 1120px;
  margin: 0 auto;
}
.content-hero {
  padding: 42px 0 22px;
  max-width: 850px;
}
.content-hero.compact { max-width: 720px; }
.eyebrow {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.content-hero h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.content-hero.compact h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
.content-hero p {
  margin-top: 18px;
  color: var(--text-dim);
  font-size: 1.08rem;
  line-height: 1.6;
}
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 28px;
}
.trust-strip span {
  padding: 10px 13px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.story-grid, .legal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 22px;
}
.legal-grid { grid-template-columns: repeat(2, 1fr); }
.story-grid article, .legal-grid article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.story-grid h2, .legal-grid h2 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}
.story-grid p, .legal-grid p {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.62;
}
.content-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.legal-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--text-dim);
  font-size: 0.84rem;
  line-height: 1.5;
}
.legal-consent input {
  width: auto;
  flex: none;
  margin-top: 3px;
}
.legal-consent a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.cookie-banner {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 120;
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.cookie-banner strong {
  display: block;
  margin-bottom: 4px;
}
.cookie-banner p {
  color: var(--text-dim);
  font-size: 0.86rem;
  line-height: 1.5;
}
.cookie-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* ─── Compte / commandes ─── */
.order-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 14px; box-shadow: var(--shadow-xs); }
.order-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.order-head h3 { font-size: 1.02rem; }
.order-status { font-size: 0.78rem; font-weight: 700; color: var(--green); background: rgba(34, 197, 94, 0.12); padding: 5px 12px; border-radius: 999px; }
.order-items { font-size: 0.88rem; color: var(--text-dim); line-height: 1.8; }
.order-total { margin-top: 10px; font-weight: 700; font-family: var(--font-display); }

/* ─── Configurateur ─── */
.builder-layout { display: grid; grid-template-columns: 1fr 320px; gap: 28px; align-items: start; }
.builder-slot {
  display: flex; align-items: center; gap: 18px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 22px; margin-bottom: 12px; box-shadow: var(--shadow-xs);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.builder-slot:hover { border-color: var(--border-strong); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.builder-slot.filled { border-color: rgba(34, 197, 94, 0.45); }
.builder-slot-icon { flex-shrink: 0; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--accent-wash); color: var(--accent); }
.builder-slot-main { flex: 1; min-width: 0; }
.builder-slot-main h3 { font-size: 0.95rem; margin-bottom: 3px; }
.builder-slot-main p { font-size: 0.84rem; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.builder-slot .price { font-size: 1rem; }

.builder-summary { position: sticky; top: 96px; }
.compat { display: flex; flex-direction: column; gap: 8px; margin: 16px 0; }
.compat-item { display: flex; gap: 9px; align-items: flex-start; font-size: 0.84rem; line-height: 1.45; }
.compat-item.ok { color: var(--green); }
.compat-item.warn { color: #b45309; }
.compat-item.err { color: var(--red); }
.watt-bar { height: 8px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--border); overflow: hidden; margin: 8px 0 4px; }
.watt-bar > div { height: 100%; background: var(--gradient); border-radius: 99px; transition: width 0.4s; }
.watt-label { font-size: 0.8rem; color: var(--text-dim); }

.picker-list { display: flex; flex-direction: column; gap: 10px; max-height: 60vh; overflow-y: auto; margin-top: 16px; }
.picker-item {
  display: flex; align-items: center; gap: 14px; text-align: left;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 13px 16px; color: var(--text); transition: border-color 0.15s, background 0.15s;
}
.picker-item:hover { border-color: var(--accent); background: var(--accent-wash); }
.picker-item.incompatible { opacity: 0.45; }
.picker-item .picker-visual { width: 46px; height: 46px; flex-shrink: 0; display: grid; place-items: center; background: #fff; border-radius: 10px; border: 1px solid var(--border); }
.picker-item .picker-visual svg { width: 86%; }
.picker-item-info { flex: 1; min-width: 0; }
.picker-item-info strong { display: block; font-size: 0.88rem; }
.picker-item-info span { font-size: 0.78rem; color: var(--text-faint); }
.modal.wide { width: min(560px, 100%); }

/* ─── Toasts ─── */
.toasts { position: fixed; bottom: 24px; right: 24px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast {
  display: flex; align-items: center; gap: 11px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 14px;
  padding: 14px 18px;
  font-size: 0.9rem;
  color: var(--text);
  box-shadow: var(--shadow);
  animation: toastIn 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2);
  max-width: 360px;
}
.toast.error { border-left-color: var(--red); }
.toast.success { border-left-color: var(--green); }
@keyframes toastIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
.toast.out { animation: toastOut 0.3s forwards; }
@keyframes toastOut { to { opacity: 0; transform: translateX(40px); } }

/* ─── Skeletons ─── */
.skeleton { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); overflow: hidden; position: relative; min-height: 320px; }
.skeleton::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(15, 23, 42, 0.05) 50%, transparent 70%);
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* ─── Footer ─── */
.footer { border-top: 1px solid var(--border); background: var(--surface); padding: 56px 28px 24px; margin-top: 40px; }
.footer-grid { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr repeat(5, 1fr); gap: 30px; }
.footer-grid h4 { font-size: 0.92rem; margin-bottom: 14px; }
.footer-grid a, .footer-line { display: block; color: var(--text-dim); font-size: 0.86rem; padding: 4px 0; }
.footer-grid a:hover { color: var(--accent); }
.footer-brand p { color: var(--text-dim); font-size: 0.86rem; line-height: 1.65; margin-top: 14px; max-width: 320px; }
.footer-bottom { max-width: 1280px; margin: 36px auto 0; padding-top: 20px; border-top: 1px solid var(--border); color: var(--text-faint); font-size: 0.8rem; }
.footer-bottom a { color: var(--accent); }

/* ─── Responsive ─── */
@media (max-width: 1080px) {
  .product-grid, .cat-grid, .perks { grid-template-columns: repeat(3, 1fr); }
  .hero { grid-template-columns: 1fr; padding: 48px 34px; }
  .hero-art { display: none; }
  .nav { display: none; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px) {
  .product-grid, .cat-grid, .perks { grid-template-columns: repeat(2, 1fr); }
  .catalog-layout, .product-page, .checkout-layout, .builder-layout, .story-grid, .legal-grid { grid-template-columns: 1fr; }
  .cookie-banner { grid-template-columns: 1fr; }
  .cookie-actions { justify-content: stretch; }
  .cookie-actions .btn { flex: 1; }
  .filters, .product-gallery, .builder-summary { position: static; }
  .header { flex-wrap: wrap; gap: 12px; padding: 12px 16px; }
  .header-search { order: 3; max-width: none; flex-basis: 100%; }
  .icon-btn-label { display: none; }
  .app { padding: 20px 16px 60px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .promo-banner { flex-direction: column; text-align: center; }
}
@media (max-width: 520px) {
  .product-grid { grid-template-columns: 1fr; }
  .cat-grid, .perks { grid-template-columns: 1fr; }
  .cart-trust { grid-template-columns: 1fr; }
  .content-hero { padding-top: 28px; }
  .content-hero h1 { font-size: 2.1rem; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ════════════════════════════════════════════════════════════════
   Ajouts : favoris, comparateur, pagination, compte, dashboard admin
   ════════════════════════════════════════════════════════════════ */

/* ─── Actions sur la carte produit (favori + comparer) ─── */
.product-visual { position: relative; }
.card-actions {
  position: absolute; top: 8px; right: 8px;
  display: flex; flex-direction: column; gap: 6px;
  opacity: 0; transform: translateY(-4px);
  transition: opacity 0.18s, transform 0.18s; z-index: 2;
}
.product-card:hover .card-actions { opacity: 1; transform: none; }
.fav-btn, .cmp-btn {
  width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 11px; border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9); color: var(--text-dim);
  backdrop-filter: blur(6px); box-shadow: var(--shadow-xs);
  transition: all 0.15s; font-size: 1rem; line-height: 1;
}
.fav-btn:hover, .cmp-btn:hover { color: var(--accent-ink); border-color: var(--accent); }
.fav-btn.on { color: var(--red); border-color: var(--red); }
.fav-btn.on svg path { fill: var(--red); }
.cmp-btn.on { color: var(--accent-ink); border-color: var(--accent); background: var(--accent-wash-strong); }
@media (hover: none) { .card-actions { opacity: 1; transform: none; } }

/* Boutons favori/comparer sur la fiche produit */
.pp-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.btn.fav-active { border-color: var(--accent); color: var(--accent-ink); }

/* ─── Barre de comparaison flottante ─── */
.compare-bar {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%);
  z-index: 60; display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  max-width: calc(100vw - 32px);
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: 16px; padding: 12px 16px; box-shadow: var(--shadow-lg);
}
.compare-bar-label { font-weight: 600; font-family: var(--font-display); }
.compare-bar-items { display: flex; gap: 6px; flex-wrap: wrap; }
.compare-chip {
  font-size: 0.78rem; padding: 5px 10px; border-radius: 999px; cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--text-dim);
  transition: color 0.15s, border-color 0.15s;
}
.compare-chip:hover { color: var(--red); border-color: var(--red); }

/* ─── Tableau du comparateur ─── */
.cmp-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-xs); }
.cmp-table { border-collapse: collapse; width: 100%; min-width: 560px; background: var(--surface); }
.cmp-table th, .cmp-table td {
  padding: 12px 14px; border-bottom: 1px solid var(--border);
  text-align: left; vertical-align: middle; font-size: 0.9rem;
}
.cmp-table thead th { background: var(--surface-2); vertical-align: bottom; }
.cmp-label { color: var(--text-dim); font-weight: 600; width: 160px; background: var(--surface-2); }
.cmp-col { min-width: 170px; }
.cmp-visual { width: 70px; height: 70px; position: relative; margin-bottom: 8px; }
.cmp-visual svg, .cmp-visual .pimg { width: 100%; height: 100%; object-fit: contain; }
.cmp-name { font-weight: 600; font-family: var(--font-display); font-size: 0.88rem; }
.cmp-remove { background: none; border: none; color: var(--text-faint); font-size: 0.75rem; margin-top: 6px; }
.cmp-remove:hover { color: var(--red); }
.cmp-old { color: var(--text-faint); text-decoration: line-through; font-weight: 400; }

/* ─── Pagination ─── */
.pager { display: flex; justify-content: center; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 32px; }
.pager-btn {
  min-width: 38px; height: 38px; padding: 0 12px; border-radius: 11px;
  background: var(--surface); border: 1px solid var(--border-strong); color: var(--text);
  font-weight: 600; box-shadow: var(--shadow-xs); transition: all 0.15s;
}
.pager-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent-ink); }
.pager-btn.active { background: var(--gradient); color: var(--on-primary); border-color: transparent; box-shadow: var(--shadow-accent); }
.pager-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.pager-gap { color: var(--text-faint); padding: 0 4px; }

/* ─── Avis : badge achat vérifié + actions ─── */
.verified-badge {
  font-size: 0.72rem; font-weight: 600; color: var(--green);
  border: 1px solid rgba(34, 197, 94, 0.5); border-radius: 999px; padding: 2px 8px; white-space: nowrap;
}
.review-mine { display: flex; gap: 8px; margin-top: 10px; }

/* ─── Compte : onglets ─── */
.account-tabs { display: flex; gap: 6px; margin-bottom: 22px; flex-wrap: wrap; border-bottom: 1px solid var(--border); }
.account-tab {
  background: none; border: none; color: var(--text-dim); font-weight: 600;
  font-family: var(--font-display); padding: 10px 16px; border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s;
}
.account-tab:hover { color: var(--text); }
.account-tab.active { color: var(--accent-ink); border-bottom-color: var(--accent); }

/* ─── Dashboard admin : KPI ─── */
.kpi-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px; margin-bottom: 22px;
}
.kpi-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; box-shadow: var(--shadow-xs);
}
.kpi-label { color: var(--text-dim); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }
.kpi-value { font-family: var(--font-display); font-size: 1.6rem; }
.kpi-sub { color: var(--text-faint); font-size: 0.8rem; }
.admin-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 800px) { .admin-cols { grid-template-columns: 1fr; } }
.mini-table { width: 100%; border-collapse: collapse; }
.mini-table th, .mini-table td { padding: 9px 6px; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.85rem; }
.mini-table th { color: var(--text-dim); font-weight: 600; font-size: 0.75rem; text-transform: uppercase; }
.mini-table td:nth-child(2), .mini-table td:nth-child(3),
.mini-table th:nth-child(2), .mini-table th:nth-child(3) { text-align: right; white-space: nowrap; }
.status-pills { display: flex; gap: 10px; flex-wrap: wrap; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); box-shadow: var(--shadow-xs); }
.status-pill:hover { border-color: var(--accent); }

/* ─── Recherche admin ─── */
.admin-search { display: flex; gap: 8px; align-items: center; flex: 1; min-width: 260px; }
.admin-search input {
  flex: 1; padding: 10px 13px; border-radius: 11px;
  background: var(--surface); border: 1px solid var(--border-strong); color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.admin-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12); }

/* ════════════════════════════════════════════════════════════════
   Home v3 : scène 3D, PC prémontés, mini-3D services
   ════════════════════════════════════════════════════════════════ */

/* ─── Scène 3D principale (PC qui tourne au scroll) ─── */
.scene-3d {
  position: relative;
  margin: 80px 0;
  min-height: 78vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  perspective: 1400px;
}
.scene-3d-copy h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); line-height: 1.08; margin-bottom: 16px; }
.scene-3d-copy h2 .grad { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.scene-3d-copy p { color: var(--text-dim); font-size: 1.05rem; line-height: 1.7; max-width: 460px; margin-bottom: 26px; }
.scene-stage { display: grid; place-items: center; perspective: 1200px; }

/* Tour PC en CSS 3D (W=200 H=420 D=420) */
.pc3d { width: 200px; height: 420px; position: relative; transform-style: preserve-3d;
  transform: rotateX(-12deg) rotateY(var(--rot, -28deg));
  filter: drop-shadow(0 50px 60px rgba(15,23,42,.35)); will-change: transform; }
.pc3d.spin { animation: pcspin 22s linear infinite; }
@keyframes pcspin { to { transform: rotateX(-12deg) rotateY(332deg); } }
.pcf { position: absolute; left: 50%; top: 50%; }
.pcf.front, .pcf.back { width: 200px; height: 420px; margin: -210px 0 0 -100px;
  background: linear-gradient(160deg,#1f2937,#0f172a); border: 1px solid #334155; border-radius: 10px; }
.pcf.front { transform: translateZ(210px); overflow: hidden;
  background:
    radial-gradient(circle 72px at 100px 96px,  #11192a 15px, #60a5fa 17px, #a78bfa 38px, #22d3ee 60px, #0b1220 70px, #0b1220 72px),
    radial-gradient(circle 72px at 100px 224px, #11192a 15px, #60a5fa 17px, #a78bfa 38px, #22d3ee 60px, #0b1220 70px, #0b1220 72px),
    radial-gradient(circle 72px at 100px 352px, #11192a 15px, #60a5fa 17px, #a78bfa 38px, #22d3ee 60px, #0b1220 70px, #0b1220 72px),
    linear-gradient(160deg, #1f2937, #0f172a); }
.pcf.back  { transform: rotateY(180deg) translateZ(210px); background: linear-gradient(160deg,#111827,#0b1220); }
.pcf.left, .pcf.right { width: 420px; height: 420px; margin: -210px 0 0 -210px; }
.pcf.right { transform: rotateY(90deg) translateZ(100px);
  background: linear-gradient(120deg, rgba(59,130,246,.18), rgba(15,23,42,.55)); border: 1px solid rgba(59,130,246,.4); }
.pcf.left  { transform: rotateY(-90deg) translateZ(100px); background: linear-gradient(120deg,#0f172a,#1e293b); border: 1px solid #334155; }
.pcf.top, .pcf.bottom { width: 200px; height: 420px; margin: -210px 0 0 -100px; }
.pcf.top    { transform: rotateX(90deg) translateZ(210px); background: linear-gradient(160deg,#1e293b,#0f172a); border: 1px solid #334155; }
.pcf.bottom { transform: rotateX(-90deg) translateZ(210px); background: #0b1220; }
/* Façade vitrée : ventilateurs RGB */
.pc-fan { position: absolute; left: 26px; width: 148px; height: 148px; border-radius: 50%;
  border: 5px solid #060a12;
  background:
    radial-gradient(circle at 50% 50%, #1b2536 17%, transparent 18%),
    conic-gradient(from 0deg, #60a5fa, #a78bfa, #22d3ee, #60a5fa);
  box-shadow: 0 0 22px rgba(96,165,250,.55), inset 0 0 16px rgba(0,0,0,.65); }
.pc-fan::before { content:""; position:absolute; inset:50%; width:18px; height:18px; margin:-9px;
  border-radius:50%; background:#0b1220; box-shadow:0 0 0 4px rgba(96,165,250,.5); z-index:2; }
.pc-fan::after { content:""; position:absolute; inset:8px; border-radius:50%;
  background: repeating-conic-gradient(from 0deg, rgba(255,255,255,.20) 0deg 12deg, transparent 12deg 36deg);
  animation: fanspin 2.6s linear infinite; }
.pc-fan.f1 { top: 22px; } .pc-fan.f2 { top: 150px; } .pc-fan.f3 { top: 278px; }
@keyframes fanspin { to { transform: rotate(360deg); } }
.pc-strip { position: absolute; right: 12px; top: 18px; bottom: 18px; width: 7px; border-radius: 6px;
  background: linear-gradient(180deg,#60a5fa,#a78bfa,#22d3ee); box-shadow: 0 0 16px rgba(96,165,250,.9); }
.pcf.front { box-shadow: inset 0 0 40px rgba(96,165,250,.12); }

/* ─── PC prémontés ─── */
.prebuilts .pb-sub { color: var(--text-dim); margin: -10px 0 24px; max-width: 640px; }
.pb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pb-card { position: relative; display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-xs);
  transition: transform .22s, box-shadow .28s, border-color .22s; }
.pb-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(37,99,235,.4); }
.pb-card.featured { border-color: rgba(37,99,235,.6); box-shadow: var(--shadow-accent); }
.pb-head { padding: 22px 22px 16px; background: linear-gradient(160deg, rgba(59,130,246,.10), transparent); }
.pb-tier { font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.pb-name { font-family: var(--font-display); font-size: 1.5rem; margin: 4px 0 2px; }
.pb-tag { color: var(--text-dim); font-size: .9rem; }
.pb-compat { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: .78rem; font-weight: 600;
  color: var(--green); background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.3); padding: 5px 11px; border-radius: 999px; }
.pb-specs { list-style: none; padding: 6px 22px 4px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.pb-specs li { display: flex; gap: 10px; font-size: .86rem; padding: 7px 0; border-bottom: 1px solid var(--border); color: var(--text-dim); }
.pb-specs li:last-child { border-bottom: none; }
.pb-specs .k { color: var(--text-faint); width: 78px; flex: none; text-transform: uppercase; font-size: .68rem; font-weight: 700; letter-spacing: .04em; padding-top: 2px; }
.pb-specs .v { color: var(--text); font-weight: 500; }
.pb-foot { padding: 18px 22px 22px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pb-price { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; }
.pb-price small { display: block; font-size: .72rem; color: var(--text-faint); font-weight: 400; letter-spacing: .02em; }

/* ─── Mini-3D + services / garanties / légal ─── */
.services-3d { position: relative; margin: 80px 0 20px; padding: 44px; border-radius: 28px;
  background: linear-gradient(180deg,#ffffff,#f1f4fb); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: center; perspective: 900px; }
.mini3d-stage { display: grid; place-items: center; perspective: 700px; }
.cube3d { width: 110px; height: 110px; position: relative; transform-style: preserve-3d; animation: cubespin 16s linear infinite;
  filter: drop-shadow(0 24px 30px rgba(37,99,235,.3)); }
.cf { position: absolute; width: 110px; height: 110px; display: grid; place-items: center;
  background: linear-gradient(160deg, rgba(59,130,246,.16), rgba(139,92,246,.10)); border: 1px solid rgba(59,130,246,.45);
  border-radius: 14px; color: var(--accent-ink); }
.cf svg { width: 42px; height: 42px; }
.cf.f1 { transform: translateZ(55px); } .cf.f2 { transform: rotateY(90deg) translateZ(55px); }
.cf.f3 { transform: rotateY(180deg) translateZ(55px); } .cf.f4 { transform: rotateY(-90deg) translateZ(55px); }
.cf.f5 { transform: rotateX(90deg) translateZ(55px); } .cf.f6 { transform: rotateX(-90deg) translateZ(55px); }
@keyframes cubespin { to { transform: rotateX(-20deg) rotateY(360deg); } }
.svc-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.svc-cols h4 { font-size: .95rem; margin-bottom: 10px; }
.svc-cols a, .svc-cols span { display: block; color: var(--text-dim); font-size: .86rem; padding: 4px 0; }
.svc-cols a:hover { color: var(--accent); }

@media (max-width: 920px) {
  .scene-3d, .services-3d { grid-template-columns: 1fr; text-align: center; }
  .scene-3d-copy p { margin-inline: auto; }
  .pb-grid { grid-template-columns: 1fr; }
  .svc-cols { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .pc3d.spin, .cube3d, .pc-fan::after { animation: none; }
}

/* ════════════════════════════════════════════════════════════════
   Home v3.1 : entrée plein écran immersive + séparateurs 3D variés
   (profondeur / dépliage — au-delà de la simple rotation)
   ════════════════════════════════════════════════════════════════ */
/* Section « build » : zone de scroll haute, la scène 3D reste épinglée pendant
   qu'on la traverse → l'assemblage se déroule réellement à l'écran. */
.build-scroll { position: relative; margin: 56px 0; }
.build-pin { display: grid; grid-template-columns: 0.82fr 1.18fr; align-items: center; gap: 32px;
  min-height: 84vh; }
.build-copy h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.05; margin: 10px 0 16px; }
.build-copy h2 .grad { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.build-copy p { color: var(--text-dim); font-size: 1.05rem; line-height: 1.7; max-width: 420px; margin-bottom: 18px; }
.build-stage { position: relative; height: 100%; display: grid; place-items: center; }

/* Séparateur #1 — fly-through en profondeur (translateZ + zoom, sans rotation) */
.sep3d { position: relative; margin: 8px 0; pointer-events: none; }
.sep-depth { height: 56vh; display: grid; place-items: center; perspective: 900px; overflow: hidden; }
.sep-depth .depth { position: relative; width: 320px; height: 200px; transform-style: preserve-3d; }
.sep-depth i { position: absolute; inset: 0; border: 2px solid rgba(37,99,235,.55); border-radius: 20px;
  box-shadow: 0 0 34px rgba(37,99,235,.22), inset 0 0 22px rgba(139,92,246,.12);
  transform: translateZ(calc(-900px + var(--p,0) * 1100px - var(--i) * 150px)) scale(calc(.45 + var(--p,0) * .85));
  opacity: clamp(0, calc(var(--p,0) * 1.3 - var(--i) * .06), .92); }
.sep-label { position: absolute; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.1rem, 2.6vw, 1.9rem); letter-spacing: .2em; text-transform: uppercase; color: var(--accent-ink);
  opacity: var(--p,0); transform: scale(calc(.8 + var(--p,0) * .35)); }

/* Séparateur #2 — dépliage (rotateX 90→0 avec stagger), effet distinct du #1 */
.sep-fold { height: 32vh; display: flex; gap: 18px; align-items: center; justify-content: center; perspective: 800px; }
.sep-fold i { width: 84px; height: 84px; display: grid; place-items: center; border-radius: 20px;
  background: linear-gradient(160deg, rgba(59,130,246,.16), rgba(139,92,246,.10));
  border: 1px solid rgba(59,130,246,.4); color: var(--accent-ink); transform-origin: bottom center;
  transform: rotateX(calc((1 - var(--p,0)) * 92deg)) translateY(calc((1 - var(--p,0)) * 26px));
  opacity: clamp(0, calc(var(--p,0) * 1.5 - var(--i) * .14), 1);
  box-shadow: 0 14px 26px -14px rgba(37,99,235,.4); }
.sep-fold i svg { width: 38px; height: 38px; }

.svc-block .svc-cols { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 32px; box-shadow: var(--shadow-xs); display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }

@media (max-width: 920px) {
  .build-pin { grid-template-columns: 1fr; gap: 8px; min-height: auto; }
  .build-copy { text-align: center; }
  .build-copy p { margin-inline: auto; }
  .svc-block .svc-cols { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .sep-fold i { transform: none; opacity: 1; }
  .sep-depth i { opacity: .5; }
}

/* ─── Canvas WebGL (Three.js) ─── */
.hero-gl { width: 100%; height: min(82vh, 720px); display: block; cursor: grab; touch-action: pan-y; }
.hero-gl:active { cursor: grabbing; }
.gl-hint { display: inline-block; margin-top: 6px; font-size: .74rem;
  color: var(--text-faint); letter-spacing: .03em; }
@media (max-width: 920px) { .hero-gl { height: 52vh; } }

/* ════════════════════════════════════════════════════════════════
   Animations 3D « zoom » entre sections (pilotées par --p au scroll)
   ════════════════════════════════════════════════════════════════ */
.sep-zoom { position: relative; height: 82vh; display: grid; place-items: center;
  perspective: 700px; overflow: hidden; margin: 6px 0; pointer-events: none; }
.zoom-rings { position: absolute; inset: 0; display: grid; place-items: center; transform-style: preserve-3d; }
.zoom-rings i { position: absolute; width: 190px; height: 190px; border-radius: 50%;
  border: 2px solid rgba(37,99,235,.42); box-shadow: 0 0 44px rgba(37,99,235,.22);
  transform: translateZ(calc(-740px + var(--p,0) * 1040px - var(--i) * 120px)) scale(calc(.4 + var(--p,0) * 2));
  opacity: clamp(0, calc(var(--p,0) * 1.4 - var(--i) * .1), .7); }
.zoom-core { position: relative; display: grid; place-items: center; gap: 14px; text-align: center;
  transform: translateZ(calc(var(--p,0) * 120px)) scale(calc(.34 + var(--p,0) * 1.05));
  opacity: clamp(0, calc(var(--p,0) * 1.7 - .25), 1); }
.zoom-core svg { width: clamp(60px, 8.5vw, 116px); height: auto; color: var(--accent);
  filter: drop-shadow(0 10px 34px rgba(37,99,235,.5)); }
.zoom-core span { font-family: var(--font-display); font-weight: 700; letter-spacing: -.01em;
  font-size: clamp(1.4rem, 3.6vw, 2.7rem);
  background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sep-zoom-alt .zoom-rings i { border-color: rgba(168,85,247,.42); box-shadow: 0 0 44px rgba(168,85,247,.22); }
.sep-zoom-alt .zoom-core svg { color: var(--accent-2); filter: drop-shadow(0 10px 34px rgba(168,85,247,.5)); }
@media (max-width: 920px) { .sep-zoom { height: 60vh; } }
@media (prefers-reduced-motion: reduce) {
  .zoom-core { transform: none; opacity: 1; }
  .zoom-rings i { opacity: .25; transform: scale(1); }
}

/* ════════════════════════════════════════════════════════════════
   Surcouche « Cupertino » — applique fidèlement le style Apple
   par-dessus le système existant (classes inchangées).
   ════════════════════════════════════════════════════════════════ */

/* Apple = canvas blanc net : on masque le circuit décoratif de fond */
#bgfx { display: none !important; }

/* Aucun dégradé de texte : headlines à l'encre, logo en Action Blue */
.grad, .hero h1 .grad, .build-copy h2 .grad, .scene-3d-copy h2 .grad {
  background: none !important; -webkit-text-fill-color: var(--text); color: var(--text);
}
.logo em { background: none !important; -webkit-text-fill-color: var(--accent); color: var(--accent); }

/* Typo : « Apple tight » + poids 600, body 17px / 1.47 */
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.022em; }
.hero h1, .build-copy h2, .section-head h2, .catalog-toolbar h1, .product-page-info h1 { letter-spacing: -0.028em; }
.hero p, .product-page-info .desc, .perk p, .pb-tag { line-height: 1.47; }

/* Bandeau d'annonce : parchemin + encre (plus de barre dégradée) */
.announce { background: var(--bg-soft); color: var(--text); font-weight: 400; border-bottom: 1px solid var(--border); }
.announce strong { color: var(--accent); font-weight: 600; }
.announce-ico { color: var(--accent); }

/* Boutons : pilule plate, press = scale(0.95), zéro ombre, zéro lift */
.btn { box-shadow: none !important; transition: transform .12s ease, background .2s, color .2s, border-color .2s; }
.btn:hover { transform: none; box-shadow: none !important; }
.btn:active { transform: scale(0.95); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-soft); }
.btn-ghost { background: transparent; border: 1px solid var(--accent); color: var(--accent); }
.btn-ghost:hover { background: var(--accent-wash); color: var(--accent); border-color: var(--accent); }
.add-btn:hover { transform: none; }
.add-btn:active { transform: scale(0.92); }

/* Cartes : plates, hairline, pas d'ombre ni de lévitation (rythme par la surface) */
.product-card, .cat-card, .pb-card, .perk, .kpi-card, .panel, .order-card,
.review-card, .specs-card, .filters, .store-utility-card {
  box-shadow: none !important;
}
.product-card:hover, .cat-card:hover, .pb-card:hover, .perk:hover {
  transform: none !important; box-shadow: none !important; border-color: var(--border-strong);
}
.product-card { border-radius: var(--radius); }
.product-card:hover .pimg, .product-card:hover .product-visual svg { transform: none; }

/* Visuel produit : la SEULE ombre du système, sous le rendu produit */
.product-visual, .product-page-visual { background: var(--bg-soft); }
.product-page-visual .pimg { filter: drop-shadow(var(--shadow-product)); }

/* Bannière promo : tuile anthracite (le contraste de surface = la rupture) */
.promo-banner { background: var(--tile-dark); color: #fff; box-shadow: none; border: none; }
.promo-banner::after { display: none; }
.promo-banner h3 { color: #fff; }
.promo-banner p { color: var(--border-strong); }
.promo-banner code { background: rgba(255,255,255,0.16); color: #fff; }
.promo-banner .btn-primary { background: var(--accent); color: #fff; }

/* Animations zoom : on retire le glow/dégradé (Apple = sobre), accent unique */
.zoom-core span { background: none !important; -webkit-text-fill-color: var(--text); color: var(--text); }
.zoom-core svg, .sep-zoom-alt .zoom-core svg { color: var(--accent); filter: none; }
.zoom-rings i, .sep-zoom-alt .zoom-rings i { box-shadow: none; border-color: var(--border-strong); }

/* Liens & focus : Action Blue partout, anneau de focus net */
.section-head a, .nav-menu-all, .footer-grid a:hover, .footer-bottom a, .auth-hint a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 2px; }

/* Header : verre dépoli neutre (sub-nav Apple), s'adapte au thème */
.header { background: var(--header-bg); border-bottom: 1px solid var(--border); }
.nav a.active { background: var(--accent-wash); color: var(--accent); }
.icon-btn:hover { color: var(--accent); border-color: var(--border-strong); transform: none; }

/* Tuiles de section : alternance parchemin pour le rythme Apple */
.section.svc-block { background: var(--bg-soft); }

/* Headlines hero/section en poids 600 (Apple) */
.hero h1, .build-copy h2, .scene-3d-copy h2 { font-weight: 600; }

/* ════════════════════════════════════════════════════════════════
   Thème sombre — surcharge des variables (activé via data-theme="dark")
   ════════════════════════════════════════════════════════════════ */
:root[data-theme="dark"] {
  /* ── Variante CRÉPUSCULE : sunset sur ciel de dusk (plum profond) ── */
  --bg: #17111a;
  --bg-soft: #1e1722;
  --surface: #241b29;
  --surface-2: #2e2436;
  --header-bg: rgba(26, 18, 28, 0.72);
  --hero-base: radial-gradient(120% 130% at 80% -10%, #4a2434 0%, #17111a 58%);
  --hero-glow-1: rgba(255, 122, 46, 0.22);   /* halo orange */
  --hero-glow-2: rgba(255, 77, 109, 0.18);   /* halo corail */
  --tile-dark: #000000;
  --border: rgba(255, 200, 170, 0.10);
  --border-strong: rgba(255, 200, 170, 0.22);
  --text: #f7ece4;
  --text-dim: #bca99d;
  --text-faint: #84715f;
  --accent: #ff7a2e;            /* orange sunset (plus lumineux sur sombre) */
  --accent-soft: #ff9a5a;
  --accent-ink: #ffae73;        /* variante texte sur fond sombre */
  --accent-2: #ff5d80;          /* corail secondaire */
  --accent-on-dark: #ff9a5a;
  --gradient: linear-gradient(115deg, #ffc04d 0%, #ff7a2e 48%, #ff4d6d 100%);
  --accent-wash: rgba(255, 122, 46, 0.14);
  --accent-wash-strong: rgba(255, 122, 46, 0.24);
  --on-primary: #20100a;        /* encre chaude sur bouton orange → contraste */
  --green: #34d399;
  --green-soft: #4ade80;
  --red: #ff6b6b;
  --amber: #fbbf24;
  --shadow-lg: 0 24px 60px -24px rgba(0, 0, 0, 0.8);
  --shadow-accent: 0 10px 34px -12px rgba(255, 122, 46, 0.5);
  --shadow-product: rgba(0, 0, 0, 0.6) 0 10px 44px 2px;
}
:root[data-theme="dark"] body { background: var(--bg); color: var(--text); }

/* Transition douce lors du basculement de thème (classe ajoutée ~0,45 s par JS).
   Limitée à ce court instant → aucun coût sur les survols/animations habituels.
   Respecte « prefers-reduced-motion » (la classe n'est alors jamais ajoutée). */
/* Bascule de thème — cross-fade composité GPU (API View Transitions, Chrome/Edge).
   Toute la page est capturée et fondue en une seule couche → parfaitement fluide. */
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.35s;
  animation-timing-function: ease;
}
/* Repli pour les navigateurs sans View Transitions (Firefox/Safari anciens). */
.theme-anim, .theme-anim *:not(canvas) {
  transition: background-color 0.28s ease, color 0.28s ease, border-color 0.28s ease !important;
}
/* Petit clin d'œil : l'icône soleil/lune pivote au changement. */
#themeBtn svg { transition: transform 0.45s ease; }
#themeBtn:active svg { transform: rotate(40deg); }
:root[data-theme="dark"] .badge.promo { color: #ff7a90; }
:root[data-theme="dark"] .badge.top { color: #f0b35e; }
:root[data-theme="dark"] .badge.new { color: #5fd98a; }

/* Bouton thème : afficher l'icône pertinente selon le mode courant */
#themeBtn .theme-ico-moon { display: none; }
#themeBtn .theme-ico-sun { display: block; }
:root[data-theme="dark"] #themeBtn .theme-ico-sun { display: none; }
:root[data-theme="dark"] #themeBtn .theme-ico-moon { display: block; }

/* ════════════════════════════════════════════════════════════════
   Comparateur — surbrillance des meilleures valeurs + perf
   ════════════════════════════════════════════════════════════════ */
.cmp-table td.cmp-best {
  background: var(--accent-wash);
  color: var(--accent-ink);
  font-weight: 600;
}
.cmp-tag { color: var(--amber); margin-left: 2px; }
.cmp-best { background: var(--accent-wash); border-radius: 6px; }

.perf-pill, .usage-word {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}
.perf-pill.exc, .usage-word.exc { background: rgba(29, 158, 87, 0.16); color: var(--green); }
.perf-pill.good, .usage-word.good { background: var(--accent-wash); color: var(--accent-ink); }
.perf-pill.ok, .usage-word.ok { background: rgba(178, 80, 0, 0.14); color: var(--amber); }
.perf-pill.mid, .usage-word.mid { background: rgba(110, 110, 115, 0.16); color: var(--text-dim); }
.perf-pill.low, .usage-word.low { background: rgba(215, 0, 21, 0.12); color: var(--red); }

/* ════════════════════════════════════════════════════════════════
   Configurateur — score par usage + profils rapides
   ════════════════════════════════════════════════════════════════ */
.presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 22px;
}
.presets-label { font-weight: 600; color: var(--text-dim); margin-right: 4px; font-size: 0.9rem; }
.preset-btn {
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  padding: 8px 14px;
  border-radius: 999px;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.preset-btn:hover { border-color: var(--accent); color: var(--accent); }
.preset-btn.preset-reset { color: var(--text-dim); }

.usage-scores { margin: 16px 0; }
.usage-scores h3 { font-size: 0.95rem; margin-bottom: 10px; }
.usage-row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.85rem;
}
.usage-name { color: var(--text-dim); }
.score-track {
  height: 7px;
  background: var(--surface-2);
  border-radius: 999px;
  overflow: hidden;
}
.score-track b {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--accent);
}
.score-track b.exc { background: var(--green); }
.score-track b.good { background: var(--accent); }
.score-track b.ok { background: var(--amber); }
.score-track b.mid { background: var(--text-faint); }
.score-track b.low { background: var(--red); }

/* Grille de recommandations (fiche produit) : un peu plus compacte */
.reco-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }

/* ════════════════════════════════════════════════════════════════
   REDESIGN « VOLT — SUNSET »
   Couche signature : chaleur, dégradés coucher de soleil, profondeur douce.
   ════════════════════════════════════════════════════════════════ */

/* Titres serrés et gras */
.hero h1, .build-copy h2, .scene-3d-copy h2, .section-head h2,
.catalog-toolbar h1, .product-page-info h1 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.03;
}

/* Monospace réservé aux données chiffrées (prix, stats) — touche technique sobre */
.price, .product-bottom .price, .hero-stat strong, .cmp-table .price, .kpi-value {
  font-family: var(--font-mono);
  letter-spacing: -0.01em;
  font-feature-settings: "tnum" 1;
}
.hero-kicker, .product-brand {
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.product-brand { font-size: 0.72rem; font-weight: 600; }

/* Atmosphère : double halo sunset diffus, fixé derrière le contenu (pas de grille) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(55% 45% at 50% -6%, var(--hero-glow-1), transparent 72%),
    radial-gradient(50% 45% at 105% 5%, var(--hero-glow-2), transparent 72%);
}

/* Boutons : dégradé sunset + halo chaud, lift au survol */
.btn-primary {
  background: var(--gradient);
  color: var(--on-primary);
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: var(--shadow-accent);
}
.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: var(--shadow-accent), 0 0 26px -6px var(--accent);
}
.btn-ghost {
  border: 1px solid var(--border-strong);
  background: color-mix(in srgb, var(--surface) 55%, transparent);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-ink); }

/* Cartes produit : surface élevée, halo chaud + lift au survol */
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-wash-strong);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--accent-wash-strong);
}
.product-visual { background: var(--surface-2); }
.add-btn {
  background: var(--gradient);
  color: var(--on-primary);
  box-shadow: 0 0 16px -6px var(--accent);
}

/* Badges : pastille douce */
.badge {
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(6px);
  font-size: 0.64rem;
  letter-spacing: 0.04em;
  padding: 4px 9px;
}

/* En-têtes de section : barre d'accent sunset */
.section-head h2 { position: relative; padding-left: 16px; }
.section-head h2::before {
  content: "";
  position: absolute;
  left: 0; top: 0.12em; bottom: 0.12em;
  width: 4px;
  border-radius: 4px;
  background: var(--gradient);
}

/* Hero : grands rayons + halo chaud sur l'illustration + reveal échelonné */
.hero { border-radius: 28px; }
.hero-art svg { filter: drop-shadow(0 24px 60px var(--accent-wash-strong)); }
.hero-kicker {
  border: 1px solid var(--border-strong);
  background: var(--accent-wash);
  color: var(--accent-ink);
}
@keyframes voltReveal { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .hero-kicker, .hero h1, .hero p, .hero-cta, .hero-stats, .hero-art {
    animation: voltReveal 0.62s cubic-bezier(0.22, 0.61, 0.36, 1) both;
  }
  .hero h1 { animation-delay: 0.08s; }
  .hero p { animation-delay: 0.16s; }
  .hero-cta { animation-delay: 0.24s; }
  .hero-stats { animation-delay: 0.32s; }
  .hero-art { animation-delay: 0.18s; }
}

/* Nav active + focus champs : accent sunset */
.nav a.active { background: var(--accent-wash); color: var(--accent-ink); }
.nav-sale { color: var(--accent-ink); }
.header-search:focus-within,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-wash-strong);
}

/* ─── Hero : vraie photo de tour dans un écrin lumineux (halo + flottement) ─── */
.hero-build {
  position: relative;
  width: 100%;
  max-width: 470px;
  margin-inline: auto;
  border-radius: 28px;
  padding: 18px 26px 8px;
  background: radial-gradient(125% 100% at 50% 0%, #ffffff 0%, #fff0e2 100%);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.hero-build::before {   /* halo sunset balayant l'écrin */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(55% 50% at 82% 8%, var(--accent-wash-strong), transparent 60%);
}
.hero-build img {
  position: relative;
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 24px 40px rgba(50, 24, 10, 0.30));
  animation: heroFloat 6s ease-in-out infinite;
}
@keyframes heroFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@media (prefers-reduced-motion: reduce) { .hero-build img { animation: none; } }
