/* ============================================================
   Micronest.ma — Design System
   style.css — Fichier CSS principal complet
   ============================================================ */

/* === 0. GOOGLE FONTS IMPORT === */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* === 1. CSS VARIABLES === */
:root {
  --primary: #007BFF;
  --accent: #FF6B6B;
  --text-main: #343A40;
  --text-sec: #6C757D;
  --card-bg: #F8F9FA;
  --white: #FFFFFF;
  --border: #E9ECEF;
  --dark: #1a1a2e;
  --success: #28a745;
  --primary-dark: #0056b3;
  --primary-soft: rgba(0,123,255,0.08);
  --accent-dark: #e85555;
  --accent-soft: rgba(255,107,107,0.10);
  --warning: #FFC107;
  --whatsapp: #25d366;
  --radius: 14px;
  --radius-sm: 8px;
  --radius-pill: 50px;
  --shadow-xs: 0 1px 3px rgba(0,0,0,0.05);
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 32px rgba(0,0,0,0.14);
  --shadow-focus: 0 0 0 3px rgba(0,123,255,0.25);
  --transition: 0.3s ease;
  --transition-fast: 0.15s ease;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 70px;
  --container-max: 1280px;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-2xl: 80px;
}

/* === 0b. ACCESSIBILITÉ === */
:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
  border-radius: var(--radius-sm);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

::selection {
  background: var(--primary);
  color: white;
}

/* === 2. RESET & BASE === */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-main);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

/* === 3. UTILITAIRES === */

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section-sm {
  padding: 50px 0;
}

.text-center {
  text-align: center;
}

.text-primary {
  color: var(--primary);
}

.text-accent {
  color: var(--accent);
}

/* --- Buttons --- */
.btn {
  border-radius: var(--radius-pill);
  padding: 14px 32px;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: white;
}
.btn-primary:hover {
  background: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,123,255,0.35);
}

.btn-accent {
  background: var(--accent);
  color: white;
}
.btn-accent:hover {
  background: #e85555;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,107,107,0.35);
}

.btn-outline {
  border: 2px solid var(--accent);
  color: var(--accent);
  background: transparent;
}
.btn-outline:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-2px);
}

.btn-outline-primary {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}
.btn-outline-primary:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 40px;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.82rem;
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: white;
}
.btn-whatsapp:hover {
  background: #1ebe57;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37,211,102,0.35);
}

.btn:disabled,
.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* --- Badges --- */
.badge {
  display: inline-block;
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-new {
  background: #007BFF;
  color: white;
}

.badge-promo {
  background: var(--accent);
  color: white;
}

.badge-hot {
  background: #FF8C00;
  color: white;
}

.badge-limited {
  background: #6C757D;
  color: white;
}

/* === 4. HEADER === */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: box-shadow var(--transition);
}

.header.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
}

.logo-main {
  color: var(--primary);
}

.logo-accent {
  color: var(--accent);
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 8px;
}

.nav-link {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  display: block;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: rgba(0,123,255,0.07);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-main);
  font-size: 1.1rem;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-btn:hover {
  color: var(--primary);
  background: rgba(0,123,255,0.07);
}

.cart-count {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--accent);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: var(--transition);
}

/* --- Drawer mobile --- */
.nav-drawer {
  position: fixed;
  top: 0;
  left: -100%;
  width: 280px;
  height: 100vh;
  background: white;
  z-index: 2000;
  box-shadow: 4px 0 20px rgba(0,0,0,0.15);
  transition: left 0.35s ease;
  padding: 80px 24px 24px;
  overflow-y: auto;
}

.nav-drawer.open {
  left: 0;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.nav-overlay.visible {
  opacity: 1;
  pointer-events: all;
}

.drawer-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.drawer-close:hover {
  color: var(--accent);
  background: rgba(255,107,107,0.08);
}

.drawer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.drawer-nav-list a {
  display: block;
  padding: 12px 16px;
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  font-size: 0.95rem;
}

.drawer-nav-list a:hover {
  background: rgba(0,123,255,0.07);
  color: var(--primary);
}

@media (max-width: 1023px) {
  .nav {
    display: none;
  }
  .hamburger {
    display: flex;
  }
}

@media (max-width: 767px) {
  .header-actions .icon-btn.search-hide {
    display: none;
  }
}

/* === 5. HERO SECTION === */
.hero {
  background: linear-gradient(135deg, #060f20 0%, #0a1628 60%, #0d1f3c 100%);
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  min-height: calc(100vh - var(--header-h));
  padding: 60px 0;
}

/* ── Colonne 1 : texte ── */
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(40,167,69,0.15);
  color: #4ade80;
  border: 1px solid rgba(40,167,69,0.35);
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 24px;
  animation: pulse-badge 2.5s ease-in-out infinite;
}

@keyframes pulse-badge {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.03); opacity: 0.85; }
}

