/* ========== GLOBAL VARIABLES & RESET (THÈME CLAIR - BLANC & NOIR) ========== */
:root {
  /* Palette Blanc & Noir - Inversée */
  --bg-dark: #ffffff;              /* Fond principal : Blanc */
  --bg-card: #f8f8f8;              /* Cartes : Blanc cassé */
  --bg-nav: #fafafa;               /* Navigation : Blanc très clair */

  /* Couleurs principales - Inversées */
  --primary-color: #000000;        /* Primaire : Noir */
  --primary-glow: #333333;         /* Lueur : Gris foncé */
  --secondary-color: #444444;      /* Secondaire : Gris anthracite */

  /* Textes - Inversés */
  --text-main: #000000;            /* Texte principal : Noir */
  --text-muted: #666666;           /* Texte secondaire : Gris */

  /* États */
  --success: #000000;
  --danger: #dc2626;

  /* Police */
  --font-main: 'Outfit', 'Inter', sans-serif;

  /* Effets - adaptés au thème clair */
  --glass-border: 1px solid rgba(0, 0, 0, 0.1);
  --neon-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.08);

  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* Scrollbar personnalisée - thème clair */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #999; }

/* Sélection */
::selection { background: var(--primary-color); color: #fff; }

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  background-image:
    radial-gradient(circle at 15% 50%, rgba(0, 0, 0, 0.04), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(0, 0, 0, 0.03), transparent 25%);
  background-size: 200% 200%;
  animation: bgPulse 15s ease-in-out infinite alternate;
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

@keyframes bgPulse {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
button { font-family: var(--font-main); cursor: pointer; border: none; outline: none; }
.container { width: min(92%, 1400px); margin: 0 auto; padding: 0 1rem; }

/* ========== HEADER & NAVIGATION ========== */
header {
  background-color: var(--bg-nav);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: var(--glass-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.navbar .container { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 12px; position: relative; }

.logo img {
  height: 48px;
  width: auto;
  filter: grayscale(100%) brightness(0.9) drop-shadow(0 0 8px rgba(0,0,0,0.15));
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.logo:hover img { transform: rotate(-10deg) scale(1.1); }

.logo h1 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #000 30%, #444 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.nav-items { display: flex; align-items: center; gap: 24px; }
.contact-info { display: none; }

@media (min-width: 900px) {
  .contact-info {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.9rem;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.04);
    padding: 8px 16px;
    border-radius: 50px;
    border: var(--glass-border);
  }
}

.btn-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Tracking Button - thème clair */
.btn-track {
  background: rgba(0, 0, 0, 0.06);
  color: var(--primary-color);
  border: 1px solid rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
}
.btn-track::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,0.08), transparent);
  transition: 0.5s;
}
.btn-track:hover::before { left: 100%; }
.btn-track:hover {
  background: rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

/* Cart Button - thème clair */
.cart-btn {
  background: var(--primary-color);
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  padding: 12px 24px;
  font-weight: 700;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}
.cart-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
  filter: brightness(0.9);
}

/* Compteur panier - corrigé pour s'afficher */
.cart-count {
  background: #fff;
  color: #000;
  font-size: 0.75rem;
  font-weight: 800;
  height: 20px;
  min-width: 20px;
  border-radius: 50%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -5px;
  right: -5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  border: 2px solid var(--bg-nav);
  opacity: 1 !important;
  visibility: visible !important;
}

/* Responsive Nav */
@media (max-width: 768px) {
  .nav-items { gap: 10px; }
  .btn-nav span, .btn-track span { display: none; }
  .btn-nav, .btn-track {
    padding: 10px; width: 44px; height: 44px;
    justify-content: center; border-radius: 12px;
  }
  .btn-nav i, .btn-track i { font-size: 1.2rem; margin: 0; }
  .contact-info { display: none; }
  .cart-btn { padding: 10px; width: 44px; height: 44px; justify-content: center; border-radius: 12px; }
  .cart-btn span:not(.cart-count) { display: none; }
}

@media (max-width: 480px) {
  .navbar .container { padding: 0.5rem 1rem; flex-direction: row; justify-content: space-between; }
  .logo h1 { display: none; }
  .logo img { height: 38px; }
  .nav-items { width: auto; gap: 8px; }
}

/* ========== HERO SLIDER - Thème clair ========== */
.hero-slider {
  position: relative;
  width: 100%;
  height: 600px;
  max-width: 1600px;
  margin: 40px auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--neon-shadow);
  border: var(--glass-border);
}

