/* ============================================================
   NEXOKEY.STORE — Design System 2026
   Aesthetic: Dark luxury tech — sharp grids, neon accents
   ============================================================ */

/* ── RESET & TOKENS ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #080c10;
  --bg2:       #0d1117;
  --bg3:       #131a22;
  --surface:   #1a2332;
  --border:    rgba(255,255,255,.07);
  --border2:   rgba(255,255,255,.12);

  --accent:    #00e5ff;
  --accent2:   #7c3aed;
  --accent3:   #10b981;
  --danger:    #ef4444;
  --warn:      #f59e0b;

  --txt:       #e8edf2;
  --txt2:      #8a98a8;
  --txt3:      #4a5568;

  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  --radius:    12px;
  --radius-sm: 6px;
  --radius-lg: 20px;
  --shadow:    0 8px 32px rgba(0,0,0,.4);
  --shadow-lg: 0 24px 64px rgba(0,0,0,.6);

  --transition: .2s cubic-bezier(.4,0,.2,1);
  --container: 1280px;
}

html {
  scroll-behavior: auto;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--txt);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100%;
  padding-top: 68px;
}

/* ── TYPOGRAPHY ──────────────────────────────────────────── */
h1,h2,h3,h4,h5 { font-family: var(--font-head); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
a  { color: inherit; text-decoration: none; transition: color var(--transition); }
p  { color: var(--txt2); }
img { max-width: 100%; display: block; }

/* ── CONTAINER ───────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── HEADER ──────────────────────────────────────────────── */
.site-header {
  position: fixed;   /* au lieu de sticky */
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(8,12,16,.85);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
}
.site-header.scrolled { background: rgba(8,12,16,.97); }

/* ── NAV WRAP ────────────────────────────────────────────── */
.nav-wrap {
  display: flex;
  align-items: center;
  height: 68px;
  gap: 16px;
  max-width: 100%;
  overflow: visible;
}

/* ── LOGO ────────────────────────────────────────────────── */
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-size: 1.4rem; font-weight: 800;
  flex-shrink: 0;
  white-space: nowrap;
}
.logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 8px;
  display: grid; place-items: center;
  font-size: 1.1rem; color: #000;
  flex-shrink: 0;
}
.logo-text span { color: var(--accent); }

/* ── MAIN NAV (desktop) ──────────────────────────────────── */
.main-nav {
  display: flex; gap: 4px; flex: 1;
}
.main-nav a {
  padding: 6px 14px; border-radius: var(--radius-sm);
  font-size: .9rem; font-weight: 500; color: var(--txt2);
  transition: all var(--transition);
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--txt); background: var(--surface);
}

/* ── NAV ACTIONS ─────────────────────────────────────────── */
.nav-actions {
  display: flex; align-items: center; gap: 4px;
  margin-left: auto;
  flex-shrink: 0;
}

/* ── NAV ICONS (search, account, cart) ───────────────────── */
.nav-search {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  color: var(--txt2);
  transition: all var(--transition);
  flex-shrink: 0;
}
.nav-search svg { width: 18px; height: 18px; }
.nav-search:hover { color: var(--txt); background: var(--surface); }

.nav-account {
  display: flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  color: var(--txt2);
  font-size: .85rem;
  font-family: var(--font-head);
  transition: all var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-account svg { width: 18px; height: 18px; }
.nav-account:hover { color: var(--txt); background: var(--surface); }

/* Texte "Connexion" caché sur mobile, visible sur desktop */
.nav-account-text { display: inline; margin-left: 6px; }

.nav-cart {
  position: relative;
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  color: var(--txt2);
  transition: all var(--transition);
  flex-shrink: 0;
}
.nav-cart svg { width: 20px; height: 20px; }
.nav-cart:hover { color: var(--accent); background: rgba(0,229,255,.08); }

.cart-badge {
  position: absolute; top: 2px; right: 2px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent); color: #000;
  font-size: .65rem; font-weight: 700;
  display: grid; place-items: center;
  font-family: var(--font-head);
}

