/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  width: 100%;
  overflow-x: clip;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background var(--transition), color var(--transition);
}

img { max-width: 100%; display: block; user-select: none; -webkit-user-drag: none; height: auto; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; font-family: inherit; background: none; -webkit-tap-highlight-color: transparent; }
input, textarea, select { font: inherit; }

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ============================================
   CSS VARIABLES — DARK (défaut)
   ============================================ */
:root {
  --bg:        #0a0a0f;
  --bg2:       #111118;
  --bg3:       #1a1a24;
  --surface:   #1e1e2a;
  --surface2:  #25253a;
  --border:    rgba(255,255,255,0.07);
  --border2:   rgba(255,255,255,0.13);
  --text:      #f0f0f8;
  --text2:     #a0a0b8;
  --text3:     #606078;
  --accent:    #ff6b35;
  --accent2:   #ff8c5a;
  --accent-glow: rgba(255,107,53,0.25);
  --blue:      #4f8ef7;
  --green:     #22c55e;
  --red:       #ef4444;
  --gold:      #f5b942;
  --radius:    16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --shadow:    0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.6);
  --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
  color-scheme: dark;
}

/* ============================================
   CSS VARIABLES — LIGHT
   ============================================ */
[data-theme="light"] {
  --bg:        #f8f8fc;
  --bg2:       #f0f0f8;
  --bg3:       #e8e8f4;
  --surface:   #ffffff;
  --surface2:  #f4f4fc;
  --border:    rgba(0,0,0,0.07);
  --border2:   rgba(0,0,0,0.13);
  --text:      #0a0a1a;
  --text2:     #44445a;
  --text3:     #888898;
  --accent-glow: rgba(255,107,53,0.15);
  --shadow:    0 4px 24px rgba(0,0,0,0.10);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.15);
  color-scheme: light;
}

.syne { font-family: 'Syne', sans-serif; }

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface2); border-radius: 3px; }
body, .cart-items, .chat-messages, #search-results {
  scrollbar-width: thin;
  scrollbar-color: var(--surface2) var(--bg);
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
#toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  width: min(400px, 90vw);
}
.toast {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation: toast-in 0.35s cubic-bezier(0.34,1.56,0.64,1) both;
  pointer-events: all;
}
.toast.out { animation: toast-out 0.3s ease forwards; }
.toast-icon { font-size: 18px; flex-shrink: 0; }

@keyframes toast-in {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toast-out {
  to { opacity: 0; transform: translateY(10px) scale(0.95); }
}

/* ============================================
   HEADER / NAV
   ============================================ */
#header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(10,10,15,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
[data-theme="light"] #header { background: rgba(248,248,252,0.88); }

@supports not (backdrop-filter: blur(10px)) {
  #header { background: var(--bg2); }
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Logo */
.logo {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  white-space: nowrap;
}
.logo-dot { color: var(--accent); }
.logo-badge {
  font-size: 9px;
  font-weight: 700;
  background: var(--accent);
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

/* Search bar */
.nav-search {
  flex: 1;
  max-width: 400px;
  position: relative;
}
.nav-search input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 10px 18px 10px 42px;
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color var(--transition), background var(--transition);
}
.nav-search input::placeholder { color: var(--text3); }
.nav-search input:focus {
  border-color: var(--accent);
  background: var(--surface2);
}
.nav-search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text3);
  font-size: 15px;
  pointer-events: none;
}

/* Search results dropdown */
#search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  display: none;
  z-index: 300;
  max-height: 360px;
  overflow-y: auto;
}
#search-results.show { display: block; }

.search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background var(--transition);
  border-bottom: 1px solid var(--border);
}
.search-item:last-child { border-bottom: none; }
.search-item:hover { background: var(--surface2); }
.search-item img { width: 42px; height: 42px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.search-item-info { flex: 1; min-width: 0; }
.search-item-name {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-item-price { font-size: 12px; color: var(--text3); margin-top: 2px; }
.search-empty { padding: 20px; text-align: center; color: var(--text3); font-size: 14px; }

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.nav-link {
  color: var(--text2);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 13px;
  border-radius: var(--radius-xs);
  transition: all var(--transition);
}
.nav-link:hover { color: var(--text); background: var(--surface); }

/* Nav action buttons */
.nav-actions { display: flex; align-items: center; gap: 8px; }

.nav-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  position: relative;
  flex-shrink: 0;
}
.nav-btn:hover { background: var(--surface2); border-color: var(--border2); }

.nav-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--accent);
  color: white;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
}