.slider-wrapper { display: flex; height: 100%; transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1); }
.slider-slide { min-width: 100%; height: 100%; position: relative; }
.slider-slide img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(25%) brightness(0.95) contrast(1.05);
}

.slider-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(90deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.7) 50%, transparent 100%);
  display: flex; align-items: center; padding-left: 8%;
}

.slider-content {
  color: var(--text-main); max-width: 700px; padding: 3rem;
  border-left: 4px solid var(--primary-color);
  background: rgba(255, 255, 255, 0.6); backdrop-filter: blur(8px);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  opacity: 0; transform: translateX(-50px);
  animation: slideContent 0.8s forwards 0.3s;
}
@keyframes slideContent { to { opacity: 1; transform: translateX(0); } }

.slider-content h2 {
  font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 800;
  margin-bottom: 1.5rem; line-height: 1.1;
  text-shadow: 0 0 20px rgba(255,255,255,0.8); letter-spacing: -1px;
}
.slider-content p { font-size: 1.25rem; margin-bottom: 2rem; opacity: 0.85; font-weight: 300; max-width: 90%; }
.slider-content .price {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 800;
  color: var(--primary-color); display: block; margin-bottom: 2rem;
  text-shadow: 0 0 15px rgba(0,0,0,0.08); font-family: var(--font-main);
}

.btn-hero {
  background: var(--primary-color); color: #fff;
  padding: 15px 40px; border-radius: 5px; font-weight: 700;
  font-size: 1.1rem; text-transform: uppercase; letter-spacing: 1px;
  transition: var(--transition); display: inline-flex;
  align-items: center; gap: 15px; position: relative; z-index: 1;
  overflow: hidden; box-shadow: 0 5px 20px rgba(0,0,0,0.15);
  clip-path: polygon(0 0, 100% 0, 100% 85%, 95% 100%, 0 100%);
}
.btn-hero::after {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(90deg, #000, #333); z-index: -1;
  transition: opacity 0.3s; opacity: 0;
}
.btn-hero:hover::after { opacity: 1; }
.btn-hero:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 8px 30px rgba(0,0,0,0.25); }

/* Nav Buttons - thème clair */
.slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,0.06); backdrop-filter: blur(5px);
  color: var(--text-main); border: 1px solid rgba(0,0,0,0.12);
  width: 60px; height: 60px; border-radius: 50%;
  font-size: 1.8rem; z-index: 10; transition: var(--transition);
  display: flex; align-items: center; justify-content: center; opacity: 0;
}
.hero-slider:hover .slider-btn { opacity: 1; }
.slider-btn:hover {
  background: var(--primary-color); border-color: var(--primary-color);
  box-shadow: 0 0 20px rgba(0,0,0,0.2); color: #fff;
}
.prev { left: 30px; } .next { right: 30px; }

/* Dots - thème clair */
.slider-dots {
  position: absolute; bottom: 30px; left: 50%;
  transform: translateX(-50%); display: flex; gap: 15px; z-index: 10;
}
.slider-dot {
  width: 40px; height: 4px;
  background-color: rgba(0,0,0,0.2);
  border-radius: 2px; cursor: pointer; transition: var(--transition);
}
.slider-dot.active {
  background-color: var(--primary-color);
  box-shadow: 0 0 10px rgba(0,0,0,0.3); width: 60px;
}

