@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Poppins:wght@300;400;500;600&display=swap');

:root {
  --pink: #E8197A;
  --pink-light: #FF69B4;
  --pink-pale: #FFF0F7;
  --pink-mid: #FFD6EC;
  --pink-dark: #B5105A;
  --white: #ffffff;
  --dark: #1A1A2E;
  --gray: #6B7280;
  --gray-light: #F9F0F5;
  --success: #10B981;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Poppins', sans-serif;
  --shadow: 0 4px 20px rgba(232,25,122,0.12);
  --shadow-md: 0 8px 32px rgba(232,25,122,0.18);
  --radius: 16px;
  --radius-sm: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── NAVBAR ── */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--pink-mid);
  padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
  box-shadow: 0 2px 20px rgba(232,25,122,0.08);
}

.navbar-logo img { height: 52px; object-fit: contain; }

.navbar-links {
  display: flex; gap: 2rem; list-style: none;
}
.navbar-links a {
  text-decoration: none; color: var(--dark);
  font-size: 0.9rem; font-weight: 500;
  transition: color 0.2s;
  position: relative;
}
.navbar-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--pink);
  transition: width 0.3s;
}
.navbar-links a:hover::after, .navbar-links a.active::after { width: 100%; }
.navbar-links a:hover { color: var(--pink); }

.navbar-actions { display: flex; align-items: center; gap: 1rem; }

.btn-cart {
  background: var(--pink); color: white; border: none;
  border-radius: 50px; padding: 10px 20px;
  font-family: var(--font-body); font-size: 0.9rem; font-weight: 600;
  cursor: pointer; display: flex; align-items: center; gap: 8px;
  transition: all 0.3s; text-decoration: none;
}
.btn-cart:hover { background: var(--pink-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.cart-badge {
  background: white; color: var(--pink);
  border-radius: 50%; width: 20px; height: 20px;
  font-size: 0.75rem; display: flex; align-items: center; justify-content: center; font-weight: 700;
}

.btn-account {
  background: transparent; border: 1.5px solid var(--pink); color: var(--pink);
  border-radius: 50px; padding: 8px 18px;
  font-family: var(--font-body); font-size: 0.85rem; font-weight: 500;
  cursor: pointer; text-decoration: none; transition: all 0.2s;
}
.btn-account:hover { background: var(--pink); color: white; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; }
.hamburger span { width: 24px; height: 2px; background: var(--dark); border-radius: 2px; transition: all 0.3s; }

/* ── BUTTONS ── */
.btn-primary {
  background: linear-gradient(135deg, var(--pink), var(--pink-dark));
  color: white; border: none; border-radius: 50px;
  padding: 14px 32px; font-family: var(--font-body); font-size: 1rem; font-weight: 600;
  cursor: pointer; transition: all 0.3s; text-decoration: none; display: inline-block;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: transparent; color: var(--pink);
  border: 2px solid var(--pink); border-radius: 50px;
  padding: 12px 28px; font-family: var(--font-body); font-size: 0.95rem; font-weight: 600;
  cursor: pointer; transition: all 0.3s; text-decoration: none; display: inline-block;
}
.btn-secondary:hover { background: var(--pink); color: white; }

.btn-whatsapp {
  background: #25D366; color: white; border: none;
  border-radius: 50px; padding: 12px 24px;
  font-family: var(--font-body); font-size: 0.9rem; font-weight: 600;
  cursor: pointer; transition: all 0.3s; text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
}
.btn-whatsapp:hover { background: #1DA851; transform: translateY(-1px); }

/* ── FLOATING WHATSAPP ── */
.whatsapp-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: white;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: all 0.3s; animation: pulse-green 2.5s infinite;
}
.whatsapp-float:hover { background: #1DA851; transform: scale(1.1); }
.whatsapp-float svg { width: 30px; height: 30px; }

@keyframes pulse-green {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 4px 40px rgba(37,211,102,0.7); }
}

.whatsapp-tooltip {
  position: absolute; right: 72px; background: var(--dark); color: white;
  padding: 6px 12px; border-radius: 8px; font-size: 0.8rem; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.whatsapp-float:hover .whatsapp-tooltip { opacity: 1; }

/* ── FOOTER ── */
footer {
  background: var(--dark); color: rgba(255,255,255,0.85);
  padding: 3rem 2rem 1.5rem;
  margin-top: 4rem;
}
.footer-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem;
  padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand img { height: 48px; margin-bottom: 1rem; filter: brightness(10); }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; color: rgba(255,255,255,0.6); }
.footer-title { font-size: 0.85rem; font-weight: 600; color: var(--pink-light); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--pink-light); }
.footer-bottom {
  max-width: 1200px; margin: 1.5rem auto 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.8rem; color: rgba(255,255,255,0.4);
}
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6); text-decoration: none; font-size: 1rem;
  transition: all 0.2s;
}
.footer-social a:hover { border-color: var(--pink-light); color: var(--pink-light); }