.nav-btn.whatsapp-btn {
  width: auto;
  padding: 0 16px;
  border-radius: 50px;
  background: #25D366;
  border-color: #25D366;
  color: white;
  font-size: 13px;
  font-weight: 600;
  gap: 6px;
  white-space: nowrap;
}
.nav-btn.whatsapp-btn:hover { background: #1db954; border-color: #1db954; }

.mobile-menu-btn {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-xs);
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

/* ============================================
   HERO
   ============================================ */
#hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--bg);
  overflow: hidden;
}
.hero-gradient {
  position: absolute;
  width: 900px;
  height: 900px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.18;
}
.hero-gradient-1 { background: var(--accent); top: -300px; right: -200px; }
.hero-gradient-2 { background: var(--blue); bottom: -300px; left: -200px; opacity: 0.1; }

.hero-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border2);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
  animation: fade-up 0.6s 0.1s both;
}
.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-dot 1.5s ease-in-out infinite;
}

.hero-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(40px, 5vw, 70px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -2px;
  animation: fade-up 0.6s 0.2s both;
}
.hero-title em { color: var(--accent); font-style: normal; }

.hero-sub {
  font-size: 17px;
  color: var(--text2);
  margin-top: 18px;
  line-height: 1.7;
  max-width: 470px;
  animation: fade-up 0.6s 0.3s both;
}

.hero-stats {
  display: flex;
  gap: 36px;
  margin-top: 36px;
  animation: fade-up 0.6s 0.4s both;
  flex-wrap: wrap;
}
.hero-stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 28px;
  font-weight: 800;
}
.hero-stat-lbl { font-size: 12px; color: var(--text3); font-weight: 500; margin-top: 2px; }

.hero-ctas {
  display: flex;
  gap: 14px;
  margin-top: 40px;
  animation: fade-up 0.6s 0.5s both;
  flex-wrap: wrap;
}

/* Buttons */
.btn-primary {
  background: var(--accent);
  color: white;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 24px;
  border-radius: 50px;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition);
  box-shadow: 0 4px 20px var(--accent-glow);
  white-space: nowrap;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
  background: var(--accent2);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 24px;
  border-radius: 50px;
  border: 1px solid var(--border2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-secondary:hover { background: var(--surface2); transform: translateY(-2px); }

/* Hero visual */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fade-up 0.7s 0.3s both;
}
.hero-phone {
  width: 280px;
  height: 540px;
  background: linear-gradient(145deg, var(--surface2), var(--surface));
  border-radius: 44px;
  border: 1.5px solid var(--border2);
  box-shadow: var(--shadow-lg), 0 0 60px var(--accent-glow);
  overflow: hidden;
  flex-shrink: 0;
  will-change: transform;
}
.hero-phone img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; }

.hero-float-card {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  box-shadow: var(--shadow-lg);
  animation: float 4s ease-in-out infinite;
  will-change: transform;
}
.hero-float-card.card-1 { top: 60px; right: 6px; min-width: 175px; }
.hero-float-card.card-2 { bottom: 80px; left: 6px; min-width: 160px; }

/* Sur les écrans très larges, on a assez de marge pour l'effet de
   superposition d'origine (cartes qui dépassent légèrement de l'image) */
@media (min-width: 1500px) {
  .hero-float-card.card-1 { right: -10px; }
  .hero-float-card.card-2 { left: -20px; }
}

.float-label { font-size: 11px; color: var(--text3); font-weight: 500; margin-bottom: 4px; }
.float-val { font-family: 'Syne', sans-serif; font-size: 15px; font-weight: 700; }
.float-val.green  { color: var(--green); }
.float-val.accent { color: var(--accent); }
.float-stars { color: var(--gold); font-size: 13px; letter-spacing: 1px; }

/* Animations */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}

/* ============================================
   TRUST BAR
   ============================================ */
