/* ═══════════════════════════════════════════════════
   CARTECADEAU — Design Système Blanc Premium
   ═══════════════════════════════════════════════════ */

:root {
  --bg-0: #ffffff;
  --bg-1: #f8f9fc;
  --bg-2: #f1f4f9;
  --bg-3: #e8edf5;

  --txt-0: #0f172a;
  --txt-1: #334155;
  --txt-2: #64748b;
  --txt-3: #94a3b8;

  --line: rgba(15, 23, 42, 0.09);
  --line-soft: rgba(15, 23, 42, 0.05);

  --indigo: #6366f1;
  --indigo-light: #818cf8;
  --violet: #8b5cf6;
  --cyan: #06b6d4;
  --cyan-light: #22d3ee;
  --gold: #f59e0b;
  --green: #10b981;
  --red: #ef4444;

  --grad-main: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
  --grad-warm: linear-gradient(135deg, #f59e0b, #f43f5e);
  --grad-hero: linear-gradient(135deg, #eef2ff 0%, #f0fdff 50%, #fefce8 100%);

  --radius: 18px;
  --radius-sm: 12px;
  --radius-xs: 8px;

  --shadow-xs: 0 1px 2px rgba(15,23,42,0.05);
  --shadow-sm: 0 2px 6px rgba(15,23,42,0.07), 0 1px 2px rgba(15,23,42,0.04);
  --shadow-md: 0 6px 20px rgba(15,23,42,0.09), 0 2px 6px rgba(15,23,42,0.05);
  --shadow-lg: 0 16px 48px rgba(15,23,42,0.12), 0 4px 14px rgba(15,23,42,0.07);
  --shadow-xl: 0 24px 64px rgba(15,23,42,0.15), 0 8px 24px rgba(15,23,42,0.08);
  --shadow-card: 0 2px 10px rgba(99,102,241,0.07), 0 1px 3px rgba(15,23,42,0.05);
  --shadow-btn: 0 6px 20px rgba(99,102,241,0.38);

  --font-main: "Hanken Grotesk", "Segoe UI", sans-serif;
  --font-display: "Bricolage Grotesque", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Animations globales ── */
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--tile, #6366f1) 40%, transparent); }
  50%       { box-shadow: 0 0 0 8px transparent; }
}
@keyframes grad-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes float-up {
  0%, 100% { transform: translateY(0px) rotate(var(--rot, 0deg)); }
  50%       { transform: translateY(-10px) rotate(var(--rot, 0deg)); }
}
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes rotText {
  0%, 28%   { opacity: 1; transform: translateY(0); }
  33%, 100% { opacity: 0; transform: translateY(10px); }
}
@keyframes marqueeMove {
  from { transform: translateX(0); }
  to   { transform: translateX(-33.333%); }
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes dot-bounce {
  0%, 80%, 100% { transform: scale(0.8); opacity: 0.5; }
  40%            { transform: scale(1.2); opacity: 1; }
}

/* ─────────────────────────────────────────────
   BASE
───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }

body {
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(99,102,241,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 85% 5%, rgba(6,182,212,0.05) 0%, transparent 55%),
    #fff;
  color: var(--txt-0);
  font-family: var(--font-main);
  line-height: 1.5;
}

/* Fond à points subtils */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: radial-gradient(circle, rgba(99,102,241,0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

/* ── Aurora animée ── */
.aurora {
  position: fixed;
  inset: -15% -25% auto;
  height: 600px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(800px 400px at 20% 30%, rgba(99,102,241,0.09), transparent 65%),
    radial-gradient(700px 350px at 78% 15%, rgba(6,182,212,0.07), transparent 60%),
    radial-gradient(500px 300px at 55% 80%, rgba(245,158,11,0.06), transparent 65%);
  filter: blur(40px);
  animation: grad-shift 18s ease infinite;
  background-size: 200% 200%;
}

/* ─────────────────────────────────────────────
   TYPOGRAPHIE
───────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--txt-0); }
a { color: var(--indigo); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--violet); }

.accent {
  background: linear-gradient(135deg, #6366f1, #8b5cf6, #06b6d4, #6366f1);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: grad-shift 5s ease infinite;
}

.kicker {
  margin: 0;
  color: var(--indigo);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
}

.meta { color: var(--txt-2); font-size: 0.9rem; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ─────────────────────────────────────────────
   LAYOUT
───────────────────────────────────────────── */
main { padding-top: 10px; }

.container {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 34px 24px;
}

/* ─────────────────────────────────────────────
   NAVBAR
───────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 12px 24px;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(99,102,241,0.04), 0 2px 12px rgba(15,23,42,0.05);
}

.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.22rem;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, #6366f1, #8b5cf6, #06b6d4);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: grad-shift 6s ease infinite;
}

.nav-links {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
}

.nav-link {
  color: var(--txt-1);
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.9rem;
  transition: background 0.15s, color 0.15s;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 12px;
  right: 12px;
  height: 2px;
  border-radius: 999px;
  background: var(--grad-main);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease-out);
}

.nav-link:hover { color: var(--indigo); background: rgba(99,102,241,0.06); }
.nav-link:hover::after { transform: scaleX(1); }

.nav-user {
  color: var(--txt-2);
  font-size: 0.86rem;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  font-weight: 500;
}

.nav-toggle, .nav-burger { display: none; }

/* ─────────────────────────────────────────────
   RECHERCHE HEADER
───────────────────────────────────────────── */
.header-search {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 260px;
  max-width: 400px;
  width: 100%;
  margin-right: 8px;
}

/* Inputs globaux */
.header-search input,
.catalog-search input,
.catalog-search select,
input[type="email"],
input[type="password"],
input[type="text"],
input[type="search"],
select,
textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--txt-0);
  font-family: inherit;
  font-size: 0.92rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.header-search input { padding-right: 78px; background: var(--bg-1); }
input::placeholder, textarea::placeholder { color: var(--txt-3); }

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--indigo);
  box-shadow: 0 0 0 4px rgba(99,102,241,0.1);
}

.header-search-btn {
  position: absolute;
  right: 5px;
  top: 5px;
  bottom: 5px;
  border: 0;
  border-radius: 7px;
  padding: 0 14px;
  font-weight: 700;
  font-size: 0.8rem;
  color: #fff;
  background: var(--grad-main);
  cursor: pointer;
  letter-spacing: 0.04em;
  overflow: hidden;
  transition: filter 0.15s, transform 0.12s;
}

.header-search-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,0.35) 50%, transparent 65%);
  background-size: 200% 100%;
  transform: translateX(-100%);
  transition: transform 0.5s;
}

.header-search-btn:hover { filter: brightness(1.1); }
.header-search-btn:hover::after { transform: translateX(100%); }

/* Dropdown */
.header-search-results {
  list-style: none;
  margin: 6px 0 0;
  padding: 8px;
  position: absolute;
  top: calc(100% + 2px);
  left: 0; right: 0;
  max-height: 340px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
  z-index: 100;
}

.header-search-item {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 9px;
  border-radius: 10px;
  color: var(--txt-0);
  transition: background 0.12s;
}
.header-search-item:hover { background: var(--bg-1); }

