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

:root {
  --rose-900: #6e1936;
  --rose-700: #9c2b52;
  --rose-500: #c85c7c;
  --rose-200: #f6d9e2;
  --rose-100: #fdf1f4;
  --gold: #c9a15a;
  --gold-light: #e9d5a8;
  --charcoal: #2b2320;
  --ink-soft: #6b5b57;
  --cream: #fffaf7;
  --white: #ffffff;
  --whatsapp: #25d366;
  --whatsapp-dark: #1ebe5b;
  --shadow-sm: 0 2px 10px rgba(110, 25, 54, 0.08);
  --shadow-md: 0 10px 30px rgba(110, 25, 54, 0.14);
  --radius: 16px;
  --radius-sm: 10px;
  --font-display: "Playfair Display", serif;
  --font-body: "Poppins", sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
input, textarea { font: inherit; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; color: var(--rose-900); }

/* ================= BUTTONS ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--rose-700), var(--rose-900));
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { box-shadow: var(--shadow-md); }

.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--white);
}
.btn-whatsapp:hover { background: var(--whatsapp-dark); }

.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.wa-icon { width: 20px; height: 20px; flex-shrink: 0; }

/* ================= HEADER ================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 250, 247, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(110, 25, 54, 0.08);
  transition: box-shadow 0.2s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--rose-900);
  flex-shrink: 0;
}
.logo-icon { font-size: 1.6rem; }
.logo-text em { font-style: normal; color: var(--gold); }

.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--charcoal);
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}
.main-nav a:hover::after { transform: scaleX(1); }

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

.whatsapp-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--whatsapp);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, background 0.15s ease;
}
.whatsapp-pill:hover { background: var(--whatsapp-dark); transform: translateY(-1px); }

.cart-btn {
  position: relative;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--rose-100);
  color: var(--rose-900);
}
.cart-icon { width: 20px; height: 20px; }
.cart-count {
  position: absolute;
  top: -4px; right: -4px;
  background: var(--rose-700);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
}
.burger span {
  width: 22px;
  height: 2px;
  background: var(--rose-900);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================= HERO ================= */
.hero {
  position: relative;
  padding: 100px 0 80px;
  overflow: hidden;
  text-align: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(200, 92, 124, 0.18), transparent 45%),
    radial-gradient(circle at 85% 10%, rgba(201, 161, 90, 0.2), transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(156, 43, 82, 0.12), transparent 50%),
    var(--rose-100);
  z-index: -1;
}
.hero-inner { max-width: 760px; margin: 0 auto; }
.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 16px;
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero-title em { font-style: normal; color: var(--rose-700); }
.hero-sub {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 560px;
  margin: 0 auto 32px;
}
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 36px; }
.hero-trust {
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--ink-soft);
  font-weight: 500;
}

/* ================= PAYMENT INFO BANNER ================= */
.payment-info {
  background: var(--rose-900);
  color: var(--white);
  padding: 28px 0;
}
.payment-info-inner {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}
.payment-info-icon { font-size: 2rem; flex-shrink: 0; }
.payment-info h3 { color: var(--white); font-size: 1.1rem; margin-bottom: 6px; }
.payment-info p { color: rgba(255, 255, 255, 0.85); font-size: 0.92rem; line-height: 1.6; }
.payment-info strong { color: var(--gold-light); }

/* ================= SECTIONS ================= */
.category-section { padding: 70px 0; }
.category-section.alt-bg { background: var(--rose-100); }

.section-head { text-align: center; max-width: 560px; margin: 0 auto 40px; }
.section-eyebrow {
  display: inline-block;
  background: var(--rose-200);
  color: var(--rose-900);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 8px; }
.section-head p { color: var(--ink-soft); font-size: 0.98rem; }

