:root {
  --pink-50: #fff5f9;
  --pink-100: #ffe4ef;
  --pink-200: #ffc9df;
  --pink-300: #ffa6c9;
  --pink-400: #ff7fb0;
  --pink-500: #ff5c9d;
  --pink-600: #f43f8e;
  --pink-700: #d81b73;
  --plum: #6d2452;
  --ink: #3a2233;
  --muted: #9b7d8d;
  --gold: #c8a35a;
  --gold-soft: #e7d2a6;
  --white: #ffffff;
  --shadow: 0 18px 40px rgba(216, 27, 115, 0.14);
  --shadow-sm: 0 6px 20px rgba(216, 27, 115, 0.09);
  --radius: 22px;
  --radius-sm: 14px;
  --wa: #25d366;
  --wa-dark: #1da851;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Quicksand', 'Segoe UI', system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 50% -80px, rgba(255, 166, 201, 0.35), transparent 60%),
    linear-gradient(180deg, #fff1f7 0%, #fff8fb 100%);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand {
  font-family: 'Playfair Display', 'Poppins', serif;
}

img { max-width: 100%; display: block; }

button { font-family: inherit; cursor: pointer; border: none; }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid rgba(255, 201, 223, 0.6);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 16px;
  max-width: 1100px;
  margin: 0 auto;
}
.brand {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: linear-gradient(90deg, var(--pink-700), var(--pink-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand .dot { color: var(--gold); -webkit-text-fill-color: var(--gold); }
.header-left { display: flex; align-items: center; gap: 10px; }
.menu-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--pink-100); color: var(--pink-700);
  transition: background 0.2s ease, transform 0.15s ease;
}
.menu-btn:hover { background: var(--pink-200); }
.menu-btn:active { transform: scale(0.94); }
.menu-btn svg { width: 22px; height: 22px; }

/* Tiroir des collections */
.drawer-backdrop {
  position: fixed; top: var(--header-h, 66px); left: 0; right: 0; bottom: 0;
  background: transparent;
  z-index: 35;
  opacity: 0; visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.drawer-backdrop.open { opacity: 1; visibility: visible; }
.drawer {
  position: absolute; top: 0; left: 0; bottom: 0;
  width: 68%; max-width: 250px;
  background: #fff;
  box-shadow: 8px 0 30px rgba(58, 34, 51, 0.22);
  transform: translateX(-100%);
  transition: transform 0.28s ease;
  display: flex; flex-direction: column;
  padding-bottom: 20px;
}
.drawer-backdrop.open .drawer { transform: translateX(0); }
.drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--pink-100);
  font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 600; color: var(--plum);
}
.drawer-list { list-style: none; padding: 10px 12px; overflow-y: auto; }
.drawer-list li { margin: 2px 0; }
.drawer-list button {
  width: 100%; text-align: left;
  background: none; color: var(--ink);
  padding: 13px 14px; border-radius: 12px;
  font-weight: 600; font-size: 0.98rem;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  transition: background 0.15s ease, color 0.15s ease;
}
.drawer-list button:hover { background: var(--pink-50); }
.drawer-list button.active { background: linear-gradient(90deg, var(--pink-600), var(--pink-400)); color: #fff; }
.drawer-list .dl-count { font-size: 0.8rem; font-weight: 700; opacity: 0.7; }
.header-actions { display: flex; gap: 8px; align-items: center; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--pink-100);
  color: var(--pink-700);
  padding: 9px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  transition: transform 0.15s ease, background 0.2s ease;
}
.icon-btn:hover { background: var(--pink-200); transform: translateY(-1px); }
.icon-btn svg { width: 18px; height: 18px; }
.cart-btn { position: relative; }
.cart-count {
  background: var(--pink-600); color: #fff;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  font-size: 0.7rem; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 26px 16px 18px;
}
.hero .tagline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--gold-soft);
  color: var(--plum);
  padding: 7px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 14px;
}
.hero .tagline::before,
.hero .tagline::after { content: '\2726'; color: var(--gold); font-size: 0.7rem; }
.hero h1 {
  font-size: clamp(1.7rem, 6vw, 3rem);
  line-height: 1.1;
  font-weight: 600;
  color: var(--plum);
  margin-bottom: 10px;
}
.hero h1 em { font-style: italic; color: var(--pink-600); }
.hero p { color: var(--muted); max-width: 520px; margin: 0 auto; font-size: 0.95rem; line-height: 1.55; }
.hero .divider {
  width: 54px; height: 2px; margin: 14px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ---------- Product grid ---------- */
.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 10px 0 14px;
}
.section-title h2 { font-size: 1.7rem; font-weight: 600; color: var(--plum); }
.count-pill { color: var(--muted); font-size: 0.85rem; font-weight: 600; }

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding-bottom: 40px;
}
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255, 201, 223, 0.45);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}
.card:active { transform: scale(0.98); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

.card-img {
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--pink-100);
  overflow: hidden;
}
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.card:hover .card-img img { transform: scale(1.06); }
.card-img .placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--pink-300); font-size: 2.4rem;
}
.badge {
  position: absolute;
  top: 12px; left: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  backdrop-filter: blur(4px);
}
.badge.in { background: rgba(255, 255, 255, 0.9); color: var(--pink-700); }
.badge.out { background: rgba(58, 34, 51, 0.82); color: #fff; }
.badge.promo { top: auto; bottom: 12px; left: 12px; background: var(--pink-600); color: #fff; }
.badge.star {
  left: auto; right: 12px;
  background: linear-gradient(90deg, var(--gold), #e4c27f);
  color: #4a3410;
  width: 26px; height: 26px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.82rem; border-radius: 50%;
}

.card-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-name { font-weight: 600; font-size: 1rem; color: var(--ink); line-height: 1.25; }
.card-price { color: var(--plum); font-weight: 700; font-size: 1.02rem; letter-spacing: 0.2px; }
.card-price .old { color: var(--muted); font-weight: 500; text-decoration: line-through; font-size: 0.85rem; margin-right: 6px; }
.card-price .from { color: var(--muted); font-weight: 600; font-size: 0.78rem; }
.card-sizes { color: var(--muted); font-size: 0.76rem; margin-top: auto; letter-spacing: 0.2px; }
.card-colors { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0; }
.card-colors .cc-dot {
  width: 18px; height: 18px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,0.12); transition: transform 0.12s, box-shadow 0.12s;
}
.card-colors .cc-dot:hover { transform: scale(1.15); }
.card-colors .cc-dot.active { box-shadow: 0 0 0 2px var(--pink-500); }

/* Section coups de coeur */
.featured-title { margin: 18px 0 22px; }
.featured-title h2 {
  font-size: 1.7rem; font-weight: 600; color: var(--plum);
  display: inline-flex; align-items: center; gap: 10px;
}
.featured-title h2 .star-ico { color: var(--gold); }
.featured-title .sub { display: block; color: var(--muted); font-size: 0.9rem; font-weight: 500; margin-top: 4px; }
.card.is-featured { border-color: var(--gold-soft); box-shadow: 0 10px 28px rgba(200, 163, 90, 0.18); }

/* Filtres par collection */
.collection-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.collection-filter:empty { margin: 0; }
.filter-pill {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--pink-200);
  color: var(--plum);
  padding: 8px 16px; border-radius: 999px;
  font-weight: 600; font-size: 0.85rem; transition: all 0.15s;
}
.filter-pill:hover { border-color: var(--pink-400); }
.filter-pill.active { background: linear-gradient(90deg, var(--pink-600), var(--pink-400)); color: #fff; border-color: transparent; }

/* Étiquettes de collection sur les cartes */
.card-collections { display: flex; flex-wrap: wrap; gap: 4px; }
.card-collections span { font-size: 0.66rem; font-weight: 700; color: var(--plum); background: var(--pink-100); padding: 2px 8px; border-radius: 999px; }

/* Bouton flottant WhatsApp */
.contact-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  display: inline-flex; align-items: center; gap: 0;
  background: var(--wa); color: #fff;
  height: 56px; border-radius: 999px;
  padding: 0; width: 56px; justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  text-decoration: none; overflow: hidden;
  transition: width 0.25s ease, background 0.2s ease, transform 0.15s ease;
}
.contact-fab:hover { background: var(--wa-dark); }
.contact-fab:active { transform: scale(0.95); }
.contact-fab svg { width: 30px; height: 30px; flex: 0 0 auto; }
.contact-fab-label {
  max-width: 0; opacity: 0; white-space: nowrap; font-weight: 700; font-size: 0.9rem;
  transition: max-width 0.25s ease, opacity 0.2s ease, margin 0.25s ease;
}
@media (min-width: 640px) {
  .contact-fab { width: auto; padding: 0 20px 0 16px; gap: 10px; }
  .contact-fab-label { max-width: 160px; opacity: 1; }
}

/* Prix dans la fiche produit */
.detail-price .old { color: var(--muted); font-weight: 500; text-decoration: line-through; font-size: 1rem; margin-right: 10px; }
.detail-price .promo-tag {
  font-family: 'Quicksand', sans-serif; font-size: 0.75rem; font-weight: 700;
  background: var(--pink-600); color: #fff; padding: 3px 10px; border-radius: 999px;
  vertical-align: middle; margin-left: 8px;
}
.size-chip small { display: block; font-size: 0.62rem; color: var(--pink-600); font-weight: 700; margin-top: 1px; }
.size-chip.selected small { color: #ffe0ee; }

/* ---------- Panier ---------- */
.cart-item {
  display: flex; gap: 12px; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--pink-50);
}
.cart-item img { width: 58px; height: 72px; object-fit: cover; border-radius: 10px; background: var(--pink-100); flex: 0 0 auto; }
.cart-item .ci-info { flex: 1; min-width: 0; }
.cart-item .ci-name { font-weight: 600; color: var(--ink); line-height: 1.2; }
.cart-item .ci-meta { color: var(--muted); font-size: 0.8rem; margin-top: 2px; }
.cart-item .ci-price { color: var(--plum); font-weight: 700; font-size: 0.92rem; margin-top: 4px; }
.qty-control { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; }
.qty-control button {
  width: 26px; height: 26px; border-radius: 8px; background: var(--pink-100); color: var(--pink-700);
  font-size: 1rem; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.qty-control button:hover { background: var(--pink-200); }
.qty-control .qty { min-width: 20px; text-align: center; font-weight: 700; }
.ci-remove { background: none; color: var(--muted); font-size: 1.3rem; align-self: flex-start; padding: 0 4px; }
.ci-remove:hover { color: var(--pink-600); }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0 2px; }
.cart-total .lbl { font-weight: 600; color: var(--muted); }
.cart-total .amt { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.4rem; color: var(--plum); }
.cart-clear { background: none; color: var(--muted); font-weight: 600; font-size: 0.85rem; text-decoration: underline; }
.cart-clear:hover { color: var(--pink-600); }

/* ---------- Mentions légales ---------- */
.legal-content h4 {
  font-family: 'Playfair Display', serif;
  color: var(--plum);
  font-size: 1.05rem;
  margin: 16px 0 6px;
}
.legal-content h4:first-child { margin-top: 0; }
.legal-content p { color: var(--ink); line-height: 1.6; font-size: 0.92rem; margin-bottom: 8px; }
.legal-content a { color: var(--pink-600); font-weight: 600; text-decoration: none; }
.legal-content a:hover { text-decoration: underline; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  width: 100%;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: linear-gradient(90deg, var(--pink-700), var(--pink-500)); color: #fff; box-shadow: var(--shadow-sm); letter-spacing: 0.3px; }
.btn-primary:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.btn-wa { background: var(--wa); color: #fff; letter-spacing: 0.3px; }
.btn-wa:hover { background: var(--wa-dark); transform: translateY(-1px); }
.btn-ghost { background: var(--pink-100); color: var(--pink-700); }
.btn-ghost:hover { background: var(--pink-200); }
.btn-outline { background: transparent; border: 2px solid var(--pink-300); color: var(--pink-700); }
.btn svg { width: 20px; height: 20px; }

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(58, 34, 51, 0.5);
  backdrop-filter: blur(3px);
  z-index: 100;
  display: none;
  align-items: flex-end;
  justify-content: center;
}
.modal-backdrop.open { display: flex; }
@media (min-width: 640px) { .modal-backdrop { align-items: center; } }

.modal {
  background: var(--white);
  width: 100%;
  max-width: 480px;
  max-height: 92vh;
  overflow-y: auto;
  border-radius: 26px 26px 0 0;
  animation: slideUp 0.28s ease;
  scrollbar-width: none; /* Firefox : pas de barre visible */
}
/* Pas de barre de défilement visible : la vue s'adapte à l'écran */
.modal::-webkit-scrollbar { width: 0; height: 0; display: none; }
@media (min-width: 640px) { .modal { border-radius: 26px; } }
@keyframes slideUp { from { transform: translateY(40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.modal-header {
  position: sticky; top: 0;
  background: #fff;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--pink-100);
  z-index: 2;
}
.modal-header h3 { font-size: 1.15rem; color: var(--plum); }
.close-btn {
  background: var(--pink-100); color: var(--pink-700);
  width: 34px; height: 34px; border-radius: 50%;
  font-size: 1.2rem; display: flex; align-items: center; justify-content: center;
}
.modal-body { padding: 18px; }
.modal-footer { padding: 14px 18px 20px; display: flex; flex-direction: column; gap: 10px; position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--pink-100); }
.btn-row { display: flex; gap: 10px; }
.btn-row .btn { flex: 1; width: auto; padding-left: 10px; padding-right: 10px; }

/* Carousel (glissiere par transformation, sans barre de defilement) */
.carousel { position: relative; border-radius: var(--radius-sm); overflow: hidden; background: var(--pink-50); }
.carousel-track { display: flex; transition: transform 0.3s ease; touch-action: pan-y; }
.carousel-track img {
  width: 100%; flex: 0 0 100%;
  height: min(38vh, 360px);
  object-fit: contain;
  background: var(--pink-50);
  user-select: none; -webkit-user-drag: none;
}
@media (min-width: 640px) {
  .carousel-track img { height: min(56vh, 520px); }
}
.car-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.9); color: var(--pink-600);
  font-size: 1.6rem; line-height: 1; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm); z-index: 3; padding-bottom: 3px;
}
.car-nav:active { transform: translateY(-50%) scale(0.92); }
.car-nav.prev { left: 10px; }
.car-nav.next { right: 10px; }
.carousel-dots { display: flex; gap: 6px; justify-content: center; padding: 10px 0 2px; }
.carousel-dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--pink-200); transition: background 0.2s; }
.carousel-dots span.active { background: var(--pink-500); width: 20px; border-radius: 999px; }