/* ── BURGER ──────────────────────────────────────────────── */
.nav-burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 8px; flex-shrink: 0;
  width: 38px; height: 38px;
}
.nav-burger span {
  display: block; width: 22px; height: 2px;
  background: var(--txt); border-radius: 2px;
  transition: all var(--transition);
}
/* Animation burger → croix */
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE DRAWER ───────────────────────────────────────── */
.mobile-menu {
  display: flex; flex-direction: column; gap: 0;
  position: fixed; top: 68px; left: 0; right: 0; bottom: 0;
  background: var(--bg2); z-index: 999; padding: 16px;
  transform: translateX(100%); transition: transform .3s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a {
  padding: 16px; border-bottom: 1px solid var(--border);
  font-size: 1.1rem; color: var(--txt2);
  transition: color var(--transition);
}
.mobile-menu a:hover { color: var(--accent); }

/* Backdrop */
#drawer-backdrop {
  display: none;
  position: fixed; inset: 0; z-index: 998;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(2px);
}
#drawer-backdrop.open { display: block; }

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  min-height: 88vh;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  background: var(--bg);
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(0,229,255,.07) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 20% 80%, rgba(124,58,237,.08) 0%, transparent 60%);
}
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}

.hero-content { position: relative; max-width: 680px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 100px;
  border: 1px solid rgba(0,229,255,.3);
  background: rgba(0,229,255,.06);
  font-size: .8rem; color: var(--accent); font-weight: 500;
  margin-bottom: 24px; font-family: var(--font-head);
}
.hero-badge::before { content: '●'; font-size: .5rem; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.3} }

.hero h1 { margin-bottom: 20px; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 1.15rem; line-height: 1.7; margin-bottom: 36px;
  color: var(--txt2);
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: var(--radius);
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  border: none; cursor: pointer; transition: all var(--transition);
  line-height: 1;
}
.btn-primary {
  background: var(--accent); color: #000;
  box-shadow: 0 0 24px rgba(0,229,255,.25);
}
.btn-primary:hover {
  background: #33eaff; transform: translateY(-1px);
  box-shadow: 0 0 40px rgba(0,229,255,.4);
}
.btn-outline {
  background: transparent; color: var(--txt);
  border: 1px solid var(--border2);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); background: rgba(0,229,255,.05); }
.btn-sm { padding: 8px 18px; font-size: .85rem; border-radius: var(--radius-sm); }
.btn-full { width: 100%; justify-content: center; }
.btn-danger { background: var(--danger); color: #fff; }

/* ── CARDS ───────────────────────────────────────────────── */
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}
.card:hover {
  border-color: var(--border2);
  transform: translateY(-3px);
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}

/* ── PRODUCT CARD ────────────────────────────────────────── */
.product-card {
  display: flex; flex-direction: column;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all .25s cubic-bezier(.4,0,.2,1);
  position: relative;
}
.product-card:hover {
  border-color: rgba(0,229,255,.25);
  transform: translateY(-4px);
  box-shadow: 0 24px 64px rgba(0,0,0,.5), 0 0 0 1px rgba(0,229,255,.1);
}
.product-img {
  aspect-ratio: 16/9; overflow: hidden;
  background: var(--bg3);
  display: flex; align-items: center; justify-content: center;
}
.product-img img {
  width: 100%; height: 100%; object-fit: contain;
  padding: 20px; transition: transform .4s ease;
}
.product-card:hover .product-img img { transform: scale(1.05); }
.product-img .img-placeholder { font-size: 3.5rem; opacity: .4; }

