/* ============================================================
   A2 PAS D'ICI — Site B2C
   CSS Principal
   Font: Raleway | Accent: #5CBCBB | Light theme
   ============================================================ */

/* === VARIABLES === */
:root {
  --bg-primary: #FDFBF7;
  --bg-secondary: #F5F0E8;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FFF9F0;

  --accent: #5CBCBB;
  --accent-hover: #49A8A7;
  --accent-dark: #3A9695;
  --accent-light: rgba(92,188,187,0.08);
  --accent-ocean: #2E86AB;
  --accent-sand: #D4A843;
  --accent-vintage: #8B6F4E;

  --text-primary: #1C1917;
  --text-secondary: #57534E;
  --text-muted: #A8A29E;

  --border: rgba(0,0,0,0.06);
  --border-medium: rgba(0,0,0,0.1);

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.1), 0 8px 20px rgba(0,0,0,0.05);
  --shadow-glow: 0 8px 24px rgba(92,188,187,0.3);

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;

  --success: #2ecc71;
  --danger: #E05555;
  --warning: #D4A843;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Raleway', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Grain texture */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.015'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 99999;
}

a { color: var(--accent); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* === ANIMATIONS === */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInRight { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes floatY { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-18px) rotate(8deg); } }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 12px 24px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fff;
  color: var(--text-primary);
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 12px 24px;
  border-radius: 12px;
  border: 1.5px solid var(--border-medium);
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-block { width: 100%; text-align: center; }

/* ============================================================
   TOP BAR
   ============================================================ */
.top-bar {
  background: var(--accent);
  padding: 8px 0;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.03em;
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.nav {
  backdrop-filter: blur(20px);
  background: rgba(253,251,247,0.92);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
}

.nav-logo-icon {
  width: 42px; height: 42px;
  background: var(--accent);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 900; font-size: 0.9rem;
}

.nav-logo-text {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-primary);
}
.nav-logo-text span { color: var(--accent); }

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.3s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--accent);
  background: var(--accent-light);
}

/* Nav actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-action-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}
.nav-action-btn:hover {
  background: rgba(0,0,0,0.04);
  color: var(--text-primary);
}

.nav-cart-badge {
  position: absolute;
  top: 2px; right: 0;
  background: var(--accent);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

.hide-mobile { display: flex; }
.show-mobile { display: none; }

/* Search dropdown */
.search-dropdown {
  display: none;
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  background: #fff;
}
.search-dropdown.open { display: block; }

.search-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  gap: 8px;
}

.search-input {
  flex: 1;
  background: var(--bg-secondary);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 10px 16px;
  font-family: 'Raleway', sans-serif;
  font-size: 0.9rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.3s;
}
.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(92,188,187,0.1);
}

.search-submit { padding: 10px 20px; font-size: 0.85rem; }

/* Mobile menu */
.mobile-menu {
  display: none;
  border-top: 1px solid var(--border);
  background: #fff;
  padding: 16px 24px;
}
.mobile-menu.open { display: block; }

.mobile-menu ul { display: flex; flex-direction: column; gap: 2px; }

.mobile-menu a {
  display: block;
  padding: 12px 16px;
  border-radius: 10px;
  color: var(--text-secondary);
  font-weight: 600;
  transition: all 0.2s;
}
.mobile-menu a:hover {
  background: var(--bg-secondary);
  color: var(--accent);
}

.mobile-menu-separator {
  height: 1px;
  background: var(--border);
  margin: 8px 0;
}

/* ============================================================
   CART SIDEBAR
   ============================================================ */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 1998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}
.cart-overlay.open { opacity: 1; visibility: visible; }

.cart-sidebar {
  position: fixed;
  top: 0; right: 0;
  width: 100%; max-width: 420px;
  height: 100vh;
  background: #fff;
  z-index: 1999;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1);
  box-shadow: -10px 0 40px rgba(0,0,0,0.1);
}
.cart-sidebar.open { transform: translateX(0); }

.cart-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.cart-sidebar-header h2 { font-size: 1.1rem; font-weight: 800; }

.cart-sidebar-close {
  background: none; border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px;
}

.cart-sidebar-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}

.cart-empty {
  text-align: center;
  padding: 60px 0;
  color: var(--text-muted);
}
.cart-empty-icon { font-size: 3rem; margin-bottom: 12px; }

