/* =========================================================
   SUITE DÉTENTE — EXTRAS · Système de design
   Ambiance love room : romantique, élégant, tamisé.
   3 directions via [data-theme] : sombre · rose · velours
   ========================================================= */

:root {
  /* Typo (surchargée par les tweaks) */
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Jost", system-ui, sans-serif;

  /* Accent magenta de la marque (surchargé par tweak) */
  --accent: #d61f93;

  /* Rayons & ombres */
  --r-card: 18px;
  --r-pill: 999px;
  --shadow-soft: 0 18px 50px -20px rgba(20, 6, 24, .55);
  --shadow-lift: 0 30px 80px -30px rgba(20, 6, 24, .7);

  --maxw: 1180px;
}

/* ---------- DIRECTION 1 · SOMBRE ROMANTIQUE (défaut) ---------- */
[data-theme="sombre"] {
  --bg: #1a0e1f;
  --bg-2: #221229;
  --surface: rgba(255, 255, 255, .045);
  --surface-2: rgba(255, 255, 255, .07);
  --border: rgba(255, 255, 255, .10);
  --text: #f8eef5;
  --muted: #c6a8c0;
  --gold: #e3bd86;
  --hero-glow: radial-gradient(120% 130% at 50% 18%,
      #ff6ad0 0%, #d31f95 26%, #7e2a86 52%, #3a1648 76%, #1a0e1f 100%);
  --card-bg: rgba(255, 255, 255, .05);
  --card-border: rgba(255, 255, 255, .09);
  --on-accent: #fff;
  --nav-bg: rgba(26, 14, 31, .72);
  --footer-bg: #150a19;
}

/* ---------- DIRECTION 2 · ROSÉ ÉLÉGANT ---------- */
[data-theme="rose"] {
  --bg: #fbeef2;
  --bg-2: #fff6f9;
  --surface: #ffffff;
  --surface-2: #fdeef3;
  --border: rgba(120, 30, 80, .14);
  --text: #3a1230;
  --muted: #8a5a78;
  --gold: #b98a4e;
  --hero-glow: radial-gradient(120% 130% at 50% 18%,
      #ff8ad8 0%, #d6479e 28%, #9c3a86 54%, #b67aa8 78%, #fbeef2 100%);
  --card-bg: #ffffff;
  --card-border: rgba(120, 30, 80, .12);
  --on-accent: #fff;
  --nav-bg: rgba(255, 246, 249, .82);
  --footer-bg: #fff6f9;
}

/* ---------- DIRECTION 3 · OR & VELOURS ---------- */
[data-theme="velours"] {
  --bg: #140912;
  --bg-2: #1c0d18;
  --surface: rgba(227, 189, 134, .05);
  --surface-2: rgba(227, 189, 134, .09);
  --border: rgba(227, 189, 134, .18);
  --text: #f4e9dd;
  --muted: #c8a98e;
  --gold: #e9c891;
  --accent: #c41f7e;
  --hero-glow: radial-gradient(120% 130% at 50% 16%,
      #e85ab0 0%, #a01f74 24%, #4e1340 52%, #2a0c22 78%, #140912 100%);
  --card-bg: rgba(227, 189, 134, .06);
  --card-border: rgba(227, 189, 134, .20);
  --on-accent: #1a0712;
  --nav-bg: rgba(20, 9, 18, .74);
  --footer-bg: #100711;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
}

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

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  margin: 0;
  letter-spacing: .005em;
}

a { color: inherit; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .32em;
  font-size: 12px;
  font-weight: 500;
  color: var(--gold);
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: var(--r-pill);
  padding: 15px 30px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: transform .18s ease, box-shadow .25s ease, filter .2s ease, background .2s;
  text-decoration: none;
}
.btn-primary {
  color: var(--on-accent);
  background: linear-gradient(120deg, var(--accent), color-mix(in oklab, var(--accent), #ff8fd6 55%));
  box-shadow: 0 14px 34px -12px color-mix(in oklab, var(--accent), transparent 35%);
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn-ghost {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--surface); transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: var(--nav-bg);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 76px; }
.brand { display: flex; flex-direction: column; line-height: 1; text-decoration: none; }
.brand b { font-family: var(--font-display); font-size: 25px; font-weight: 600; letter-spacing: .01em; }
.brand span { font-size: 10px; letter-spacing: .42em; text-transform: uppercase; color: var(--gold); margin-top: 4px; padding-left: 2px; }
.nav-links { display: flex; gap: 30px; margin-left: auto; }
.nav-links a {
  text-decoration: none; font-size: 13px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  padding: 6px 0; position: relative; transition: color .2s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--accent); transition: width .25s ease;
}
.nav-links a:hover::after { width: 100%; }
.cart-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: var(--r-pill);
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
}
.cart-btn:hover { background: var(--surface); }
.cart-count {
  position: absolute; top: -5px; right: -5px; min-width: 20px; height: 20px; padding: 0 5px;
  background: var(--accent); color: var(--on-accent); border-radius: 999px;
  font-size: 11px; font-weight: 700; display: grid; place-items: center;
}

/* ---------- HERO ---------- */
.hero { position: relative; overflow: hidden; }
.hero-glow { position: absolute; inset: 0; background: var(--hero-glow); }
.hero-grain { position: absolute; inset: 0; opacity: .5; mix-blend-mode: overlay;
  background-image: radial-gradient(rgba(255,255,255,.10) 1px, transparent 1px);
  background-size: 4px 4px; }
.hero-inner { position: relative; text-align: center; padding: 96px 28px 110px; max-width: 880px; margin: 0 auto; }
.hero h1 { font-size: clamp(40px, 6.4vw, 76px); color: #fff; text-shadow: 0 4px 40px rgba(40,5,40,.45); }
.hero h1 em { font-style: italic; color: #ffe6f6; }
.hero p { color: rgba(255,255,255,.9); font-size: clamp(16px, 2vw, 21px); max-width: 600px; margin: 22px auto 36px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px;
  padding: 8px 18px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  color: #fff; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; font-weight: 500;
  backdrop-filter: blur(6px);
}

/* ---------- SECTION ---------- */
.section { padding: 86px 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 52px; }
.section-head h2 { font-size: clamp(32px, 4.6vw, 52px); margin: 14px 0 0; }
.section-head p { color: var(--muted); margin: 16px 0 0; font-size: 17px; }

/* ---------- GRILLE PRODUITS ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--r-card);
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-soft);
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s, border-color .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); border-color: color-mix(in oklab, var(--accent), transparent 55%); }
.card-media { position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); }
.card-media image-slot { width: 100%; height: 100%; }

/* ---------- CARROUSEL ---------- */
.carousel { position: absolute; inset: 0; overflow: hidden; }
.carousel-track { display: flex; height: 100%; transition: transform .55s cubic-bezier(.4,.0,.2,1); }
.carousel-track img { width: 100%; height: 100%; flex: 0 0 100%; object-fit: cover; }
.car-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 38px; height: 38px; border-radius: 999px; border: 1px solid rgba(255,255,255,.3);
  background: rgba(18,7,20,.42); color: #fff; font-size: 22px; line-height: 1;
  display: grid; place-items: center; backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .25s, background .2s;
}
.card-media:hover .car-nav, .modal-media:hover .car-nav { opacity: 1; }
.car-nav:hover { background: rgba(18,7,20,.75); }
.car-nav.prev { left: 12px; }
.car-nav.next { right: 12px; }
.car-dots { position: absolute; bottom: 12px; left: 0; right: 0; z-index: 3; display: flex; gap: 7px; justify-content: center; }
.car-dot { width: 7px; height: 7px; border-radius: 999px; border: 0; padding: 0; background: rgba(255,255,255,.45); transition: all .2s; }
.car-dot.on { background: #fff; width: 22px; }
.modal-media .car-nav { opacity: 1; }
.card-tag {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  padding: 7px 14px; border-radius: var(--r-pill);
  background: rgba(20,8,22,.55); color: #fff; backdrop-filter: blur(8px);
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600;
  border: 1px solid rgba(255,255,255,.2);
}
.card-body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 30px; }
.card-desc { color: var(--muted); font-size: 14.5px; margin: 12px 0 0; }
.feature-list { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-direction: column; gap: 9px; }
.feature-list li { display: flex; gap: 10px; font-size: 14px; color: var(--text); align-items: flex-start; }
.feature-list svg { flex: 0 0 auto; margin-top: 2px; color: var(--accent); }
.card-foot { margin-top: auto; padding-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.price { font-family: var(--font-display); font-size: 36px; font-weight: 600; line-height: 1; }
.price small { font-family: var(--font-body); font-size: 13px; color: var(--muted); margin-left: 4px; }

/* ---------- OPTIONS (segmented + stepper) ---------- */
.opt-group { margin-top: 20px; }
.opt-label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 10px; }
.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-pill); padding: 4px; gap: 4px; }
.seg button {
  border: 0; background: transparent; color: var(--muted);
  padding: 9px 18px; border-radius: var(--r-pill); font-size: 13px; font-weight: 600;
  transition: all .18s; white-space: nowrap;
}
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.check-opt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); cursor: pointer; transition: border-color .2s, background .2s; }
.check-opt:hover { border-color: color-mix(in oklab, var(--accent), transparent 50%); }
.check-opt input { accent-color: var(--accent); width: 18px; height: 18px; }
.check-opt .co-price { margin-left: auto; font-weight: 600; color: var(--gold); }