#trust {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
  padding: 18px 0;
}
.trust-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  flex: 1;
  min-width: 160px;
  justify-content: center;
}
.trust-icon { font-size: 22px; flex-shrink: 0; }
.trust-title { font-size: 13px; font-weight: 600; }
.trust-sub { font-size: 11px; color: var(--text3); }
.trust-divider { width: 1px; height: 40px; background: var(--border); flex-shrink: 0; }

/* ============================================
   SECTIONS GENERIQUES
   ============================================ */
.section { padding: 80px 0; }
.section-inner { max-width: 1400px; margin: 0 auto; padding: 0 24px; }
.section-header { margin-bottom: 48px; }

.section-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  display: inline-block;
  margin-bottom: 12px;
}
.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
}
.section-sub { color: var(--text2); margin-top: 12px; font-size: 16px; }

/* ============================================
   FILTERS & SORT
   ============================================ */
.filters-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.filter-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text2);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 50px;
  transition: all var(--transition);
  font-family: inherit;
}
.filter-btn:hover { border-color: var(--border2); color: var(--text); background: var(--surface2); }
.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  box-shadow: 0 4px 12px var(--accent-glow);
}

.sort-select {
  margin-left: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-xs);
  font-family: inherit;
  outline: none;
  cursor: pointer;
  transition: border-color var(--transition);
}
.sort-select:focus { border-color: var(--accent); }

/* ============================================
   PRODUCT GRID & CARDS
   ============================================ */
#product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  position: relative;
  cursor: pointer;
  animation: fade-up 0.5s both;
  will-change: transform;
}
.product-card:hover {
  border-color: var(--border2);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.product-card.out-of-stock { opacity: 0.6; }
.product-card.out-of-stock:hover { transform: none; box-shadow: none; }

/* Card image */
.card-img {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: var(--bg3);
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .card-img img { transform: scale(1.05); }

/* Badges */
.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 50px;
  backdrop-filter: blur(10px);
}
.badge-new     { background: rgba(79,142,247,0.9);  color: white; }
.badge-promo   { background: rgba(239,68,68,0.9);   color: white; }
.badge-popular { background: rgba(245,185,66,0.9);  color: #1a1200; }
.badge-rupture { background: rgba(100,100,120,0.9); color: white; }

/* Wishlist button */
.card-wishlist {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all var(--transition);
  border: 1px solid rgba(255,255,255,0.12);
  z-index: 2;
  color: white;
}
.card-wishlist:hover { background: rgba(255,107,53,0.35); transform: scale(1.1); }
.card-wishlist.active { background: rgba(255,107,53,0.85); }

/* Card body */
.card-body { padding: 16px 18px 18px; }

.card-brand {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text3);
  margin-bottom: 6px;
}
.card-name {
  font-family: 'Syne', sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 12px;
}
.card-spec {
  font-size: 10px;
  padding: 3px 8px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--text2);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}
.card-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
}
.stars { color: var(--gold); font-size: 12px; letter-spacing: 1px; }
.rating-num { font-size: 12px; color: var(--text3); }

/* Card footer avec prix */
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.card-price { flex: 1; min-width: 0; }
.price-on-demand {
  font-size: 12px;
  font-weight: 600;
  color: var(--text3);
  font-style: italic;
  white-space: nowrap;
}
.price-current {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 800;
}
.price-old {
  font-size: 12px;
  color: var(--text3);
  text-decoration: line-through;
  margin-top: 2px;
}

.card-actions { display: flex; gap: 8px; flex-shrink: 0; }

.card-btn-add {
  background: var(--accent);
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 9px 14px;
  border-radius: var(--radius-xs);
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
}
.card-btn-add:hover { background: var(--accent2); transform: scale(1.02); }
.card-btn-add:disabled {
  background: var(--surface2);
  color: var(--text3);
  cursor: not-allowed;
  transform: none;
}

