:root {
  --primary: #c5a47e; /* Or Homi */
  --black: #111111;
  --white: #ffffff;
  --grey-bg: #f8f8f8;
  --transition: 0.5s cubic-bezier(0.2, 1, 0.3, 1);
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Poppins', sans-serif;
  color: var(--black);
  line-height: 1.7;
  background-color: var(--white);
  overflow-x: hidden;
}
/* Header Adaptatif */
header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 80px;
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: var(--transition);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
}
/* État au Scroll */
header.scrolled {
  background-color: var(--white);
  color: var(--primary);
  border-bottom: 1px solid #e0e0e0;
}
/* Pas de changement de fond au hover (Ta demande) */
header:hover {
  background-color: transparent;
}
header.scrolled:hover {
  background-color: var(--white);
}
.container {
  width: 90%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
/* Logo & Icon */
.logo {
  display: flex;
  align-items: center;
  gap: 0px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 2px;
  color: gray;
}
.logo img {
  width: 170px; /* Garde les proportions */
  height: 170px; /* Taille adaptée pour ne pas déborder du header de 80px */
  margin-left: -90px; /* "Aspire" le texte vers l'icône pour un look soudé */
  object-fit: contain;
}
/* Navigation */
nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
  color: white;
}
nav ul li a {
  text-decoration: none;
  color: gray;
  font-size: 13px;
  font-weight: 600;
  position: relative;
  padding-bottom: 31px; /* Alignement sur la ligne du header */
}
/* Barre Active Précise */
nav ul li a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: currentColor;
}
/* Icons Section */
.header-icons {
  display: flex;
  gap: 20px;
  align-items: center;
  color: gray;
}
.cart-icon {
  position: relative;
  color: gray;
}
.cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background-color: #ff4757; /* Rouge Jotech */
  color: white;
  font-size: 11px;
  font-weight: bold;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex; /* Important pour centrer le chiffre */
  align-items: center;
  justify-content: center;
}
/*produit */
/* --- VARIABLES ET RESET --- */
:root {
  --primary: #c5a47e;
  --dark: #0f172a;
  --accent: #ef4444;
  --gray-light: #f8fafc;
  --text-muted: #64748b;
  --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.product-showcase {
  padding: 80px 5%;
  background-color: var(--gray-light);
  display: flex;
  justify-content: center;
}

.product-card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 50px;
  max-width: 1100px;
  background: #ffffff;
  padding: 40px;
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
}

/* Image Hover Effect */
.product-visuals {
  position: relative;
  overflow: hidden;
  background: #f1f5f9;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.product-visuals:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.product-img {
  max-width: 85%;
  height: auto;
  transition: var(--transition);
}

.product-visuals:hover .product-img {
  transform: scale(1.05);
}

/* Badges */
.badge-group {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 10;
}

.badge-new {
  background: var(--dark);
  color: #fff;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
}

.badge-local {
  background: #22c55e;
  color: #fff;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 600;
}

/* Typographie & Prix */
.main-title {
  font-size: 2.2rem;
  color: var(--dark);
  line-height: 1.2;
  margin: 15px 0;
}

.sub-brand {
  display: block;
  font-size: 1rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 5px;
}

.pricing-block {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.price-now {
  font-size: 2.2rem;
  font-weight: 800;
  color: blue;
}

.price-before {
  text-decoration: line-through;
  color: var(--text-muted);
  font-size: 1.2rem;
}

/* Alerte de stock */
.stock-alert {
  background: #fef2f2;
  color: var(--accent);
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  border: 1px solid #fee2e2;
}

/* Zone d'achat */
.purchase-zone {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.qty-control {
  display: flex;
  background: #f1f5f9;
  border-radius: 12px;
  padding: 4px;
}

.qty-btn {
  border: none;
  background: none;
  width: 40px;
  height: 40px;
  cursor: pointer;
  color: var(--dark);
}

#main-qty {
  width: 45px;
  border: none;
  background: transparent;
  text-align: center;
  font-weight: 700;
}

.btn-primary-add {
  flex: 1;
  background: var(--dark);
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary-add:hover {
  background: var(--primary);
  box-shadow: 0 10px 25px rgba(0, 86, 179, 0.3);
}

.extra-benefits {
  margin-top: 25px;
  display: flex;
  gap: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .product-card-container {
    padding: 20px;
    grid-template-columns: 1fr;
  }
  .purchase-zone {
    flex-direction: column;
  }
  .main-title {
    font-size: 1.8rem;
  }
}
/* --- GRILLE DE PRODUITS (L'ADAPTATEUR) --- */
.grid-container {
  padding: 60px 5%;
}
.section-title {
  font-size: 45px;
  margin-bottom: 40px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: 'Playfair Display', serif;
}
.product-grid {
  display: grid;
  /* Grille de 4 colonnes par défaut */
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}
.product-card {
  background: white;
  border: 1px solid #efefef;
  padding: 20px;
  border-radius: 12px;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
  border-color: var(--primary-blue);
}
.product-card img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  margin-bottom: 15px;
}
.product-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: #1a1a1a;
}
.card-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 10px;
}
.stars {
  color: #ccae62; /* Or pour les étoiles */
  font-size: 0.8rem;
}
.urgency-text {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #d35400; /* Orange luxe pour l'urgence */
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin: 5px 0;
  animation: pulseSoft 2s infinite;
}
.promo-badge {
  color: #0d7477; /* Couleur secondaire Homi */
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 15px;
}

