:root {
  --ivory: #fbf7f2;
  --paper: #ffffff;
  --sand: #efe6da;
  --ink: #1c1917;
  --ink-soft: #57534e;
  --gold: #b08d57;
  --gold-light: #d4b27a;
  --rouge: #9f1239;
  --wa: #1fa855;
  --radius: 16px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  padding-bottom: env(safe-area-inset-bottom);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0; }
.muted { color: var(--ink-soft); }
.eyebrow {
  text-transform: uppercase; letter-spacing: .18em; font-size: 11px;
  font-weight: 700; color: var(--gold); margin: 0 0 10px;
}

/* ---------- Bandeau offre ---------- */
.offer-bar {
  background: var(--rouge); color: #fff; text-align: center;
  font-size: 12.5px; font-weight: 600; padding: 9px 16px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px;
}
.countdown { font-variant-numeric: tabular-nums; opacity: .9; font-weight: 700; }

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  background: rgba(251, 247, 242, .92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(28, 25, 23, .06);
}
.logo { text-decoration: none; display: inline-flex; align-items: baseline; gap: 6px; margin: 0; }
.logo-main { font-family: var(--serif); font-size: 28px; font-weight: 600; font-style: italic; }
.logo-sub { font-size: 10.5px; letter-spacing: .35em; text-transform: uppercase; font-weight: 700; color: var(--gold); }
.logo.small .logo-main { font-size: 24px; }
.top-wa {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--ink); color: #fff; text-decoration: none;
  font-weight: 600; font-size: 13px; padding: 9px 14px; border-radius: 999px;
}
.top-wa svg { width: 16px; height: 16px; fill: currentColor; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: 600 15px var(--sans); text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: transform .15s ease, background .2s;
}
.btn:active { transform: scale(.97); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-ghost { background: transparent; border-color: rgba(28, 25, 23, .25); color: var(--ink); }
.btn-gold { background: var(--gold-light); color: var(--ink); }
.btn-wa { background: var(--wa); color: #fff; width: 100%; font-size: 16px; }

/* ---------- Hero ---------- */
.hero {
  padding: 36px 16px 32px;
  background:
    radial-gradient(120% 70% at 100% 0%, rgba(212, 178, 122, .28), transparent 60%),
    radial-gradient(90% 60% at 0% 100%, rgba(159, 18, 57, .08), transparent 60%);
}
.hero h1 { font-size: clamp(40px, 11vw, 64px); }
.hero h1 em { color: var(--gold); }
.hero-sub { font-size: 16px; color: var(--ink-soft); max-width: 34ch; margin: 14px 0 22px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-cta .btn { flex: 1 1 160px; }
.trust {
  list-style: none; padding: 0; margin: 26px 0 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.trust li {
  background: var(--paper); border-radius: 12px; padding: 10px 8px;
  font-size: 11.5px; text-align: center; color: var(--ink-soft);
  box-shadow: 0 1px 0 rgba(28, 25, 23, .05);
}
.trust b { display: block; color: var(--ink); font-size: 13px; }

/* ---------- Teaser ---------- */
.teaser {
  margin: 8px 12px 12px; padding: 32px 18px 26px; border-radius: 24px;
  background: var(--ink); color: #fff; text-align: center; display: grid; gap: 14px;
  background-image: radial-gradient(90% 60% at 50% 0%, rgba(212, 178, 122, .22), transparent 70%);
}
.teaser .eyebrow { color: var(--gold-light); margin: 0; }
.teaser h2 { font-size: 32px; font-style: italic; }
.clock { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 4px 0; }
.clock div {
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(212, 178, 122, .35);
  border-radius: 14px; padding: 12px 4px 8px;
}
.clock b {
  display: block; font-family: var(--serif); font-size: 38px; font-weight: 600; line-height: 1;
  color: var(--gold-light); font-variant-numeric: tabular-nums;
}
.clock span { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.teaser-sub { margin: 0; color: rgba(255, 255, 255, .78); }
.peek { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.peek i {
  display: block; aspect-ratio: 4 / 5; border-radius: 10px; filter: blur(5px) saturate(1.1);
  opacity: .85; animation: shimmer 3s ease-in-out infinite;
}
.peek i:nth-child(2) { animation-delay: .4s; }
.peek i:nth-child(3) { animation-delay: .8s; }
.peek i:nth-child(4) { animation-delay: 1.2s; }
@keyframes shimmer { 50% { opacity: .55; transform: translateY(-3px); } }
.teaser-note { margin: -4px 0 0; font-size: 12px; opacity: .6; }
@media (min-width: 720px) {
  .teaser { margin: 8px 40px 24px; padding: 48px; }
  .teaser > * { max-width: 560px; margin-left: auto; margin-right: auto; width: 100%; }
}

/* ---------- Boutique ---------- */
.shop { padding: 28px 12px 12px; }
.shop-head { padding: 0 4px; }
.shop h2 { font-size: 32px; }
.shop-head p { margin: 4px 0 0; font-size: 13px; }
.filters {
  display: flex; gap: 8px; overflow-x: auto; padding: 16px 4px 14px;
  scrollbar-width: none; position: sticky; top: 61px; z-index: 10; background: var(--ivory);
}
.filters::-webkit-scrollbar { display: none; }
.chip {
  flex: none; border: 1.5px solid rgba(28, 25, 23, .15); background: var(--paper);
  border-radius: 999px; padding: 8px 16px; font: 600 13px var(--sans); color: var(--ink);
  cursor: pointer;
}
.chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }

.card {
  background: var(--paper); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 1px 2px rgba(28, 25, 23, .06), 0 8px 24px -12px rgba(28, 25, 23, .18);
  display: flex; flex-direction: column; cursor: pointer;
  animation: rise .5s ease both;
}
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.card-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--sand); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.04); }

/* Rubans sur les photos */
.ribbon {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: rgba(255, 255, 255, .94); color: var(--ink);
  font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 5px 9px; border-radius: 999px;
}
.discount {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  background: var(--rouge); color: #fff; font-weight: 800; font-size: 13px;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; transform: rotate(-8deg);
  box-shadow: 0 6px 14px -4px rgba(159, 18, 57, .55);
}
.photo-count {
  position: absolute; bottom: 10px; right: 10px; z-index: 2;
  background: rgba(28, 25, 23, .65); color: #fff; font-size: 11px; font-weight: 600;
  padding: 3px 8px; border-radius: 999px;
}
.card.is-sold .card-media > *:not(.sold-tag) { filter: grayscale(.85) opacity(.65); }
.sold-tag {
  position: absolute; inset: 0; z-index: 3; display: grid; place-items: center;
}
.sold-tag span {
  background: var(--ink); color: #fff; font-weight: 800; letter-spacing: .2em;
  font-size: 13px; padding: 8px 16px; transform: rotate(-10deg);
}

.card-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-name { font-family: var(--sans); font-size: 13.5px; font-weight: 600; line-height: 1.3; margin: 0; }
.card-cond { font-size: 11.5px; color: var(--ink-soft); margin: 0; }
.price { margin: 2px 0 0; font-weight: 800; font-size: 16px; }
.price s { font-weight: 500; color: var(--ink-soft); font-size: .82em; margin-left: 6px; }
.price .now-promo { color: var(--rouge); }
.card-cta {
  margin-top: auto; padding-top: 8px;
}
.card-cta a, .card-cta button {
  width: 100%; min-height: 40px; border-radius: 999px; border: 0;
  background: var(--wa); color: #fff; font: 700 12.5px var(--sans);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  text-decoration: none; cursor: pointer;
}
.card.is-sold .card-cta a { background: var(--sand); color: var(--ink); }

/* Illustration provisoire (en attendant les vraies photos) */
.ph { width: 100%; height: 100%; display: grid; place-items: center; position: relative; }
.ph svg { width: 42%; opacity: .9; }
.ph small {
  position: absolute; bottom: 12px; left: 0; right: 0; text-align: center;
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .8);
}

/* ---------- Comment commander ---------- */
.how { padding: 36px 16px 8px; }
.how h2 { font-size: 30px; margin-bottom: 16px; }
.how ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.how li {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--paper); border-radius: var(--radius); padding: 14px;
}
.how li span {
  flex: none; width: 32px; height: 32px; border-radius: 50%;
  background: var(--gold-light); display: grid; place-items: center;
  font-family: var(--serif); font-size: 19px; font-weight: 600;
}

