/* CAVE — site vitrine.
 *
 * Parti pris : « la carte d'une grande maison ». Filets fins, petites
 * capitales espacées, entrées numérotées, beaucoup d'air. L'or est un
 * projecteur, pas un plafonnier : deux ou trois touches, pas plus.
 *
 * Jetons : COPIE EXACTE de src/styles/theme.css (brief §5). Si la charte de
 * l'app bouge, ce bloc bouge avec — c'est la seule duplication assumée, le
 * site étant servi à part et ne pouvant pas importer la feuille de l'app.
 */

:root {
  --bx: #6B1E2C;  /* bordeaux — couleur de marque */
  --bd: #4A1520;
  --bs: #8B3545;
  --cr: #FAF6EE;  /* crème — fond */
  --pm: #EFE4D2;  /* parchemin */
  --bg: #F5EDE0;
  --g:  #C8A96A;  /* or */
  --gs: #D4B896;
  --ink: #2A1F1F;
  --is: #5A4A4A;
  --im: #8B7A7A;  /* décoratif UNIQUEMENT — contraste insuffisant pour du texte */
  --ln: rgba(42, 31, 31, .08);
  --ls: rgba(42, 31, 31, .14);
  --sr: #FFFFFF;
  --sh: 0 1px 2px rgba(74, 21, 32, .04), 0 2px 6px rgba(74, 21, 32, .04);
  --on-bx: #FAF6EE; /* texte posé sur le bordeaux */

  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, system-ui, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1120px;
  --gut: 20px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bx: #D4A0A8;
    --bd: #E8C0C8;
    --bs: #C08090;
    --cr: #1A1215;
    --pm: #261C20;
    --bg: #221820;
    --g:  #D4B896;
    --gs: #C8A06A;
    --ink: #F0E8E0;
    --is: #D0C0B8;
    --im: #A09088;
    --ln: rgba(245, 237, 224, .1);
    --ls: rgba(245, 237, 224, .14);
    --sr: #302428;
    --sh: 0 1px 3px rgba(0, 0, 0, .3), 0 2px 8px rgba(0, 0, 0, .2);
    --on-bx: #1A1215;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  background: var(--cr);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--bx); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--bx); outline-offset: 3px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--sr); padding: 8px 14px; }

/* ─── Typographie ─────────────────────────────────────────────────────── */
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 500; letter-spacing: .005em; }
h1 { font-size: clamp(42px, 8vw, 76px); line-height: 1.02; margin: 0 0 20px; }
h2 { font-size: clamp(32px, 5.2vw, 50px); line-height: 1.08; margin: 0 0 16px; }
h3 { font-size: clamp(24px, 3.4vw, 30px); line-height: 1.15; margin: 0 0 8px; }
h1 em, h2 em { font-style: italic; color: var(--bx); }
p { margin: 0 0 16px; }
.sc {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 12px;
  font-weight: 600;
  color: var(--bx);
}
.lede { font-size: clamp(18px, 2.2vw, 21px); color: var(--is); max-width: 36em; }
.muted { color: var(--is); }
.small { font-size: 14px; }

/* Filet de carte : un trait, un losange au centre. */
.rule {
  display: flex; align-items: center; gap: 14px;
  color: var(--g); margin: 0 auto; max-width: 280px;
}
.rule::before, .rule::after { content: ''; flex: 1; height: 1px; background: currentColor; opacity: .7; }
.rule span { width: 6px; height: 6px; transform: rotate(45deg); border: 1px solid currentColor; }