.cart-sidebar-item {
  display: flex;
  gap: 14px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  position: relative;
}

.cart-sidebar-item-img {
  width: 70px; height: 88px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.cart-sidebar-item-info { flex: 1; min-width: 0; }
.cart-sidebar-item-info h3 { font-size: 0.88rem; font-weight: 700; line-height: 1.3; margin-bottom: 2px; }
.cart-sidebar-item-format { font-size: 0.75rem; color: var(--text-muted); }
.cart-sidebar-item-prix { font-size: 0.9rem; font-weight: 700; color: var(--accent); margin-top: 4px; }

.cart-sidebar-item-qty {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

.qty-btn {
  width: 28px; height: 28px;
  border-radius: 6px;
  border: 1px solid var(--border-medium);
  background: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.qty-btn:hover { background: var(--bg-secondary); }

.cart-sidebar-item-qty span {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 0.85rem;
  width: 24px;
  text-align: center;
}

.cart-sidebar-item-remove {
  position: absolute;
  top: 0; right: 0;
  background: none; border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px;
  transition: color 0.2s;
}
.cart-sidebar-item-remove:hover { color: var(--danger); }

.cart-sidebar-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
}

.cart-sidebar-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 16px;
}
.cart-sidebar-total-prix {
  font-family: 'Space Mono', monospace;
  color: var(--accent);
}

.cart-sidebar-btn {
  display: block;
  width: 100%;
  text-align: center;
  margin-bottom: 8px;
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.main {
  padding-top: 100px;
  min-height: 60vh;
}

/* ============================================================
   HERO SECTION (Accueil)
   ============================================================ */
.hero {
  position: relative;
  padding: 60px 0 80px;
  background: var(--bg-secondary);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 80% 40%, rgba(92,188,187,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 20% 60%, rgba(212,168,67,0.04) 0%, transparent 70%);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 40px;
  background: var(--bg-primary);
  clip-path: ellipse(55% 100% at 50% 100%);
  z-index: 2;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-text { max-width: 560px; }

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 620px;
}

/* Hero visual — poster stack */
.hero-visual {
  position: relative;
}

.hero-poster-stack {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  max-width: 400px;
  margin: 0 auto;
}

.poster-card {
  position: absolute;
  width: 240px;
  height: 320px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.poster-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.poster-card-1 {
  top: 0;
  left: 0;
  transform: rotate(-6deg);
  z-index: 1;
}

.poster-card-2 {
  top: 30px;
  right: 0;
  transform: rotate(4deg);
  z-index: 2;
}

.poster-card-3 {
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  z-index: 3;
  width: 220px;
  height: 300px;
}

.poster-card:hover {
  transform: rotate(0deg) scale(1.05) !important;
  z-index: 10;
  box-shadow: 0 24px 60px rgba(0,0,0,0.15);
}

/* Floating tags */
.hero-tag {
  position: absolute;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-lg);
  z-index: 20;
  animation: floatY 5s ease-in-out infinite;
  color: var(--text-primary);
}

.hero-tag-1 {
  bottom: 50px;
  left: -20px;
  animation-delay: -1s;
}

.hero-tag-2 {
  top: 10px;
  right: -10px;
  animation-delay: -3s;
}

.hero-emoji {
  position: absolute;
  font-size: 3.5rem;
  animation: floatY 4s ease-in-out infinite;
  opacity: 0.5;
  z-index: 1;
}

.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 16px;
}
.section-title em { color: var(--accent); font-style: italic; }

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 28px;
}

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

/* ============================================================
   MARQUEE TRUST BAR
   ============================================================ */
.marquee-bar {
  padding: 14px 0;
  background: #fff;
  border-top: 1px solid rgba(0,0,0,0.04);
  border-bottom: 1px solid rgba(0,0,0,0.04);
  overflow: hidden;
}

.marquee-track {
  display: flex;
  animation: marquee 35s linear infinite;
  white-space: nowrap;
}

.marquee-item {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-right: 40px;
  flex-shrink: 0;
}

.marquee-dot {
  color: var(--accent);
  margin-right: 40px;
  flex-shrink: 0;
}

/* --- Villes cliquables dans la marquee --- */
a.marquee-item {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.25s;
}