.detail-price { color: var(--plum); font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.55rem; margin: 16px 0 6px; }
.detail-desc {
  color: var(--muted); line-height: 1.6; margin-bottom: 16px; white-space: pre-wrap;
  max-height: 4.8em; overflow-y: auto; padding-right: 8px;
  scrollbar-width: thin; scrollbar-color: var(--pink-200) transparent;
}
.detail-desc::-webkit-scrollbar { width: 6px; }
.detail-desc::-webkit-scrollbar-thumb { background: var(--pink-200); border-radius: 999px; }
@media (min-width: 640px) { .detail-desc { max-height: 7.2em; } }

.field-label { font-weight: 700; font-size: 0.9rem; color: var(--ink); margin: 14px 0 8px; }
.color-options { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.color-swatch {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 8px; border-radius: 999px; border: 2px solid var(--pink-200);
  background: #fff; font-weight: 700; font-size: 0.85rem; color: var(--pink-700); transition: all 0.15s;
}
.color-swatch .sw-dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,0.12); flex: none; }
.color-swatch.selected { background: var(--pink-500); color: #fff; border-color: var(--pink-500); }
.size-options { display: flex; flex-wrap: wrap; gap: 8px; }
.size-chip {
  padding: 9px 16px; border-radius: 12px; border: 2px solid var(--pink-200);
  background: #fff; font-weight: 700; color: var(--pink-700); transition: all 0.15s;
}
.size-chip.selected { background: var(--pink-500); color: #fff; border-color: var(--pink-500); }
.size-options.error .size-chip { border-color: #e11d48; }
.size-options.shake { animation: shake 0.4s ease; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}
.size-hint {
  display: none;
  color: #c81e5b;
  font-weight: 600;
  font-size: 0.85rem;
  margin-top: 8px;
}
.size-hint.show { display: block; }

/* Forms */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 700; font-size: 0.88rem; margin-bottom: 6px; color: var(--ink); }
input[type="text"], input[type="password"], input[type="number"], input[type="tel"], textarea, select {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--pink-100);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--pink-50);
  color: var(--ink);
  transition: border 0.15s;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--pink-400); background: #fff; }
textarea { resize: vertical; min-height: 80px; }

.hint { color: var(--muted); font-size: 0.8rem; margin-top: 4px; }

.alert { padding: 11px 14px; border-radius: var(--radius-sm); font-size: 0.88rem; font-weight: 600; margin-bottom: 14px; }
.alert.error { background: #ffe0e6; color: #c81e5b; }
.alert.success { background: #e0f8ec; color: #1da851; }

/* ---------- Footer ---------- */
.site-footer {
  text-align: center;
  padding: 30px 16px 40px;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--pink-100);
  margin-top: 20px;
}
.site-footer a { color: var(--pink-600); text-decoration: none; font-weight: 600; }

.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-state .emoji { font-size: 3rem; margin-bottom: 12px; }

.loader { text-align: center; padding: 60px; color: var(--pink-400); font-weight: 600; }
.spinner {
  width: 34px; height: 34px; border: 3px solid var(--pink-200); border-top-color: var(--pink-500);
  border-radius: 50%; margin: 0 auto 14px; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
