﻿/* =============================================
   ELECTROSHOP — Components v3 (Modern Redesign)
   ============================================= */

/* ── PWA Install Banner ── */
#pwa-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--white, #fff);
  border-top: 3px solid var(--red-600, #dc2626);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.13);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 9997;
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(.4,0,.2,1);
}
#pwa-banner.pwa-show { transform: translateY(0); }
.pwa-banner-info { display: flex; align-items: center; gap: 12px; }
.pwa-banner-icon { width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0; }
.pwa-banner-title { font-size: 0.9rem; font-weight: 700; color: var(--text-primary, #111); }
.pwa-banner-sub   { font-size: 0.75rem; color: var(--text-4, #888); margin-top: 2px; }
.pwa-banner-btns  { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.pwa-btn-install {
  background: var(--red-600, #dc2626);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.pwa-btn-install:hover { background: var(--red-700, #b91c1c); }
.pwa-btn-dismiss {
  background: none;
  border: none;
  color: var(--text-4, #aaa);
  font-size: 1rem;
  cursor: pointer;
  padding: 6px 8px;
  line-height: 1;
  border-radius: 6px;
  transition: color 0.15s;
}
.pwa-btn-dismiss:hover { color: var(--text-primary, #111); }
@media (max-width: 480px) {
  #pwa-banner { flex-direction: column; align-items: flex-start; }
  .pwa-banner-btns { align-self: flex-end; }
}

/* ============================================================
   HERO — Modern Split
   ============================================================ */
.hero-section {
  position: relative;
  padding: 16px 0 0;
  background: var(--gray-50);
}

/* ---- Layout 2 colonnes (desktop) ---- */
.hero-layout {
  display: grid;
  grid-template-columns: 210px 1fr 170px;
  gap: 10px;
  height: 400px;
  
}

/* Bannières droite hero */
.hero-right-banners {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
}
.hero-right-banner {
  flex: 1;
  border-radius: var(--r-lg);
  overflow: hidden;
  display: block;
  background: var(--gray-100);
}
.hero-right-banner img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
  transition: transform 0.3s ease;
}
.hero-right-banner:hover img { transform: scale(1.04); }

/* Sidebar gauche — catégories */
.hero-cats-sidebar {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%; /* remplit la hauteur du grid */
}

.hero-cats-title {
  padding: 12px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--white);
  background: var(--red-600);
  flex-shrink: 0;
}

.hero-cats-list {
  overflow-y: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: var(--purple-200) transparent;
}

.hero-cats-list::-webkit-scrollbar { width: 3px; }
.hero-cats-list::-webkit-scrollbar-thumb { background: var(--purple-300); border-radius: 2px; }

.hero-cat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--t);
  border-bottom: 1px solid var(--gray-100);
  text-decoration: none;
}

.hero-cat-item:last-child { border-bottom: none; }
.hero-cat-item:hover, li.has-sub:hover > .hero-cat-item { background: var(--purple-50); color: var(--red-700); padding-left: 16px; }
.hero-cat-item-icon { font-size: 1rem; width: 20px; text-align: center; flex-shrink: 0; }
.hero-cat-arrow { margin-left: auto; font-size: 0.75rem; opacity: 0.4; transition: transform 0.2s, opacity 0.2s; }
li.has-sub:hover .hero-cat-arrow { opacity: 1; transform: translateX(2px); }
/* ── Mega-menu panel (position:fixed → échappe overflow-y:auto) ── */
.hero-mega-panel {
  display: none;
  position: fixed;
  background: var(--white, #fff);
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 0 12px 12px 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.14);
  z-index: 9999;
  padding: 20px 24px;
  max-width: 780px;
  min-width: 220px;
}
.hero-mega-panel.open { display: block; }
.hero-mega-inner {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
}
.hero-mega-col {
  display: flex;
  flex-direction: column;
  min-width: 160px;
  max-width: 210px;
  padding-right: 24px;
  margin-right: 4px;
  border-right: 1px solid var(--border-color, #f0f0f0);
  margin-bottom: 8px;
}
.hero-mega-col:last-child { border-right: none; padding-right: 0; }
/* En-tête de colonne (sous-catégorie niveau 1) */
.hero-mega-head {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary, #111);
  text-decoration: none;
  padding-bottom: 8px;
  margin-bottom: 6px;
  border-bottom: 2px solid var(--red-600, #dc2626);
  white-space: nowrap;
}
.hero-mega-head:hover { color: var(--red-600, #dc2626); }
/* Liens des sous-catégories niveau 2 */
.hero-mega-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 0;
  font-size: 0.8rem;
  color: var(--text-secondary, #555);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.13s, padding-left 0.13s;
}
.hero-mega-link:hover { color: var(--red-700, #b91c1c); padding-left: 6px; }

/* Carousel — remplit la hauteur du grid */
.hero-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  height: 100%;
}

/* Sidebar droite */
.hero-right-sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 380px;
}

.hero-right-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--r-md);
  text-decoration: none;
  transition: all var(--t);
  flex: 1;
}

.hero-right-card:hover { border-color: var(--purple-400); background: var(--purple-50); box-shadow: var(--shadow-sm); }

.hero-right-icon {
  width: 36px; height: 36px; border-radius: var(--r-sm);
  background: var(--purple-50); color: var(--red-600);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}

.hero-right-title { font-size: 0.8rem; font-weight: 700; color: var(--gray-900); margin-bottom: 2px; }
.hero-right-sub   { font-size: 0.71rem; color: var(--text-muted); line-height: 1.3; }

/* ---- Mobile : layout normal (1 colonne) ---- */
@media (max-width: 1024px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .hero-cats-sidebar,
  .hero-right-sidebar,
  .hero-right-banners { display: none; }
  .hero-carousel { height: auto; aspect-ratio: 3 / 1; border-radius: 0; box-shadow: none; }
}

.hero-slide {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  overflow: hidden;
  background-size: cover;
  background-position: left center;
  background-repeat: no-repeat;
  opacity: 0; transition: opacity 0.6s ease;
  pointer-events: none;
}

.hero-slide.active { opacity: 1; pointer-events: auto; }

.hero-slide-1 {
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 40%, #ddd6fe 100%);
}

.hero-slide-2 {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 40%, #fed7aa 100%);
}

.hero-slide-3 {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 40%, #bfdbfe 100%);
}

/* Decorative blob */
.hero-slide::after {
  content: '';
  position: absolute;
  right: -80px; top: -80px;
  width: 480px; height: 480px;
  border-radius: 50%;
  opacity: 0.35;
  pointer-events: none;
}

.hero-slide-1::after { background: radial-gradient(circle, #FCA5A5 0%, transparent 70%); }
.hero-slide-2::after { background: radial-gradient(circle, #fb923c 0%, transparent 70%); }
.hero-slide-3::after { background: radial-gradient(circle, #60a5fa 0%, transparent 70%); }

.hero-slide-content {
  position: relative; z-index: 2;
  max-width: 600px;
  padding: 0 20px;
}

.hero-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 14px;
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: 9999px;
  font-size: 0.74rem; font-weight: 700;
  color: var(--red-700);
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-pill-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--red-600); }

.hero-slide-content h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--gray-900);
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.hero-slide-content h1 span { color: var(--red-600); }

.hero-slide-2 .hero-slide-content h1 span { color: var(--orange); }
.hero-slide-3 .hero-slide-content h1 span { color: #2563eb; }

.hero-slide-content p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.65;
  max-width: 480px;
}

.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero badge floating */
.hero-badge-float {
  position: absolute; z-index: 3;
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 14px 18px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
  animation: floatY 3.5s ease-in-out infinite;
}

@keyframes floatY { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }

/* Carousel arrows */
.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--white); border: 1px solid var(--border-color);
  color: var(--gray-700); font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all var(--t);
  box-shadow: var(--shadow-md);
}

.carousel-arrow:hover { background: var(--red-600); color: #fff; border-color: var(--red-600); }
.carousel-arrow.prev  { left: 20px; }
.carousel-arrow.next  { right: 20px; }

/* Carousel dots */
.carousel-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 10; }

.carousel-dot {
  width: 7px; height: 7px; border-radius: 4px;
  background: rgba(0,0,0,0.2); cursor: pointer; transition: all 0.3s;
}

.carousel-dot.active { width: 24px; background: var(--red-600); }

/* ============================================================
   DEALS BAR (mini cards under hero)
   ============================================================ */
.deals-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 20px 0;
}

.deal-mini {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--r-md);
  padding: 14px 16px;
  display: flex; align-items: center; gap: 12px;
  cursor: pointer; transition: all var(--t);
  box-shadow: var(--shadow-xs);
}

.deal-mini:hover { border-color: var(--purple-300); box-shadow: var(--shadow-md); transform: translateY(-2px); }

.deal-mini-icon {
  width: 44px; height: 44px; border-radius: var(--r-sm);
  background: var(--purple-50); border: 1px solid var(--purple-100);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; flex-shrink: 0;
}

.deal-mini-text strong { display: block; font-size: 0.84rem; font-weight: 700; color: var(--gray-900); margin-bottom: 2px; }
.deal-mini-text span   { font-size: 0.74rem; color: var(--text-muted); }

/* ============================================================
   FLASH DEALS
   ============================================================ */
.flash-section {
  padding: 32px 0 0;
  background: transparent;
  border: none;
}

.flash-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 0; flex-wrap: wrap; gap: 12px;
  background: var(--section-header-bg);
  border-radius: var(--r-sm) var(--r-sm) 0 0;
  padding: 11px 18px;
}

.flash-title { display: flex; align-items: center; gap: 10px; }
.flash-icon  { font-size: 1.2rem; }
.flash-title h2 { font-size: clamp(0.95rem, 2vw, 1.15rem); font-weight: 700; color: #fff; letter-spacing: 0; }

.countdown {
  display: flex; align-items: center; gap: 6px;
  background: var(--gray-900); border-radius: var(--r-md);
  padding: 8px 16px;
}

.countdown-unit { display: flex; flex-direction: column; align-items: center; min-width: 36px; }
.countdown-num  { font-size: 1.25rem; font-weight: 800; color: #fff; line-height: 1; font-family: monospace; }
.countdown-label { font-size: 0.55rem; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 2px; }
.countdown-sep  { font-size: 1.1rem; color: rgba(255,255,255,0.4); margin-bottom: 8px; font-weight: 700; }

.flash-grid {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  background: #fff;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  padding: 12px;
}
.flash-grid::-webkit-scrollbar { display: none; }
.flash-grid > * { flex: 0 0 180px; width: 180px; scroll-snap-align: start; }
/* Lien "Voir tout" dans flash-head */
.flash-head .btn-secondary { font-size: 0.82rem; font-weight: 600; color: rgba(255,255,255,0.85); background: transparent; border: none; padding: 0; }

.flash-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--t);
  box-shadow: var(--shadow-xs);
}

.flash-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); border-color: var(--purple-300); }

.flash-img {
  background: #ffffff;
  display: flex; align-items: center; justify-content: center;
  font-size: 3.2rem; height: 150px; position: relative; overflow: hidden;
}

.flash-discount {
  position: absolute; top: 10px; left: 10px;
  background: var(--error); color: #fff;
  font-size: 0.7rem; font-weight: 800;
  padding: 3px 8px; border-radius: var(--r-full);
}

.flash-body { padding: 12px; }
.flash-name  { font-size: 0.78rem; font-weight: 400; color: var(--gray-900); line-height: 1.3; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flash-price { font-size: 1rem; font-weight: 500; color: var(--red-700); }
.flash-old   { font-size: 0.76rem; color: var(--text-muted); text-decoration: line-through; margin-left: 5px; }

.flash-progress-wrap { margin-top: 8px; }

.flash-progress-bar {
  height: 5px; background: var(--gray-100);
  border-radius: 3px; overflow: hidden; margin-bottom: 4px;
}

.flash-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--red-600), var(--purple-400));
  border-radius: 3px;
}

.flash-sold { font-size: 0.68rem; color: var(--text-muted); font-weight: 600; }

/* ============================================================
   CATEGORY SHOWCASE — avec vraies images
   ============================================================ */
.cat-showcase {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  background: #fff;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  padding: 12px;
}
.cat-showcase::-webkit-scrollbar { display: none; }
.cat-showcase > * { flex: 0 0 130px; width: 130px; scroll-snap-align: start; }

.cat-card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3/4;
  min-height: 160px;
  transition: all var(--t);
  background: var(--white, #fff);
  border: 1.5px solid var(--border-color, #e5e7eb);
  box-shadow: var(--shadow-sm);
}

.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--purple-300, #c4b5fd); }
.cat-card:hover .cat-img { transform: scale(1.05); }

/* Image de fond */
.cat-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

/* Overlay — supprimé */
.cat-overlay { display: none; }

/* Icône / emoji */
.cat-icon       { display: none; }
.cat-icon-emoji { display: none; }

/* Texte catégorie */
.cat-content {
  position: relative; z-index: 1;
  padding: 0 10px 14px;
  text-align: center;
  width: 100%;
}

.cat-name  { font-size: 0.82rem; font-weight: 700; color: var(--text-primary, #111); letter-spacing: 0.01em; }
.cat-count { display: none; }

/* ============================================================
   PROMO BANNERS
   ============================================================ */
.promo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.promo-card {
  border-radius: var(--r-xl);
  padding: 36px 40px;
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 170px;
}

.promo-card-purple {
  background: linear-gradient(135deg, #991B1B 0%, #DC2626 60%, #FCA5A5 100%);
}

.promo-card-orange {
  background: linear-gradient(135deg, #7c2d12 0%, #ea580c 60%, #fb923c 100%);
}

.promo-card::before {
  content: '';
  position: absolute; width: 220px; height: 220px; border-radius: 50%;
  right: -60px; top: -60px; opacity: 0.15;
  background: rgba(255,255,255,0.4);
}

.promo-text h3 { font-size: 1.3rem; font-weight: 800; color: #fff; margin-bottom: 6px; letter-spacing: -0.3px; }
.promo-text p  { font-size: 0.88rem; color: rgba(255,255,255,0.8); }
.promo-emoji   { font-size: 4rem; opacity: 0.9; line-height: 1; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.testi-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--r-xl);
  padding: 28px;
  box-shadow: var(--shadow-xs);
  transition: all var(--t);
}

.testi-card:hover { box-shadow: var(--shadow-md); border-color: var(--purple-200); transform: translateY(-2px); }

.testi-stars { margin-bottom: 14px; }

.testi-text {
  font-size: 0.9rem; color: var(--text-secondary);
  line-height: 1.7; margin-bottom: 20px;
  font-style: italic;
}

.testi-author { display: flex; align-items: center; gap: 12px; }

.testi-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.95rem; color: #fff; flex-shrink: 0;
}

.testi-name { font-weight: 700; font-size: 0.88rem; color: var(--gray-900); }
.testi-role { font-size: 0.75rem; color: var(--text-muted); }

/* ============================================================
   CATALOGUE PAGE
   ============================================================ */
.catalogue-wrap { padding: 28px 0 80px; }

.catalogue-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.8rem; color: var(--text-muted);
  margin-bottom: 20px; flex-wrap: wrap;
}

.catalogue-breadcrumb a { color: var(--red-600); font-weight: 600; }
.catalogue-breadcrumb a:hover { color: var(--red-700); }
.catalogue-breadcrumb span { color: var(--gray-300); }

.catalogue-layout {
  display: grid;
  grid-template-columns: 252px 1fr;
  gap: 24px; align-items: start;
}

/* Sidebar */
.sidebar {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--r-xl);
  overflow: hidden; position: sticky; top: 120px;
  box-shadow: var(--shadow-xs);
}

.sidebar-section { padding: 18px 20px; border-bottom: 1px solid var(--gray-100); }
.sidebar-section:last-child { border-bottom: none; }

.sidebar-title {
  font-size: 0.7rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-muted); margin-bottom: 12px;
}

.filter-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 5px 0; cursor: pointer;
}

.filter-row-label { font-size: 0.84rem; color: var(--text-secondary); transition: color var(--t); }
.filter-row:hover .filter-row-label { color: var(--red-700); }

/* Toggle */
.toggle { position: relative; width: 34px; height: 18px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; position: absolute; }

.toggle-track {
  position: absolute; inset: 0;
  background: var(--gray-200); border-radius: 9px; cursor: pointer;
  transition: background var(--t);
}

.toggle-track::after {
  content: ''; position: absolute;
  top: 2px; left: 2px;
  width: 14px; height: 14px;
  background: #fff; border-radius: 50%;
  transition: transform var(--t);
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.toggle input:checked + .toggle-track { background: var(--red-600); }
.toggle input:checked + .toggle-track::after { transform: translateX(16px); }

/* Price slider */
.price-values { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--red-700); font-weight: 700; margin-bottom: 10px; }

.slider {
  -webkit-appearance: none; width: 100%; height: 4px;
  background: var(--gray-200); border-radius: 2px; outline: none;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%;
  background: var(--red-600); cursor: pointer;
  box-shadow: 0 0 0 3px rgba(124,58,237,0.2);
  transition: box-shadow var(--t);
}

.slider::-webkit-slider-thumb:hover { box-shadow: 0 0 0 5px rgba(124,58,237,0.2); }

/* Star filter */
.star-filter-rows { display: flex; flex-direction: column; gap: 4px; }

.star-filter-row {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px; border-radius: var(--r-sm);
  cursor: pointer; transition: background var(--t);
  font-size: 0.82rem; color: var(--text-secondary);
}

.star-filter-row:hover, .star-filter-row.active { background: var(--purple-50); color: var(--red-700); }

.reset-btn {
  width: 100%; margin-top: 16px; padding: 9px;
  background: none; border: 1.5px solid var(--border-color);
  border-radius: var(--r-full); color: var(--text-muted);
  font-size: 0.8rem; cursor: pointer; transition: all var(--t);
  font-family: var(--font);
}

.reset-btn:hover { border-color: var(--purple-400); color: var(--red-700); background: var(--purple-50); }

/* Toolbar */
.catalogue-toolbar {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px; flex-wrap: wrap;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--r-md);
  padding: 12px 16px;
  box-shadow: var(--shadow-xs);
}

.search-box { flex: 1; min-width: 200px; position: relative; }
.search-box-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 0.88rem; pointer-events: none; }