.stepper { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: var(--r-pill); overflow: hidden; background: var(--surface-2); }
.stepper button { width: 40px; height: 40px; border: 0; background: transparent; color: var(--text); font-size: 20px; line-height: 1; }
.stepper button:hover { background: var(--surface); }
.stepper span { min-width: 36px; text-align: center; font-weight: 600; }

/* ---------- MODAL ---------- */
.overlay { position: fixed; inset: 0; z-index: 60; background: rgba(12,4,14,.62); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 24px; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(18px) scale(.98); } }
.modal { width: min(640px, 100%); max-height: 90vh; overflow: auto; background: var(--bg-2); border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow-lift); animation: pop .3s cubic-bezier(.2,.8,.2,1); }
.modal-media { aspect-ratio: 16/9; background: var(--surface-2); position: relative; }
.modal-media image-slot { width: 100%; height: 100%; }
.modal-body { padding: 30px 32px 34px; }
.modal-close { position: absolute; top: 16px; right: 16px; z-index: 3; width: 40px; height: 40px; border-radius: 999px; background: rgba(12,4,14,.5); border: 1px solid rgba(255,255,255,.22); color: #fff; display: grid; place-items: center; }
.modal-close:hover { background: rgba(12,4,14,.8); }

/* ---------- DRAWER PANIER ---------- */
.drawer-scrim { position: fixed; inset: 0; z-index: 70; background: rgba(12,4,14,.5); backdrop-filter: blur(4px); animation: fade .25s ease; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); z-index: 71; background: var(--bg-2); border-left: 1px solid var(--border); display: flex; flex-direction: column; box-shadow: -30px 0 80px -30px rgba(10,3,12,.8); animation: slidein .32s cubic-bezier(.2,.8,.2,1); }
@keyframes slidein { from { transform: translateX(100%); } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 24px 26px; border-bottom: 1px solid var(--border); }
.drawer-head h3 { font-size: 26px; }
.drawer-items { flex: 1; overflow: auto; padding: 14px 26px; display: flex; flex-direction: column; gap: 14px; }
.line { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.line:last-child { border-bottom: 0; }
.line-thumb { width: 70px; height: 70px; border-radius: 12px; background: var(--surface-2); flex: 0 0 auto; overflow: hidden; }
.line-thumb image-slot { width: 100%; height: 100%; }
.line-info { flex: 1; min-width: 0; }
.line-info b { font-family: var(--font-display); font-size: 19px; font-weight: 600; }
.line-opts { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.line-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.line-remove { background: none; border: 0; color: var(--muted); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; padding: 0; }
.line-remove:hover { color: var(--accent); }
.drawer-foot { padding: 22px 26px 26px; border-top: 1px solid var(--border); background: var(--surface); }
.tot-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.tot-row.grand { font-size: 20px; color: var(--text); font-weight: 700; margin: 14px 0 18px; }
.tot-row.grand span:last-child { font-family: var(--font-display); font-size: 28px; }
.empty-cart { text-align: center; color: var(--muted); padding: 60px 24px; }
.empty-cart svg { color: var(--border); margin-bottom: 14px; }

/* ---------- CHECKOUT ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: 12px; background: var(--surface);
  border: 1px solid var(--border); color: var(--text); font-size: 15px; font-family: inherit;
  transition: border-color .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.pay-methods { display: flex; flex-direction: column; gap: 12px; margin: 8px 0 22px; }
.pay-opt { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1.5px solid var(--border); border-radius: 14px; background: var(--surface); cursor: pointer; transition: all .2s; }
.pay-opt[data-on="true"] { border-color: var(--accent); background: var(--surface-2); }
.pay-opt .radio { width: 20px; height: 20px; border-radius: 999px; border: 2px solid var(--border); flex: 0 0 auto; display: grid; place-items: center; }
.pay-opt[data-on="true"] .radio { border-color: var(--accent); }
.pay-opt[data-on="true"] .radio::after { content: ""; width: 10px; height: 10px; border-radius: 999px; background: var(--accent); }
.pay-opt .pay-name { font-weight: 600; font-size: 15px; }
.pay-opt .pay-sub { font-size: 12.5px; color: var(--muted); }
.pay-logo { margin-left: auto; display: flex; align-items: center; gap: 5px; flex-shrink: 0; }
.pay-logo svg { display: block; box-shadow: 0 1px 4px rgba(0,0,0,.35); }

.mock-card { padding: 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); margin-bottom: 18px; }
.secure-note { display: flex; align-items: center; gap: 8px; justify-content: center; color: var(--muted); font-size: 12.5px; margin-top: 14px; }

/* succès */
.success { text-align: center; padding: 30px 10px; }
.success .check-circle { width: 84px; height: 84px; border-radius: 999px; background: color-mix(in oklab, var(--accent), transparent 80%); display: grid; place-items: center; margin: 0 auto 22px; color: var(--accent); }

/* ---------- FOOTER ---------- */
.footer { background: var(--footer-bg); border-top: 1px solid var(--border); padding: 64px 0 36px; margin-top: 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer h4 { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin: 0 0 16px; font-family: var(--font-body); font-weight: 600; }
.footer a, .footer p { color: var(--muted); text-decoration: none; font-size: 14px; display: block; margin-bottom: 9px; }
.footer a:hover { color: var(--text); }
.footer-brand b { font-family: var(--font-display); font-size: 26px; }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 13px; }
.trust { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 18px; }
.trust span { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.trust svg { color: var(--gold); }

/* bandeau réassurance */
.assur { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 30px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.assur-item { text-align: center; padding: 8px; }
.assur-item svg { color: var(--accent); margin-bottom: 10px; }
.assur-item b { display: block; font-family: var(--font-display); font-size: 19px; }
.assur-item p { color: var(--muted); font-size: 13px; margin: 4px 0 0; }

/* ---------- BOUTON WHATSAPP FLOTTANT ---------- */
.wa-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 50;
  display: inline-flex; align-items: center; gap: 12px;
  height: 60px; padding: 0 22px 0 18px;
  border-radius: var(--r-pill);
  color: #fff; text-decoration: none; font-weight: 600; font-size: 15px;
  letter-spacing: .01em;
  background: linear-gradient(120deg, var(--accent), color-mix(in oklab, var(--accent), #ff8fd6 55%));
  box-shadow: 0 16px 38px -12px color-mix(in oklab, var(--accent), transparent 25%), 0 4px 14px rgba(20,6,24,.4);
  transition: transform .2s ease, box-shadow .25s ease, filter .2s ease;
}
.wa-fab:hover { transform: translateY(-3px); filter: brightness(1.05); }
.wa-fab svg { flex: 0 0 auto; }
.wa-fab::before {
  content: ""; position: absolute; inset: -4px; border-radius: var(--r-pill);
  border: 2px solid color-mix(in oklab, var(--accent), transparent 55%);
  animation: wa-pulse 2.4s ease-out infinite; pointer-events: none;
}
@keyframes wa-pulse { 0% { transform: scale(1); opacity: .7; } 70% { transform: scale(1.12); opacity: 0; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .wa-fab::before { animation: none; } }

@media (max-width: 560px) {
  .wa-fab { right: 16px; bottom: 16px; height: 56px; padding: 0 16px; }
  .wa-label { display: none; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .assur { grid-template-columns: repeat(2, 1fr); }
  .field-row { grid-template-columns: 1fr; }
}