/* ── BADGES / TAGS ── */
.badge {
  display: inline-block; padding: 4px 12px; border-radius: 50px;
  font-size: 0.75rem; font-weight: 600;
}
.badge-new { background: var(--pink-mid); color: var(--pink-dark); }
.badge-sale { background: #FEE2E2; color: #DC2626; }
.badge-best { background: #FEF3C7; color: #D97706; }

/* ── SECTION HEADERS ── */
.section-tag {
  display: inline-block; background: var(--pink-pale); color: var(--pink);
  padding: 6px 16px; border-radius: 50px; font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.05em; margin-bottom: 1rem;
}
.section-title {
  font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700; color: var(--dark); line-height: 1.2;
  margin-bottom: 0.75rem;
}
.section-title span { color: var(--pink); font-style: italic; }
.section-subtitle { color: var(--gray); font-size: 1rem; max-width: 540px; }

/* ── PRODUCT CARD ── */
.product-card {
  background: white; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: all 0.35s; position: relative;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.product-card-img {
  aspect-ratio: 1; overflow: hidden; background: var(--pink-pale);
  position: relative;
}
.product-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.product-card:hover .product-card-img img { transform: scale(1.06); }

.product-card-badge {
  position: absolute; top: 12px; left: 12px;
}
.product-card-actions {
  position: absolute; top: 12px; right: 12px;
  display: flex; flex-direction: column; gap: 8px;
  opacity: 0; transform: translateX(10px); transition: all 0.3s;
}
.product-card:hover .product-card-actions { opacity: 1; transform: translateX(0); }
.icon-btn {
  width: 36px; height: 36px; border-radius: 50%; background: white;
  border: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12); font-size: 1rem; transition: all 0.2s;
}
.icon-btn:hover { background: var(--pink); color: white; }

.product-card-body { padding: 1rem 1.25rem 1.25rem; }
.product-card-name { font-weight: 600; font-size: 0.95rem; margin-bottom: 4px; color: var(--dark); }
.product-card-desc { font-size: 0.8rem; color: var(--gray); margin-bottom: 10px; }
.product-card-footer { display: flex; align-items: center; justify-content: space-between; }
.product-price { font-size: 1.1rem; font-weight: 700; color: var(--pink); }
.product-price-old { font-size: 0.8rem; text-decoration: line-through; color: var(--gray); margin-left: 6px; }
.btn-add-cart {
  background: var(--pink); color: white; border: none;
  border-radius: 50px; padding: 8px 16px; font-size: 0.82rem; font-weight: 600;
  cursor: pointer; font-family: var(--font-body); transition: all 0.2s;
}
.btn-add-cart:hover { background: var(--pink-dark); transform: scale(1.03); }
.btn-add-cart.added { background: var(--success); }

/* ── TOAST NOTIFICATION ── */
.toast {
  position: fixed; top: 90px; right: 24px; z-index: 9999;
  background: var(--dark); color: white; padding: 12px 20px;
  border-radius: var(--radius-sm); font-size: 0.9rem;
  transform: translateX(120%); transition: transform 0.4s ease;
  display: flex; align-items: center; gap: 10px; box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.toast.show { transform: translateX(0); }
.toast-icon { font-size: 1.2rem; }

/* ── FORMS ── */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--dark); }
.form-control {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--pink-mid); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 0.95rem; color: var(--dark);
  background: white; transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-control:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(232,25,122,0.1); }