.search-box-input {
  width: 100%; padding: 8px 12px 8px 34px;
  background: var(--gray-50); border: 1.5px solid var(--border-color);
  border-radius: var(--r-full); color: var(--text-primary);
  font-size: 0.875rem; transition: all var(--t);
}

.search-box-input:focus { border-color: var(--purple-500); background: var(--white); box-shadow: 0 0 0 3px rgba(124,58,237,0.1); }
.search-box-input::placeholder { color: var(--gray-400); }

.sort-drop {
  padding: 8px 28px 8px 12px;
  background: var(--gray-50); border: 1.5px solid var(--border-color);
  border-radius: var(--r-full); color: var(--text-primary);
  font-size: 0.84rem; cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236b7280' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
  background-color: var(--gray-50); transition: border-color var(--t);
}

.sort-drop:focus { border-color: var(--purple-500); }
.sort-drop option { background: #fff; }

.view-btns { display: flex; gap: 4px; }

.view-btn {
  width: 34px; height: 34px; border-radius: var(--r-sm);
  border: 1.5px solid var(--border-color);
  background: var(--gray-50); color: var(--text-muted);
  font-size: 0.88rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all var(--t);
}

.view-btn.active, .view-btn:hover { border-color: var(--purple-500); color: var(--red-700); background: var(--purple-50); }

.results-label { font-size: 0.78rem; color: var(--text-muted); margin-left: auto; white-space: nowrap; }

/* Product grid in catalogue */
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.products-grid.list-view { grid-template-columns: 1fr; }
.products-grid.list-view .product-card { flex-direction: row; }
.products-grid.list-view .product-img-wrap { width: 180px; flex-shrink: 0; padding-top: 0; height: 160px; }

/* No results */
.no-results { grid-column: 1 / -1; text-align: center; padding: 60px 20px; }
.no-results .no-res-icon { font-size: 3rem; margin-bottom: 12px; opacity: 0.3; }
.no-results h3 { font-size: 1.1rem; margin-bottom: 6px; color: var(--gray-700); }
.no-results p  { color: var(--text-muted); font-size: 0.88rem; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 32px; }

.page-btn {
  width: 36px; height: 36px; border-radius: var(--r-sm);
  border: 1.5px solid var(--border-color);
  background: var(--white); color: var(--text-secondary);
  font-size: 0.84rem; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all var(--t); font-family: var(--font);
}

.page-btn:hover, .page-btn.active { border-color: var(--purple-500); color: var(--red-700); background: var(--purple-50); }

/* Mobile filter btn */
.mobile-filter-btn {
  display: none;
  align-items: center; gap: 7px;
  padding: 9px 16px;
  background: var(--white); border: 1.5px solid var(--border-color);
  border-radius: var(--r-full);
  color: var(--text-secondary); font-size: 0.84rem; font-weight: 600;
  cursor: pointer; font-family: var(--font); transition: all var(--t);
  margin-bottom: 12px;
}

.mobile-filter-btn:hover { border-color: var(--purple-400); color: var(--red-700); }

/* ============================================================
   PANIER PAGE
   ============================================================ */
.cart-wrap  { padding: 28px 0 80px; }

.cart-h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800; color: var(--gray-900);
  margin-bottom: 24px; letter-spacing: -0.5px;
}