.product-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.product-cat {
  font-size: .72rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .08em; color: var(--accent);
  margin-bottom: 8px; font-family: var(--font-head);
}
.product-name {
  font-size: 1rem; font-weight: 600; line-height: 1.3;
  color: var(--txt); margin-bottom: 10px;
  font-family: var(--font-head);
}
.product-desc {
  font-size: .85rem; color: var(--txt2); line-height: 1.5;
  margin-bottom: 16px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px; border-top: 1px solid var(--border);
}
.product-price { font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; color: var(--txt); }
.product-price-old { font-size: .8rem; color: #eac532; text-decoration: line-through; margin-left: 6px; }

.badge-popular {
  position: absolute; top: 14px; left: 14px;
  background: var(--warn); color: #000;
  font-size: .7rem; font-weight: 700; font-family: var(--font-head);
  padding: 3px 10px; border-radius: 100px; text-transform: uppercase;
}
.badge-stock {
  position: absolute; top: 14px; right: 14px;
  background: rgba(16,185,129,.15); color: var(--accent3);
  border: 1px solid rgba(16,185,129,.3);
  font-size: .7rem; font-weight: 600; font-family: var(--font-head);
  padding: 3px 10px; border-radius: 100px;
}

/* ── GRID LAYOUTS ────────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* ── SECTION HEADERS ─────────────────────────────────────── */
.section    { padding: 80px 0; }
.section-sm { padding: 48px 0; }

.section-header { margin-bottom: 48px; }
.section-header h2 { margin-bottom: 10px; }
.section-header p  { font-size: 1.05rem; }

.section-header-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 40px; gap: 16px; flex-wrap: wrap;
}
.tag-accent {
  display: inline-block; padding: 2px 12px;
  background: rgba(0,229,255,.1); color: var(--accent);
  border-radius: 100px; font-size: .78rem; font-weight: 600;
  font-family: var(--font-head); text-transform: uppercase;
  letter-spacing: .06em; margin-bottom: 12px;
}

/* ── CATEGORIES BAR ──────────────────────────────────────── */
.cats-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 36px; }
.cat-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px; border-radius: 100px;
  border: 1px solid var(--border2); background: var(--bg2);
  font-size: .85rem; color: var(--txt2); cursor: pointer;
  transition: all var(--transition); font-family: var(--font-head);
}
.cat-pill:hover, .cat-pill.active {
  border-color: var(--accent); color: var(--accent);
  background: rgba(0,229,255,.07);
}

/* ── STATS BAR ───────────────────────────────────────────── */
.stats-bar {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.stat-item {
  padding: 28px 24px; text-align: center;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-head); font-size: 1.8rem; font-weight: 800;
  color: var(--accent); line-height: 1;
}
.stat-label { font-size: .82rem; color: var(--txt2); margin-top: 4px; }

/* ── FORMS ───────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block; font-size: .85rem; font-weight: 500;
  color: var(--txt2); margin-bottom: 8px; font-family: var(--font-head);
}
.form-control {
  width: 100%; padding: 12px 16px;
  background: var(--bg3); border: 1px solid var(--border2);
  border-radius: var(--radius); color: var(--txt);
  font-family: var(--font-body); font-size: .95rem;
  transition: all var(--transition);
}
.form-control:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,229,255,.1);
}
.form-control::placeholder { color: var(--txt3); }
.form-error   { color: var(--danger); font-size: .82rem; margin-top: 6px; }
.form-success { color: var(--accent3); font-size: .9rem; margin-bottom: 16px; }

/* ── AUTH PAGES ──────────────────────────────────────────── */
.auth-page {
  min-height: calc(100vh - 68px);
  display: flex; align-items: center; justify-content: center;
  padding: 48px 24px;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(0,229,255,.05) 0%, transparent 60%);
}
.auth-box {
  width: 100%; max-width: 440px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 40px;
}
.auth-box h1 { font-size: 1.8rem; margin-bottom: 6px; }
.auth-box .subtitle { color: var(--txt2); margin-bottom: 32px; }
.auth-divider {
  text-align: center; color: var(--txt3); font-size: .8rem;
  margin: 20px 0; position: relative;
}
.auth-divider::before, .auth-divider::after {
  content: ''; position: absolute; top: 50%; width: calc(50% - 20px);
  height: 1px; background: var(--border);
}
.auth-divider::before { left: 0; }
.auth-divider::after  { right: 0; }
.auth-switch { text-align: center; font-size: .9rem; color: var(--txt2); margin-top: 20px; }
.auth-switch a { color: var(--accent); font-weight: 600; }
.auth-switch a:hover { text-decoration: underline; }