/* ─── Boutons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 26px;
  border-radius: 999px;
  font: 600 16px/1 var(--sans);
  text-decoration: none;
  border: 1px solid var(--bx);
  transition: transform .15s ease, background .15s ease;
}
.btn-primary { background: var(--bx); color: var(--on-bx); }
.btn-primary:hover { background: var(--bd); border-color: var(--bd); }
.btn-ghost { background: transparent; color: var(--bx); }
.btn-ghost:hover { background: var(--pm); }
.btn:active { transform: scale(.98); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 28px 0 14px; }
.cta-note { font-size: 14px; color: var(--is); margin: 0; }

/* ─── En-tête ─────────────────────────────────────────────────────────── */
.top {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--cr) 92%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--ln);
}
.top .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand b { font: 600 24px/1 var(--serif); letter-spacing: .14em; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--is); text-decoration: none; font-size: 15px; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--bx); }
.top-actions { display: flex; align-items: center; gap: 14px; }
.lang { font-size: 13px; font-weight: 600; letter-spacing: .08em; color: var(--is); text-decoration: none; }
.lang:hover { color: var(--bx); }
.top .btn { min-height: 40px; padding: 0 18px; font-size: 14px; }
.menu { display: none; }

@media (max-width: 1100px) {
  .nav, .top-actions .btn { display: none; }
  .top-actions { margin-left: auto; }
  .menu { display: block; position: relative; }
  .menu summary {
    list-style: none; cursor: pointer; width: 44px; height: 44px;
    display: grid; place-items: center; border-radius: 12px;
  }
  .menu summary::-webkit-details-marker { display: none; }
  .menu summary span, .menu summary span::before, .menu summary span::after {
    display: block; width: 20px; height: 1.5px; background: var(--ink); position: relative; content: '';
  }
  .menu summary span::before { position: absolute; top: -6px; }
  .menu summary span::after { position: absolute; top: 6px; }
  .menu[open] summary { background: var(--pm); }
  .menu nav {
    position: absolute; right: 0; top: 52px; width: min(300px, calc(100vw - 32px));
    background: var(--sr); border: 1px solid var(--ls); border-radius: 18px;
    box-shadow: 0 18px 40px rgba(42, 31, 31, .16); padding: 8px;
    display: flex; flex-direction: column;
  }
  .menu nav a { padding: 12px 14px; border-radius: 10px; color: var(--ink); text-decoration: none; }
  .menu nav a:hover { background: var(--pm); }
  .menu nav .btn { margin: 8px 6px 6px; color: var(--on-bx); }
}