.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }

/* Cart table */
.cart-table {
  background: var(--white); border: 1px solid var(--border-color);
  border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-xs);
}

.cart-table-header {
  display: grid; grid-template-columns: 2fr 1fr 130px 1fr 36px;
  padding: 12px 20px; border-bottom: 1px solid var(--gray-100);
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-muted); font-weight: 700; background: var(--gray-50);
}

.cart-row {
  display: grid; grid-template-columns: 2fr 1fr 130px 1fr 36px;
  align-items: center; padding: 18px 20px;
  border-bottom: 1px solid var(--gray-100);
  transition: background var(--t);
  animation: rowIn 0.3s ease;
}

.cart-row:last-child { border-bottom: none; }
.cart-row:hover { background: var(--gray-50); }
.cart-row.removing { animation: rowOut 0.3s ease forwards; }

@keyframes rowIn  { from{opacity:0;transform:translateX(-16px)} to{opacity:1;transform:none} }
@keyframes rowOut { to{opacity:0;transform:translateX(20px)} }

.cart-item-info { display: flex; align-items: center; gap: 14px; }

.cart-item-thumb {
  width: 68px; height: 68px; border-radius: var(--r-md);
  background: var(--gray-50); display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; flex-shrink: 0;
  border: 1px solid var(--border-color); overflow: hidden;
}