.card-btn-wa {
  background: #25D366;
  color: white;
  font-size: 17px;
  width: 37px;
  height: 37px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all var(--transition);
  flex-shrink: 0;
}
.card-btn-wa:hover { background: #1db954; transform: scale(1.05); }

/* ============================================
   PROMO BANNER
   ============================================ */
#promo-banner {
  background: linear-gradient(135deg, #1a0f05 0%, var(--bg3) 50%, #0f1a05 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 52px 0;
  position: relative;
  overflow: hidden;
}
.promo-bg-accent {
  position: absolute;
  width: 400px;
  height: 400px;
  background: var(--accent);
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.08;
  top: -100px;
  right: 0;
  pointer-events: none;
}
.promo-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  position: relative;
}
.promo-tag {
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.promo-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 800;
  margin-top: 8px;
  letter-spacing: -1px;
}
.promo-sub { color: var(--text2); margin-top: 8px; font-size: 15px; max-width: 380px; }

.promo-right { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }

.countdown { display: flex; gap: 12px; }
.countdown-item { text-align: center; }
.countdown-num {
  font-family: 'Syne', sans-serif;
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.countdown-label {
  font-size: 10px;
  color: var(--text3);
  margin-top: 6px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
  transition: all var(--transition);
}
.step-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.step-num {
  font-family: 'Syne', sans-serif;
  font-size: 48px;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.2;
  position: absolute;
  top: 16px;
  right: 20px;
  line-height: 1;
  user-select: none;
}
.step-icon { font-size: 32px; margin-bottom: 16px; }
.step-title { font-family: 'Syne', sans-serif; font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.step-desc { font-size: 14px; color: var(--text2); line-height: 1.6; }

/* ============================================
   TESTIMONIALS
   ============================================ */
#testimonials { background: var(--bg2); }

.stats-row {
  display: flex;
  gap: 40px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.stat-item { }
.stat-num { font-family: 'Syne', sans-serif; font-size: 40px; font-weight: 800; color: var(--accent); }
.stat-lbl { font-size: 13px; color: var(--text3); margin-top: 4px; }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all var(--transition);
}
.testimonial-card:hover { border-color: var(--border2); transform: translateY(-3px); box-shadow: var(--shadow); }
.test-stars { color: var(--gold); font-size: 14px; letter-spacing: 2px; margin-bottom: 14px; }
.test-text {
  font-size: 15px;
  color: var(--text2);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 20px;
}
.test-product { font-size: 12px; color: var(--green); font-weight: 600; margin-bottom: 18px; }
.test-author { display: flex; align-items: center; gap: 12px; }
.test-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}
.test-name { font-weight: 600; font-size: 14px; }
.test-role { font-size: 12px; color: var(--text3); }

/* ============================================
   FAQ
   ============================================ */
#faq { background: var(--bg2); }

.faq-list { max-width: 740px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  padding: 20px 0;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  transition: color var(--transition);
}
.faq-q:hover { color: var(--accent); }
.faq-icon {
  font-size: 22px;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform var(--transition);
  line-height: 1;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a {
  font-size: 15px;
  color: var(--text2);
  line-height: 1.7;
  padding-bottom: 20px;
  display: none;
  padding-right: 40px;
}
.faq-item.open .faq-a { display: block; }

/* ============================================
   CART DRAWER
   ============================================ */
#cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 400;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  backdrop-filter: blur(4px);
}
#cart-overlay.show { opacity: 1; pointer-events: all; }

#cart-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(420px, 100vw);
  background: var(--bg2);
  border-left: 1px solid var(--border);
  z-index: 500;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  flex-direction: column;
}
#cart-drawer.show { transform: translateX(0); }

.cart-header {
  padding: 22px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}
.cart-header h2 { font-family: 'Syne', sans-serif; font-size: 20px; font-weight: 800; flex: 1; }

.cart-close {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.cart-close:hover { background: var(--surface2); }

.cart-count-badge {
  background: var(--accent);
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 50px;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cart-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text3);
  font-size: 14px;
  text-align: center;
  padding: 48px 16px;
}
.cart-empty-icon { font-size: 48px; opacity: 0.35; }

.cart-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.cart-item-img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  background: var(--bg3);
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 13px; font-weight: 600; line-height: 1.3; margin-bottom: 3px; }
.cart-item-brand { font-size: 11px; color: var(--text3); margin-bottom: 8px; }
.cart-item-bottom { display: flex; align-items: center; justify-content: space-between; }
.cart-qty { display: flex; align-items: center; gap: 8px; }
.qty-btn {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text);
  width: 26px;
  height: 26px;
  border-radius: var(--radius-xs);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.qty-btn:hover { background: var(--surface2); }