.header-search-thumb {
  width: 44px; height: 44px;
  border-radius: 10px; object-fit: cover;
}
.header-search-thumb-fallback {
  display: grid; place-items: center;
  font-weight: 800; color: #fff;
  background: var(--grad-main);
  border-radius: 10px;
}
.header-search-main { min-width: 0; }
.header-search-main strong {
  display: block;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.header-search-sub { color: var(--txt-2); font-size: 0.82rem; }
.header-search-meta {
  color: var(--indigo); font-size: 0.78rem;
  background: rgba(99,102,241,0.08);
  border: 1px solid rgba(99,102,241,0.15);
  border-radius: 999px; padding: 3px 8px; font-weight: 600;
}

/* ─────────────────────────────────────────────
   BOUTONS
───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-radius: 999px;
  padding: 12px 24px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
  background-size: 200% 200%;
  background-position: 0% 50%;
  transition: background-position 0.4s var(--ease-out),
              transform 0.15s var(--ease-bounce),
              box-shadow 0.2s;
  box-shadow: var(--shadow-btn);
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
}

/* Sweep shimmer */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255,255,255,0.28) 50%,
    transparent 70%
  );
  background-size: 200% 100%;
  transform: translateX(-100%);
  transition: transform 0.6s var(--ease-out);
}

.btn:hover {
  background-position: 100% 50%;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 30px rgba(99,102,241,0.45);
  color: #fff;
}
.btn:hover::before { transform: translateX(100%); }
.btn:active { transform: translateY(0) scale(0.98); }

.btn-ghost {
  background: #fff;
  color: var(--txt-1);
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow-xs);
}
.btn-ghost::before { display: none; }
.btn-ghost:hover {
  color: var(--indigo);
  border-color: rgba(99,102,241,0.35);
  background: rgba(99,102,241,0.04);
  box-shadow: var(--shadow-sm);
}

.btn-glow {
  box-shadow: 0 6px 24px rgba(99,102,241,0.45), 0 2px 8px rgba(99,102,241,0.2);
}

/* ─────────────────────────────────────────────
   CARD
───────────────────────────────────────────── */
.card {
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(10px);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

/* ─────────────────────────────────────────────
   BARRE CATÉGORIES
───────────────────────────────────────────── */
.cat-bar-wrap {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 14px 24px 0;
}

.cat-bar {
  display: flex;
  gap: 8px;
  overflow: auto;
  padding-bottom: 6px;
  /* Fade aux bords */
  -webkit-mask: linear-gradient(to right, transparent, black 2%, black 98%, transparent);
  mask: linear-gradient(to right, transparent, black 2%, black 98%, transparent);
  scrollbar-width: none;
}
.cat-bar::-webkit-scrollbar { display: none; }

.cat-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  color: var(--txt-1);
  white-space: nowrap;
  background: #fff;
  font-weight: 500;
  font-size: 0.88rem;
  transition: all 0.18s var(--ease-out);
  cursor: pointer;
  --cat-color: #6366f1;
  box-shadow: var(--shadow-xs);
}

.cat-tab:hover {
  color: var(--cat-color);
  border-color: color-mix(in srgb, var(--cat-color) 30%, transparent);
  background: color-mix(in srgb, var(--cat-color) 5%, #fff);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--cat-color) 18%, transparent);
}

.cat-tab.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--cat-color), color-mix(in srgb, var(--cat-color) 50%, #06b6d4));
  box-shadow: 0 4px 16px color-mix(in srgb, var(--cat-color) 40%, transparent);
  transform: translateY(-1px);
}

.cat-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--cat-color);
  flex-shrink: 0;
  transition: transform 0.15s;
}
.cat-tab:hover .cat-dot { transform: scale(1.3); }
.cat-tab.active .cat-dot { background: rgba(255,255,255,0.65); }

/* ─────────────────────────────────────────────
   HERO PROMO
───────────────────────────────────────────── */
.hero-promo-wrap { padding-top: 10px; }

.hero-promo {
  border: 1px solid rgba(99,102,241,0.12);
  border-radius: 26px;
  overflow: hidden;
  background: var(--grad-hero);
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0;
  box-shadow: var(--shadow-lg);
  position: relative;
}

/* Décoration coins */
.hero-promo::before {
  content: "";
  position: absolute;
  top: -80px; left: -80px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.12), transparent 65%);
  pointer-events: none;
}
.hero-promo::after {
  content: "";
  position: absolute;
  bottom: -60px; right: -60px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6,182,212,0.1), transparent 65%);
  pointer-events: none;
}

.hp-left, .hp-right {
  padding: 32px;
  position: relative;
  z-index: 1;
}

/* Rotateur de titres */
.hero-rotator {
  margin: 16px 0;
  min-height: 84px;
  position: relative;
}

.hero-rotator .rot {
  position: absolute;
  inset: 0;
  opacity: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--txt-0);
  animation: rotText 12s infinite;
}
.hero-rotator .rot:nth-child(2) { animation-delay: 4s; }
.hero-rotator .rot:nth-child(3) { animation-delay: 8s; }

/* Trust card — glassmorphism */
.trust-card {
  margin-top: 16px;
  border: 1px solid rgba(99,102,241,0.1);
  border-radius: 16px;
  padding: 4px;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,0.9);
}

.trust-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 10px;
  border-radius: 12px;
  transition: background 0.15s;
}
.trust-row:hover { background: rgba(99,102,241,0.04); }
.trust-row + .trust-row { border-top: 1px solid rgba(99,102,241,0.06); }

.trust-ico {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 1.1rem;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(6,182,212,0.08));
  border: 1px solid rgba(99,102,241,0.1);
}

.trust-row strong {
  display: block;
  font-size: 0.9rem;
  color: var(--txt-0);
}
.trust-row span { color: var(--txt-2); font-size: 0.82rem; }

/* Actions et stats */
.hero-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 18px;
}

.hero-stats {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(99,102,241,0.1);
}
.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
}
.hero-stat span {
  color: var(--txt-2);
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-top: 3px;
  display: block;
}

/* ─────────────────────────────────────────────
   PHONE MOCKUP
───────────────────────────────────────────── */
.phone {
  width: min(320px, 100%);
  margin: 0 auto;
  border: 1px solid rgba(99,102,241,0.15);
  border-radius: 30px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  padding: 14px;
  box-shadow: var(--shadow-xl), inset 0 1px 0 rgba(255,255,255,0.9);
}

.phone-notch {
  display: block;
  width: 30%;
  height: 8px;
  margin: 0 auto 12px;
  border-radius: 999px;
  background: var(--bg-3);
}

.phone-screen {
  border-radius: 20px;
  border: 1px solid var(--line);
  padding: 16px;
  background: linear-gradient(145deg, #f8f9ff, #f0fdff);
}

.ps-brand, .ps-title, .ps-code-label,
.ps-code-val, .ps-foot, .ps-item-txt span, .ps-copied { display: block; }
.ps-brand { color: var(--txt-2); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; }

.ps-check {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid; place-items: center;
  margin: 12px 0 8px;
  color: #fff;
  background: linear-gradient(135deg, #10b981, #059669);
  font-weight: 900;
  box-shadow: 0 4px 16px rgba(16,185,129,0.35);
}

.ps-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--txt-0);
}

.ps-item {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.ps-emblem {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--grad-main);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(99,102,241,0.3);
  flex-shrink: 0;
}

.ps-item-txt strong { display: block; color: var(--txt-0); font-size: 0.9rem; }
.ps-item-txt span { color: var(--txt-2); font-size: 0.8rem; }

.ps-code {
  margin-top: 14px;
  border: 1.5px dashed rgba(99,102,241,0.22);
  border-radius: 12px;
  padding: 12px;
  background: rgba(99,102,241,0.03);
}