.hero-title {
  font-size: clamp(2rem, 3.8vw, 3.4rem);
  font-weight: 800;
  line-height: 1.12;
  color: #fff;
  margin-bottom: 20px;
}

.hero-title .highlight {
  color: var(--primary);
}

.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 460px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-outline-light {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.5);
  color: #fff;
  padding: 12px 26px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.97rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.btn-outline-light:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.9);
}

/* ── Colonne 2 : image ── */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.hero-banner-img {
  width: 100%;
  height: 100%;
  max-height: calc(100vh - var(--header-h) - 80px);
  object-fit: cover;
  object-position: center top;
  border-radius: 20px;
  display: block;
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
}

/* ── Tablette (768px – 1023px) ── */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-inner {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    padding: 48px 0;
  }
  .hero-title {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
  }
  .hero-subtitle {
    font-size: 0.95rem;
  }
  .hero-banner-img {
    border-radius: 14px;
    max-height: 480px;
  }
}

/* ── Mobile (< 768px) ── */
@media (max-width: 767px) {
  .hero {
    padding-bottom: 0;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 48px 0 0;
    min-height: unset;
  }
  .hero-content {
    align-items: center;
    text-align: center;
  }
  .hero-subtitle {
    margin: 0 auto 32px;
  }
  .hero-cta {
    justify-content: center;
  }
  /* L'image passe sous le texte et touche les bords */
  .hero-visual {
    margin: 0 calc(-1 * var(--container-pad, 20px));
    width: calc(100% + 2 * var(--container-pad, 20px));
  }
  .hero-banner-img {
    border-radius: 0;
    max-height: 360px;
    object-position: center top;
    box-shadow: none;
  }
}

/* === 6. BANDE DE RÉASSURANCE === */
.reassurance {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}

.reassurance-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

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

.reassurance-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(0,123,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.reassurance-text strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
}

.reassurance-text span {
  font-size: 0.78rem;
  color: var(--text-sec);
}

@media (max-width: 767px) {
  .reassurance-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}

@media (max-width: 479px) {
  .reassurance-grid {
    grid-template-columns: 1fr;
  }
}

/* === 7. SECTION TITRE === */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-label {
  display: inline-block;
  background: rgba(0,123,255,0.08);
  color: var(--primary);
  border-radius: var(--radius-pill);
  padding: 6px 18px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 10px;
}

.section-subtitle {
  color: var(--text-sec);
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.65;
}

/* === 8. CARTES CATÉGORIES === */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.category-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 24px;
  text-align: center;
  text-decoration: none;
  color: var(--text-main);
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}

.category-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius);
  background: rgba(0,123,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--primary);
  transition: var(--transition);
}

.category-card:hover .category-icon {
  background: var(--primary);
  color: white;
}

.category-name {
  font-weight: 700;
  font-size: 1rem;
}

.category-count {
  font-size: 0.8rem;
  color: var(--text-sec);
}

@media (max-width: 767px) {
  .categories-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* === 9. FILTRES PRODUITS === */
.filter-bar {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.filter-btn {
  border: 2px solid var(--border);
  background: white;
  color: var(--text-sec);
  border-radius: var(--radius-pill);
  padding: 9px 22px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(0,123,255,0.06);
}

/* === 10. GRILLE PRODUITS & CARTES === */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(0,123,255,0.25);
}

.product-img-wrap {
  position: relative;
  aspect-ratio: 1;
  background: var(--card-bg);
  overflow: hidden;
}

.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-img-wrap img {
  transform: scale(1.05);
}

.product-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 1;
}

.product-wishlist {
  position: absolute;
  top: 10px;
  right: 10px;
  background: white;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-sec);
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  z-index: 1;
}

.product-wishlist:hover {
  color: var(--accent);
}

.product-wishlist.active {
  color: var(--accent);
}

.product-info {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-name {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-main);
  line-height: 1.4;
}

.product-brand {
  font-size: 0.78rem;
  color: var(--text-sec);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.product-pricing {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  flex-wrap: wrap;
}

.product-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
}

.product-price-old {
  font-size: 0.85rem;
  color: var(--text-sec);
  text-decoration: line-through;
}