/* ================= PRODUCT GRID ================= */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.product-media { position: relative; aspect-ratio: 1 / 1; background: var(--rose-100); overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-media img.img-placeholder { object-fit: contain; padding: 20%; opacity: 0.6; }

.badge-discount {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--rose-700);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.product-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-name { font-family: var(--font-body); font-size: 0.95rem; font-weight: 600; color: var(--charcoal); line-height: 1.35; min-height: 2.6em; }
.product-note { font-size: 0.78rem; color: var(--gold); font-weight: 500; }

.product-price-row { display: flex; align-items: baseline; gap: 8px; margin-top: auto; }
.price-current { font-size: 1.05rem; font-weight: 700; color: var(--rose-700); }
.price-original { font-size: 0.85rem; color: var(--ink-soft); text-decoration: line-through; }

.btn-add {
  margin-top: 8px;
  background: var(--rose-100);
  color: var(--rose-900);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 10px 14px;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn-add:hover { background: var(--rose-700); color: var(--white); }

/* ================= REVIEWS ================= */
.reviews-section { padding: 70px 0; background: var(--rose-900); }
.reviews-section .section-eyebrow { background: rgba(255,255,255,0.12); color: var(--gold-light); }
.reviews-section .section-head h2 { color: var(--white); }
.reviews-section .section-head p { color: rgba(255,255,255,0.75); }

.reviews-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.review-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 22px;
}
.review-stars { color: var(--gold-light); font-size: 1rem; margin-bottom: 10px; letter-spacing: 2px; }
.review-text { color: rgba(255, 255, 255, 0.88); font-size: 0.9rem; line-height: 1.6; margin-bottom: 14px; }
.review-author { color: var(--white); font-weight: 600; font-size: 0.88rem; }
.review-author span { color: rgba(255, 255, 255, 0.6); font-weight: 400; }

/* ================= FINAL CTA ================= */
.final-cta { padding: 80px 0; text-align: center; background: var(--rose-100); }
.final-cta-inner { max-width: 480px; margin: 0 auto; }
.final-cta h2 { margin-bottom: 10px; }
.final-cta p { color: var(--ink-soft); margin-bottom: 26px; }

/* ================= FOOTER ================= */
.site-footer { background: var(--charcoal); color: rgba(255, 255, 255, 0.8); padding: 56px 0 0; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 30px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-brand .logo-text { font-family: var(--font-display); font-size: 1.3rem; color: var(--white); }
.footer-brand .logo-text em { color: var(--gold); font-style: normal; }
.footer-brand p { margin-top: 10px; font-size: 0.88rem; color: rgba(255, 255, 255, 0.6); }
.footer-links h4, .footer-contact h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 14px; font-family: var(--font-body); }
.footer-links a, .footer-contact a { display: block; font-size: 0.88rem; margin-bottom: 8px; color: rgba(255, 255, 255, 0.7); }
.footer-links a:hover, .footer-contact a:hover { color: var(--gold); }
.footer-contact p { font-size: 0.82rem; color: rgba(255, 255, 255, 0.5); margin-top: 6px; }
.footer-bottom { text-align: center; padding: 20px 0 calc(20px + env(safe-area-inset-bottom)); font-size: 0.8rem; color: rgba(255, 255, 255, 0.45); }

/* ================= WHATSAPP FLOAT ================= */
.whatsapp-float {
  position: fixed;
  bottom: calc(24px + env(safe-area-inset-bottom));
  right: calc(24px + env(safe-area-inset-right));
  width: 60px;
  height: 60px;
  background: var(--whatsapp);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  z-index: 300;
}
.whatsapp-float .wa-icon { width: 30px; height: 30px; }
.wa-float-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--whatsapp);
  animation: wa-pulse 2s ease-out infinite;
}
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.7); opacity: 0; }
}

/* ================= CART DRAWER ================= */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(43, 35, 32, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 400;
}
.overlay.show { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed;
  top: 0; right: 0;
  width: min(400px, 100%);
  height: 100%;
  background: var(--white);
  z-index: 401;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.25s ease;
}
.cart-drawer.open { transform: translateX(0); }

.cart-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--rose-100);
}
.cart-drawer-head h3 { font-size: 1.2rem; }
.icon-btn { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1rem; color: var(--ink-soft); }
.icon-btn:hover { background: var(--rose-100); }

