:root {
  --soil: #0e0a07;
  --soil-2: #17110c;
  --soil-3: #221912;
  --cream: #f3ebdc;
  --cream-dim: #cdbfa8;
  --gold: #d6a85c;
  --gold-hi: #f0cd8a;
  --line: rgba(243, 235, 220, .14);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Manrope", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --header-h: 76px;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body { margin: 0; background: var(--soil); color: var(--cream); font: 400 18px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; letter-spacing: -.01em; margin: 0; }
h1 em, h2 em { font-style: italic; color: var(--gold-hi); }
.wrap { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.eyebrow { font: 600 13px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin: 0 0 18px; }

/* ---------- en-tête ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 20; height: var(--header-h);
  display: flex; align-items: center; gap: 24px; padding: 0 var(--gutter);
  background: linear-gradient(rgba(14, 10, 7, .75), rgba(14, 10, 7, 0));
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; min-width: 0; }
.brand img { width: 74px; height: auto; filter: invert(1) sepia(.35) brightness(.95); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-text strong { font: 500 19px var(--serif); white-space: nowrap; }
.brand-text small { font-size: 12px; color: var(--cream-dim); letter-spacing: .04em; white-space: nowrap; }
.main-nav { display: flex; gap: 28px; }
.main-nav a { text-decoration: none; font-weight: 500; font-size: 16px; padding: 8px 0; border-bottom: 1px solid transparent; transition: border-color .2s, color .2s; }
.main-nav a:hover { color: var(--gold-hi); border-color: var(--gold); }
.cart-btn { position: relative; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: rgba(14, 10, 7, .5); color: var(--cream); cursor: pointer; display: grid; place-items: center; }
.cart-btn svg { width: 22px; height: 22px; }
.cart-count { position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; border-radius: 11px; background: var(--gold); color: var(--soil); font: 700 12px/22px var(--sans); text-align: center; }
@media (max-width: 900px) {
  .main-nav { display: none; }
  .brand-text small { display: none; }
}
@media (max-width: 400px) {
  .brand img { width: 56px; }
  .brand-text strong { font-size: 16px; }
}

/* ---------- haut de page ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: var(--soil); isolation: isolate; }
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#hero-jar { position: absolute; width: auto; max-width: none; opacity: 0; pointer-events: none; z-index: 1; will-change: transform, opacity; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(120% 90% at 70% 45%, transparent 40%, rgba(5, 3, 2, .7) 100%); }

.hero-captions { position: absolute; z-index: 2; left: 0; right: 0; bottom: 14vh; text-align: center; pointer-events: none; }
.hero-captions p { position: absolute; left: 50%; width: min(90vw, 760px); transform: translate(-50%, 12px); margin: 0;
  font: italic 300 clamp(24px, 3.4vw, 44px)/1.2 var(--serif); color: var(--cream); opacity: 0; filter: blur(6px);
  transition: opacity .8s ease, transform .8s ease, filter .8s ease; text-shadow: 0 2px 30px rgba(0, 0, 0, .8); }
.hero-captions p.on { opacity: 1; transform: translate(-50%, 0); filter: none; }
.hero-captions em { color: var(--gold-hi); }

.hero-content { position: absolute; z-index: 3; left: var(--gutter); top: 50%; transform: translateY(-46%); width: min(560px, 46vw); }
.hero-content > * { opacity: 0; transform: translateY(24px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); }
.hero.is-done .hero-content > * { opacity: 1; transform: none; }
.hero.is-done .hero-content > :nth-child(2) { transition-delay: .12s; }
.hero.is-done .hero-content > :nth-child(3) { transition-delay: .24s; }
.hero.is-done .hero-content > :nth-child(4) { transition-delay: .36s; }
.hero.is-done .hero-captions { opacity: 0; transition: opacity .4s; }
.hero h1 { font-size: clamp(40px, 5.4vw, 84px); margin-bottom: 24px; }
.lead { font-size: clamp(17px, 1.35vw, 20px); color: var(--cream-dim); max-width: 34em; margin: 0 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 28px; border-radius: 999px; font: 600 16px var(--sans); text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: transform .2s, background .2s, border-color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: linear-gradient(135deg, var(--gold-hi), var(--gold)); color: #1a120b; box-shadow: 0 10px 30px -10px rgba(214, 168, 92, .6); }
.btn-ghost { border-color: var(--line); color: var(--cream); background: rgba(14, 10, 7, .35); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--gold); }

.hero-tools { position: absolute; z-index: 3; right: var(--gutter); bottom: 22px; display: flex; gap: 8px; }
.hero-tools button { font: 500 13px var(--sans); color: var(--cream-dim); background: rgba(14, 10, 7, .5); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; cursor: pointer; }
.hero-tools button:hover { color: var(--cream); border-color: var(--gold); }
#hero-replay { display: none; }
.hero.is-done #hero-replay { display: inline-block; }
.hero.is-done #hero-skip { display: none; }
.no-webgl #hero-jar { opacity: 1; right: 8vw; top: 18vh; height: 60vh; }

/* écrans en hauteur : la scène en haut, le texte en bas */
@media (max-aspect-ratio: 23/20) {
  .hero { min-height: 640px; }
  .hero-content { top: auto; bottom: 72px; transform: none; width: auto; right: var(--gutter); text-align: center; }
  .hero-content .lead { margin-inline: auto; margin-bottom: 24px; }
  .hero-actions { justify-content: center; }
  .hero h1 { font-size: clamp(34px, 8.4vw, 64px); margin-bottom: 16px; }
  .hero::after { background: linear-gradient(transparent 35%, rgba(5, 3, 2, .92) 78%); }
  .hero-captions { bottom: 26vh; }
  .hero-tools { left: 0; right: 0; justify-content: center; bottom: 16px; }
}
@media (max-aspect-ratio: 23/20) and (max-width: 520px) {
  .lead { display: none; }
  .btn { min-height: 52px; padding: 0 20px; width: 100%; }
}
/* téléphone tenu en horizontal : peu de hauteur */
@media (max-height: 520px) and (min-aspect-ratio: 23/20) {
  .hero { min-height: 360px; }
  .hero h1 { font-size: clamp(28px, 4.6vw, 44px); margin-bottom: 12px; }
  .lead { display: none; }
  .btn { min-height: 46px; padding: 0 18px; font-size: 15px; }
  .eyebrow { margin-bottom: 10px; }
  .hero-content { transform: translateY(-40%); }
}

/* ---------- la maison ---------- */
.maison { padding: clamp(80px, 12vw, 160px) 0; background: linear-gradient(var(--soil), var(--soil-2)); }
.maison-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.maison h2 { font-size: clamp(32px, 3.6vw, 54px); }
.maison-text p { color: var(--cream-dim); margin: 0 0 18px; }
.facts { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; border-top: 1px solid var(--line); padding-top: 28px; }
.facts strong { display: block; font: 400 clamp(30px, 3vw, 44px)/1 var(--serif); color: var(--gold-hi); margin-bottom: 8px; }
.facts span { font-size: 14px; color: var(--cream-dim); }
@media (max-width: 800px) { .maison-grid { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .facts { grid-template-columns: 1fr; } }

.placeholder { padding: 100px 0; border-top: 1px solid var(--line); text-align: center; color: var(--cream-dim); }
.placeholder h2 { color: var(--cream); font-size: clamp(28px, 3vw, 40px); margin-bottom: 12px; }

/* ---------- pied de page ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0; font-size: 14px; color: var(--cream-dim); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.site-footer p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-content > * { transition: none; }
}