/* ========== PRODUCTS SECTION - Thème clair ========== */
.products-section { padding: 6rem 0; position: relative; }
.products-section::before {
  content: ''; position: absolute; top: 20%; right: 0;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(0,0,0,0.03) 0%, transparent 70%);
  z-index: -1;
}
.products-section h2 {
  font-size: 3rem; color: var(--text-main); text-align: center;
  margin-bottom: 4rem; font-weight: 800; letter-spacing: -1px; text-transform: uppercase;
}
.products-section h2::after {
  content: ''; position: absolute; bottom: -15px; left: 50%;
  transform: translateX(-50%); width: 100px; height: 4px;
  background: linear-gradient(90deg, transparent, #000, transparent);
  border-radius: 2px; box-shadow: 0 0 10px rgba(0,0,0,0.15);
}

.filters { display: flex; justify-content: center; gap: 1.5rem; margin-bottom: 2rem; flex-wrap: wrap; }

/* Category Cards - Thème clair */
.cat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin-bottom: 3rem; }
.cat-card {
  border-radius: 16px; padding: 1.1rem 1.25rem;
  display: flex; align-items: center; gap: 0.9rem;
  border: 1px solid transparent; cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative; overflow: hidden; backdrop-filter: blur(10px);
  background: var(--bg-card);
}
.cat-card::before {
  content: ''; position: absolute; inset: 0; opacity: 0;
  transition: opacity 0.3s; background: rgba(0,0,0,0.04);
}
.cat-card:hover::before, .cat-card.active::before { opacity: 1; }
.cat-card:hover, .cat-card.active { transform: translateY(-3px); }

/* Couleurs catégorie - thème clair */
.cat-all, .cat-laptop, .cat-imprimantes, .cat-accessoires {
  background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.12);
}
.cat-all.active, .cat-laptop.active, .cat-imprimantes.active, .cat-accessoires.active {
  border-color: #000;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.1), 0 0 20px rgba(0,0,0,0.08);
}

.cat-card-icon {
  width: 42px; height: 42px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
  background: rgba(0,0,0,0.08); color: #000;
}
.cat-card-info { flex: 1; min-width: 0; }
.cat-card-name { font-size: 0.78rem; font-weight: 600; color: #666; text-transform: uppercase; letter-spacing: 0.5px; }
.cat-card-count { font-size: 1.5rem; font-weight: 800; color: #000; line-height: 1.1; }

.search-input, .category-filter {
  padding: 16px 28px; border: 1px solid rgba(0,0,0,0.12);
  border-radius: 50px; font-size: 1rem; outline: none;
  transition: var(--transition); background-color: #fff;
  color: var(--text-main); backdrop-filter: blur(10px);
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.search-input::placeholder { color: var(--text-muted); }
.search-input { width: 350px; }
.search-input:focus, .category-filter:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0,0,0,0.1);
  background-color: #fff;
}

/* Products Grid - Thème clair */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2.5rem; perspective: 1000px; }

.product-card {
  background: var(--bg-card); backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
  display: flex; flex-direction: column; position: relative; cursor: pointer;
}
.product-card::before {
  content: ''; position: absolute; top: 0; left: -150%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,0.04), transparent);
  transition: 0.6s; z-index: 2;
}
.product-card:hover::before { left: 150%; }
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12), 0 0 20px rgba(0,0,0,0.08);
  border-color: rgba(0,0,0,0.2);
}

.product-image {
  width: 100%; height: 260px; object-fit: cover;
  background-color: #f0f0f0; transition: transform 0.6s ease;
  filter: grayscale(15%);
}
.product-card:hover .product-image { transform: scale(1.1); filter: grayscale(0%); }

.product-info { padding: 2rem; flex: 1; display: flex; flex-direction: column; }
.product-info h3 {
  font-size: 1.2rem; font-weight: 700; color: var(--text-main);
  margin-bottom: 0.4rem; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.product-badges { position: absolute; top: 15px; left: 15px; display: flex; flex-direction: column; gap: 8px; z-index: 5; }
.badge {
  padding: 4px 12px; border-radius: 6px; font-size: 0.7rem;
  font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
  backdrop-filter: blur(8px); border: 1px solid rgba(0,0,0,0.12);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08); background: #e8e8e8; color: #000;
}

.product-meta { margin-bottom: 0.8rem; }
.product-category {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.6px; display: inline-flex; align-items: center;
  gap: 5px; padding: 3px 10px; border-radius: 50px; width: fit-content;
  background: rgba(0,0,0,0.06); color: #444; border: 1px solid rgba(0,0,0,0.1);
}
.product-description {
  font-size: 0.95rem; color: var(--text-muted); margin-bottom: 1.5rem;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  line-height: 1.6;
}

.product-footer {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: auto; padding-top: 1.5rem;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.product-price {
  font-size: 1.5rem; font-weight: 800; color: var(--text-main);
  text-shadow: 0 0 10px rgba(255,255,255,0.5); font-family: var(--font-main);
}
.price-container { display: flex; flex-direction: column; }
.price-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }

.btn-add-cart {
  background: var(--primary-color); color: #fff;
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; transition: var(--transition);
  border: none; box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.btn-add-cart:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25); filter: brightness(0.95);
}

/* ========== MODALS - Thème clair ========== */
.modal {
  display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background-color: rgba(255,255,255,0.9); z-index: 2000;
  align-items: center; justify-content: center;
  backdrop-filter: blur(8px); opacity: 0; transition: opacity 0.3s ease;
}
.modal.active { display: flex; opacity: 1; }

.modal-content {
  background-color: #fff; padding: 2.5rem; border-radius: var(--radius-lg);
  width: 90%; max-width: 550px; max-height: 90vh; overflow-y: auto;
  position: relative; box-shadow: var(--neon-shadow), 0 0 0 1px rgba(0,0,0,0.08);
  transform: scale(0.9); transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  color: var(--text-main);
}
.modal.active .modal-content { transform: scale(1); }

.close-modal {
  position: absolute; top: 20px; right: 25px;
  font-size: 1.8rem; color: var(--text-muted);
  cursor: pointer; transition: color 0.3s;
}
.close-modal:hover { color: var(--primary-color); text-shadow: 0 0 10px rgba(0,0,0,0.15); }

.modal-content h2 {
  font-size: 1.8rem; color: var(--text-main); margin-bottom: 2rem;
  border-bottom: 1px solid rgba(0,0,0,0.08); padding-bottom: 1rem;
}

/* Cart Items - Thème clair */
.cart-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.2rem; background-color: #f8f8f8; margin-bottom: 1.2rem;
  border-radius: var(--radius-md); border: 1px solid rgba(0,0,0,0.06);
}
.cart-item-name { font-weight: 600; color: var(--text-main); margin-bottom: 6px; font-size: 1.05rem; }

.quantity-controls {
  display: flex; align-items: center; background: rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.1); border-radius: var(--radius-md); overflow: hidden;
}
.qty-btn {
  padding: 8px 14px; background: transparent; cursor: pointer;
  font-weight: 600; color: var(--text-main); transition: background 0.2s;
}
.qty-btn:hover { background: rgba(0,0,0,0.08); }
.qty-val { padding: 0 12px; font-weight: 600; min-width: 35px; text-align: center; color: var(--text-main); }

.btn-remove {
  color: var(--danger); background: rgba(220,38,38,0.1);
  padding: 8px; border-radius: 8px; margin-left: 15px; transition: var(--transition);
}
.btn-remove:hover { background: var(--danger); color: #fff; box-shadow: 0 0 10px rgba(220,38,38,0.3); }

.btn-checkout {
  width: 100%; padding: 16px; background: var(--primary-color);
  color: #fff; font-weight: 700; border-radius: var(--radius-md);
  margin-top: 1.5rem; font-size: 1.1rem; transition: var(--transition);
  text-transform: uppercase; letter-spacing: 1px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}
.btn-checkout:hover {
  background: var(--secondary-color);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2); transform: translateY(-2px);
}

/* Scroll Reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.5, 0, 0, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* Order Form - Thème clair */
.order-form-content { max-width: 700px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-weight: 500; margin-bottom: 0.8rem; color: var(--text-muted); font-size: 0.95rem; }
.form-group input, .form-group select {
  width: 100%; padding: 14px 18px; background: #fff;
  border: 1px solid rgba(0,0,0,0.12); border-radius: 12px;
  font-size: 1rem; transition: var(--transition); color: var(--text-main);
}
.form-group input:focus, .form-group select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0,0,0,0.1); background: #fff;
}

.shipping-info {
  background-color: rgba(0,0,0,0.04); border: 1px solid rgba(0,0,0,0.12);
  color: #444; padding: 1.2rem; border-radius: var(--radius-md);
  margin-bottom: 2rem; display: none;
}
.shipping-info.active { display: block; }