.cart-item-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-md); }

.cart-item-name { font-weight: 700; font-size: 0.88rem; color: var(--gray-900); margin-bottom: 3px; }
.cart-item-cat  { font-size: 0.72rem; color: var(--red-600); font-weight: 600; }

.cart-unit { font-size: 0.88rem; font-weight: 600; color: var(--text-secondary); }

.qty-ctrl { display: flex; align-items: center; gap: 6px; }

.qty-btn {
  width: 28px; height: 28px; border-radius: var(--r-sm);
  border: 1.5px solid var(--border-color); background: var(--white);
  color: var(--red-700); font-size: 1rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all var(--t); font-family: var(--font); line-height: 1;
}

.qty-btn:hover { border-color: var(--purple-500); background: var(--purple-50); }

.qty-val { width: 30px; text-align: center; font-weight: 700; font-size: 0.9rem; color: var(--gray-900); }

.cart-subtotal { font-weight: 800; font-size: 1rem; color: var(--red-700); }

.del-btn {
  width: 30px; height: 30px; border-radius: var(--r-sm);
  border: 1.5px solid var(--border-color); background: none;
  color: var(--text-muted); font-size: 0.82rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all var(--t);
}

.del-btn:hover { border-color: var(--error); color: var(--error); background: #fef2f2; }

/* Cart summary */
.cart-summary {
  background: var(--white); border: 1px solid var(--border-color);
  border-radius: var(--r-xl); padding: 24px; position: sticky; top: 120px;
  box-shadow: var(--shadow-xs);
}

.cart-summary h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--gray-100); }