.cart-items { flex: 1; overflow-y: auto; padding: 16px 20px; }
.cart-empty { color: var(--ink-soft); text-align: center; margin-top: 40px; font-size: 0.9rem; }

.cart-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--rose-100); }
.cart-item-img { width: 64px; height: 64px; border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0; background: var(--rose-100); }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-name { font-size: 0.88rem; font-weight: 600; margin-bottom: 4px; }
.cart-item-price { font-size: 0.85rem; color: var(--rose-700); font-weight: 600; margin-bottom: 6px; }

.qty-control { display: flex; align-items: center; gap: 10px; }
.qty-btn {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--rose-100);
  color: var(--rose-900);
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.qty-btn:hover { background: var(--rose-700); color: var(--white); }

.cart-drawer-foot { padding: 20px 20px calc(20px + env(safe-area-inset-bottom)); border-top: 1px solid var(--rose-100); }
.cart-total-row { display: flex; justify-content: space-between; font-weight: 700; font-size: 1.1rem; margin-bottom: 8px; color: var(--rose-900); }
.cart-payment-hint { font-size: 0.82rem; color: var(--ink-soft); margin-bottom: 14px; min-height: 1.2em; }

/* ================= CHECKOUT MODAL ================= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 402;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.modal.open { opacity: 1; pointer-events: auto; }

.modal-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  width: 100%;
  max-width: 480px;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: var(--shadow-md);
}
.modal-card h3 { margin-bottom: 18px; }
.modal-close { position: absolute; top: 16px; right: 16px; }

.checkout-summary { background: var(--rose-100); border-radius: var(--radius-sm); padding: 14px; margin-bottom: 20px; }
.summary-row { display: flex; justify-content: space-between; font-size: 0.85rem; padding: 4px 0; color: var(--ink-soft); }
.summary-total { border-top: 1px solid rgba(110, 25, 54, 0.15); margin-top: 6px; padding-top: 10px; font-weight: 700; color: var(--rose-900); font-size: 0.95rem; }

#checkoutForm { display: flex; flex-direction: column; gap: 14px; }
#checkoutForm label { display: flex; flex-direction: column; gap: 6px; font-size: 0.85rem; font-weight: 600; color: var(--charcoal); }
#checkoutForm input, #checkoutForm textarea {
  border: 1px solid var(--rose-200);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--charcoal);
  background: var(--cream);
}
#checkoutForm input:focus, #checkoutForm textarea:focus { outline: 2px solid var(--rose-500); outline-offset: 1px; }
#checkoutForm textarea { resize: vertical; min-height: 60px; }

.payment-choice { background: var(--rose-100); border-radius: var(--radius-sm); padding: 14px; }
.payment-choice-label { font-size: 0.85rem; font-weight: 600; margin-bottom: 10px; color: var(--charcoal); }
.radio-row { flex-direction: row !important; align-items: center; gap: 8px !important; font-weight: 500 !important; margin-bottom: 8px; }
.radio-row input { width: 16px; height: 16px; }
.payment-forced-note { font-size: 0.78rem; color: var(--rose-700); font-weight: 500; margin-top: 6px; }

/* ================= TOAST ================= */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--charcoal);
  color: var(--white);
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 500;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
  .main-nav {
    position: fixed;
    top: 76px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    gap: 4px;
    box-shadow: var(--shadow-md);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .main-nav.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .main-nav a { width: 100%; padding: 10px 0; }
  .burger { display: flex; }
  .whatsapp-pill span { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .hero { padding: 70px 0 50px; }
  .payment-info-inner { flex-direction: column; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
  .product-name { min-height: auto; }

  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    right: calc(16px + env(safe-area-inset-right));
  }
  .whatsapp-float .wa-icon { width: 24px; height: 24px; }

  /* évite que le bouton flottant recouvre la dernière ligne de produits/avis */
  .category-section:last-of-type,
  .reviews-section {
    padding-bottom: 90px;
  }
}
