: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; /* Espace réduit au minimum entre le diamant et JOTECH */
  font-weight: 800;
  font-size: 22px;
  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;
}
/*================================================
    CHECKOUT GRID STRUCTURE
================================================*/
.checkout-container {
  max-width: 1200px;
  margin: 120px auto 60px;
  padding: 0 5%;
}

.checkout-header {
  text-align: center;
  margin-bottom: 50px;
}

.brand-label {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--primary);
  display: block;
  margin-bottom: 10px;
}

.serif-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  margin-bottom: 15px;
  justify-content: center; /* Pour aligner le texte Flex */
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 50px;
  align-items: start;
}

/*================================================
    PAYMENT METHODS
================================================*/
.section-subtitle {
  font-size: 1.1rem;
  margin-bottom: 25px;
  font-weight: 600;
}

.payment-option {
  border: 1px solid var(--border-color);
  padding: 25px;
  margin-bottom: 20px;
  cursor: pointer;
  transition: var(--transition);
}

.payment-option.active {
  border-color: var(--primary);
  background-color: #fdfaf7;
}

.option-header {
  display: flex;
  align-items: center;
  gap: 15px;
}

.method-logos {
  margin-left: auto;
  display: flex;
  gap: 12px;
}

.method-logos img {
  height: 22px;
  object-fit: contain;
}
.method-logos i {
  font-size: 1.5rem;
  color: #555;
}

.method-details {
  margin-top: 25px;
  padding-top: 25px;
  border-top: 1px solid var(--border-color);
  animation: fadeIn 0.4s ease;
}

/* Grille des tuiles Mobile Money */
.methods-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin: 20px 0;
}

.method-tile {
  border: 1px solid #eee;
  padding: 20px;
  text-align: center;
  position: relative;
  background: var(--white);
  transition: var(--transition);
}

.method-tile.active {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.method-tile img {
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
}

.phone-number {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
}

.tile-check {
  position: absolute;
  top: 8px;
  right: 8px;
  color: var(--primary);
  opacity: 0;
}

.method-tile.active .tile-check {
  opacity: 1;
}

.account-info {
  font-size: 0.85rem;
  color: #444;
}

/* Formulaire Carte */
.card-form input {
  width: 100%;
  padding: 14px;
  margin-bottom: 12px;
  border: 1px solid #ddd;
  outline: none;
}

.form-row {
  display: flex;
  gap: 12px;
}

/*================================================
    ORDER SUMMARY (ASIDE)
================================================*/
.summary-box {
  background: var(--gray-bg);
  padding: 40px;
  position: sticky;
  top: 120px;
  border-radius: 4px;
}

.summary-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  margin-bottom: 25px;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  color: var(--gray-text);
  font-size: 0.9rem;
}

.separator {
  border: none;
  border-top: 1px solid #ddd;
  margin: 20px 0;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--black);
  margin-bottom: 30px;
}

/*================================================
    BUTTONS & LINKS
================================================*/
.btn-primary-action {
  width: 100%;
  background: var(--black);
  color: var(--white);
  padding: 20px;
  border: none;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition);
}

.btn-primary-action:hover {
  background: #25d366;
  transform: translateY(-2px);
}

.link-back {
  display: inline-block;
  margin-top: 30px;
  text-decoration: none;
  color: #bbb;
  font-size: 0.8rem;
}

.secure-text {
  text-align: center;
  font-size: 0.75rem;
  color: var(--gray-text);
  margin-top: 20px;
}

#card-pay-btn {
  margin-top: 15px; /* Crée l'espace entre les deux */
  background: #1a1a1a; /* Une couleur légèrement différente pour la carte */
}

/* Change la couleur au survol pour différencier de WhatsApp */
#card-pay-btn:hover {
  background: var(
    --primary
  ); /* Utilise ton doré Homi au lieu du vert WhatsApp */
}

/*================================================
    RESPONSIVE
================================================*/
@media (max-width: 992px) {
  .checkout-grid {
    grid-template-columns: 1fr;
  }

  .summary-box {
    position: static;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  } /* On pourrait ajouter un menu burger ici */

  .serif-title {
    font-size: 1.8rem;
  }

  .methods-grid {
    grid-template-columns: 1fr;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hidden {
  display: none;
}

/*================================================
  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;
}
