: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;
}
/*CART*/

/* Layout fonctionnel pour le header (indispensable pour l'alignement de base) */
.cart-header-section {
  text-align: center;
  padding: 60px 0;
}
/* --- Section PANIER --- */
.breadcrumb {
  text-align: center;
  margin-top: 40px;
  color: #c5a47e;
  font-size: 0.8rem;
  letter-spacing: 2px;
  font-family: 'Playfair Display', serif;
}
.page-title {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  margin-bottom: 60px;
}
.cart-container {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 80px;
  gap: 40px;
  align-items: flex-start;
}
.cart-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 50px;
  width: 100%;
  align-items: start;
}
.cart-left-column {
  flex: 2.5;
}
.cart-right-column {
  flex: 1;
}

/* Tableau des Produits */
.cart-table {
  width: 100%;
  border-collapse: collapse;
}

.cart-table th {
  text-align: left;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
  font-size: 14px;
  color: #1a1a1a;
}

.cart-table td {
  padding: 30px 0;
  border-bottom: 1px dotted #eee; /* Ligne pointillée comme sur l'image */
}

/* Styles Boutons Beige Homi */
.btn-apply,
.btn-checkout {
  background-color: #b5a489;
  color: white;
  border: none;
  padding: 15px 30px;
  font-weight: bold;
  cursor: pointer;
}

.btn-update {
  background-color: #e0e0e0;
  color: #888;
  border: none;
  padding: 15px 30px;
  font-weight: bold;
  cursor: pointer;
}

.cart-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 25px;
}

.input-coupon {
  border: 1px solid #eee;
  padding: 15px;
  width: 200px;
  margin-right: 10px;
}

/* Table Labels */
.cart-header-labels {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 40px; /* Aligné sur la structure des items */
  padding-bottom: 20px;
  margin-bottom: 10px;
  border-bottom: 1px solid #eee;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

/* Articles */
.cart-item {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 40px;
  align-items: center;
  padding: 25px 0;
  border-bottom: 1px solid var(--border-color);
}

.product-info {
  display: flex;
  align-items: center;
  gap: 20px;
}
.product-info img {
  width: 70px;
  height: 85px;
  object-fit: cover;
  background: #f9f9f9;
}
.product-details strong {
  display: block;
  margin-bottom: 5px;
}

/* Quantité */
.qty-input {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  width: fit-content;
}
.qty-input button {
  background: none;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
}
.qty-input span {
  width: 30px;
  text-align: center;
}

.remove-item {
  color: #ccc;
  cursor: pointer;
  text-align: right;
}

/* Actions */
.cart-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
}
.coupon-area {
  display: flex;
  gap: 10px;
}
.coupon-area input {
  border: 1px solid var(--border-color);
  padding: 10px;
  outline: none;
}

/* Boutons */
.btn-apply,
.btn-checkout {
  background-color: #b5a489;
  color: white;
  border: none;
  padding: 15px 30px;
  font-weight: bold;
  cursor: pointer;
}

.btn-update {
  background-color: #e0e0e0;
  color: #888;
  border: none;
  padding: 15px 30px;
  font-weight: bold;
  cursor: pointer;
}

/* Sidebar Totals */
.totals-box {
  border: 1px solid var(--border-color);
  padding: 30px;
}
.totals-box h3 {
  font-family: 'Playfair Display', serif;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
}
.total-row {
  display: flex;
  justify-content: space-between;
  margin: 15px 0;
  color: var(--text-gray);
}
.final-total {
  border-top: 1px dashed var(--border-color);
  padding-top: 15px;
  color: #000;
  font-size: 1.1rem;
  font-weight: 600;
}

.btn-checkout {
  background-color: #b5a489;
  color: white;
  border: none;
  padding: 15px 30px;
  font-weight: bold;
  cursor: pointer;
}

.hidden {
  display: none;
}

@media (max-width: 900px) {
  .cart-grid {
    grid-template-columns: 1fr;
  }
  .cart-header-labels {
    display: none; /* Cache les labels sur mobile pour éviter le désordre */
  }
}
/*================================================
  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;
}
/* Style de l'overlay (fond sombre) */
.modal-overlay {
  display: none; /* Caché par défaut */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

/* Contenu de la popup */
.modal-content {
  background: #fff;
  color: #333;
  padding: 40px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  position: relative;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.modal-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  margin-bottom: 15px;
}

/* Boutons */
.modal-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 25px;
}

.btn-yes,
.btn-no {
  padding: 12px 25px;
  border: none;
  cursor: pointer;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s;
}

.btn-yes {
  background: #a8947a;
  color: white;
} /* Couleur Homi */
.btn-no {
  background: #eee;
  color: #555;
}

.btn-yes:hover {
  background: #000;
}
.btn-no:hover {
  background: #ddd;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
}
.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;
}