.btn-actions { display: flex; gap: 1.5rem; margin-top: 2rem; }
.btn-cancel {
  flex: 1; padding: 14px; background: rgba(0,0,0,0.05);
  color: var(--text-muted); font-weight: 600; border-radius: var(--radius-md);
  border: 1px solid rgba(0,0,0,0.12);
}
.btn-cancel:hover { background: rgba(0,0,0,0.08); color: var(--text-main); }
.btn-submit {
  flex: 2; padding: 14px; background: var(--primary-color);
  color: #fff; font-weight: 700; border-radius: var(--radius-md);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}
.btn-submit:hover { background: var(--secondary-color); }

/* Product Detail Modal - Thème clair */
.product-detail-content {
  background: #fff; backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.1), 0 0 20px rgba(0,0,0,0.06);
  border-radius: 24px; max-width: 900px; width: 90%;
  animation: modalSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(30px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.detail-layout { display: flex; gap: 3.5rem; padding: 1rem; }
.detail-image-container {
  flex: 1; background: rgba(0,0,0,0.03); border-radius: 20px;
  padding: 2rem; display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(0,0,0,0.06); position: relative; overflow: hidden;
}
.detail-image {
  max-width: 100%; max-height: 400px; object-fit: contain;
  transition: transform 0.5s ease; filter: drop-shadow(0 0 15px rgba(0,0,0,0.08)) grayscale(10%);
}
.detail-image-container:hover .detail-image { transform: scale(1.05); filter: grayscale(0%); }

.detail-info { flex: 1; display: flex; flex-direction: column; }
.detail-info h2 { font-size: 2.2rem; font-weight: 800; color: var(--text-main); margin-bottom: 0.8rem; line-height: 1.2; }
.detail-description {
  font-size: 1.05rem; color: var(--text-muted); line-height: 1.6;
  margin-bottom: 2rem; white-space: pre-line;
  background: rgba(0,0,0,0.03); padding: 1.5rem;
  border-radius: 12px; border: 1px solid rgba(0,0,0,0.06);
}
.detail-price {
  font-size: 2.8rem; color: var(--primary-color); font-weight: 800;
  margin-bottom: 2rem; display: flex; align-items: baseline; gap: 0.5rem;
  text-shadow: 0 0 20px rgba(255,255,255,0.5);
}
.detail-price span { font-family: var(--font-main); }
.detail-price::after { content: 'DA'; font-size: 1.2rem; color: var(--text-muted); font-weight: 600; }

.btn-modal-cart {
  width: 100%; padding: 18px; background: var(--primary-color);
  color: #fff; border-radius: 14px; font-weight: 700; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.15); transition: all 0.3s ease;
}
.btn-modal-cart:hover {
  transform: translateY(-2px); box-shadow: 0 12px 24px rgba(0,0,0,0.25);
  filter: brightness(0.95);
}

/* Footer - Thème clair */
footer {
  background-color: #f8f8f8; color: var(--text-muted);
  padding: 4rem 0; margin-top: 6rem; text-align: center;
  border-top: 1px solid rgba(0,0,0,0.08);
}

/* ========== Shipping Modal - Thème clair ========== */
#shippingModal .modal-content { max-width: 800px !important; max-height: 85vh !important; overflow-y: auto !important; background: #fff !important; }

.btn-shipping-type {
  flex: 1; min-width: 150px; padding: 12px 20px;
  border: 2px solid rgba(0,0,0,0.15); border-radius: 10px;
  background: #fff; color: var(--text-muted); font-weight: 600;
  cursor: pointer; transition: var(--transition);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-shipping-type.active, .btn-shipping-type:hover {
  border-color: var(--primary-color); background: rgba(0,0,0,0.05);
  color: var(--primary-color); box-shadow: 0 0 15px rgba(0,0,0,0.08);
}

#shippingTableBody tr { border-bottom: 1px solid rgba(0,0,0,0.08); transition: background 0.2s; }
#shippingTableBody tr:hover { background: #f5f5f5; }
#shippingTableBody td { padding: 12px; color: var(--text-main); }
#shippingTableBody td:first-child { font-weight: 600; color: #444; width: 50px; }
#shippingTableBody td:last-child { text-align: center; font-weight: 700; color: var(--primary-color); }

/* ========== Social Contact Button - Thème clair ========== */
.social-contact-wrapper {
  position: fixed; bottom: 25px; right: 25px; z-index: 9999;
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
  font-family: 'Outfit', sans-serif;
}
.social-toggle-btn {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--primary-color); border: none;
  color: #fff; font-size: 1.5rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative; overflow: hidden;
}
.social-toggle-btn:hover { transform: scale(1.1) rotate(5deg); box-shadow: 0 12px 35px rgba(0,0,0,0.25); }
.social-toggle-btn:active { transform: scale(0.95); }

.pulse-dot {
  position: absolute; top: 8px; right: 8px; width: 12px; height: 12px;
  background: #fff; border-radius: 50%; border: 2px solid #000;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,255,255,0.7); }
  70% { box-shadow: 0 0 0 10px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

.social-links-menu {
  background: #fff; border-radius: 20px; padding: 16px;
  min-width: 280px; box-shadow: 0 20px 50px rgba(0,0,0,0.15);
  border: 1px solid rgba(0,0,0,0.12); opacity: 0; visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex; flex-direction: column; gap: 8px;
}
.social-links-menu.active { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }

.social-header { padding: 8px 4px 16px; border-bottom: 1px solid rgba(0,0,0,0.1); margin-bottom: 8px; }
.social-header h4 { margin: 0 0 4px; color: var(--text-main); font-size: 1.1rem; display: flex; align-items: center; gap: 8px; }
.social-header p { margin: 0; color: var(--text-muted); font-size: 0.85rem; }

.social-link {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  border-radius: 14px; text-decoration: none; color: var(--text-main);
  font-weight: 500; transition: all 0.2s ease;
  background: #fafafa; border: 1px solid transparent;
}
.social-link:hover { background: #f0f0f0; border-color: rgba(0,0,0,0.12); transform: translateX(4px); color: var(--primary-color); }

.social-link i:first-child {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: #fff; background: var(--primary-color);
}
.social-link .arrow-icon { margin-left: auto; color: var(--text-muted); font-size: 0.9rem; transition: transform 0.2s; }
.social-link:hover .arrow-icon { transform: translateX(4px); color: var(--primary-color); }

.social-footer { padding-top: 12px; border-top: 1px solid rgba(0,0,0,0.1); text-align: center; color: var(--text-muted); font-size: 0.8rem; }

/* ========== Responsive - Thème clair ========== */
@media (max-width: 768px) {
  .hero-slider { height: 400px; margin: 20px auto; border-radius: var(--radius-md); }
  .slider-overlay {
    padding-left: 5%;
    background: linear-gradient(0deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.8) 50%, transparent 100%);
    align-items: flex-end; padding-bottom: 20px;
  }
  .slider-content {
    padding: 1.5rem; border-left: none; border-top: 3px solid var(--primary-color);
    border-radius: var(--radius-md); background: rgba(255,255,255,0.8); max-width: 100%;
  }
  .slider-content h2 { font-size: 1.8rem; margin-bottom: 1rem; }
  .slider-content p { font-size: 1rem; margin-bottom: 1.2rem; max-width: 100%; }
  .slider-content .price { font-size: 1.8rem; margin-bottom: 1.2rem; }
  .btn-hero { padding: 14px 28px; font-size: 1.1rem; width: 100%; justify-content: center; min-height: 52px; }
  .slider-btn { width: 45px; height: 45px; font-size: 1.3rem; opacity: 1; }
  .prev { left: 15px; } .next { right: 15px; }
  .slider-dots { bottom: 15px; gap: 10px; }
  .slider-dot { width: 30px; height: 3px; }
  .slider-dot.active { width: 45px; }

  .products-section { padding: 3rem 0; }
  .products-section h2 { font-size: 2rem; margin-bottom: 2.5rem; }
  .filters { flex-direction: column; align-items: stretch; gap: 1rem; margin-bottom: 2.5rem; }
  .search-input, .category-filter { width: 100%; padding: 14px 20px; font-size: 1rem; }
  .products-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .product-card { border-radius: var(--radius-md); }
  .product-image { height: 220px; }
  .product-info { padding: 1.5rem; }
  .product-info h3 { font-size: 1.15rem; }
  .product-description { -webkit-line-clamp: 2; line-clamp: 2; font-size: 0.9rem; }
  .product-footer { padding-top: 1.2rem; }
  .product-price { font-size: 1.3rem; }
  .btn-add-cart { width: 48px; height: 48px; font-size: 1.2rem; }

  .modal-content { width: 95%; padding: 1.8rem; margin: 10px; max-height: 95vh; background: #fff; }
  .modal-content h2 { font-size: 1.5rem; margin-bottom: 1.5rem; }
  .close-modal { top: 15px; right: 20px; font-size: 1.5rem; }
  .cart-item { flex-direction: column; align-items: flex-start; gap: 12px; padding: 1rem; background: #f8f8f8; }
  .cart-item-actions { display: flex; justify-content: space-between; align-items: center; width: 100%; }
  .form-row { grid-template-columns: 1fr; gap: 1rem; }
  .form-group input, .form-group select { padding: 12px 15px; font-size: 1rem; background: #fff; }
  .btn-modal-cart, .btn-checkout, .btn-submit, .btn-cancel { min-height: 54px; font-size: 1.1rem; width: 100%; }
  .btn-actions { flex-direction: column; gap: 12px; }
  .detail-layout { flex-direction: column; gap: 1.5rem; }
  .detail-image { height: 250px; object-fit: contain; }
  .detail-price { font-size: 2rem; margin: 1rem 0; }
  footer { padding: 2.5rem 1rem; margin-top: 4rem; font-size: 0.9rem; background: #f8f8f8; }

  #shippingModal .modal-content { width: 95% !important; margin: 1rem !important; }
  .btn-shipping-type { min-width: 100%; }
  #shippingTableBody td, #shippingTableBody th { padding: 10px 8px; font-size: 0.9rem; }

  .social-contact-wrapper { bottom: 15px; right: 15px; }
  .social-toggle-btn { width: 52px; height: 52px; font-size: 1.3rem; }
  .social-links-menu { min-width: 240px; padding: 12px; background: #fff; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .hero-slider { height: 500px; }
  .slider-content h2 { font-size: 2.8rem; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .product-image { height: 240px; }
  .modal-content { width: 85%; max-width: 650px; }
  .detail-layout img { width: 45%; }
  .detail-info { width: 55%; }
}

@media (min-width: 1024px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-slider { height: 650px; }
  .product-card:hover .product-image { transform: scale(1.08); }
  .btn-hero:hover { clip-path: polygon(0 0, 100% 0, 100% 100%, 95% 100%, 0 100%); }
}

@media (min-width: 1400px) {
  .container { width: min(90%, 1600px); }
  .hero-slider { height: 700px; max-width: 1800px; }
  .products-grid { grid-template-columns: repeat(4, 1fr); gap: 3rem; }
  .product-image { height: 280px; }
}

@media (hover: none) and (pointer: coarse) {
  .btn-add-cart, .btn-hero, .btn-checkout, .btn-submit, .btn-nav { min-height: 48px; }
  .product-card:hover { transform: none; }
  .slider-btn { opacity: 1; background: rgba(0,0,0,0.08); color: #000; }
  input, select, textarea { font-size: 16px !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

@media print {
  header, footer, .hero-slider, .filters, .cart-btn, .modal { display: none !important; }
  body { background: #fff; color: #000; }
  .products-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .product-card { break-inside: avoid; background: #fff; border: 1px solid #ccc; box-shadow: none; }
}

/* Accessibilité */
.social-toggle-btn:focus-visible, .social-link:focus-visible {
  outline: 3px solid var(--primary-color); outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  .social-toggle-btn, .social-links-menu, .pulse-dot { animation: none !important; transition: none !important; }
}
/* ========== 📱 CORRECTIONS MOBILE - BOUTONS ========== */

/* 1. Permettre le tap sans délai sur mobile */
button,
.btn-nav,
.btn-checkout,
.btn-submit,
.btn-cancel,
.btn-add-cart,
.btn-modal-cart,
.search-btn,
.zoom-btn,
.social-toggle-btn,
.cat-card,
.slider-btn,
.qty-btn,
.close-modal,
[role="button"] {
  touch-action: manipulation !important;           /* ✅ Empêche le double-tap zoom */
  -webkit-tap-highlight-color: transparent !important; /* ✅ Supprime le flash bleu Android */
  -webkit-user-select: none !important;            /* ✅ Empêche la sélection de texte */
  user-select: none !important;
  position: relative !important;                   /* ✅ Pour z-index */
  z-index: 10 !important;                          /* ✅ Au-dessus des overlays */
}

/* 2. Feedback visuel au tap sur mobile (remplace :hover) */
@media (hover: none) and (pointer: coarse) {
  button:active,
  .btn-nav:active,
  .btn-checkout:active,
  .btn-submit:active,
  .btn-cancel:active,
  .btn-add-cart:active,
  .btn-modal-cart:active,
  .search-btn:active,
  .zoom-btn:active,
  .social-toggle-btn:active,
  .cat-card:active,
  .slider-btn:active,
  .qty-btn:active {
    transform: scale(0.97) !important;             /* ✅ Effet de pression */
    opacity: 0.92 !important;
    transition: transform 0.05s, opacity 0.05s !important;
  }
}

/* 3. Correction : Product card ne doit pas intercepter le clic sur le bouton */
.product-card {
  cursor: pointer;
  /* ✅ Le bouton enfant doit être au-dessus */
}
.product-card .btn-add-cart {
  z-index: 20 !important;                          /* ✅ Au-dessus de la carte */
  pointer-events: auto !important;                 /* ✅ Toujours cliquable */
}

/* 4. Correction : Modal buttons au-dessus de l'overlay */
.modal.active {
  z-index: 2000 !important;
}
.modal-content {
  z-index: 2001 !important;
}
.modal-content .btn-checkout,
.modal-content .btn-submit,
.modal-content .btn-cancel,
.modal-content .close-modal {
  z-index: 2002 !important;                        /* ✅ Au-dessus de tout */
}

/* 5. Correction : Header buttons au-dessus du contenu */
header {
  z-index: 1000 !important;
}
header .btn-nav {
  z-index: 1001 !important;
}
.cart-btn {
  z-index: 1002 !important;
}

/* 6. Correction : Social button le plus haut */
.social-contact-wrapper {
  z-index: 9999 !important;
}
.social-toggle-btn {
  z-index: 10000 !important;
}
.social-links-menu {
  z-index: 9998 !important;
}

/* 7. Correction : Slider buttons */
.hero-slider {
  z-index: 100 !important;
}
.slider-btn {
  z-index: 101 !important;
}
.slider-dots .dot {
  z-index: 102 !important;
}

/* 8. Correction : Inputs ne doivent pas couvrir les boutons */
.search-input:focus,
.form-group input:focus,
.form-group select:focus {
  z-index: 5 !important;                           /* ✅ Sous les boutons */
}

/* 9. Correction : Backdrop-filter peut bloquer les taps sur vieux iOS */
@supports not (backdrop-filter: blur(1px)) {
  .modal-content,
  .product-card,
  .cat-card,
  header {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

/* 10. Correction : Éviter que transform + overflow hidden ne coupe les taps */
.product-card,
.modal-content,
.hero-slider {
  will-change: transform;                          /* ✅ Optimise le rendu mobile */
  -webkit-transform: translateZ(0);                /* ✅ Force l'accélération GPU */
  transform: translateZ(0);
}

/* 11. Correction : Boutons dans les cartes catégories */
.cat-card {
  pointer-events: auto !important;
}
.cat-card * {
  pointer-events: none !important;                 /* ✅ Seul le card est cliquable */
}
.cat-card .cat-card-icon,
.cat-card .cat-card-info {
  pointer-events: none !important;
}

/* 12. Correction : Quantité buttons dans le panier */
.qty-btn {
  min-width: 36px !important;
  min-height: 36px !important;                     /* ✅ Zone de tap assez grande */
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* 13. Correction : Bouton panier flottant */
.cart-count {
  pointer-events: none !important;                 /* ✅ Le compteur ne bloque pas le clic */
}

/* 14. Correction : Fermeture modals */
.close-modal {
  min-width: 44px !important;
  min-height: 44px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* 15. Correction : Inputs sur iOS - empêcher le zoom */
@media (max-width: 768px) {
  input, select, textarea {
    font-size: 16px !important;                    /* ✅ iOS ne zoome pas si >= 16px */
  }
}

/* 16. Debug temporaire : voir les zones cliquables (à supprimer après test) */
/*
@media (max-width: 768px) {
  button, [role="button"], .btn-nav, .btn-checkout, .search-btn, .btn-add-cart {
    outline: 1px dashed rgba(255,100,100,0.5) !important;
    outline-offset: 2px !important;
  }
}
*/