.summary-line {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.88rem; margin-bottom: 11px;
}

.summary-line .lbl { color: var(--text-muted); }
.summary-line .val { font-weight: 600; color: var(--text-secondary); }

.summary-total {
  border-top: 2px solid var(--gray-100); padding-top: 14px; margin-top: 6px; margin-bottom: 20px;
}

.summary-total .lbl { font-weight: 800; font-size: 0.95rem; color: var(--gray-900); }
.summary-total .val { font-size: 1.5rem; font-weight: 800; color: var(--red-700); }

.free-ship-notice {
  background: #f0fdf4; border: 1px solid #bbf7d0;
  border-radius: var(--r-sm); padding: 9px 12px;
  font-size: 0.78rem; color: var(--success);
  margin-bottom: 16px; display: flex; align-items: center; gap: 7px; font-weight: 600;
}

.summary-actions { display: flex; flex-direction: column; gap: 9px; }
.summary-note { font-size: 0.72rem; color: var(--text-muted); text-align: center; margin-top: 10px; }

/* Empty cart */
.cart-empty { text-align: center; padding: 80px 20px; }
.cart-empty-icon { font-size: 5rem; margin-bottom: 20px; opacity: 0.25; }
.cart-empty h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: 8px; color: var(--gray-800); }
.cart-empty p  { color: var(--text-muted); margin-bottom: 28px; }