/* --- BOUTONS --- */
.btn {
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  transition: 0.3s;
  text-align: center;
  display: inline-block;
}
.btn-cart {
  background: #c5a47e;
  color: black;
  width: 100%;
}
.btn-cart:hover {
  background: blue;
}
.btn-whatsapp {
  background: #25d366;
  color: white;
  text-decoration: none;
  margin-top: 10px;
}
/* --- MEDIA QUERIES (RESPONSIVE ADAPTER) --- */

/* Pour les tablettes (max 1024px) -> 3 colonnes */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Pour les petits écrans (max 768px) -> 2 colonnes + Hero vertical */
@media (max-width: 768px) {
  .main-product-section {
    flex-direction: column;
    padding: 30px 5%;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .logo {
    font-size: 22px;
  }
  nav {
    display: none;
  } /* On cache le menu simple pour mobile pour rester propre */
}

/* Pour les très petits téléphones (max 480px) -> 1 colonne */
@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 22px;
  }
}
/*================================================
  6. FOOTER (Épuré et Noir)
================================================*/
.site-footer {
  background-color: #000000;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  padding-top: 60px;
}
.footer-widgets {
  display: grid;
  /* Auto-fit crée automatiquement le nombre de colonnes selon la place */
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 5% 60px 5%;
}
.footer-widget-col {
  padding: 0 0px;
  border-right: 1px solid rgba(255, 255, 255, 0.1); /* Ligne verticale */
}
.footer-widget-col:last-child {
  border-right: none; /* Pas de ligne sur la dernière colonne */
}

.footer-widget-col h4 {
  margin-bottom: 25px;
  font-size: 1.1rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.footer-widget-col ul {
  list-style: none;
} /*reture les point*/
.footer-widget-col ul li {
  margin-bottom: 15px;
}
.footer-widget-col ul li a {
  color: #999;
  text-decoration: none; /*retire le soulignement*/
  font-size: 0.9rem;
  transition: 0.3s;
}
.footer-widget-col ul li a:hover {
  color: var(--white);
}
/* Newsletter Style */
.newsletter input {
  width: 100%;
  padding: 15px;
  background: #222; /*fond*/
  border: none;
  color: white; /*texte blanc*/
  margin-bottom: 15px;
  margin-top: 20px;
}
.newsletter button {
  width: 100%;
  padding: 15px;
  background: var(--primary);
  border: none;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}
.footer-newsletter-form button:hover {
  background-color: #8e7354;
  transform: translateY(-2px);
}
.payment-icons {
  margin-top: 25px;
  font-size: 1.5rem;
  display: flex;
  gap: 50px;
  opacity: 0.6;
}
.payment-methods img {
  height: 20px;
}
/* Copyright Bar */
.footer-copyright-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 30px 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #555;
  font-size: 0.85rem;
}
.social-icons {
  display: flex;
  gap: 20px;
}
.social-icons a {
  color: #555;
  font-size: 1rem;
  transition: 0.3s;
}
.social-icons a:hover {
  color: #fff;
}
/*================================================
  7. RESPONSIVE DESIGN (Media Queries)
================================================*/

/* Tablette (Max 992px) */
@media (max-width: 992px) {
  .footer-widgets {
    grid-template-columns: repeat(2, 1fr); /* 2 colonnes sur tablette */
  }
}

/* Smartphone (Max 600px) */
@media (max-width: 600px) {
  .footer-widgets {
    grid-template-columns: 1fr; /* 1 seule colonne */
    text-align: center;
  }

  .footer-widget-col {
    border-right: none;
    margin-bottom: 40px;
  }

  .payment-icons,
  .social-icons {
    justify-content: center;
  }

  .footer-copyright-bar {
    flex-direction: column; /* Texte au dessus des icônes */
    text-align: center;
  }

  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
    font-size: 25px;
  }
}

/*================================================
  7. UTILS & FLOATS
================================================*/
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #25d366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 30px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}