/* ─── Sections ────────────────────────────────────────────────────────── */
section { padding: clamp(64px, 10vw, 120px) 0; }
.band { background: var(--pm); }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }
.head { max-width: 720px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.head .sc { display: block; margin-bottom: 14px; }

/* Hero */
.hero { padding-top: clamp(40px, 7vw, 88px); }
.hero .wrap { display: grid; gap: 48px; align-items: center; grid-template-columns: 1.1fr .9fr; }
.hero .sc { display: block; margin-bottom: 18px; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero .phone-stage { order: 2; }
}

/* Appareil : un cadre sobre autour d'une vraie capture. */
.phone-stage { position: relative; display: flex; justify-content: center; }
.phone {
  position: relative;
  width: min(300px, 74vw);
  aspect-ratio: 1290 / 2796;
  border-radius: 46px;
  padding: 10px;
  background: #1b1416;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .06) inset, 0 30px 60px -20px rgba(74, 21, 32, .45), 0 12px 24px -12px rgba(0, 0, 0, .3);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 37px; }
.phone.sm { width: min(250px, 66vw); border-radius: 40px; padding: 9px; }
.phone.sm img { border-radius: 32px; }
.phone-stage .phone.back {
  position: absolute; transform: translate(42%, 8%) rotate(6deg) scale(.86);
  opacity: .96; z-index: -1;
}
@media (max-width: 860px) { .phone-stage .phone.back { display: none; } }

/* Trois moments — les entrées de la carte */
.moments { display: grid; gap: clamp(64px, 9vw, 110px); }
.moment { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.moment:nth-child(even) .moment-text { order: 2; }
.moment-num {
  display: block; font: italic 500 24px/1 var(--serif); color: var(--bx); margin-bottom: 10px;
}
.moment .sc { display: block; margin-bottom: 10px; }
.moment ul { padding: 0; margin: 20px 0 0; list-style: none; }
.moment li { padding: 10px 0 10px 26px; border-top: 1px solid var(--ls); position: relative; color: var(--is); }
.moment li::before {
  content: ''; position: absolute; left: 4px; top: 19px;
  width: 6px; height: 6px; transform: rotate(45deg); border: 1px solid var(--bx);
}
.more { display: inline-block; margin-top: 18px; font-weight: 600; text-decoration: none; }
.more::after { content: ' →'; }
@media (max-width: 760px) {
  .moment { grid-template-columns: 1fr; }
  .moment:nth-child(even) .moment-text { order: 0; }
  .moment .phone-stage { order: 2; }
}

/* Citation du sommelier : la voix, en italique, avec guillemets. */
.voice {
  font: italic 500 clamp(24px, 3.6vw, 34px)/1.3 var(--serif);
  color: var(--ink); max-width: 30em; margin: 0 auto;
}
.voice::before { content: '« '; color: var(--g); }
.voice::after { content: ' »'; color: var(--g); }
:lang(en) .voice::before { content: '“'; }
:lang(en) .voice::after { content: '”'; }
.voice-by { margin-top: 14px; }

/* Profil de goût */
.profile { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 0; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid var(--ls); }
.steps li::before { content: counter(s, upper-roman); font: 500 22px/1.2 var(--serif); color: var(--bx); }
.steps b { display: block; font-weight: 600; margin-bottom: 2px; }
.steps span { color: var(--is); font-size: 15.5px; }
@media (max-width: 760px) { .profile { grid-template-columns: 1fr; } .profile .phone-stage { order: 2; } }

/* Galerie de captures */
.gallery {
  display: flex; gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 10px var(--gut) 30px; margin: 0 calc(var(--gut) * -1);
  scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery figure { margin: 0; scroll-snap-align: center; flex: 0 0 auto; text-align: center; }
.gallery figcaption { font: italic 500 20px/1.3 var(--serif); margin-top: 16px; color: var(--ink); }
@media (min-width: 1100px) { .gallery { justify-content: center; flex-wrap: wrap; overflow: visible; } }

/* Différences — tableau façon carte */
.compare { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--ink); }
.compare-row { display: grid; grid-template-columns: 1fr 1.4fr; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--ls); }
.compare-row b { font: 500 22px/1.25 var(--serif); }
.compare-row p { margin: 0; color: var(--is); }
@media (max-width: 640px) { .compare-row { grid-template-columns: 1fr; gap: 6px; } }

/* Tarif — une entrée de carte avec points de conduite */
.price-card {
  max-width: 560px; margin: 0 auto; background: var(--sr);
  border: 1px solid var(--ls); border-radius: 24px; box-shadow: var(--sh);
  padding: clamp(28px, 5vw, 44px);
  text-align: left;
}
.price-line { display: flex; align-items: baseline; gap: 10px; font: 500 26px/1.2 var(--serif); }
.price-line .dots { flex: 1; border-bottom: 2px dotted var(--gs); transform: translateY(-6px); }
.price-line strong { font-weight: 600; color: var(--bx); white-space: nowrap; }
.price-sub { color: var(--is); margin: 8px 0 22px; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 26px; }
.price-card li { padding: 9px 0 9px 28px; position: relative; border-top: 1px solid var(--ln); }
.price-card li::before { content: '✓'; position: absolute; left: 2px; color: var(--bx); font-weight: 700; }
.price-card .btn { width: 100%; }
.price-card .cta-note { text-align: center; margin-top: 12px; }

/* Stores */
.stores { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 22px; }
.store {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 18px;
  border-radius: 12px; background: var(--ink); color: var(--cr); text-decoration: none;
  font-size: 12px; line-height: 1.15;
}
.store b { display: block; font-size: 16px; font-weight: 600; }
.store svg { width: 22px; height: 22px; flex: none; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--ls); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative;
  font: 500 22px/1.3 var(--serif);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 6px; top: 16px; font: 300 28px/1 var(--sans); color: var(--bx);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 0 20px; color: var(--is); max-width: 44em; }
.faq .a p:last-child { margin: 0; }

/* Pages fonction */
.crumbs { font-size: 14px; color: var(--is); margin: 0 0 24px; }
.crumbs a { color: var(--is); }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 40px; }
.feature { padding: 24px 0; border-top: 1px solid var(--ls); }
.feature h3 { font-size: 24px; }
.feature p { color: var(--is); margin: 0; }
.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.related a {
  display: block; padding: 22px; border: 1px solid var(--ls); border-radius: 18px; background: var(--sr);
  text-decoration: none; color: var(--ink); transition: border-color .15s ease;
}
.related a:hover { border-color: var(--bx); }
.related .sc { display: block; margin-bottom: 6px; }
.related b { font: 500 22px/1.25 var(--serif); }