/* Order modal */
.modal-bg {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(17,24,39,0.5);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  overflow-y: auto;          /* scroll si le contenu dépasse */
  opacity: 0; pointer-events: none; transition: opacity var(--t);
}

.modal-bg.open { opacity: 1; pointer-events: auto; }

.modal-box {
  background: var(--white); border-radius: var(--r-2xl);
  padding: 40px; max-width: 480px; width: 100%;
  max-height: 90vh;          /* jamais plus haut que l'écran */
  overflow-y: auto;          /* scroll interne si besoin */
  text-align: center;
  box-shadow: var(--shadow-xl);
  transform: scale(0.94) translateY(12px);
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
  flex-shrink: 0;
}

.modal-bg.open .modal-box { transform: none; }

/* Mobile : modal pleine hauteur scrollable */
@media (max-width: 640px) {
  .modal-bg { align-items: flex-start; padding: 10px; }
  .modal-box {
    padding: 20px 16px;
    max-height: calc(100vh - 20px);
    border-radius: var(--r-xl);
    margin: auto;
  }
}

.modal-icon-wrap {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--grad); display: flex; align-items: center; justify-content: center;
  font-size: 2rem; margin: 0 auto 20px;
  box-shadow: var(--shadow-btn);
  animation: popIn 0.4s cubic-bezier(0.34,1.56,0.64,1) 0.1s both;
}