.qty-num { font-size: 13px; font-weight: 600; min-width: 20px; text-align: center; }
.cart-item-remove {
  background: none;
  border: none;
  color: var(--text3);
  font-size: 16px;
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color var(--transition);
  flex-shrink: 0;
}
.cart-item-remove:hover { color: var(--red); }

.cart-footer { padding: 20px; border-top: 1px solid var(--border); }
.cart-summary { margin-bottom: 16px; }
.cart-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--text2); padding: 5px 0; }
.cart-row.total {
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: 8px;
}
.cart-row.total span:last-child { color: var(--accent); }

.cart-checkout {
  background: #25D366;
  color: white;
  width: 100%;
  padding: 15px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all var(--transition);
}
.cart-checkout:hover { background: #1db954; transform: translateY(-1px); }
.cart-clear {
  background: none;
  border: none;
  color: var(--text3);
  font-size: 13px;
  width: 100%;
  margin-top: 10px;
  padding: 8px;
  transition: color var(--transition);
}
.cart-clear:hover { color: var(--red); }

/* ============================================
   WISHLIST DRAWER
   ============================================ */
#wishlist-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(380px, 100vw);
  background: var(--bg2);
  border-left: 1px solid var(--border);
  z-index: 500;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  flex-direction: column;
}
#wishlist-drawer.show { transform: translateX(0); }

.wishlist-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.wishlist-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.wishlist-item img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  background: var(--bg3);
}
.wishlist-item-info { flex: 1; min-width: 0; }
.wishlist-item-name { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.wishlist-add-btn {
  background: var(--accent);
  color: white;
  font-size: 12px;
  padding: 7px 12px;
  border-radius: var(--radius-xs);
  border: none;
  font-family: inherit;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}
.wishlist-add-btn:hover { background: var(--accent2); }

/* ============================================
   PRODUCT MODAL
   ============================================ */
#modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.78);
  z-index: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(8px);
}
#modal-overlay.show { opacity: 1; pointer-events: all; }

.product-modal {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 24px;
  width: min(880px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95);
  transition: transform var(--transition);
}
#modal-overlay.show .product-modal { transform: scale(1); }

.modal-header {
  position: sticky;
  top: 0;
  background: var(--bg2);
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
}
.modal-close {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}
.modal-close:hover { background: var(--surface2); }

.modal-body {
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}
.modal-img-wrap {
  background: var(--bg3);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
  position: sticky;
  top: 72px;
  align-self: start;
}
.modal-img-wrap img { width: 100%; height: 100%; object-fit: cover; }

.modal-brand {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 8px;
}
.modal-name {
  font-family: 'Syne', sans-serif;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 14px;
}
.modal-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.modal-desc { font-size: 15px; color: var(--text2); line-height: 1.7; margin-bottom: 24px; }

.modal-specs { margin-bottom: 24px; }
.modal-specs h4 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text3);
  margin-bottom: 12px;
}
.modal-spec-list { display: flex; flex-direction: column; gap: 8px; }
.modal-spec-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text2);
}
.modal-spec-row::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; margin-top: 1px; }

.modal-price-row { margin-bottom: 24px; }
.modal-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.modal-btn-add { flex: 1; padding: 15px; font-size: 15px; min-width: 140px; }
.modal-btn-wa {
  background: #25D366;
  color: white;
  padding: 15px 20px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  border: none;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
}
.modal-btn-wa:hover { background: #1db954; }

/* ============================================
   REVIEWS
   ============================================ */
.reviews-section { padding: 28px; border-top: 1px solid var(--border); }
.reviews-section h3 { font-family: 'Syne', sans-serif; font-size: 18px; font-weight: 700; margin-bottom: 20px; }
.review-cards { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }

.review-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
}
.review-top { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.review-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}
.review-meta { flex: 1; }
.review-name { font-size: 14px; font-weight: 600; }
.review-date { font-size: 11px; color: var(--text3); margin-top: 2px; }
.review-stars { color: var(--gold); font-size: 13px; }
.review-text { font-size: 14px; color: var(--text2); line-height: 1.6; }
.review-product-tag { font-size: 11px; color: var(--green); margin-top: 8px; font-weight: 500; }