/* ── PRODUCT PAGE ────────────────────────────────────────── */
.product-hero {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: start; padding: 60px 0;
}
.product-hero-img {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 48px;
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 1/1;
}
.product-hero-img img { max-width: 100%; max-height: 240px; object-fit: contain; }
.product-hero-img .img-large { font-size: 7rem; text-align: center; }

.product-meta { display: flex; flex-direction: column; gap: 20px; }
.product-meta h1 { font-size: clamp(1.4rem, 3vw, 2rem); }
.product-sku { font-size: .78rem; color: var(--txt3); font-family: var(--font-head); }
.product-price-hero {
  font-family: var(--font-head); font-size: 2.2rem; font-weight: 800; color: var(--txt);
}
.product-price-hero span { color: var(--accent); }
.product-desc-full { color: var(--txt2); line-height: 1.8; }
.product-guarantees {
  display: flex; flex-direction: column; gap: 10px;
  padding: 20px; background: var(--bg3); border-radius: var(--radius);
}
.guarantee-item {
  display: flex; align-items: center; gap: 10px;
  font-size: .88rem; color: var(--txt2);
}
.guarantee-item .icon { font-size: 1.1rem; }

/* ── CART ────────────────────────────────────────────────── */
.cart-layout {
  display: grid; grid-template-columns: 1fr 360px;
  gap: 32px; align-items: start; padding: 48px 0;
}
.cart-items { display: flex; flex-direction: column; gap: 16px; }
.cart-item {
  display: flex; gap: 20px; align-items: center;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
}
.cart-item-img {
  width: 72px; height: 72px; border-radius: var(--radius-sm);
  background: var(--bg3); overflow: hidden; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.cart-item-info  { flex: 1; }
.cart-item-name  { font-weight: 600; font-family: var(--font-head); margin-bottom: 4px; }
.cart-item-price { color: var(--accent); font-weight: 700; font-family: var(--font-head); }
.cart-item-remove {
  color: var(--txt3); background: none; border: none;
  cursor: pointer; font-size: 1.2rem; transition: color var(--transition);
}
.cart-item-remove:hover { color: var(--danger); }

.cart-summary {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px; position: sticky; top: 88px;
}
.cart-summary h3 { font-size: 1.1rem; margin-bottom: 20px; }
.summary-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--border);
  font-size: .9rem; color: var(--txt2);
}
.summary-row:last-of-type { border: none; }
.summary-total {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 0; font-family: var(--font-head); font-weight: 800; font-size: 1.2rem;
}

/* ── CHECKOUT ────────────────────────────────────────────── */
.checkout-layout {
  display: grid; grid-template-columns: 1fr 400px;
  gap: 40px; align-items: start; padding: 48px 0;
}
.checkout-steps { display: flex; gap: 8px; margin-bottom: 32px; }
.step {
  display: flex; align-items: center; gap: 8px;
  font-size: .82rem; color: var(--txt3); font-family: var(--font-head);
}
.step-num {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid var(--border2); display: grid; place-items: center;
  font-size: .75rem; font-weight: 700;
}
.step.active { color: var(--accent); }
.step.active .step-num { border-color: var(--accent); background: rgba(0,229,255,.1); }
.step-sep { width: 32px; height: 1px; background: var(--border); align-self: center; }