.promises { padding: 28px 16px; display: grid; gap: 18px; }
.promises h3 { font-size: 22px; margin-bottom: 4px; }
.promises p { margin: 0; color: var(--ink-soft); }
.promises div { border-left: 2px solid var(--gold-light); padding-left: 14px; }

.join {
  margin: 8px 12px 28px; padding: 32px 20px; border-radius: 24px;
  background: var(--ink); color: #fff; text-align: center;
}
.join h2 { font-size: 28px; }
.join p { color: rgba(255, 255, 255, .75); margin: 10px 0 20px; }

.foot { text-align: center; padding: 20px 16px 100px; font-size: 13px; }
.foot p { margin: 6px 0; }

/* ---------- Bouton flottant ---------- */
.fab {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 30;
  width: 58px; height: 58px; border-radius: 50%; background: var(--wa);
  display: grid; place-items: center; box-shadow: 0 10px 24px -6px rgba(31, 168, 85, .6);
  animation: pulse 2.6s ease-in-out infinite;
}
.fab svg { width: 30px; height: 30px; fill: #fff; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }

/* ---------- Fiche produit (bottom sheet) ---------- */
.sheet {
  border: 0; padding: 0; margin: auto auto 0; width: 100%; max-width: 520px;
  max-height: 94dvh; border-radius: 24px 24px 0 0; background: var(--paper); color: var(--ink);
  overflow-y: auto; overscroll-behavior: contain;
}
.sheet[open] { animation: up .3s ease; }
@keyframes up { from { transform: translateY(40px); opacity: .4; } }
.sheet::backdrop { background: rgba(28, 25, 23, .55); backdrop-filter: blur(2px); }
.sheet-close {
  position: absolute; top: 12px; right: 12px; z-index: 5;
  width: 38px; height: 38px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .92); font-size: 24px; line-height: 1; cursor: pointer;
}
.gallery {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  aspect-ratio: 4 / 5; background: var(--sand);
}
.gallery::-webkit-scrollbar { display: none; }
.gallery > * { flex: 0 0 100%; scroll-snap-align: center; height: 100%; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.dots { display: flex; justify-content: center; gap: 6px; padding: 10px 0 0; min-height: 18px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--sand); transition: .2s; }
.dots i.on { background: var(--ink); width: 18px; border-radius: 6px; }
.sheet-body { padding: 10px 20px 24px; display: grid; gap: 10px; }
.sheet-body h3 { font-size: 30px; }
.sheet-body .eyebrow { margin: 0; }
.sheet-body .price { font-size: 22px; margin: 0; }
.facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.facts li { background: var(--ivory); border-radius: 999px; padding: 5px 11px; font-size: 12px; font-weight: 600; }
.desc { margin: 0; color: var(--ink-soft); }

/* ---------- Tablette / ordinateur ---------- */
@media (min-width: 720px) {
  .hero { padding: 72px 40px 56px; }
  .shop, .how, .promises { padding-left: 40px; padding-right: 40px; }
  .grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .promises { grid-template-columns: repeat(3, 1fr); }
  .how ol { grid-template-columns: repeat(3, 1fr); }
  .join { margin: 8px 40px 40px; }
  .sheet { margin: auto; border-radius: 24px; max-height: 90vh; }
}
@media (min-width: 1100px) {
  .grid { grid-template-columns: repeat(4, 1fr); }
  main, .top { max-width: 1240px; margin-left: auto; margin-right: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