.review-form h4 { font-size: 15px; font-weight: 600; margin-bottom: 14px; }
.star-picker { display: flex; gap: 6px; margin-bottom: 14px; }
.star-option {
  font-size: 24px;
  cursor: pointer;
  transition: transform 0.1s;
  color: var(--text3);
  line-height: 1;
}
.star-option:hover, .star-option.active { color: var(--gold); transform: scale(1.2); }

.review-input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  outline: none;
  resize: vertical;
  min-height: 90px;
  margin-bottom: 12px;
  transition: border-color var(--transition);
}
.review-input:focus { border-color: var(--accent); }
.review-input::placeholder { color: var(--text3); }

.review-submit {
  background: var(--accent);
  color: white;
  padding: 11px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  border: none;
  transition: all var(--transition);
}
.review-submit:hover { background: var(--accent2); }

/* ============================================
   CHAT WIDGET
   ============================================ */
#chat-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px;
  height: 56px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px var(--accent-glow);
  z-index: 300;
  transition: all var(--transition);
}
#chat-btn:hover { background: var(--accent2); transform: scale(1.08); }
#chat-btn.chat-open { transform: rotate(90deg) scale(1.05); }

#chat-widget {
  position: fixed;
  bottom: 96px;
  right: 28px;
  width: min(370px, calc(100vw - 40px));
  height: 480px;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 20px;
  z-index: 299;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  transform: scale(0.88) translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
  overflow: hidden;
}
#chat-widget.show { transform: scale(1) translateY(0); opacity: 1; pointer-events: all; }

.chat-header {
  background: var(--accent);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.chat-avatar {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.chat-header-info { flex: 1; min-width: 0; }
.chat-header-name { font-weight: 700; font-size: 14px; color: white; }
.chat-header-status { font-size: 11px; color: rgba(255,255,255,0.78); display: flex; align-items: center; gap: 4px; }
.chat-online-dot {
  width: 7px;
  height: 7px;
  background: #4ade80;
  border-radius: 50%;
  display: inline-block;
  animation: pulse-dot 1.5s ease-in-out infinite;
  flex-shrink: 0;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chat-msg { max-width: 85%; }
.chat-msg.bot  { align-self: flex-start; }
.chat-msg.user { align-self: flex-end; }
.chat-bubble {
  padding: 9px 13px;
  border-radius: 16px;
  font-size: 13.5px;
  line-height: 1.5;
}
.chat-msg.bot  .chat-bubble { background: var(--surface); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.chat-msg.user .chat-bubble { background: var(--accent); color: white; border-bottom-right-radius: 4px; }

.chat-typing {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 10px 13px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  width: fit-content;
}
.chat-typing span {
  width: 6px;
  height: 6px;
  background: var(--text3);
  border-radius: 50%;
  animation: typing 1.2s ease-in-out infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); }
  30%            { transform: translateY(-5px); }
}

.chat-suggestions {
  padding: 6px 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex-shrink: 0;
}
.chat-suggestion {
  background: var(--surface);
  border: 1px solid var(--border2);
  color: var(--text2);
  font-size: 12px;
  padding: 5px 11px;
  border-radius: 50px;
  transition: all var(--transition);
  font-family: inherit;
  cursor: pointer;
}
.chat-suggestion:hover { border-color: var(--accent); color: var(--accent); background: var(--surface2); }

.chat-input-row {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.chat-input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 9px 15px;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--text);
  outline: none;
  transition: border-color var(--transition);
}
.chat-input::placeholder { color: var(--text3); }
.chat-input:focus { border-color: var(--accent); }

.chat-send {
  background: var(--accent);
  color: white;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}
.chat-send:hover { background: var(--accent2); }

/* ============================================
   FOOTER
   ============================================ */
#footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}
.footer-inner { max-width: 1400px; margin: 0 auto; padding: 0 24px; }
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-logo { font-family: 'Syne', sans-serif; font-size: 22px; font-weight: 800; margin-bottom: 16px; }
.footer-desc { font-size: 14px; color: var(--text2); line-height: 1.7; max-width: 300px; margin-bottom: 24px; }
.footer-socials { display: flex; gap: 10px; }
.social-btn {
  width: 38px;
  height: 38px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all var(--transition);
  color: var(--text2);
  text-decoration: none;
}
.social-btn:hover { background: var(--accent); border-color: var(--accent); color: white; }

.footer-col h4 {
  font-family: 'Syne', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
  color: var(--text3);
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 14px; color: var(--text2); transition: color var(--transition); }
.footer-links a:hover { color: var(--accent); }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text2);
  margin-bottom: 12px;
}
.footer-contact-icon { font-size: 15px; flex-shrink: 0; margin-top: 2px; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text3);
}