.ps-code-label {
  color: var(--txt-2); font-size: 0.72rem;
  font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
}
.ps-code-val {
  margin-top: 5px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
  color: var(--indigo);
  letter-spacing: 0.08em;
}
.ps-copied { margin-top: 4px; color: var(--green); font-size: 0.8rem; font-weight: 600; }
.ps-foot { margin-top: 10px; color: var(--txt-1); font-size: 0.84rem; }

/* ─────────────────────────────────────────────
   FLOAT STACK (cartes flottantes)
───────────────────────────────────────────── */
.float-stack {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.float-card {
  position: absolute;
  width: 90px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.9);
  box-shadow: var(--shadow-md);
  animation: float-up 8s ease-in-out infinite;
}

.float-card.f-0 { top: 18px;  left:  6px;  --rot: -5deg;  }
.float-card.f-1 { top:  6px;  right: 6px;  --rot: 6deg;   animation-delay: 1.4s; }
.float-card.f-2 { bottom: 90px; left: 2px; --rot: 7deg;   animation-delay: 2.8s; }
.float-card.f-3 { bottom: 20px; right: 2px; --rot: -4deg; animation-delay: 4.2s; }

.float-emblem {
  width: 54px; height: 54px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(145deg, var(--brand-1, #6366f1), var(--brand-2, #06b6d4));
  box-shadow: 0 6px 16px color-mix(in srgb, var(--brand-1, #6366f1) 40%, transparent);
  position: relative;
  overflow: hidden;
}

.emblem-shine {
  position: absolute;
  inset: 0;
  background: radial-gradient(55% 45% at 28% 18%, rgba(255,255,255,0.45), transparent 60%);
}
.emblem-text { position: relative; z-index: 1; }

.float-name {
  margin-top: 8px;
  color: var(--txt-1);
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  text-align: center;
}

/* ─────────────────────────────────────────────
   RAIL CATÉGORIES
───────────────────────────────────────────── */
.cat-rail-section { padding-top: 10px; }

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.section-head h2 { margin: 0; font-size: 1.4rem; }

.section-link {
  color: var(--indigo); font-weight: 700; font-size: 0.88rem;
  display: flex; align-items: center; gap: 4px;
  transition: gap 0.2s;
}
.section-link:hover { color: var(--violet); gap: 8px; }

.cat-rail-wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
}

.rail-arrow {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  color: var(--txt-1);
  background: #fff;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.18s var(--ease-bounce);
  font-size: 1.1rem;
  display: grid;
  place-items: center;
}
.rail-arrow:hover {
  border-color: var(--indigo);
  color: var(--indigo);
  box-shadow: 0 4px 14px rgba(99,102,241,0.2);
  transform: scale(1.1);
}

.cat-rail {
  display: flex;
  gap: 12px;
  overflow: auto;
  padding: 8px 4px;
  scrollbar-width: none;
  -webkit-mask: linear-gradient(to right, transparent, black 2%, black 98%, transparent);
  mask: linear-gradient(to right, transparent, black 2%, black 98%, transparent);
}
.cat-rail::-webkit-scrollbar { display: none; }

/* Orb catégorie */
.cat-orb {
  min-width: 110px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 14px 12px;
  display: grid;
  justify-items: center;
  gap: 9px;
  color: var(--txt-0);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: all 0.22s var(--ease-bounce);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

/* Aura de fond au hover */
.cat-orb::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--tile, #6366f1) 12%, transparent), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}
.cat-orb:hover::before { opacity: 1; }

.cat-orb:hover {
  border-color: color-mix(in srgb, var(--tile, #6366f1) 40%, transparent);
  box-shadow:
    0 8px 24px color-mix(in srgb, var(--tile, #6366f1) 18%, transparent),
    var(--shadow-md);
  transform: translateY(-4px) scale(1.03);
}

/* Orb rond coloré */
.orb {
  width: 46px; height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--tile, #6366f1), var(--tile2, color-mix(in srgb, var(--tile, #6366f1) 55%, #000)));
  box-shadow: 0 4px 14px color-mix(in srgb, var(--tile, #6366f1) 45%, transparent);
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s var(--ease-bounce);
}
.cat-orb:hover .orb {
  box-shadow: 0 6px 20px color-mix(in srgb, var(--tile, #6366f1) 55%, transparent);
  transform: scale(1.08);
  animation: pulse-glow 1.8s ease-in-out infinite;
}

/* Shine sur orb */
.orb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(55% 45% at 30% 20%, rgba(255,255,255,0.4), transparent 60%);
  pointer-events: none;
}

.orb-name {
  font-size: 0.8rem;
  color: var(--txt-1);
  font-weight: 600;
  text-align: center;
  transition: color 0.2s;
}
.cat-orb:hover .orb-name {
  color: var(--tile, var(--indigo));
}

/* ─────────────────────────────────────────────
   PRODUCT CARDS
───────────────────────────────────────────── */
.catalog-grid, .carousel {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(236px, 1fr));
  gap: 16px;
}

.product-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1.5px solid var(--line);
  background: #fff;
  padding: 16px;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s var(--ease-bounce),
              box-shadow 0.25s,
              border-color 0.2s;
  cursor: pointer;
}

/* Barre gradient en haut (invisible → visible) */
.product-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--grad-main);
  opacity: 0;
  transition: opacity 0.22s;
  border-radius: var(--radius) var(--radius) 0 0;
}

/* Fond lumineux au hover */
.product-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(99,102,241,0.04), transparent 65%);
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}

.product-card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: var(--shadow-xl);
  border-color: rgba(99,102,241,0.18);
}
.product-card:hover::before { opacity: 1; }
.product-card:hover::after  { opacity: 1; }

/* Branded cards — barre toujours visible + aura marque */
.product-card.branded::before {
  background: linear-gradient(90deg, var(--brand-1, #6366f1), var(--brand-2, #06b6d4));
  opacity: 1;
}
.product-card.branded::after {
  background: radial-gradient(ellipse 80% 60% at 50% 0%,
    color-mix(in srgb, var(--brand-1, #6366f1) 8%, transparent), transparent 65%);
}
.product-card.branded:hover {
  border-color: color-mix(in srgb, var(--brand-1, #6366f1) 28%, transparent);
  box-shadow:
    0 16px 50px color-mix(in srgb, var(--brand-1, #6366f1) 14%, transparent),
    var(--shadow-lg);
}

/* Zone image */
.product-media {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 128px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--bg-1);
  overflow: hidden;
  transition: border-color 0.2s;
}

.product-card.branded .product-media {
  background: color-mix(in srgb, var(--brand-1, #6366f1) 7%, #f8f9fc);
  border-color: color-mix(in srgb, var(--brand-1, #6366f1) 14%, transparent);
}

.product-thumb {
  width: 100%; height: 128px;
  object-fit: cover; border-radius: 12px;
  transition: transform 0.35s var(--ease-out);
}
.product-card:hover .product-thumb { transform: scale(1.04); }

/* Emblème (sans image) */
.product-emblem {
  width: 76px; height: 76px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-family: var(--font-display);
  color: #fff;
  background: var(--grad-main);
  box-shadow: 0 6px 18px rgba(99,102,241,0.3);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s var(--ease-bounce), box-shadow 0.2s;
}
.product-card:hover .product-emblem { transform: scale(1.06) rotate(-2deg); }

.product-emblem.branded {
  background: linear-gradient(145deg, var(--brand-1, #6366f1), var(--brand-2, #06b6d4));
  box-shadow: 0 6px 20px color-mix(in srgb, var(--brand-1, #6366f1) 40%, transparent);
}

.pill {
  display: inline-flex;
  margin-bottom: 10px;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--indigo);
  border: 1px solid rgba(99,102,241,0.18);
  background: rgba(99,102,241,0.06);
  transition: all 0.15s;
}
.product-card.branded .pill {
  color: var(--brand-1, var(--indigo));
  border-color: color-mix(in srgb, var(--brand-1, #6366f1) 22%, transparent);
  background: color-mix(in srgb, var(--brand-1, #6366f1) 7%, #fff);
}

.product-card h3 { margin: 10px 0 8px; font-size: 1rem; color: var(--txt-0); }

.price-row {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.price {
  display: block;
  font-weight: 800;
  font-size: 1.08rem;
  color: var(--txt-0);
}
.price-row small { color: var(--txt-2); font-size: 0.74rem; }

.stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 6px 0 2px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.stock-badge.ok {
  color: #065f46;
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.22);
}
.stock-badge.ko {
  color: #991b1b;
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.22);
}

.btn-buy { padding: 9px 16px; font-size: 0.84rem; }

/* ─────────────────────────────────────────────
   MARQUEE MARQUES
───────────────────────────────────────────── */
.marquee-wrap { padding-top: 12px; }

.marquee {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(248,249,252,0.8);
  margin-bottom: 10px;
  -webkit-mask: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  mask: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.marquee-track {
  display: flex;
  gap: 10px;
  width: max-content;
  animation: marqueeMove 30s linear infinite;
}
.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track {
  animation-play-state: paused;
}
.marquee.rev .marquee-track { animation-direction: reverse; }

.brand-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--tile, #6366f1) 18%, var(--line));
  padding: 6px 14px 6px 6px;
  color: var(--txt-1);
  background: #fff;
  font-size: 0.84rem;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.18s;
  box-shadow: var(--shadow-xs);
}
.brand-chip:hover {
  border-color: color-mix(in srgb, var(--tile, #6366f1) 40%, transparent);
  background: color-mix(in srgb, var(--tile, #6366f1) 4%, #fff);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.brand-ico {
  width: 26px; height: 26px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
}

/* ─────────────────────────────────────────────
   STEPS — comment ça marche
───────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.step {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px 20px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s var(--ease-bounce), box-shadow 0.22s;
  position: relative;
  overflow: hidden;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* Accent de coin */
.step::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-main);
  border-radius: 20px 20px 0 0;
}

.step-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
  background: var(--grad-main);
  box-shadow: 0 4px 12px rgba(99,102,241,0.3);
  margin-bottom: 14px;
}

.step h3 { margin: 0 0 8px; font-size: 1rem; }
.step p { margin: 0; color: var(--txt-2); font-size: 0.9rem; line-height: 1.55; }

/* ─────────────────────────────────────────────
   FORMULAIRES
───────────────────────────────────────────── */
.form-wrap { max-width: 460px; margin: 28px auto; }
.form-wrap h1 { margin-top: 0; }

.form-wrap label, label {
  display: block;
  margin: 12px 0 6px;
  color: var(--txt-1);
  font-size: 0.9rem;
  font-weight: 600;
}

.stack-form { display: grid; gap: 14px; }
.stack-form .btn { justify-self: start; }

/* ─────────────────────────────────────────────
   COMMANDES / COMPTE
───────────────────────────────────────────── */
.order-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }

.order-list li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--txt-0);
  background: #fff;
  box-shadow: var(--shadow-xs);
  transition: all 0.18s var(--ease-out);
}
.order-list li a:hover {
  border-color: rgba(99,102,241,0.2);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.account-orders-card { min-width: 0; }
.catalog-search.account-order-filters {
  grid-template-columns: 1fr;
}
.account-order-filters input,
.account-order-filters select,
.account-order-filters .btn,
.account-order-filters .chip {
  min-width: 0;
  width: 100%;
}
.account-order-filters .btn,
.account-order-filters .chip { width: 100%; justify-content: center; }

/* ─────────────────────────────────────────────
   CHIPS (filtres catalogue)
───────────────────────────────────────────── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--txt-1);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.85rem;
  background: #fff;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.18s var(--ease-out);
  --chip-color: #6366f1;
  box-shadow: var(--shadow-xs);
}
.chip:hover {
  border-color: color-mix(in srgb, var(--chip-color) 35%, transparent);
  color: var(--chip-color);
  background: color-mix(in srgb, var(--chip-color) 5%, #fff);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--chip-color) 18%, transparent);
}
.chip.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--chip-color), color-mix(in srgb, var(--chip-color) 58%, #06b6d4));
  box-shadow: 0 4px 16px color-mix(in srgb, var(--chip-color) 38%, transparent);
}

/* ─────────────────────────────────────────────
   CATALOGUE — toolbar & search
───────────────────────────────────────────── */
.catalog-shell { padding-top: 18px; }
.catalog-headline { margin-bottom: 16px; }
.catalog-headline h1 { margin: 8px 0 10px; font-size: clamp(1.8rem, 3vw, 2.7rem); }
.catalog-filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }

.catalog-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin: 14px 0 18px;
}

.catalog-search {
  display: grid;
  grid-template-columns: minmax(200px, 2fr) minmax(170px, 1fr) minmax(170px, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  width: 100%;
}

.catalog-count { color: var(--txt-2); white-space: nowrap; font-size: 0.88rem; }

/* ─────────────────────────────────────────────
   ALERTES / FLASH
───────────────────────────────────────────── */
.alert { border-radius: 10px; padding: 12px 16px; }
.alert-error {
  background: rgba(239,68,68,0.06);
  border: 1px solid rgba(239,68,68,0.22);
  color: #b91c1c;
}

.flash { border-radius: 12px; padding: 12px 16px; }
.flash-success {
  border: 1px solid rgba(16,185,129,0.25);
  background: rgba(16,185,129,0.06);
  color: #065f46;
}
.flash-error {
  border: 1px solid rgba(239,68,68,0.25);
  background: rgba(239,68,68,0.06);
  color: #b91c1c;
}

/* ─────────────────────────────────────────────
   TABLE ADMIN
───────────────────────────────────────────── */
.table-wrap { overflow: auto; }

.admin-table { width: 100%; border-collapse: collapse; min-width: 680px; }
.admin-table th {
  text-align: left;
  border-bottom: 2px solid var(--line);
  padding: 10px 12px;
  color: var(--txt-2);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.admin-table td {
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
  padding: 10px 12px;
  vertical-align: top;
  color: var(--txt-0);
}
.admin-table tr:hover td { background: var(--bg-1); }

.audit-json {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: var(--font-mono);
  color: var(--txt-1);
  font-size: 0.78rem;
}

/* ─────────────────────────────────────────────
   PAGINATION
───────────────────────────────────────────── */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 24px;
}

.page-link, .page-current {
  min-width: 38px;
  text-align: center;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  font-weight: 600;
  font-size: 0.88rem;
  transition: all 0.18s var(--ease-bounce);
}
.page-link {
  color: var(--txt-1);
  background: #fff;
  box-shadow: var(--shadow-xs);
}
.page-link:hover {
  color: var(--indigo);
  border-color: rgba(99,102,241,0.3);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.page-current {
  color: #fff;
  border-color: transparent;
  background: var(--grad-main);
  box-shadow: 0 4px 14px rgba(99,102,241,0.35);
}
.page-link.disabled { opacity: 0.4; pointer-events: none; }

.empty-state { text-align: center; color: var(--txt-2); }

/* ─────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────── */
.site-footer {
  margin-top: 50px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #f8f9fc, #f1f4f9);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-brand p { color: var(--txt-2); max-width: 480px; font-size: 0.9rem; line-height: 1.6; }
.footer-links { display: grid; gap: 8px; align-content: start; }
.footer-links a { color: var(--txt-1); font-size: 0.9rem; transition: color 0.15s, transform 0.15s; display: inline-block; }
.footer-links a:hover { color: var(--indigo); transform: translateX(3px); }

.footer-legal {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--txt-3);
  font-size: 0.82rem;
}

/* ─────────────────────────────────────────────
   LOGOS MARQUES
───────────────────────────────────────────── */
.brand-logo-img {
  width: 26px; height: 26px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  position: relative;
  z-index: 1;
}
.orb .brand-logo-img         { width: 24px; height: 24px; }
.product-emblem .brand-logo-img { width: 38px; height: 38px; }
.float-emblem .brand-logo-img   { width: 28px; height: 28px; }
.ps-emblem .brand-logo-img      { width: 20px; height: 20px; }
.brand-ico .brand-logo-img      { width: 14px; height: 14px; }

/* ─────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────── */
@media (max-width: 980px) {
  .hero-promo { grid-template-columns: 1fr; }
  .float-stack { display: none; }
  .catalog-search { grid-template-columns: 1fr; }
  .catalog-toolbar { flex-direction: column; align-items: stretch; }
  .steps { grid-template-columns: 1fr; }
  .header-search { min-width: 210px; }
}

@media (max-width: 760px) {
  .navbar { grid-template-columns: auto auto; gap: 8px; }

  .nav-burger {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 38px; height: 38px;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    cursor: pointer;
    justify-self: end;
    background: #fff;
    box-shadow: var(--shadow-sm);
    flex-direction: column;
    gap: 3px;
  }
  .nav-burger span {
    display: block;
    width: 18px; height: 2px;
    border-radius: 999px;
    background: var(--txt-0);
    transition: transform 0.2s;
  }

  .nav-links {
    grid-column: 1 / -1;
    display: none;
    width: 100%;
    justify-content: flex-start;
    flex-direction: column;
    align-items: stretch;
    padding: 10px 0 4px;
    border-top: 1px solid var(--line);
    margin-top: 8px;
  }
  .nav-toggle:checked ~ .nav-links { display: flex; }

  .header-search { max-width: none; margin-right: 0; }
  .header-search-item { grid-template-columns: 38px 1fr; }
  .header-search-meta { display: none; }

  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-stats { gap: 14px; }
  .cat-rail-wrap { grid-template-columns: 1fr; }
  .rail-arrow { display: none; }
  .footer-legal { flex-direction: column; }

  .hp-left, .hp-right { padding: 20px; }
}

/* ═══════════════════════════════════════════════════
   CATALOGUE — Layout sidebar + filtres avancés
   ═══════════════════════════════════════════════════ */

/* Layout 2 colonnes */
.catalog-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  align-items: start;
  margin-top: 8px;
}

/* ─────────────────────────────────────────────
   SIDEBAR
───────────────────────────────────────────── */
.filter-sidebar {
  position: sticky;
  top: 76px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 20px;
  padding: 20px 18px;
  box-shadow: var(--shadow-card);
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--bg-3) transparent;
}
.filter-sidebar::-webkit-scrollbar { width: 4px; }
.filter-sidebar::-webkit-scrollbar-thumb { background: var(--bg-3); border-radius: 99px; }

.filter-section {
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}
.filter-section:last-child { border-bottom: none; }
.filter-section:first-child { padding-top: 0; }

.filter-title {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--txt-2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.filter-input {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: 0.88rem;
  background: var(--bg-1);
  color: var(--txt-0);
  transition: border-color .15s, box-shadow .15s;
}
.filter-input:focus {
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgba(99,102,241,.1);
  outline: none;
}

/* Radios type / tri */
.filter-radio-group { display: flex; flex-direction: column; gap: 4px; }
.filter-radio {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--txt-1);
  transition: background .12s, color .12s;
  --rc: #6366f1;
}
.filter-radio input[type="radio"] { display: none; }
.filter-radio:hover { background: rgba(99,102,241,.05); color: var(--indigo); }
.filter-radio.active {
  background: color-mix(in srgb, var(--rc) 10%, #fff);
  color: var(--rc);
  font-weight: 600;
}

.radio-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid var(--line);
  flex-shrink: 0;
  transition: border-color .15s, background .15s;
  position: relative;
}
.filter-radio.active .radio-dot {
  border-color: var(--rc);
  background: var(--rc);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--rc) 20%, transparent);
}
.filter-radio.active .radio-dot::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #fff;
}

/* Liste de marques */
.filter-brand-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 260px;
  overflow: hidden;
  transition: max-height .3s var(--ease-out);
}
.filter-brand-list.expanded { max-height: 600px; }

.filter-brand-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.86rem;
  color: var(--txt-1);
  transition: background .12s, color .12s;
  --bc: #6366f1;
}
.filter-brand-item input { display: none; }
.filter-brand-item:hover { background: color-mix(in srgb, var(--bc) 6%, #fff); color: var(--bc); }
.filter-brand-item.active {
  background: color-mix(in srgb, var(--bc) 10%, #fff);
  color: var(--bc);
  font-weight: 600;
}

.fbi-logo {
  width: 24px; height: 24px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
}
.fbi-img { width: 14px; height: 14px; filter: brightness(0) invert(1); }
.fbi-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

.show-more-brands {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 7px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: none;
  color: var(--indigo);
  font-size: 0.8rem;
  cursor: pointer;
  text-align: center;
  transition: background .15s;
}
.show-more-brands:hover { background: rgba(99,102,241,.05); }

/* ─────────────────────────────────────────────
   SLIDER DE PRIX
───────────────────────────────────────────── */
.price-range-wrap {
  position: relative;
  height: 24px;
  margin: 12px 0 6px;
}

.price-range-track {
  position: absolute;
  top: 50%;
  left: 0; right: 0;
  height: 5px;
  transform: translateY(-50%);
  background: var(--bg-3);
  border-radius: 99px;
}

.price-range-fill {
  position: absolute;
  top: 0; bottom: 0;
  background: var(--grad-main);
  border-radius: 99px;
}

.range-input {
  position: absolute;
  width: 100%;
  height: 5px;
  top: 50%;
  transform: translateY(-50%);
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  pointer-events: none;
  padding: 0; border: none; box-shadow: none;
}
.range-input:focus { outline: none; box-shadow: none; border: none; }
.range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid var(--indigo);
  box-shadow: 0 2px 8px rgba(99,102,241,.3);
  cursor: grab;
  pointer-events: all;
  transition: transform .15s var(--ease-bounce), box-shadow .15s;
}
.range-input::-webkit-slider-thumb:active {
  transform: scale(1.2);
  cursor: grabbing;
  box-shadow: 0 4px 16px rgba(99,102,241,.45);
}
.range-input::-moz-range-thumb {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid var(--indigo);
  box-shadow: 0 2px 8px rgba(99,102,241,.3);
  cursor: grab;
  pointer-events: all;
}

.price-range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--txt-1);
  margin-top: 4px;
}

/* ─────────────────────────────────────────────
   BOUTONS SIDEBAR
───────────────────────────────────────────── */
.filter-actions {
  display: grid;
  gap: 8px;
  padding-top: 14px;
}
.btn-filter-apply  { width: 100%; justify-content: center; }
.btn-filter-reset  { width: 100%; justify-content: center; font-size: .85rem; padding: 9px 16px; }

/* ─────────────────────────────────────────────
   FILTRES ACTIFS — tags dismissibles
───────────────────────────────────────────── */
.active-filters-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 10px 14px;
  background: rgba(99,102,241,.04);
  border: 1px solid rgba(99,102,241,.12);
  border-radius: 12px;
}

.active-filters-label {
  font-size: .78rem;
  font-weight: 700;
  color: var(--txt-2);
  text-transform: uppercase;
  letter-spacing: .08em;
  white-space: nowrap;
}

.active-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1.5px solid rgba(99,102,241,.25);
  color: var(--indigo);
  font-size: .82rem;
  font-weight: 600;
  transition: all .15s;
  box-shadow: var(--shadow-xs);
}
.active-filter-tag:hover {
  background: rgba(239,68,68,.06);
  border-color: rgba(239,68,68,.3);
  color: var(--red);
}
.aft-x {
  font-size: .9rem;
  font-weight: 800;
  line-height: 1;
  margin-left: 2px;
}

.active-filter-reset {
  margin-left: auto;
  font-size: .8rem;
  color: var(--txt-2);
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 8px;
  transition: color .15s, background .15s;
}
.active-filter-reset:hover { color: var(--red); background: rgba(239,68,68,.06); }

/* ─────────────────────────────────────────────
   BARRE RÉSULTATS + TOGGLE VUE
───────────────────────────────────────────── */
.catalog-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
}
.catalog-topbar-right { display: flex; align-items: center; gap: 10px; }

.catalog-count { margin: 0; font-size: .92rem; color: var(--txt-2); }
.catalog-count strong { color: var(--txt-0); font-size: 1.05rem; }
.count-filtered { color: var(--indigo); font-weight: 600; }

.view-toggle {
  display: flex;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}
.view-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  color: var(--txt-2);
  background: #fff;
  transition: background .15s, color .15s;
}
.view-btn:hover { color: var(--indigo); background: rgba(99,102,241,.05); }
.view-btn.active { color: #fff; background: var(--grad-main); }
.view-btn + .view-btn { border-left: 1.5px solid var(--line); }

.btn-filter-mobile {
  display: none;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--txt-1);
  font-weight: 600;
  font-size: .86rem;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: all .15s;
}
.btn-filter-mobile:hover { border-color: var(--indigo); color: var(--indigo); }

.filter-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--grad-main);
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
}

/* ─────────────────────────────────────────────
   VUE LISTE
───────────────────────────────────────────── */
.catalog-list-view {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-list-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 16px;
  align-items: center;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: var(--shadow-card);
  transition: transform .2s var(--ease-bounce), box-shadow .2s, border-color .2s;
  position: relative;
  overflow: hidden;
}
.product-list-item::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--grad-main);
  border-radius: 16px 0 0 16px;
  opacity: 0;
  transition: opacity .2s;
}
.product-list-item.branded::before {
  background: linear-gradient(180deg, var(--brand-1, #6366f1), var(--brand-2, #06b6d4));
  opacity: 1;
}
.product-list-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(99,102,241,.2);
}
.product-list-item.branded:hover {
  border-color: color-mix(in srgb, var(--brand-1, #6366f1) 28%, transparent);
  box-shadow: 0 8px 28px color-mix(in srgb, var(--brand-1, #6366f1) 14%, transparent);
}
.product-list-item:hover::before { opacity: 1; }

.pli-media {
  width: 80px; height: 80px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-1);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
}
.product-list-item.branded .pli-media {
  background: color-mix(in srgb, var(--brand-1, #6366f1) 8%, #f8f9fc);
  border-color: color-mix(in srgb, var(--brand-1, #6366f1) 14%, transparent);
}

.pli-thumb {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .3s var(--ease-out);
}
.product-list-item:hover .pli-thumb { transform: scale(1.07); }

.pli-emblem {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  background: var(--grad-main);
  position: relative;
  overflow: hidden;
}
.pli-emblem.branded {
  background: linear-gradient(145deg, var(--brand-1, #6366f1), var(--brand-2, #06b6d4));
}
.pli-emblem .brand-logo-img { width: 28px; height: 28px; }

.pli-body { min-width: 0; }
.pli-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.pli-title {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--txt-0);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pli-sku { margin: 0; font-size: .78rem; }

.pli-price-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
}
.pli-price {
  font-size: 1.15rem !important;
  white-space: nowrap;
}
.pli-price small {
  font-size: .7rem;
  font-weight: 500;
  color: var(--txt-2);
  margin-left: 2px;
}

/* Overlay mobile + sidebar responsive */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.35);
  backdrop-filter: blur(4px);
  z-index: 40;
  opacity: 0;
  transition: opacity .25s;
}
.sidebar-overlay.visible {
  display: block;
  opacity: 1;
}

/* ─────────────────────────────────────────────
   RESPONSIVE CATALOGUE
───────────────────────────────────────────── */
@media (max-width: 980px) {
  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .filter-sidebar {
    position: fixed;
    top: 0; left: -300px;
    width: 280px; height: 100%;
    max-height: 100vh;
    z-index: 50;
    border-radius: 0 20px 20px 0;
    padding-top: 24px;
    transition: left .3s var(--ease-out);
    box-shadow: var(--shadow-xl);
  }
  .filter-sidebar.open { left: 0; }

  .btn-filter-mobile { display: inline-flex; }
}

@media (max-width: 640px) {
  .product-list-item {
    grid-template-columns: 60px 1fr;
    grid-template-rows: auto auto;
  }
  .pli-price-col {
    grid-column: 2;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }
}

/* ═══════════════════════════════════════════════════
   CATALOGUE — DYNAMISME & MICRO-INTERACTIONS
   ═══════════════════════════════════════════════════ */

/* ── Entrée staggerée des cards ── */
@keyframes card-in {
  from { opacity: 0; transform: translateY(28px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

.catalog-grid .product-card,
.catalog-list-view .product-list-item {
  animation: card-in .42s var(--ease-out) both;
}

.catalog-grid .product-card:nth-child(1),  .catalog-list-view .product-list-item:nth-child(1)  { animation-delay: .03s; }
.catalog-grid .product-card:nth-child(2),  .catalog-list-view .product-list-item:nth-child(2)  { animation-delay: .07s; }
.catalog-grid .product-card:nth-child(3),  .catalog-list-view .product-list-item:nth-child(3)  { animation-delay: .11s; }
.catalog-grid .product-card:nth-child(4),  .catalog-list-view .product-list-item:nth-child(4)  { animation-delay: .15s; }
.catalog-grid .product-card:nth-child(5),  .catalog-list-view .product-list-item:nth-child(5)  { animation-delay: .18s; }
.catalog-grid .product-card:nth-child(6),  .catalog-list-view .product-list-item:nth-child(6)  { animation-delay: .21s; }
.catalog-grid .product-card:nth-child(7),  .catalog-list-view .product-list-item:nth-child(7)  { animation-delay: .24s; }
.catalog-grid .product-card:nth-child(8),  .catalog-list-view .product-list-item:nth-child(8)  { animation-delay: .27s; }
.catalog-grid .product-card:nth-child(9),  .catalog-list-view .product-list-item:nth-child(9)  { animation-delay: .29s; }
.catalog-grid .product-card:nth-child(10), .catalog-list-view .product-list-item:nth-child(10) { animation-delay: .31s; }
.catalog-grid .product-card:nth-child(11), .catalog-list-view .product-list-item:nth-child(11) { animation-delay: .33s; }
.catalog-grid .product-card:nth-child(12), .catalog-list-view .product-list-item:nth-child(12) { animation-delay: .35s; }

/* ── Transition de vue (grille / liste) ── */
@keyframes view-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.catalog-grid, .catalog-list-view { animation: view-in .28s var(--ease-out); }

/* ── Hover lift & brand glow sur les cards ── */
.product-card {
  transition: transform .28s var(--ease-out), box-shadow .28s var(--ease-out);
  will-change: transform;
}
.product-card:hover {
  transform: translateY(-8px) scale(1.018);
  box-shadow:
    0 24px 60px color-mix(in srgb, var(--brand-1, #6366f1) 18%, rgba(15,23,42,.12)),
    0 8px 20px rgba(15,23,42,.07);
}

/* ── Hover slide sur la vue liste ── */
.product-list-item {
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out), border-color .2s;
  border-left: 3px solid transparent;
}
.product-list-item:hover {
  transform: translateX(5px);
  border-left-color: var(--brand-1, var(--indigo));
  box-shadow:
    -2px 0 0 0 color-mix(in srgb, var(--brand-1, var(--indigo)) 40%, transparent),
    var(--shadow-md);
}

/* ── Loading overlay ── */
@keyframes catalog-spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
.catalog-main { position: relative; }
.catalog-main::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(6px);
  border-radius: var(--radius);
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s;
}
.catalog-main.loading::after {
  opacity: 1;
  pointer-events: all;
}
.catalog-spinner {
  position: absolute;
  top: 140px;
  left: 50%;
  transform: translate(-50%, 0);
  width: 38px; height: 38px;
  border: 3px solid var(--line);
  border-top-color: var(--indigo);
  border-radius: 50%;
  z-index: 21;
  display: none;
}
@keyframes just-spin { to { transform: rotate(360deg); } }
.catalog-main.loading .catalog-spinner {
  display: block;
  animation: just-spin .65s linear infinite;
}

/* ── Compteur animé ── */
@keyframes count-bump {
  0%   { transform: scale(1)   translateY(0);    color: var(--txt-0); }
  45%  { transform: scale(1.5) translateY(-5px); color: var(--indigo); }
  100% { transform: scale(1)   translateY(0);    color: var(--txt-0); }
}
.catalog-count strong { display: inline-block; transition: none; }
.catalog-count strong.bump { animation: count-bump .4s var(--ease-bounce) forwards; }

/* ── Recherche avec bouton clear ── */
.search-wrap { position: relative; }
.search-clear {
  position: absolute;
  right: 10px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  cursor: pointer;
  color: var(--txt-3);
  font-size: 1rem; line-height: 1;
  width: 20px; height: 20px;
  border-radius: 50%;
  display: none;
  align-items: center; justify-content: center;
  transition: color .12s, background .12s;
}
.search-clear:hover { color: var(--txt-0); background: var(--bg-3); }
.search-clear.visible { display: flex; }

/* ── Ripple sur les boutons ── */
@keyframes ripple-out {
  from { transform: scale(0); opacity: .5; }
  to   { transform: scale(4); opacity: 0; }
}
.ripple-dot {
  position: absolute;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.55);
  pointer-events: none;
  animation: ripple-out .55s var(--ease-out) forwards;
  margin-left: -18px; margin-top: -18px;
}

/* ── Tooltip sur le slider de prix ── */
.price-range-wrap { padding-top: 28px; }
.price-thumb-tip {
  position: absolute;
  top: 0;
  background: var(--indigo);
  color: #fff;
  font-size: .7rem; font-weight: 700;
  padding: 3px 7px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity .15s;
}
.price-thumb-tip::after {
  content: '';
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: var(--indigo);
}
.price-range-wrap.dragging .price-thumb-tip,
.price-range-wrap:focus-within .price-thumb-tip { opacity: 1; }

/* ── Tags filtres actifs — pop-in ── */
@keyframes tag-pop {
  from { transform: scale(0.6); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}
.active-filter-tag { animation: tag-pop .25s var(--ease-bounce) both; }
.active-filter-tag:nth-child(1) { animation-delay: 0s; }
.active-filter-tag:nth-child(2) { animation-delay: .05s; }
.active-filter-tag:nth-child(3) { animation-delay: .10s; }
.active-filter-tag:nth-child(4) { animation-delay: .15s; }

/* ── Radio filtre actif : barre latérale ── */
.filter-radio { position: relative; overflow: hidden; }
.filter-radio::before {
  content: '';
  position: absolute;
  left: 0; top: 6px; bottom: 6px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--rc);
  transform: scaleY(0);
  transition: transform .2s var(--ease-bounce);
}
.filter-radio.active::before { transform: scaleY(1); }

/* ── Sidebar spring sur mobile ── */
@media (max-width: 980px) {
  .filter-sidebar { transition: left .38s var(--ease-bounce); }
}

/* ── Hover sur bouton 'Appliquer' ── */
.btn-filter-apply {
  background: var(--grad-main);
  background-size: 200% 200%;
  animation: grad-shift 4s ease infinite;
}
.btn-filter-apply:hover { animation-duration: 1.5s; }

/* ── Empty state animé ── */
.empty-state { animation: card-in .5s var(--ease-out); }

/* ═══════════════════════════════════════════════════
   PANIER & CHECKOUT — Design Premium
   ═══════════════════════════════════════════════════ */

.checkout-shell { padding: 40px 0 80px; }

/* ── Steps de progression ── */
.checkout-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 40px;
}
.step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--txt-3);
  padding: 8px 16px;
  border-radius: 99px;
  transition: color .2s, background .2s;
  white-space: nowrap;
}
.step-num {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--bg-3);
  color: var(--txt-3);
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem; font-weight: 800;
  transition: background .2s, color .2s;
  flex-shrink: 0;
}
.step.done       { color: var(--indigo); }
.step.done .step-num { background: color-mix(in srgb, var(--indigo) 15%, #fff); color: var(--indigo); }
.step.done .step-num::after { content: '✓'; }
.step.done .step-num { font-size: 0; }
.step.done .step-num::after { font-size: .72rem; font-weight: 900; }
.step.active { color: var(--txt-0); }
.step.active .step-num {
  background: var(--grad-main);
  color: #fff;
  box-shadow: 0 4px 12px rgba(99,102,241,.35);
}
.step-sep {
  flex: 1 1 20px;
  max-width: 48px;
  height: 2px;
  background: var(--line);
  border-radius: 1px;
}
.step-sep.done { background: var(--indigo); }
a.step { text-decoration: none; }
a.step:hover { background: color-mix(in srgb, var(--indigo) 5%, #fff); }

/* ── Layout 2 colonnes ── */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  align-items: start;
}

/* ── Items du panier ── */
.cart-items { display: flex; flex-direction: column; gap: 12px; }

.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr auto auto auto;
  align-items: center;
  gap: 16px;
  background: var(--bg-0);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-card);
  animation: card-in .35s var(--ease-out) both;
  transition: box-shadow .2s, border-color .2s, transform .2s var(--ease-out);
}
.cart-item:hover {
  border-color: color-mix(in srgb, var(--brand-1, var(--indigo)) 30%, transparent);
  box-shadow: var(--shadow-md);
  transform: translateX(3px);
}
.cart-item:nth-child(1) { animation-delay: .04s; }
.cart-item:nth-child(2) { animation-delay: .09s; }
.cart-item:nth-child(3) { animation-delay: .14s; }
.cart-item:nth-child(4) { animation-delay: .18s; }
.cart-item:nth-child(5) { animation-delay: .22s; }

/* Media du panier */
.cart-media {
  width: 72px; height: 72px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}
.cart-thumb {
  width: 100%; height: 100%;
  object-fit: cover;
}
.cart-emblem {
  width: 100%; height: 100%;
  border-radius: 14px;
  background: var(--grad-main);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.2rem; color: #fff;
}
.cart-emblem.branded {
  background: linear-gradient(145deg, var(--brand-1, #6366f1), var(--brand-2, #06b6d4));
}
.cart-emblem .brand-logo-img { width: 36px; height: 36px; filter: brightness(0) invert(1); }

.cart-body { min-width: 0; }
.cart-item-badges { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin-bottom: 6px; }
.cart-name {
  margin: 0 0 3px;
  font-size: .95rem; font-weight: 700; color: var(--txt-0);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cart-sku { margin: 0; font-size: .75rem; color: var(--txt-3); }

.cart-qty-form { margin: 0; }

.cart-qty-input {
  width: 72px;
  text-align: center;
  background: var(--bg-2);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 6px 8px;
  font-size: .88rem;
  font-weight: 700;
  color: var(--txt-1);
}

.cart-qty-input:focus {
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgba(99,102,241,.12);
}

.cart-price-col { text-align: right; min-width: 100px; }
.cart-line-total {
  font-size: 1.05rem; font-weight: 800; color: var(--txt-0);
  display: block;
}
.cart-unit-price { font-size: .75rem; color: var(--txt-3); }

.btn-cart-remove {
  width: 32px; height: 32px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: none;
  color: var(--txt-3);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; line-height: 1;
  transition: border-color .15s, background .15s, color .15s;
  flex-shrink: 0;
}
.btn-cart-remove:hover { border-color: var(--red); background: rgba(239,68,68,.06); color: var(--red); }

/* ── Résumé sticky ── */
.cart-summary-card {
  position: sticky;
  top: 90px;
}
.cart-summary-card h3 { font-size: 1rem; font-weight: 800; margin-bottom: 16px; }

.summary-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 7px 0;
  font-size: .85rem;
  color: var(--txt-1);
  border-bottom: 1px solid var(--line-soft);
}
.summary-line:last-of-type { border-bottom: none; }
.summary-line .name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.summary-line .amount { font-weight: 700; flex-shrink: 0; color: var(--txt-0); }

.summary-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0 0;
  margin-top: 6px;
  border-top: 2px solid var(--line);
}
.summary-total-row .label { font-weight: 700; font-size: .9rem; }
.summary-total-row .price-big {
  font-size: 1.3rem; font-weight: 900;
  background: var(--grad-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn-checkout-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 18px;
  padding: 14px 20px;
  font-size: 1rem; font-weight: 800;
  background: var(--grad-main);
  background-size: 200% 200%;
  animation: grad-shift 4s ease infinite;
  color: #fff;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  box-shadow: var(--shadow-btn);
  transition: transform .2s var(--ease-bounce), box-shadow .2s;
}
.btn-checkout-cta:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 10px 28px rgba(99,102,241,.5);
  animation-duration: 1.2s;
}
.btn-checkout-cta:active { transform: scale(.98); }

.summary-secure {
  text-align: center;
  font-size: .75rem;
  color: var(--txt-3);
  margin-top: 10px;
}

/* ── Checkout — form sections ── */
.checkout-form-col { display: flex; flex-direction: column; gap: 16px; }
.checkout-section { padding: 20px 22px !important; }
.checkout-section-title {
  font-size: .95rem; font-weight: 800;
  margin: 0 0 14px;
  display: flex; align-items: center; gap: 8px;
}

/* Alerte erreurs */
.alert-error {
  background: rgba(239,68,68,.06);
  border: 1.5px solid rgba(239,68,68,.25);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 20px;
  animation: card-in .3s var(--ease-out);
}
.alert-error-title {
  font-weight: 700;
  color: var(--red);
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 6px;
}
.alert-error ul { margin: 0; padding-left: 18px; }
.alert-error li { font-size: .875rem; color: #b91c1c; margin-bottom: 3px; }

/* Input téléphone */
.phone-input-wrap {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
  background: var(--bg-0);
}
.phone-input-wrap:focus-within {
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgba(99,102,241,.1);
}
.phone-prefix {
  padding: 10px 14px;
  background: var(--bg-2);
  font-size: .88rem; font-weight: 700;
  color: var(--txt-1);
  border-right: 1.5px solid var(--line);
  white-space: nowrap;
  flex-shrink: 0;
}
.phone-input {
  flex: 1;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  outline: none;
  font-size: .92rem;
}
.phone-hint { margin-top: 6px; font-size: .75rem; color: var(--txt-3); }

/* Champs top-up */
.topup-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}
.topup-emblem {
  width: 46px; height: 46px;
  border-radius: 13px;
  background: var(--grad-main);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: #fff; font-size: 1rem;
  flex-shrink: 0;
}
.topup-emblem.branded {
  background: linear-gradient(145deg, var(--brand-1, #6366f1), var(--brand-2, #06b6d4));
}
.topup-emblem .brand-logo-img { width: 26px; height: 26px; filter: brightness(0) invert(1); }
.topup-title { margin: 0; font-size: .9rem; font-weight: 800; }
.topup-subtitle { margin: 2px 0 0; font-size: .78rem; color: var(--txt-2); }

.topup-fields { display: flex; flex-direction: column; gap: 12px; }
.field-group { display: flex; flex-direction: column; gap: 5px; }
.field-group label {
  font-size: .8rem; font-weight: 700;
  color: var(--txt-2);
  display: flex; align-items: center; gap: 5px;
}
.field-group .filter-input { font-size: .9rem; }

/* Bouton CinetPay */
.btn-cinetpay {
  background: linear-gradient(135deg, #00a86b 0%, #0070c0 100%);
  background-size: 200% 200%;
  animation: grad-shift 5s ease infinite;
}
.btn-cinetpay:hover {
  background: linear-gradient(135deg, #00a86b 0%, #0070c0 100%);
  box-shadow: 0 10px 28px rgba(0,112,192,.45);
}
.cinetpay-icon {
  width: 22px; height: 22px;
  background: rgba(255,255,255,.25);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
  flex-shrink: 0;
}

/* Panier vide */
.cart-empty {
  text-align: center;
  padding: 64px 24px;
  animation: card-in .5s var(--ease-out);
}
.cart-empty-icon { font-size: 3.5rem; margin-bottom: 16px; }
.cart-empty h3 { font-size: 1.3rem; margin-bottom: 8px; }

/* ── Responsive Checkout ── */
@media (max-width: 860px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }
  .cart-summary-card { position: static; }
  .cart-item {
    grid-template-columns: 56px 1fr auto;
    grid-template-rows: auto auto;
    gap: 10px 12px;
  }
  .cart-media { width: 56px; height: 56px; }
  .cart-qty-form { grid-column: 3; grid-row: 1; }
  .cart-qty-input { width: 62px; }
  .cart-price-col { grid-column: 2; grid-row: 2; text-align: left; }
  .btn-cart-remove { grid-column: 3; grid-row: 2; }
}
@media (max-width: 480px) {
  .checkout-steps .step-label { display: none; }
  .step { padding: 8px 10px; }
}