a.marquee-item:hover {
  color: var(--accent);
}

/* Pause de l'animation au survol pour laisser le temps de cliquer */
.marquee-bar:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-ville-count {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-light);
  border-radius: 10px;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 64px 0; }
.section-sand { background: var(--bg-secondary); }
.section-white { background: #fff; }

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
}

.see-all {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  transition: opacity 0.2s;
}
.see-all:hover { opacity: 0.7; }

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

.products-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* ============================================================
   PRODUCT CARD
   ============================================================ */
.product-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.22,1,0.36,1);
  position: relative;
}
.product-card:hover {
  border-color: rgba(92,188,187,0.3);
}

/* Image — format carré uniforme avec contain pour ne pas déformer */
.product-card-img {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1/1;
  background: #F5F0E8; /* fond crème pour les images portrait qui ne remplissent pas tout */
}

.product-card-img img {
  width: 100%; height: 100%;
  object-fit: contain;
  transition: transform 0.6s cubic-bezier(0.22,1,0.36,1);
}
.product-card:hover .product-card-img img { transform: none; }

.product-card-img-gradient {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 30%;
  background: linear-gradient(transparent, #fff);
  pointer-events: none;
}

/* Badges */
.product-badge {
  position: absolute;
  top: 12px; left: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 2;
  color: #fff;
}
.badge-new { background: var(--accent-sand); }
.badge-promo { background: var(--danger); }
.badge-bestseller { background: var(--accent); }

/* Hover actions */
.product-card-actions {
  position: absolute;
  top: 12px; right: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
  opacity: 0;
  transform: translateX(8px);
  transition: all 0.3s;
}
.product-card:hover .product-card-actions {
  opacity: 1;
  transform: translateX(0);
}

.product-action-btn {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all 0.2s;
  color: var(--text-primary);
}
.product-action-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: scale(1.1);
}

/* Info */
.product-card-info { padding: 16px 20px 12px; }

.product-card-location {
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.product-card-name {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
}
.product-card-name a { color: var(--text-primary); }
.product-card-name a:hover { color: var(--accent); }

.product-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.product-card-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent);
}
.product-card-price small {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
}

.product-card-formats { display: flex; gap: 4px; }

.product-format-tag {
  font-size: 0.68rem;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--bg-secondary);
  color: var(--text-muted);
  font-weight: 600;
}

/* Add to cart hover */
.product-card-cart {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 14px 20px 16px;
  background: #fff;
  border-top: 1px solid var(--border);
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.3s, transform 0.3s cubic-bezier(0.22,1,0.36,1);
  pointer-events: none;
}
.product-card:hover .product-card-cart {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.product-cart-btn {
  width: 100%;
  padding: 10px;
  font-size: 0.85rem;
}

/* ============================================================
   REGIONS GRID
   ============================================================ */
.regions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}

.region-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  transition: all 0.3s;
  text-decoration: none;
  color: var(--text-primary);
}
.region-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(92,188,187,0.2);
  color: var(--accent);
}

.region-card-emoji { font-size: 2rem; margin-bottom: 6px; }
.region-card-name { font-weight: 700; font-size: 0.88rem; }
.region-card-count { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }

/* ============================================================
   PRODUCT TYPES GRID
   ============================================================ */
.types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.type-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  transition: all 0.3s;
  text-decoration: none;
  color: var(--text-primary);
}
.type-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.type-card-emoji { font-size: 1.8rem; margin-bottom: 4px; }
.type-card-name { font-weight: 700; font-size: 0.8rem; }
.type-card-count { font-size: 0.7rem; color: var(--accent); font-weight: 700; }

/* ============================================================
   TRUST SIGNALS
   ============================================================ */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.trust-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}

.trust-card-icon { margin-bottom: 14px; display: flex; justify-content: center; }
.trust-card-title { font-weight: 700; font-size: 0.92rem; margin-bottom: 6px; }
.trust-card-desc { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; }

/* ============================================================
   NEWSLETTER
   ============================================================ */