/* ── ACCOUNT ─────────────────────────────────────────────── */
.account-layout {
  display: grid; grid-template-columns: 240px 1fr;
  gap: 32px; padding: 48px 0;
}
.account-sidebar {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 8px;
  height: fit-content; position: sticky; top: 88px;
}
.account-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: var(--radius-sm);
  font-size: .9rem; color: var(--txt2); transition: all var(--transition);
}
.account-nav a:hover, .account-nav a.active { background: var(--surface); color: var(--txt); }
.account-nav a.active { color: var(--accent); }
.account-content { min-width: 0; }
.account-content h2 { margin-bottom: 24px; }

/* ── ORDERS ──────────────────────────────────────────────── */
.order-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; margin-bottom: 16px;
}
.order-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 16px;
}
.order-id   { font-family: var(--font-head); font-weight: 700; }
.order-date { font-size: .82rem; color: var(--txt2); }
.badge-status {
  padding: 4px 12px; border-radius: 100px;
  font-size: .75rem; font-weight: 700; font-family: var(--font-head);
}
.badge-paid      { background: rgba(16,185,129,.15); color: var(--accent3); }
.badge-pending   { background: rgba(245,158,11,.15);  color: var(--warn); }
.badge-cancelled { background: rgba(239,68,68,.15);   color: var(--danger); }

/* ── KEY REVEAL ──────────────────────────────────────────── */
.key-box {
  background: var(--bg3); border: 1px solid var(--border2);
  border-radius: var(--radius); padding: 16px 20px;
  display: flex; align-items: center; gap: 12px; margin-top: 12px;
}
.key-value {
  font-family: 'Courier New', monospace; font-size: 1rem;
  color: var(--accent); flex: 1; letter-spacing: .04em;
}
.key-copy {
  background: none; border: 1px solid var(--border2); color: var(--txt2);
  padding: 6px 14px; border-radius: var(--radius-sm);
  font-size: .8rem; cursor: pointer; transition: all var(--transition);
}
.key-copy:hover { border-color: var(--accent); color: var(--accent); }

/* ── TOAST ───────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  background: var(--surface); border: 1px solid var(--border2);
  border-radius: var(--radius); padding: 14px 20px;
  font-size: .9rem; color: var(--txt);
  transform: translateY(80px); opacity: 0;
  transition: all .3s cubic-bezier(.4,0,.2,1);
  box-shadow: var(--shadow-lg); max-width: 360px;
}
.toast.show    { transform: translateY(0); opacity: 1; }
.toast.success { border-color: rgba(16,185,129,.4); }
.toast.error   { border-color: rgba(239,68,68,.4); }

/* ── BREADCRUMB ──────────────────────────────────────────── */
.breadcrumb {
  display: flex; gap: 8px; align-items: center;
  font-size: .82rem; color: var(--txt3); padding: 20px 0;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { color: var(--txt3); }

/* ── EMPTY STATE ─────────────────────────────────────────── */
.empty-state { text-align: center; padding: 80px 24px; }
.empty-state .icon { font-size: 4rem; margin-bottom: 16px; opacity: .4; }
.empty-state h3    { margin-bottom: 8px; }
.empty-state p     { color: var(--txt2); margin-bottom: 24px; }

/* ── PAGE TITLE ──────────────────────────────────────────── */
.page-title-bar {
  background: var(--bg2); border-bottom: 1px solid var(--border);
  padding: 32px 0; min-height: 120px;
}
.page-title-bar h1 { font-size: 1.8rem; }

/* ── FOOTER ──────────────────────────────────────────────── */
.site-footer {
  background: var(--bg2); border-top: 1px solid var(--border);
  margin-top: 80px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; padding: 64px 0 48px;
}
.footer-brand p { font-size: .88rem; margin: 16px 0 20px; max-width: 280px; }
.footer-badges  { display: flex; flex-direction: column; gap: 6px; font-size: .8rem; color: var(--txt2); }
.footer-links h4 {
  font-family: var(--font-head); font-size: .85rem;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--txt3); margin-bottom: 16px;
}
.footer-links a {
  display: block; font-size: .88rem; color: var(--txt2);
  padding: 4px 0; transition: color var(--transition);
}
.footer-links a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); padding: 20px 0; }
.footer-bottom .container {
  display: flex; justify-content: space-between;
  font-size: .8rem; color: var(--txt3);
}