@keyframes popIn { from{transform:scale(0);opacity:0} to{transform:scale(1);opacity:1} }

.modal-box h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: 10px; color: var(--gray-900); }
.modal-box p  { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 24px; line-height: 1.6; }
.modal-btns   { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-wrap  { padding: 40px 0 80px; }

.about-hero { text-align: center; padding: 60px 0 48px; }

.about-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 14px;
  background: var(--purple-50); border: 1px solid var(--purple-200);
  border-radius: var(--r-full);
  font-size: 0.74rem; font-weight: 700; color: var(--red-700);
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 20px;
}

.about-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -1px; margin-bottom: 16px; }
.about-hero p  { color: var(--text-muted); font-size: 1rem; max-width: 560px; margin: 0 auto 40px; line-height: 1.7; }

/* Stats */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 60px; }

.stat-box {
  background: var(--white); border: 1px solid var(--border-color);
  border-radius: var(--r-xl); padding: 24px; text-align: center;
  transition: all var(--t); box-shadow: var(--shadow-xs);
}

.stat-box:hover { border-color: var(--purple-300); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.stat-num { font-size: 2.2rem; font-weight: 800; color: var(--red-700); }
.stat-lbl { font-size: 0.84rem; color: var(--text-muted); margin-top: 4px; }

/* Values */
.values-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 60px; }