.newsletter-box {
  background: var(--accent-light);
  border: 1px solid rgba(92,188,187,0.1);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.newsletter-icon { font-size: 2.5rem; margin-bottom: 12px; }
.newsletter-title { font-size: 1.5rem; font-weight: 900; margin-bottom: 8px; }
.newsletter-desc { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 20px; }

.newsletter-form {
  display: flex;
  gap: 8px;
  max-width: 420px;
  margin: 0 auto;
}
.newsletter-form input {
  flex: 1;
  background: #fff;
  border: 1.5px solid var(--border-medium);
  border-radius: 10px;
  padding: 12px 16px;
  font-family: 'Raleway', sans-serif;
  font-size: 0.9rem;
  outline: none;
}
.newsletter-form input:focus { border-color: var(--accent); }

/* ============================================================
   CATEGORY PAGE
   ============================================================ */
.cat-hero {
  padding: 30px 0 50px;
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}
.cat-hero::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 40px;
  background: var(--bg-primary);
  clip-path: ellipse(55% 100% at 50% 100%);
  z-index: 2;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { opacity: 0.4; }
.breadcrumb .current { color: var(--text-primary); font-weight: 600; }

.cat-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
}

.cat-hero-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.7;
  margin-top: 10px;
}

.cat-stats { display: flex; gap: 16px; flex-shrink: 0; }

.cat-stat {
  text-align: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  box-shadow: var(--shadow-sm);
}
.cat-stat-num {
  font-family: 'Space Mono', monospace;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}
.cat-stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Subcategory chips */
.subcats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.subcat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 100px;
  background: #fff;
  border: 1.5px solid var(--border);
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s;
}
.subcat-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.subcat-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.subcat-count {
  background: var(--bg-secondary);
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 100px;
  color: var(--text-muted);
  font-weight: 700;
}

/* Toolbar */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.toolbar-left { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.toolbar-right { display: flex; align-items: center; gap: 12px; }

.results-count { font-size: 0.85rem; color: var(--text-muted); }
.results-count strong { color: var(--text-primary); }

.sort-select {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1.5px solid var(--border-medium);
  background: #fff;
  font-family: 'Raleway', sans-serif;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  outline: none;
}
.sort-select:focus { border-color: var(--accent); }

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 40px 0;
}

.page-btn {
  width: 42px; height: 42px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: #fff;
  font-family: 'Raleway', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
}
.page-btn:hover { border-color: var(--accent); color: var(--accent); }
.page-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ============================================================
   PRODUCT PAGE
   ============================================================ */
.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  padding: 32px 0 60px;
}

/* Gallery */
.gallery { position: sticky; top: 130px; }

.gallery-main {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--border);
  background: #fff;
  margin-bottom: 12px;
  position: relative;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }

.gallery-thumbs { display: flex; gap: 8px; }

.gallery-thumb {
  width: 72px; height: 90px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
}
.gallery-thumb:hover, .gallery-thumb.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(92,188,187,0.2);
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Product details */
.product-details { padding-top: 4px; }

.product-location-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-light);
  border: 1px solid rgba(92,188,187,0.15);
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.product-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 6px;
}

.product-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* Price block */
.price-block {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}
.price-main {
  font-family: 'Space Mono', monospace;
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
}
.price-info { font-size: 0.82rem; color: var(--text-muted); margin-top: 4px; }
.price-shipping { font-size: 0.82rem; color: var(--success); font-weight: 600; margin-top: 6px; }

/* Format selector */
.option-group { margin-bottom: 24px; }

.option-label {
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 10px;
}
.option-hint { font-weight: 500; color: var(--text-muted); font-size: 0.8rem; }

.option-choices { display: flex; gap: 10px; flex-wrap: wrap; }

.option-choice {
  padding: 12px 20px;
  border-radius: 12px;
  border: 2px solid var(--border-medium);
  background: #fff;
  font-family: 'Raleway', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.25s;
  text-align: center;
  min-width: 110px;
}
.option-choice:hover { border-color: var(--accent); color: var(--accent); }
.option-choice.selected {
  border-color: var(--accent);
  background: var(--accent-light);
  color: var(--accent);
  box-shadow: 0 0 0 3px rgba(92,188,187,0.1);
}

.option-price {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 2px;
  color: var(--accent);
}

/* Quantity */
.quantity-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.quantity-selector {
  display: flex;
  align-items: center;
  border: 2px solid var(--border-medium);
  border-radius: 12px;
  overflow: hidden;
}