/* Dernier appel */
.final { background: var(--bx); color: var(--on-bx); text-align: center; }
.final h2 em { color: var(--gs); }
/* En sombre, --bx devient un rose clair : l'or y tombe à 1,08:1 (illisible).
 * L'italique suffit alors à porter l'accent. */
@media (prefers-color-scheme: dark) { .final h2 em { color: var(--on-bx); } }
.final .lede { color: color-mix(in srgb, var(--on-bx) 82%, transparent); }
.final .btn-primary { background: var(--on-bx); color: var(--bx); border-color: var(--on-bx); }
.final .btn-primary:hover { background: var(--pm); }
.final .cta-row { justify-content: center; }
.final .cta-note { color: color-mix(in srgb, var(--on-bx) 78%, transparent); }
.final .store { background: var(--on-bx); color: var(--bx); }

/* ─── Pied de page ────────────────────────────────────────────────────── */
.foot { padding: 56px 0 120px; border-top: 1px solid var(--ls); font-size: 15px; color: var(--is); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot h4 { margin: 0 0 12px; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin: 0 0 8px; }
.foot a { color: var(--is); }
.foot a:hover { color: var(--bx); }
.evin {
  margin-top: 40px; padding: 18px 20px; border: 1px solid var(--ls); border-radius: 14px;
  display: flex; gap: 14px; align-items: center; background: var(--sr);
}
.evin .age {
  flex: none; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--ink);
  display: grid; place-items: center; font: 700 14px/1 var(--sans); color: var(--ink);
}
.evin p { margin: 0; color: var(--ink); font-size: 14.5px; }
.legal-line { margin-top: 24px; font-size: 13.5px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

/* ─── Barre d'action mobile ───────────────────────────────────────────── */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, var(--cr) 94%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid var(--ls);
  display: none; align-items: center; gap: 12px;
}
.dock .btn { flex: 1; min-height: 48px; }
.dock small { font-size: 12.5px; color: var(--is); line-height: 1.3; max-width: 11em; }
@media (max-width: 760px) { .dock { display: flex; } }

/* ─── Carte du sommelier ──────────────────────────────────────────────────
 * Occupe la place d'une capture pas encore fournie (src/shots.mjs). Pure
 * typographie : ni cadre de téléphone ni élément d'interface, pour que rien
 * ne puisse passer pour un écran de l'app. */
.stage {
  margin: 0; width: min(380px, 100%);
  padding: clamp(36px, 6vw, 56px) clamp(24px, 4vw, 40px);
  background: var(--sr); border: 1px solid var(--ls); border-radius: 28px;
  box-shadow: var(--sh); text-align: center;
  display: grid; gap: 22px; justify-items: center;
}
.band .stage { background: var(--cr); }
.stage .rule { width: 100%; max-width: 180px; }
.stage .voice { font-size: clamp(24px, 3vw, 30px); margin: 0; }

/* Section « en pratique » sans capture : une colonne, centrée. */
.solo { max-width: 760px; }