.product-price-discount {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(255,107,107,0.1);
  padding: 2px 7px;
  border-radius: var(--radius-sm);
}

.product-action {
  padding: 0 16px 16px;
}

.btn-add-cart {
  width: 100%;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  padding: 11px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-add-cart:hover {
  background: var(--primary-dark);
}

/* --- Classes produits (rendues par products-loader.js) --- */
.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  background: var(--primary);
  color: white;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.product-img-link {
  display: block;
  position: relative;
  aspect-ratio: 1;
  background: var(--card-bg);
  overflow: hidden;
}

.product-img-link img,
.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-image,
.product-card:hover .product-img-link img {
  transform: scale(1.05);
}

.pc-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.4;
  margin: 0;
}
.pc-title a {
  color: inherit;
}
.pc-title a:hover {
  color: var(--primary);
}

.pc-subtitle {
  font-size: 0.82rem;
  color: var(--text-sec);
  line-height: 1.5;
  margin: 0;
}

.pc-price {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
  margin: 4px 0 0;
}
.pc-price small {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-sec);
  margin-left: 2px;
}

.pc-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
}

.pc-actions .btn {
  flex: 1;
  padding: 10px 14px;
  font-size: 0.82rem;
}

@media (max-width: 479px) {
  .pc-actions { flex-direction: column; }
}

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-sec);
  font-size: 1rem;
}

@media (max-width: 1023px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

@media (max-width: 375px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
}

/* === 11. BANNIÈRE PROMO === */
.promo-banner {
  background: linear-gradient(135deg, #007BFF 0%, #0056b3 40%, #FF6B6B 100%);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.promo-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.promo-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
  position: relative;
}

.promo-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.75);
  margin-bottom: 10px;
}

.promo-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  color: white;
  margin-bottom: 20px;
  line-height: 1.3;
}

.countdown {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
}

.countdown-unit {
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  text-align: center;
  min-width: 60px;
}

.countdown-num {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: white;
  line-height: 1;
}

.countdown-label {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 4px;
  display: block;
}

.promo-image {
  width: 200px;
  opacity: 0.15;
}

@media (max-width: 767px) {
  .promo-inner {
    grid-template-columns: 1fr;
  }
  .promo-image {
    display: none;
  }
}

/* === 12. AVIS CLIENTS === */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.review-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.review-stars {
  color: #FFC107;
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.review-text {
  color: var(--text-sec);
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 18px;
  font-style: italic;
}

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

.review-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #0056b3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.review-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-main);
}

.review-city {
  font-size: 0.78rem;
  color: var(--text-sec);
}

@media (max-width: 767px) {
  .reviews-grid {
    grid-template-columns: 1fr;
  }
}

/* === 13. SECTION CONTACT === */
.contact-section {
  background: var(--card-bg);
  padding: 80px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 12px;
}

.contact-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: var(--transition);
}

.contact-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.contact-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin: 0 auto 18px;
}

.contact-card-icon.whatsapp {
  background: rgba(37,211,102,0.1);
  color: #25d366;
}

.contact-card-icon.email {
  background: rgba(0,123,255,0.1);
  color: var(--primary);
}

.contact-card-icon.location {
  background: rgba(255,107,107,0.1);
  color: var(--accent);
}

.contact-card h4 {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 8px;
}

.contact-card p,
.contact-card a {
  color: var(--text-sec);
  font-size: 0.9rem;
  text-decoration: none;
  transition: var(--transition);
}

.contact-card a:hover {
  color: var(--primary);
}

@media (max-width: 767px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* === 14. FOOTER === */
.footer {
  background: #1a1a2e;
  color: rgba(255,255,255,0.8);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr repeat(4, 1fr);
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .logo {
  display: inline-flex;
  margin-bottom: 14px;
}

.footer-brand .logo-main {
  color: #ffffff;
}

.footer-brand .logo-accent {
  color: var(--accent);
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
  margin-bottom: 20px;
  max-width: 220px;
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.9rem;
}

.social-link:hover {
  background: var(--primary);
  color: white;
}

.footer-col h4 {
  color: white;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 0.85rem;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: white;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-copyright {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

.payment-badges {
  display: flex;
  gap: 10px;
  align-items: center;
}

.payment-badge {
  background: rgba(255,255,255,0.08);
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
}

@media (max-width: 1023px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* === 15. WHATSAPP FLOTTANT === */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  width: 54px;
  height: 54px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.5);
}

/* === 16. ANIMATIONS SCROLL === */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === 17. PAGE BANNER (sous-pages) === */
.page-banner {
  background: linear-gradient(135deg, #f0f7ff 0%, #e8f4ff 100%);
  padding: 60px 0 40px;
  margin-top: var(--header-h);
  border-bottom: 1px solid var(--border);
}

.page-banner h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 10px;
}

.page-banner h1 span {
  color: var(--primary);
}

.page-banner p {
  color: var(--text-sec);
  font-size: 1rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-sec);
  margin-bottom: 12px;
}

.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
}

.breadcrumb-sep {
  color: var(--text-sec);
}

/* === 18. FORMS (checkout, etc.) === */
.form-section {
  padding: 80px 0;
  background: var(--card-bg);
  margin-top: var(--header-h);
  min-height: calc(100vh - var(--header-h));
}

.form-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 32px;
}

