/* ===================== VARIABLES (FÉMININ / PREMIUM) ===================== */
:root {
  --rose-poudre: #f3e8ee;
  --lilas-doux: #c7b8d6;
  --violet-chic: #6b5fa5;
  --nude-chaud: #faf7fb;
  --gris-soie: #8a8a8a;
  --noir-doux: #1b1b1b;
}

/* ----- GLOBAL ----- */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  background: linear-gradient(180deg, #faf7fb, #f4f1f7);
  color: var(--noir-doux);
}

/* ===== MENU NAVIGATION ===== */
.header {
  width: 100%;
  padding: 20px 40px;
  position: fixed;
  top: 0;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  z-index: 9999; /* toujours au-dessus des autres éléments */
  box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* optionnel : ombre pour mieux voir le header */
}

.nav-menu {
  display: flex;
  gap: 20px;
  transform: translateX(-50px);
}

.nav-btn {
  font-size: 16px;
  font-weight: 500;
  color: var(--noir-doux);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.nav-btn:hover {
  background: linear-gradient(135deg, var(--lilas-doux), var(--violet-chic));
  color: white;
}

.logo {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 2px;
}

/* ===== MAIN & SECTION PAIEMENT ===== */
/* MAIN & SECTION */
main {
  flex: 1;
  padding: 120px 20px 60px;
  display: flex;
  justify-content: center;
  background-color: #f5f5f7;
}

.product-purchase {
  background: #fff;
  border-radius: 16px;
  padding: 40px 30px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  max-width: 480px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product-purchase h1 {
  font-size: 24px;
  font-weight: 700;
  color: #0a0a0a;
  text-align: center;
}

/* OPTIONS PRODUIT */
.product-options label {
  font-weight: 500;
  font-size: 14px;
  color: #333;
}

.options-row {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.option-card {
  flex: 1;
  border: 1px solid #d0d0d0;
  border-radius: 10px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fafafa;
}

.option-card input {
  display: none;
}

.option-card .option-content {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-weight: 600;
  font-size: 14px;
}

.option-card:hover {
  border-color: #7e57c2;
  background: #f3eaff;
}

.option-card input:checked + .option-content {
  border-radius: 8px;
  color: #7e57c2;
}

/* PRODUIT ADDITIONNEL */
.additional-product {
  margin-top: 15px;
  font-size: 14px;
  font-weight: 500;
}

.additional-product input {
  margin-right: 8px;
}

.diffuseur-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 5px;
}

.diffuseur-row input {
  width: 60px;
  padding: 8px 10px;
  font-size: 14px;
  border: 1px solid #d0d0d0;
  border-radius: 8px;
  outline: none;
  transition: border 0.3s ease, box-shadow 0.3s ease;
}

.diffuseur-row input:focus {
  border-color: #7e57c2;
  box-shadow: 0 0 6px rgba(126,87,194,0.3);
}

.diffuseur-price {
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

/* FORMULAIRE */
.purchase-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.purchase-form label {
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

.purchase-form input,
.purchase-form select {
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid #d0d0d0;
  border-radius: 8px;
  outline: none;
  transition: border 0.3s ease, box-shadow 0.3s ease;
}

.purchase-form input:focus,
.purchase-form select:focus {
  border-color: #7e57c2;
  box-shadow: 0 0 8px rgba(126,87,194,0.3);
}

.total {
  font-size: 16px;
  font-weight: 600;
  text-align: right;
  color: #0a0a0a;
  margin-bottom: 10px;
}

/* PAIEMENT */
.pay-title {
  font-size: 18px;
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 12px;
  color: #0a0a0a;
}

.pay-row {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.pay-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 15px;
  color: white;
  background: linear-gradient(135deg, #6b5fa5, #a29bc7);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.3s ease, transform 0.2s ease;
}

.pay-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
}

.pay-btn .icon {
  font-size: 18px;
}

.pay-btn .secure {
  font-size: 12px;
  opacity: 0.8;
}

/* Style popup */
.popup {
  display: none; /* caché par défaut */
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  z-index: 9999;
  max-width: 300px;
  text-align: center;
}

.popup p {
  margin-bottom: 15px;
  font-size: 14px;
}

.popup .close-btn {
  background-color: #000;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 5px;
  cursor: pointer;
}

.popup .close-btn:hover {
  background-color: #333;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .product-purchase {
      padding: 30px 20px;
      margin: 0 10px;
  }

  .options-row,
  .pay-row {
      flex-direction: column;
  }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .product-purchase {
      padding: 30px 20px;
      margin: 0 10px;
  }

  .pay-row {
      flex-direction: column;
  }
}

/* FOOTER */
/* ====== FOOTER ====== */
.footer {
  position: relative;
  background: linear-gradient(135deg, #2c2b3a, #3f3d51);
  color: white;
  padding: 60px 40px 30px;
  margin-top: 120px;
  overflow: hidden;
}

/* Grand texte PLUZZ en arrière-plan */
.footer-bg-text {
  position: absolute;
  bottom: -20px;
  right: 10px;
  font-size: 120px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.05);
  pointer-events: none;
  user-select: none;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  z-index: 2;
  position: relative;
}

.footer-col h3 {
  font-size: 18px;
  margin-bottom: 12px;
  font-weight: 600;
}

.footer-col p,
.footer-col a {
  color: #e8e8e8;
  text-decoration: none;
  font-size: 15px;
  transition: 0.3s;
}

.footer-col a:hover {
  opacity: 0.7;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.information {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-copy {
  margin-top: 40px;
  text-align: center;
  font-size: 14px;
  opacity: 0.6;
}

/* ===================== DESKTOP PAR DÉFAUT ===================== */

/* HEADER */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 20px 40px;
  position: fixed;
  top: 0;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e0e0e0;
  z-index: 9999;
}

/* Burger desktop = caché */
.burger {
  display: none;
}

/* Menu desktop */
.nav-menu {
  display: flex;
  gap: 20px;
}

/* ===================== TABLETTE ===================== */
@media (max-width: 1024px) {

  /* HEADER */
  .header {
      padding: 16px 30px;
      justify-content: space-between;
  }

  .nav-menu {
      gap: 14px;
  }

  /* ===================== SMARTPHONES ===================== */
@media (max-width: 768px) {

  /* Cacher menu desktop */
  .nav-menu {
      display: none;
  }

  /* Afficher burger */
  .burger {
      display: flex;
      flex-direction: column;
      gap: 5px;
      width: 35px;
      height: 28px;
      cursor: pointer;
      background: transparent;
      border: none;
      z-index: 1000;
  }

  .burger span {
      display: block;
      height: 3px;
      width: 100%;
      background: #0a0a0a;
      border-radius: 5px;
  }

  /* HEADER aligné burger + logo */
  .header {
      justify-content: flex-start;
      gap: 15px;
      padding: 10px 20px;
  }

/* MENU MOBILE MODERNE */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0; 
  transform: translateX(-100%); /* complètement hors écran */
  width: 180px; /* moins large */
  height: 100vh;
  background: #fff;
  padding: 50px 15px; /* moins de padding pour resserrer le menu */
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 10000;
  box-shadow: 2px 0 20px rgba(0,0,0,0.15);
  transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1); /* slide fluide */
}

/* Liens */
.mobile-menu a {
  color: #0a0a0a;
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
  padding: 8px 0; /* un peu moins de padding vertical */
  transition: color 0.3s ease;
}

.mobile-menu a:hover {
  color: #F0E6F2; /* couleur hover moderne */
}

/* Afficher le menu */
.mobile-menu.open {
  transform: translateX(0); /* glisse dans la fenêtre */
}

/* Fond sombre léger pour overlay */
.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.25);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease;
  z-index: 9998;
}

.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}