.quantity-selector .qty-btn {
  width: 44px; height: 44px;
  border: none;
  border-radius: 0;
  font-size: 1.2rem;
}

.quantity-selector .qty-value {
  width: 48px;
  text-align: center;
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 1rem;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  padding: 10px 0;
}

/* CTA */
.cta-buttons { display: flex; gap: 12px; margin-bottom: 24px; }

.btn-add-cart {
  flex: 1;
  padding: 16px 28px;
  font-size: 1rem;
}

.btn-wishlist {
  width: 54px; height: 54px;
  border-radius: 14px;
  border: 2px solid var(--border-medium);
  background: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.btn-wishlist:hover { border-color: var(--danger); background: #fef5f5; }

/* Trust signals product page */
.trust-signals {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
}

.trust-signal {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 8px 0;
}
.trust-signal + .trust-signal { border-top: 1px solid var(--border); }

.trust-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  background: var(--accent-light);
}

/* Share */
.share-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.share-btn {
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
}
.share-btn:hover { border-color: var(--accent); background: var(--accent-light); }

/* Description tabs */
.desc-tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 32px;
  margin-top: 48px;
}

.desc-tab {
  padding: 12px 24px;
  font-family: 'Raleway', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  border: none;
  background: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
}
.desc-tab:hover { color: var(--text-primary); }
.desc-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

.desc-content { display: none; }
.desc-content.active { display: block; }

.desc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.desc-text h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 12px; }
.desc-text p { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: 14px; }

.specs-table { width: 100%; border-collapse: collapse; }
.specs-table tr { border-bottom: 1px solid var(--border); }
.specs-table td { padding: 10px 0; font-size: 0.88rem; }
.specs-table td:first-child { font-weight: 700; color: var(--text-primary); width: 45%; }
.specs-table td:last-child { color: var(--text-secondary); }

/* Related products */
.related-section { padding: 60px 0; background: var(--bg-secondary); }

/* ============================================================
   CART PAGE
   ============================================================ */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: start;
  padding: 24px 0 60px;
}

.cart-items {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.cart-item {
  display: flex;
  gap: 16px;
  padding: 20px;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  transition: background 0.2s;
}
.cart-item:last-child { border-bottom: none; }
.cart-item:hover { background: var(--bg-card-hover); }

.cart-item-img {
  width: 90px; height: 120px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-weight: 700; font-size: 0.92rem; margin-bottom: 2px; }
.cart-item-name a { color: var(--text-primary); }
.cart-item-name a:hover { color: var(--accent); }
.cart-item-format { font-size: 0.78rem; color: var(--text-muted); }
.cart-item-price { font-weight: 700; color: var(--accent); margin-top: 6px; }

.cart-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.cart-item-total { font-weight: 700; font-size: 0.92rem; }

.cart-item-remove {
  background: none; border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s;
}
.cart-item-remove:hover { color: var(--danger); }

/* Cart summary */
.cart-summary {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 130px;
}

.cart-summary h2 { font-size: 1.1rem; font-weight: 800; margin-bottom: 20px; }

.cart-summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 10px;
}
.cart-summary-line span:first-child { color: var(--text-secondary); }

.cart-summary-total {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  font-size: 1.1rem;
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px solid var(--border);
}
.cart-summary-total-prix {
  font-family: 'Space Mono', monospace;
  color: var(--accent);
  font-size: 1.2rem;
}

.cart-summary-tva { font-size: 0.72rem; color: var(--text-muted); margin-top: 2px; text-align: right; }

/* Free shipping progress */
.shipping-progress {
  background: var(--accent-light);
  border: 1px solid rgba(92,188,187,0.1);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 16px;
  font-size: 0.85rem;
}
.shipping-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(92,188,187,0.1);
  border-radius: 100px;
  margin-top: 8px;
  overflow: hidden;
}
.shipping-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 100px;
  transition: width 0.5s;
}

.shipping-free {
  background: rgba(46,204,113,0.08);
  border: 1px solid rgba(46,204,113,0.15);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 16px;
  font-size: 0.85rem;
  color: #1e8449;
  font-weight: 600;
}