.form-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}

.form-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--border);
}

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

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-main);
  margin-bottom: 7px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--text-main);
  background: white;
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.summary-item:last-of-type {
  border-bottom: none;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  margin-top: 8px;
  border-top: 2px dashed var(--border);
  font-weight: 800;
  font-size: 1.1rem;
}

.summary-total .total-amount {
  color: var(--accent);
  font-size: 1.25rem;
}

@media (max-width: 767px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* === 19. SKELETON LOADING === */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* === 20. PRODUITS VEDETTES — bouton voir tous === */
.products-more {
  text-align: center;
  margin-top: 48px;
}

/* === 21. MISC UTILITAIRES === */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* === 22. SKELETON — cartes produit === */
.product-card-skeleton {
  pointer-events: none;
}
.skeleton-img,
.skeleton-line,
.skeleton-price,
.skeleton-btn {
  background: linear-gradient(90deg, #eef0f2 25%, #e2e5e9 50%, #eef0f2 75%);
  background-size: 200% 100%;
  border-radius: var(--radius-sm);
}
.skeleton-pulse {
  animation: skeleton-shimmer 1.5s infinite linear;
}
.skeleton-img {
  aspect-ratio: 1;
  border-radius: 0;
}
.skeleton-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.skeleton-line { height: 12px; width: 100%; }
.skeleton-line.w-40 { width: 40%; }
.skeleton-line.w-60 { width: 60%; }
.skeleton-line.w-80 { width: 80%; }
.skeleton-price { height: 22px; width: 50%; }
.skeleton-btn { height: 38px; width: 100%; margin-top: 6px; }

/* === 23. SCROLLBAR (WebKit) === */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--card-bg); }
::-webkit-scrollbar-thumb {
  background: #cbd0d6;
  border-radius: 10px;
  border: 2px solid var(--card-bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--text-sec); }

/* === 24. BACK-TO-TOP === */
.back-to-top {
  position: fixed;
  bottom: 88px;
  right: 24px;
  z-index: 899;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity var(--transition), transform var(--transition);
  box-shadow: var(--shadow);
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover { background: var(--primary-dark); }

/* === 25. PRINT === */
@media print {
  .header, .nav-drawer, .nav-overlay,
  .whatsapp-float, .back-to-top, .footer,
  .promo-banner, .hero { display: none !important; }
  body { color: #000; background: #fff; }
  a { color: #000; text-decoration: underline; }
}

/* === 26. NAV DROPDOWN MARQUES === */
.nav-has-dropdown { position: relative; }
.nav-dropdown {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 20px;
  display: none; z-index: 500; min-width: 440px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.13);
  grid-template-columns: repeat(3, 1fr); gap: 6px 24px;
}
.nav-has-dropdown:hover .nav-dropdown { display: grid; }
.nav-dropdown::before {
  content: ''; position: absolute; top: -6px; left: 50%; transform: translateX(-50%);
  border: 6px solid transparent; border-top: 0; border-bottom-color: var(--border);
}
.nav-dropdown-col {}
.nav-dropdown-heading {
  font-size: 0.7rem; font-weight: 700; color: var(--text-sec);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 8px; padding-bottom: 5px; border-bottom: 1px solid var(--border);
}
.nav-dropdown-link {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 8px; border-radius: 6px;
  color: var(--text-main); text-decoration: none;
  font-size: 0.85rem; font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.nav-dropdown-link:hover { background: var(--primary-soft); color: var(--primary); }
.nav-dropdown-link i { width: 14px; font-size: 0.78rem; color: var(--primary); opacity: 0.65; }
@media (max-width: 1023px) { .nav-has-dropdown .nav-dropdown { display: none !important; } }