.form-control::placeholder { color: #aaa; }
select.form-control { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E8197A' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }

/* ── PAGE HEADER ── */
.page-header {
  background: linear-gradient(135deg, var(--pink-pale) 0%, var(--pink-mid) 100%);
  padding: 3rem 2rem 2.5rem;
  text-align: center;
}
.page-header h1 { font-family: var(--font-display); font-size: 2.2rem; color: var(--pink-dark); margin-bottom: 0.5rem; }
.page-header p { color: var(--gray); }
.breadcrumb { display: flex; justify-content: center; gap: 0.5rem; font-size: 0.85rem; color: var(--gray); margin-top: 0.75rem; }
.breadcrumb a { color: var(--pink); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ── STARS ── */
.stars { color: #F59E0B; font-size: 0.9rem; }

/* ── MODAL ── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 2000;
  display: flex; align-items: center; justify-content: center; padding: 1rem;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal {
  background: white; border-radius: var(--radius); max-width: 500px; width: 100%;
  padding: 2rem; transform: translateY(20px); transition: transform 0.3s;
  max-height: 90vh; overflow-y: auto;
}
.modal-overlay.active .modal { transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .navbar-links { display: none; }
  .hamburger { display: flex; }
  .navbar-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 72px; left: 0; right: 0;
    background: white; padding: 1rem 2rem;
    border-bottom: 1px solid var(--pink-mid); box-shadow: var(--shadow);
  }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .navbar { padding: 0 1rem; }
}

/* ── PRODUCT IMAGE HEIGHT FIX ── */
.product-card-img { height: 220px; }
.product-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── SECTION TAG ── */
.section-tag { display: inline-block; background: var(--pink-pale); color: var(--pink); padding: 6px 16px; border-radius: 50px; font-size: .78rem; font-weight: 600; letter-spacing: .05em; margin-bottom: 1rem; }
.section-title { font-family: var(--font-display); font-size: clamp(1.7rem,4vw,2.6rem); font-weight: 700; color: var(--dark); line-height: 1.2; margin-bottom: .75rem; }
.section-title span { color: var(--pink); font-style: italic; }
.section-subtitle { color: var(--gray); font-size: .95rem; max-width: 520px; }

/* ══ AMÉLIORATIONS RESPONSIVE GLOBALES ══ */

/* Popup/modal toujours accessible sur petit écran */
.modal-overlay { align-items: flex-start; padding: 1rem; padding-top: max(1rem, env(safe-area-inset-top)); }
.modal { max-height: calc(100vh - 2rem); overflow-y: auto; }

/* Navbar mobile améliorée */
@media (max-width: 768px) {
  .navbar { height: 60px; padding: 0 1rem; }
  .navbar-logo img { height: 40px; }
  .btn-cart { padding: 8px 14px; font-size: .82rem; }
  .btn-account { display: none; }
  .navbar-links.open { top: 60px; }
  
  /* Page headers */
  .page-header h1 { font-size: 1.6rem; }
  .page-header { padding: 2rem 1.25rem 1.75rem; }
  
  /* Products grid mobile */
  .products-grid { grid-template-columns: repeat(2,1fr); gap: 1rem; }
  .product-card-img { height: 180px; }

  /* Footer mobile */
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; gap: .75rem; text-align: center; font-size: .78rem; }
}

@media (max-width: 400px) {
  .products-grid { grid-template-columns: 1fr; }
  .navbar-actions { gap: .5rem; }
  .cart-badge { width: 18px; height: 18px; font-size: .7rem; }
}

/* Touch-friendly buttons */
@media (hover: none) {
  .btn-primary, .btn-secondary, .btn-add-cart, .btn-cart { min-height: 44px; }
  .qty-btn { width: 36px; height: 36px; }
  .filter-btn { padding: 11px 14px; }
}

/* Floating WhatsApp — au dessus de la barre sticky */
.whatsapp-float { bottom: 72px !important; right: 18px !important; }
@media (max-width: 600px) { .whatsapp-float { bottom: 78px !important; right: 14px !important; width: 50px; height: 50px; } }

/* Section titles responsive */
@media (max-width: 600px) {
  .section-title { font-size: 1.5rem; }
  .section-wrap { padding: 2rem 1.25rem; }
  .featured-header { flex-direction: column; align-items: flex-start; }
}

/* ══ IMAGES PRODUITS CLIQUABLES ══ */
.product-card-img, .prod-img-wrap {
  position: relative;
  cursor: pointer;
}
.product-card-img::after, .prod-img-wrap::after {
  content: '🔍 Voir';
  position: absolute;
  bottom: 10px; left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: rgba(232,25,122,.9);
  color: white;
  font-size: .72rem; font-weight: 700;
  padding: 4px 12px; border-radius: 20px;
  opacity: 0;
  transition: all .25s;
  white-space: nowrap;
  pointer-events: none;
  font-family: 'Poppins', sans-serif;
}
.product-card:hover .product-card-img::after,
.prod-card:hover .prod-img-wrap::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Image zoom on hover */
.product-card-img img, .prod-img-wrap img {
  transition: transform .4s ease;
}
.product-card:hover .product-card-img img,
.prod-card:hover .prod-img-wrap img {
  transform: scale(1.06);
}