.value-box {
  background: var(--white); border: 1px solid var(--border-color);
  border-radius: var(--r-xl); padding: 28px;
  transition: all var(--t); box-shadow: var(--shadow-xs);
}

.value-box:hover { border-color: var(--purple-300); box-shadow: var(--shadow-md); }
.value-icon { font-size: 2rem; margin-bottom: 14px; }
.value-box h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: var(--gray-900); }
.value-box p  { font-size: 0.84rem; color: var(--text-muted); line-height: 1.6; }

/* Contact layout */
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; }

/* Form */
.form-card {
  background: var(--white); border: 1px solid var(--border-color);
  border-radius: var(--r-2xl); padding: 32px;
  box-shadow: var(--shadow-xs);
}

.form-card h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: 4px; color: var(--gray-900); }
.form-card .sub { color: var(--text-muted); font-size: 0.84rem; margin-bottom: 24px; }

.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.field { position: relative; margin-bottom: 16px; }

.field label {
  position: absolute; top: 13px; left: 13px;
  font-size: 0.88rem; color: var(--text-muted);
  transition: all 0.2s ease; pointer-events: none;
  background: transparent; padding: 0 3px;
}

.field input:focus ~ label,
.field input:not(:placeholder-shown) ~ label,
.field textarea:focus ~ label,
.field textarea:not(:placeholder-shown) ~ label,
.field select:focus ~ label {
  top: -8px; left: 10px; font-size: 0.72rem;
  color: var(--red-600); background: var(--white); border-radius: 2px;
}

.field-ctrl {
  width: 100%; padding: 13px;
  background: var(--white); border: 1.5px solid var(--border-color);
  border-radius: var(--r-md); color: var(--text-primary);
  font-size: 0.9rem; transition: all var(--t);
}

.field-ctrl:focus { border-color: var(--purple-500); box-shadow: 0 0 0 3px rgba(124,58,237,0.1); }
.field-ctrl::placeholder { opacity: 0; }

textarea.field-ctrl { resize: vertical; min-height: 120px; }

select.field-ctrl {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236b7280' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center;
  background-color: var(--white); cursor: pointer;
}

select.field-ctrl option { background: #fff; }
.field.err .field-ctrl { border-color: var(--error); }
.field-error { font-size: 0.72rem; color: var(--error); margin-top: 3px; display: none; }
.field.err .field-error { display: block; }

/* Info cards */
.info-cards { display: flex; flex-direction: column; gap: 14px; }

.info-card {
  background: var(--white); border: 1px solid var(--border-color);
  border-radius: var(--r-xl); padding: 20px;
  transition: border-color var(--t); box-shadow: var(--shadow-xs);
}

.info-card:hover { border-color: var(--purple-300); }
.info-card h3 { font-size: 0.88rem; font-weight: 700; margin-bottom: 14px; color: var(--gray-800); }

.info-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.info-row:last-child { margin-bottom: 0; }

.info-icon {
  width: 34px; height: 34px; border-radius: var(--r-sm);
  background: var(--purple-50); border: 1px solid var(--purple-100);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; color: var(--red-600); flex-shrink: 0;
}

.info-row strong { display: block; font-size: 0.84rem; color: var(--gray-900); margin-bottom: 2px; }
.info-row span   { font-size: 0.78rem; color: var(--text-muted); }

.wa-btn {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%; padding: 11px;
  background: #f0fdf4; border: 1.5px solid #86efac;
  border-radius: var(--r-md); color: #059669;
  font-size: 0.88rem; font-weight: 700;
  cursor: pointer; transition: all var(--t);
  text-decoration: none; font-family: var(--font);
}

.wa-btn:hover { background: #dcfce7; box-shadow: 0 0 0 3px rgba(5,150,105,0.1); }

.map-embed { border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--border-color); height: 200px; margin-top: 4px; }
.map-embed iframe { width: 100%; height: 100%; border: none; }