/* ── SEARCH BAR ──────────────────────────────────────────── */
.search-bar {
  display: flex; margin-bottom: 36px;
  background: var(--bg2); border: 1px solid var(--border2);
  border-radius: var(--radius); overflow: hidden;
}
.search-bar input {
  flex: 1; padding: 14px 20px;
  background: none; border: none; color: var(--txt);
  font-family: var(--font-body); font-size: .95rem;
}
.search-bar input:focus { outline: none; }
.search-bar button {
  padding: 0 20px; background: var(--accent); border: none;
  cursor: pointer; color: #000; font-weight: 700;
}
.search-bar button:hover { background: #33eaff; }



/* ── RESPONSIVE : TABLET ─────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid             { grid-template-columns: 1fr 1fr; }
  .product-hero            { grid-template-columns: 1fr; gap: 32px; }
  .cart-layout,
  .checkout-layout         { grid-template-columns: 1fr; }
  .account-layout          { grid-template-columns: 1fr; }
  .stats-grid              { grid-template-columns: repeat(2, 1fr); }
}

/* ── RESPONSIVE : MOBILE ─────────────────────────────────── */
@media (max-width: 768px) {

  /* Nav layout */
  .nav-wrap {
    padding: 0 12px;
    gap: 0;
  }

  /* Cacher la nav desktop */
  .main-nav { display: none; }

  /* Actions à droite */
  .nav-actions {
    gap: 2px;
    margin-left: auto;
  }

  /* Toutes les icônes nav : taille uniforme */
  .nav-search,
  .nav-account,
  .nav-cart {
    width: 36px;
    height: 36px;
  }

  /* Cacher le texte "Connexion", garder uniquement l'icône */
  .nav-account-text { display: none; }

  /* Afficher le burger */
  .nav-burger { display: flex; }

  /* Sections */
  .hero    { min-height: 70vh; }
  .section { padding: 56px 0; }

  /* Grilles */
  .footer-grid   { grid-template-columns: 1fr; gap: 32px; }
  .stats-grid    { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
}
/* Bouton recherche : texte desktop, loupe mobile */
.search-btn-icon { display: none; }

@media (max-width: 768px) {
  .search-btn-text { display: none; }
  .search-btn-icon { display: flex; align-items: center; justify-content: center; }
  .search-bar button { padding: 0 16px; }
}
/* ── WHATSAPP FLOAT ──────────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9998;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  transition: all .25s cubic-bezier(.4,0,.2,1);
}
.whatsapp-float svg {
  width: 30px;
  height: 30px;
  color: #fff;
}
.whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 32px rgba(37,211,102,.6);
  background: #20bd5a;
}

/* Tooltip au survol (desktop) */
.whatsapp-float::before {
  content: 'Contactez-nous';
  position: absolute;
  right: 64px;
  background: var(--surface);
  color: var(--txt);
  font-family: var(--font-head);
  font-size: .8rem;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  border: 1px solid var(--border2);
}
.whatsapp-float:hover::before {
  opacity: 1;
}

@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }
  .whatsapp-float svg {
    width: 26px;
    height: 26px;
  }
  /* Pas de tooltip sur mobile */
  .whatsapp-float::before {
    display: none;
  }
}
.live-viewers {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: var(--txt2, #ccc);
  font-size: .85rem;
  padding: 7px 14px;
  border-radius: 100px;
  margin: 8px 0 16px;
}

.live-viewers strong {
  color: var(--danger, #ef4444);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  animation: pulse-dot 1.5s ease infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}