/* ============================================
   BACK TO TOP
   ============================================ */
#back-top {
  position: fixed;
  bottom: 28px;
  left: 28px;
  width: 44px;
  height: 44px;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 50%;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition);
}
#back-top.show { opacity: 1; pointer-events: all; }
#back-top:hover { background: var(--accent); border-color: var(--accent); color: white; }

/* ============================================
   RESPONSIVE — TABLET (≤ 1024px)
   ============================================ */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { margin-top: 8px; }

  /* Le menu horizontal devient un menu déroulant piloté par le bouton ☰ */
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-left: 0;
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: 8px 16px 16px;
    z-index: 150;
  }
  .nav-links.mobile-open { display: flex; }
  .nav-links .nav-link {
    width: 100%;
    text-align: left;
    padding: 14px 10px;
    font-size: 15px;
    border-radius: var(--radius-xs);
  }

  /* Le bouton ☰ doit être visible dès que le menu horizontal est caché */
  .mobile-menu-btn { display: flex; }
}

/* ============================================
   RESPONSIVE — MOBILE (≤ 768px)
   ============================================ */
@media (max-width: 768px) {
  .nav-search { display: none; }

  /* Empêche le débordement de la barre du haut sur téléphone : le logo
     texte est redondant avec le logo image, et le bouton WhatsApp
     n'a besoin que de son icône. Sans ça, des boutons (☰, WhatsApp...)
     sont poussés hors de l'écran et invisibles. */
  .nav-inner { gap: 10px; }
  .logo { display: none; }
  .nav-btn.whatsapp-btn { width: 40px; padding: 0; }
  .nav-btn.whatsapp-btn .wa-text { display: none; }

  .hero-inner { padding: 56px 24px; gap: 40px; }
  .hero-phone { width: 200px; height: 380px; }

  .hero-stats { gap: 18px; }
  .hero-stat-num { font-size: 22px; }
  .hero-ctas { flex-direction: column; }
  .btn-primary, .btn-secondary { justify-content: center; width: 100%; white-space: normal; text-align: center; }

  .modal-body { grid-template-columns: 1fr; }
  .modal-img-wrap { position: static; aspect-ratio: 16/9; }

  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-desc { max-width: 100%; }

  .trust-divider { display: none; }
  .trust-item { min-width: 45%; }

  .promo-inner { flex-direction: column; align-items: flex-start; }
  .promo-right { flex-direction: column; align-items: flex-start; gap: 16px; }

  .stats-row { gap: 24px; }
  .stat-num { font-size: 32px; }

  #product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
  .card-img { height: 180px; }
  .card-body { padding: 12px 14px 14px; }
  .card-name { font-size: 13px; }
  .price-current { font-size: 16px; }
}

/* ============================================
   RESPONSIVE — SMALL MOBILE (≤ 480px)
   ============================================ */
@media (max-width: 480px) {
  .nav-inner { padding: 0 16px; gap: 10px; }
  .logo { font-size: 17px; }
  .section { padding: 52px 0; }
  .section-inner { padding: 0 16px; }
  .section-title { letter-spacing: -1px; }

  .testimonials-grid { grid-template-columns: 1fr; }

  #product-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card-img { height: 160px; }
  .card-specs { display: none; } /* masqué sur très petit écran */
  .card-body { padding: 10px 12px 12px; }

  .countdown-num { width: 58px; height: 58px; font-size: 26px; }

  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 8px; }

  #chat-btn { bottom: 20px; right: 16px; }
  #chat-widget { right: 16px; bottom: 88px; }
  #back-top { left: 16px; bottom: 20px; }
  #toast-container { bottom: 16px; }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