/* Cart empty */
.cart-empty-page {
  text-align: center;
  padding: 80px 0;
}
.cart-empty-page .cart-empty-icon { font-size: 4rem; margin-bottom: 16px; }
.cart-empty-page h2 { font-size: 1.3rem; font-weight: 800; margin-bottom: 10px; }
.cart-empty-page p { color: var(--text-muted); margin-bottom: 24px; }

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: 16px; }

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border-medium);
  border-radius: 10px;
  font-family: 'Raleway', sans-serif;
  font-size: 0.9rem;
  color: var(--text-primary);
  background: #fff;
  outline: none;
  transition: border-color 0.3s;
}
.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(92,188,187,0.1);
}

textarea.form-control { resize: vertical; min-height: 120px; }

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

/* ============================================================
   ALERTS
   ============================================================ */
.alert {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 16px;
}
.alert-success { background: rgba(46,204,113,0.1); color: #1e8449; border-left: 4px solid var(--success); }
.alert-danger { background: rgba(224,85,85,0.1); color: #c0392b; border-left: 4px solid var(--danger); }
.alert-info { background: var(--accent-light); color: var(--accent-dark); border-left: 4px solid var(--accent); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--text-primary);
  color: rgba(255,255,255,0.85);
  padding: 60px 0 30px;
  margin-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; color: #fff; }
.footer-brand h3 span { color: var(--accent); }
.footer-brand p { font-size: 0.85rem; color: rgba(255,255,255,0.5); max-width: 280px; line-height: 1.6; }

.footer-social { display: flex; gap: 8px; margin-top: 16px; }

.footer-social-btn {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: all 0.3s;
  text-decoration: none;
}
.footer-social-btn:hover { background: var(--accent); border-color: var(--accent); }

.footer-col h4 {
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  margin-bottom: 14px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col a { color: rgba(255,255,255,0.5); font-size: 0.85rem; transition: color 0.3s; }
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
}
.footer-bottom a { color: rgba(255,255,255,0.3); }
.footer-bottom a:hover { color: rgba(255,255,255,0.6); }

.footer-legal { display: flex; gap: 20px; }

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s;
  z-index: 998;
  box-shadow: var(--shadow-glow);
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--accent-hover); transform: translateY(-2px); }

/* ============================================================
   SEO TEXT
   ============================================================ */
.seo-text {
  max-width: 800px;
  margin: 0 auto;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #6b7280;
}
.seo-text p {
  margin-bottom: 0.8rem;
}
.seo-text p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* --- Hero : breakpoint dédié plus bas pour garder la 2 colonnes
   plus longtemps (les MacBook 13" en fenêtre partielle passaient
   sous 1024px et perdaient le visual entier via display:none) --- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-text { max-width: 100%; margin: 0 auto; }
  .hero-buttons { justify-content: center; }
  .hero-visual { display: none; }
}

@media (max-width: 1024px) {
  .products-grid-4 { grid-template-columns: repeat(3, 1fr); }
  .product-layout { grid-template-columns: 1fr; gap: 32px; }
  .gallery { position: static; }
  .desc-grid { grid-template-columns: 1fr; }
  .cart-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-hero-content { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hide-mobile { display: none; }
  .show-mobile { display: flex; }

  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .products-grid-4 { grid-template-columns: repeat(2, 1fr); gap: 14px; }

  .product-card-info { padding: 12px 14px 10px; }
  .product-card-name { font-size: 0.85rem; }
  .product-card-price { font-size: 1rem; }

  .hero { padding: 40px 0 60px; }
  .section { padding: 40px 0; }
  .section-title { font-size: clamp(1.5rem, 3vw, 2rem); }

  .cat-hero { padding: 20px 0 40px; }
  .cat-stats { gap: 10px; }
  .subcats { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 16px; }

  .regions-grid { grid-template-columns: repeat(2, 1fr); }
  .types-grid { grid-template-columns: repeat(3, 1fr); }

  .cta-buttons { flex-direction: column; }
  .btn-wishlist { width: 100%; height: auto; padding: 14px; }

  .newsletter-box { padding: 32px 20px; }
  .newsletter-form { flex-direction: column; }

  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .products-grid-4 { grid-template-columns: 1fr; }
  .types-grid { grid-template-columns: repeat(2, 1fr); }
  .option-choices { flex-direction: column; }
  .option-choice { min-width: auto; }
}

/* ============================================================
   UTILITIES
   ============================================================ */
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.font-mono { font-family: 'Space Mono', monospace; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
