/* ==========================================================================
   Maisons Méger — feuille de style commune
   ========================================================================== */
:root {
  --bg: #f1eee9;
  --ink: #2b2926;
  --muted: rgba(43, 41, 38, .76);
  --line: rgba(43, 41, 38, .14);
  --accent: #8a6a44;
  --wine: #e4dccf;
  --glow: #ffffff;
  --sand: #e9dcc5;
  --pearl: #ececea;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.77, 0, .175, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(16px, 4vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 1.2s var(--ease), color 1.2s var(--ease);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--accent); color: var(--bg); }

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 400;
}
.serif { font-family: var(--serif); font-weight: 300; }
.grain::after {
  content: ""; position: fixed; inset: -50%; pointer-events: none; z-index: 90; opacity: .045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); } 20% { transform: translate(-3%,2%); }
  40% { transform: translate(2%,-3%); } 60% { transform: translate(-2%,-1%); } 80% { transform: translate(3%,3%); }
}

/* ---------- Rideau de transition ---------- */
.curtain {
  position: fixed; inset: 0; z-index: 200; pointer-events: none;
  display: grid; place-items: center;
  background: var(--wine);
  transform: translateY(0);
  transition: transform 1.1s var(--ease);
}
.curtain.is-up { transform: translateY(-100%); }
.curtain.is-down-from-bottom { transform: translateY(100%); transition: none; }
.curtain__mark {
  font-family: var(--serif); font-size: clamp(40px, 8vw, 96px); font-style: italic;
  color: var(--accent); opacity: .9; letter-spacing: .04em;
}

/* ---------- Âge légal ---------- */
.age-locked, .age-locked body { overflow: hidden; }
.agegate {
  position: fixed; inset: 0; z-index: 260; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(70% 70% at 50% 40%, #fffdf8, #efe6d6 70%, #e2d3b6);
  transition: opacity .9s var(--ease), visibility 0s .9s;
}
.agegate.is-out { opacity: 0; visibility: hidden; }
.agegate__box { max-width: 560px; text-align: center; color: #3a2e22; }
.agegate__marks { display: flex; justify-content: center; align-items: center; gap: 26px; margin-bottom: 34px; }
.agegate__marks .foil > img { height: 70px; width: auto; }
.agegate .eyebrow { color: #7f5d34; }
.agegate h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(30px, 4vw, 46px); line-height: 1.12; margin: 14px 0 34px; }
.agegate__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.agegate .btn { color: #3a2e22; border-color: #7f5d34; }
.agegate .btn:hover { color: #fff; }
.agegate .btn::before { background: #7f5d34; }
.agegate__msg { min-height: 24px; margin-top: 20px; font-size: 14px; }
.agegate__msg a { text-decoration: underline; }
.agegate__legal { margin-top: 26px; font-size: 11px; letter-spacing: .06em; color: rgba(58,46,34,.75); }

/* ---------- Curseur ---------- */
.cursor, .cursor-ring {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 300; border-radius: 50%;
  transform: translate(-50%, -50%);
}
.cursor { width: 6px; height: 6px; background: var(--accent); }
.cursor-ring {
  width: 38px; height: 38px; border: 1px solid var(--accent); opacity: .55;
  display: grid; place-items: center;
  transition: width .5s var(--ease-out), height .5s var(--ease-out), background-color .4s, opacity .4s;
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--bg);
}
.cursor-ring span { opacity: 0; transition: opacity .3s; }
.cursor-ring.is-hover { width: 84px; height: 84px; background: var(--accent); opacity: .95; }
.cursor-ring.is-hover span { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor, .cursor-ring { display: none; } }

/* ---------- Révélations ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1.2s var(--ease-out), transform 1.2s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; }
.split .w > span { display: inline-block; transform: translateY(110%); transition: transform 1.1s var(--ease-out); }
.split.in .w > span { transform: none; }
.line-draw { transform-origin: left; transform: scaleX(0); transition: transform 1.4s var(--ease); }
.line-draw.in { transform: scaleX(1); }

/* ---------- Boutons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 14px;
  padding: 18px 34px; border: 1px solid var(--accent); color: var(--ink);
  font-size: 12px; letter-spacing: .28em; text-transform: uppercase; overflow: hidden;
  transition: color .6s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; background: var(--accent);
  transform: translateY(101%); transition: transform .6s var(--ease); z-index: -1;
}
.btn:hover { color: var(--bg); }
.btn:hover::before { transform: none; }
.btn { isolation: isolate; }
.btn svg { width: 18px; transition: transform .6s var(--ease); }
.btn:hover svg { transform: translateX(6px); }

/* ==========================================================================
   Page de connexion
   ========================================================================== */
.login {
  min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-columns: 1.15fr 1fr;
}
.login__visual {
  position: relative; overflow: hidden;
  background:
    radial-gradient(70% 60% at 50% 30%, #ffffff 0%, rgba(255,255,255,0) 70%),
    linear-gradient(115deg, #ecebe9 0%, #e6e5e2 40%, #ece2d0 70%, #e5d6bb 100%);
}
.login__visual svg.hills { position: absolute; bottom: 0; width: 130%; max-width: none; left: -15%; animation: drift 24s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translateX(6%); } }
.login__sun {
  position: absolute; width: 46vmin; aspect-ratio: 1; border-radius: 50%;
  left: 50%; top: 38%; transform: translate(-50%, -50%);
  background: radial-gradient(circle, #ffffff 0%, rgba(255,250,240,.75) 30%, rgba(255,255,255,0) 68%);
  animation: breathe 7s ease-in-out infinite;
}
@keyframes breathe { 50% { transform: translate(-50%, -50%) scale(1.12); opacity: .75; } }
.login__brand {
  position: absolute; left: var(--gutter); right: var(--gutter); top: 40px;
  display: flex; justify-content: space-between; align-items: center;
}
.login__quote {
  position: absolute; left: var(--gutter); bottom: 56px; max-width: 520px; z-index: 2;
}
.login__quote p { font-family: var(--serif); font-size: clamp(28px, 3.2vw, 46px); line-height: 1.12; font-style: italic; }
.login__quote .eyebrow { display: block; margin-top: 22px; }

.login__panel {
  position: relative; display: flex; flex-direction: column; justify-content: center;
  padding: 64px clamp(24px, 6vw, 110px); background: #f7f6f3;
}
.login__houses { display: flex; gap: 22px; align-items: center; margin-bottom: 44px; }
.login__houses img { height: 50px; width: auto; }
.monogram {
  width: 58px; height: 58px; border: 1px solid var(--accent); border-radius: 50%;
  display: grid; place-items: center; font-family: var(--serif); font-size: 21px; color: var(--accent);
  font-style: italic; letter-spacing: .02em;
}
.login__houses .amp { font-family: var(--serif); font-style: italic; color: var(--muted); font-size: 24px; }
.login h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 4.6vw, 64px); line-height: 1; margin: 14px 0 14px; }
.login h1 em { color: var(--accent); }
.login__lead { color: var(--muted); max-width: 420px; margin-bottom: 44px; }

.field { position: relative; margin-bottom: 30px; }
.field input {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line);
  color: var(--ink); font: inherit; font-size: 17px; padding: 22px 0 10px; outline: none; border-radius: 0;
}
.field label {
  position: absolute; left: 0; top: 22px; color: var(--muted); font-size: 13px; letter-spacing: .16em; text-transform: uppercase;
  transition: transform .5s var(--ease-out), color .4s; transform-origin: left; pointer-events: none;
}
.field input:focus + label, .field input:not(:placeholder-shown) + label { transform: translateY(-22px) scale(.78); color: var(--accent); }
.field .bar { position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.field input:focus ~ .bar { transform: scaleX(1); }
.field__toggle { position: absolute; right: 0; bottom: 10px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

.check { display: flex; gap: 14px; align-items: flex-start; font-size: 13px; color: var(--muted); margin: 8px 0 14px; cursor: pointer; line-height: 1.5; }
.check input { appearance: none; -webkit-appearance: none; flex: 0 0 18px; width: 18px; height: 18px; border: 1px solid var(--accent); margin-top: 1px; display: grid; place-items: center; cursor: pointer; }
.check input::after { content: ""; width: 8px; height: 8px; background: var(--accent); transform: scale(0); transition: transform .3s var(--ease-out); }
.check input:checked::after { transform: scale(1); }

.login__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-top: 34px; }
.link-u { position: relative; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.link-u::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease); }
.link-u:hover::after { transform: scaleX(1); transform-origin: left; }
.form-error { color: #a4483a; font-size: 13px; min-height: 20px; margin-top: 14px; }
.login__legal { position: absolute; bottom: 24px; left: clamp(24px, 6vw, 110px); right: 24px; font-size: 11px; color: var(--muted); letter-spacing: .06em; }

/* Préchargeur */
.loader {
  position: fixed; inset: 0; z-index: 250; display: grid; place-items: center;
  background: radial-gradient(60% 60% at 50% 45%, #ffffff, #efede9 70%);
  transition: transform 1.2s var(--ease) .2s;
}
.loader.done { transform: translateY(-100%); }
.loader__inner { text-align: center; }
.loader__name { font-family: var(--serif); font-size: clamp(36px, 7vw, 88px); font-weight: 300; line-height: 1; overflow: hidden; }
.loader__name span { display: inline-block; transform: translateY(105%); animation: rise 1.2s var(--ease-out) forwards; }
.loader__name span:nth-child(2) { animation-delay: .12s; font-style: italic; color: var(--accent); }
@keyframes rise { to { transform: none; } }
.loader__bar { width: 180px; height: 1px; background: var(--line); margin: 28px auto 0; overflow: hidden; }
.loader__bar i { display: block; height: 100%; background: var(--accent); transform-origin: left; animation: load 1.6s var(--ease) forwards; }
@keyframes load { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ==========================================================================
   Choix de l'univers
   ========================================================================== */
.universe { display: flex; height: 100vh; height: 100svh; }
.house {
  position: relative; flex: 1; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
  padding: var(--gutter); transition: flex 1.1s var(--ease);
  border-right: 1px solid var(--line);
}
.house:last-child { border-right: 0; }
.house:hover { flex: 1.55; }
.house__bg { position: absolute; inset: 0; transition: transform 1.6s var(--ease-out); }
.house:hover .house__bg { transform: scale(1.06); }
.house--bellevue { --accent: #7f5d34; --rx: 74%; --ry: 44%; }
.house--meger { --accent: #6c6964; --rx: 74%; --ry: 44%; }
.house--bellevue .house__bg { background: radial-gradient(80% 60% at 50% 35%, #fffaf0, #efe4cf 55%, #e2d1b2); }
.house--meger .house__bg { background: radial-gradient(80% 60% at 50% 35%, #ffffff, #ecebe9 55%, #d9d8d5); }
.house__bottle { position: absolute; left: 74%; top: 44%; height: 60vh; transform: translate(-50%, -50%); transition: transform 1.2s var(--ease-out); filter: drop-shadow(0 40px 40px rgba(60,50,40,.28)); }
.house__logo { height: clamp(56px, 6.5vw, 100px); width: auto; }
.house .foil { margin: 14px 0 22px; }
.house__bottle, .hero__bottle, .cuvee-card__bottle, .tech__bottle { aspect-ratio: 120 / 420; }
.house__bottle svg, .hero__bottle > *, .cuvee-card__bottle svg, .tech__bottle svg { height: 100% !important; width: 100% !important; }
.house:hover .house__bottle { transform: translate(-50%, -54%) rotate(-3deg); }
.house__content { position: relative; z-index: 2; }
.house__name { font-family: var(--serif); font-weight: 300; font-size: clamp(38px, 5vw, 78px); line-height: .95; margin: 12px 0 18px; }
.house__name em { color: var(--accent); }
.house__desc { max-width: 380px; color: var(--muted); margin-bottom: 26px; opacity: 0; transform: translateY(16px); transition: all .8s var(--ease-out) .1s; }
.house:hover .house__desc { opacity: 1; transform: none; }
.universe__top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20; padding: 28px var(--gutter);
  display: flex; justify-content: space-between; align-items: center;
}
.universe__title { font-family: var(--serif); font-style: italic; font-size: 22px; }
@media (hover: none) { .house__desc { opacity: 1; transform: none; } }

/* ==========================================================================
   Fiche maison / cuvée
   ========================================================================== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 26px var(--gutter);
  transition: transform .8s var(--ease), background-color .6s, padding .6s var(--ease);
}
.header.scrolled { padding-top: 16px; padding-bottom: 16px; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.header.hide { transform: translateY(-100%); }
.logo { display: flex; align-items: center; gap: 14px; }
.logo .monogram { width: 44px; height: 44px; font-size: 16px; }
.logo__txt { font-family: var(--serif); font-size: 21px; line-height: 1; }
.logo__txt small { display: block; font-family: var(--sans); font-size: 9px; letter-spacing: .34em; text-transform: uppercase; color: var(--accent); margin-top: 5px; }
.nav { display: flex; gap: 34px; }
.nav a { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; }
.header__right { display: flex; align-items: center; gap: 22px; }
.switch {
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase; padding: 11px 18px; border: 1px solid var(--line);
  transition: border-color .4s, background-color .4s;
}
.switch:hover { border-color: var(--accent); }
.burger { display: none; width: 34px; height: 14px; position: relative; }
.burger i { position: absolute; left: 0; right: 0; height: 1px; background: var(--ink); transition: transform .5s var(--ease); }
.burger i:first-child { top: 0; } .burger i:last-child { bottom: 0; }
.menu-open .burger i:first-child { transform: translateY(6.5px) rotate(45deg); }
.menu-open .burger i:last-child { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 95; background: var(--bg); display: flex; flex-direction: column; justify-content: center;
  padding: 0 var(--gutter); clip-path: inset(0 0 100% 0); transition: clip-path .9s var(--ease);
}
.menu-open .mobile-menu { clip-path: inset(0 0 0 0); }
.mobile-menu a { font-family: var(--serif); font-size: 44px; line-height: 1.25; }

/* Hero */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 640px; overflow: hidden; }
.hero__title {
  position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%);
  text-align: center; font-family: var(--serif); font-weight: 300; line-height: .85;
  font-size: clamp(76px, 17vw, 300px); white-space: nowrap; pointer-events: none; letter-spacing: -.02em;
}
.hero__title .row { display: block; overflow: hidden; }
.hero__title .row > span { display: inline-block; transform: translateY(105%); transition: transform 1.4s var(--ease-out); }
.hero__title .row:nth-child(2) > span { font-style: italic; color: transparent; -webkit-text-stroke: 1px var(--accent); transition-delay: .1s; }
.ready .hero__title .row > span { transform: none; }
.hero__bottle {
  position: absolute; left: 50%; top: 50%; height: min(70vh, 700px); z-index: 3;
  transform: translate(-50%, -50%); will-change: transform;
  filter: drop-shadow(0 50px 50px rgba(60,50,40,.25));
}
.hero__bottle::after {
  content: ""; position: absolute; left: 50%; bottom: -3%; width: 140%; height: 7%; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(40,32,24,.28), transparent); filter: blur(4px); z-index: -1;
}
.hero__bottle > * { height: 100%; width: auto; opacity: 0; transform: translateY(80px) scale(.94); transition: opacity 1.4s var(--ease-out) .35s, transform 1.6s var(--ease-out) .35s; }
.ready .hero__bottle > * { opacity: 1; transform: none; }
.hero__glow { position: absolute; left: 50%; top: 50%; width: 80vmin; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); background: radial-gradient(circle, var(--glow) 0%, color-mix(in srgb, var(--glow) 60%, transparent) 35%, transparent 66%); z-index: 1; animation: breathe 7s ease-in-out infinite; }

/* ---------- Effets de lumière ---------- */
/* Faisceaux qui tournent lentement derrière la bouteille */
.light-rays {
  position: absolute; left: var(--rx, 50%); top: var(--ry, 45%); width: 160vmax; aspect-ratio: 1; transform: translate(-50%, -50%); z-index: 0; pointer-events: none;
  background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(255,255,255,.9) 0deg 2deg, rgba(255,255,255,0) 6deg 16deg);
  -webkit-mask: radial-gradient(closest-side, #000 0%, rgba(0,0,0,.35) 25%, transparent 55%);
  mask: radial-gradient(closest-side, #000 0%, rgba(0,0,0,.35) 25%, transparent 55%);
  animation: rays 120s linear infinite; opacity: .35;
}
@keyframes rays { to { transform: translate(-50%, -50%) rotate(360deg); } }
/* Halo qui suit la souris */
.spotlight {
  position: fixed; inset: 0; pointer-events: none; z-index: 2;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 30%), rgba(255,255,255,.22), transparent 70%);
  transition: opacity .6s;
}
@media (hover: none) { .spotlight { display: none; } }
/* Reflet satiné sur les titres en italique */
:is(h1, h2, .big-quote, .footer__big, .house__name) em:not(:has(.w)),
:is(h1, h2, .big-quote, .footer__big, .house__name) em .w > span {
  background: linear-gradient(100deg, var(--accent) 0%, var(--accent) 38%, #ffffff 50%, var(--accent) 62%, var(--accent) 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 7s ease-in-out infinite;
}
@keyframes sheen { 0% { background-position: 100% 0; } 60%, 100% { background-position: 0% 0; } }
/* Fines particules de lumière */
.motes { position: absolute; inset: 0; pointer-events: none; z-index: 2; overflow: hidden; }
.motes i {
  position: absolute; bottom: -10px; width: 3px; height: 3px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 10px 3px rgba(255,255,255,.8); opacity: 0; animation: mote linear infinite;
}
@keyframes mote { 10% { opacity: .9; } 80% { opacity: .5; } 100% { transform: translate(var(--dx, 20px), -110vh); opacity: 0; } }
.hero__meta { position: absolute; z-index: 4; bottom: 46px; display: flex; flex-direction: column; gap: 6px; opacity: 0; transition: opacity 1.2s .9s; }
.ready .hero__meta { opacity: 1; }
.hero__meta--l { left: var(--gutter); }
.hero__meta--r { right: var(--gutter); text-align: right; }
.hero__meta strong { font-family: var(--serif); font-weight: 300; font-size: 30px; line-height: 1; }
.scroll-cue { position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%); z-index: 4; width: 1px; height: 64px; background: var(--line); overflow: hidden; }
.scroll-cue::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--accent); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { to { top: 100%; } }

/* Sections */
section { position: relative; }
.wrap { padding: clamp(90px, 14vw, 180px) var(--gutter); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 110px); align-items: start; }
.big-quote { font-family: var(--serif); font-weight: 300; font-size: clamp(34px, 5vw, 76px); line-height: 1.04; }
.big-quote em { color: var(--accent); }
.body-copy { color: var(--muted); font-size: 17px; max-width: 520px; }
.body-copy p + p { margin-top: 1.1em; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(40px, 6vw, 80px); }
.sec-head h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(44px, 7vw, 110px); line-height: .9; }
.sec-head h2 em { font-style: italic; color: var(--accent); }
.sec-num { font-family: var(--serif); font-style: italic; color: var(--accent); font-size: 22px; }

/* Dégustation */
.tasting { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.taste { padding: 44px 34px 44px 0; border-right: 1px solid var(--line); }
.taste + .taste { padding-left: 34px; }
.taste:last-child { border-right: 0; }
.taste__ico { width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--accent); display: grid; place-items: center; margin-bottom: 30px; transition: transform .8s var(--ease-out), background-color .5s; }
.taste:hover .taste__ico { transform: rotate(-20deg) scale(1.08); background: color-mix(in srgb, var(--accent) 16%, transparent); }
.taste__ico svg { width: 26px; stroke: var(--accent); fill: none; stroke-width: 1.2; }
.taste h3 { font-family: var(--serif); font-weight: 300; font-size: 36px; margin-bottom: 14px; }
.taste p { color: var(--muted); }

/* Marquee */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 0; }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { font-family: var(--serif); font-size: clamp(40px, 6vw, 92px); font-weight: 300; padding-right: 60px; white-space: nowrap; }
.marquee span em { color: transparent; -webkit-text-stroke: 1px var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Accords */
.pairings { border-top: 1px solid var(--line); }
.pair { display: grid; grid-template-columns: 80px 1fr auto; align-items: center; gap: 20px; padding: 30px 0; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.pair::before { content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleY(0); transform-origin: bottom; transition: transform .7s var(--ease); z-index: -1; }
.pair { isolation: isolate; transition: color .5s var(--ease), padding .7s var(--ease); }
.pair:hover { color: var(--bg); padding-left: 24px; padding-right: 24px; }
.pair:hover::before { transform: scaleY(1); }
.pair .n { font-family: var(--serif); font-style: italic; color: var(--accent); transition: color .5s; }
.pair:hover .n { color: var(--bg); }
.pair h4 { font-family: var(--serif); font-weight: 300; font-size: clamp(26px, 3.2vw, 46px); line-height: 1.1; }
.pair small { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; opacity: .7; }

/* Fiche technique */
.tech { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 6vw, 110px); }
.tech__sticky { position: sticky; top: 120px; align-self: start; }
.tech__bottle { height: 420px; margin-top: 40px; }
.tech__bottle svg { height: 100%; width: auto; }
.tech dl > div { display: grid; grid-template-columns: 200px 1fr; gap: 20px; padding: 24px 0; position: relative; }
.tech dl > div::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); transform-origin: left; transform: scaleX(0); transition: transform 1.3s var(--ease); }
.tech dl > div.in::after { transform: scaleX(1); }
.tech dt { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--accent); padding-top: 6px; }
.tech dd { font-family: var(--serif); font-size: 24px; line-height: 1.3; }
.download { margin-top: 44px; }

/* Autres cuvées */
.range { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2px; }
.cuvee-card {
  position: relative; text-align: left; padding: 40px 30px 34px; min-height: 520px; display: flex; flex-direction: column; justify-content: flex-end;
  background: color-mix(in srgb, var(--ink) 4%, transparent); overflow: hidden;
}
.cuvee-card__bg { position: absolute; inset: 0; transform: scaleY(0); transform-origin: bottom; transition: transform .9s var(--ease); }
.cuvee-card:hover .cuvee-card__bg { transform: scaleY(1); }
.cuvee-card__bottle { display: block; position: absolute; left: 50%; top: 40px; height: 300px; transform: translateX(-50%); transition: transform 1s var(--ease-out); }
.cuvee-card__bottle svg { height: 100%; width: auto; }
.cuvee-card:hover .cuvee-card__bottle { transform: translateX(-50%) translateY(-14px) rotate(4deg); }
.cuvee-card > *:not(.cuvee-card__bg):not(.cuvee-card__bottle) { position: relative; }
.cuvee-card h3 { font-family: var(--serif); font-weight: 300; font-size: 36px; line-height: 1; margin: 8px 0 6px; }
.cuvee-card p { color: var(--muted); font-size: 14px; }
.cuvee-card.is-current { outline: 1px solid var(--accent); outline-offset: -1px; }
.cuvee-card.is-current .eyebrow::after { content: " · en cours"; color: var(--muted); }

/* Domaine */
.estate { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 110px); align-items: center; }
.estate__visual { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.estate__visual .layer { position: absolute; inset: -12% 0; will-change: transform; }
.estate__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 50px; border-top: 1px solid var(--line); padding-top: 30px; }
.stat strong { display: block; font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 4.5vw, 64px); line-height: 1; color: var(--accent); }
.stat span { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }

/* Footer */
.footer { padding: 100px var(--gutter) 34px; border-top: 1px solid var(--line); }
.footer__big { font-family: var(--serif); font-weight: 300; font-size: clamp(54px, 11vw, 190px); line-height: .9; letter-spacing: -.02em; }
.footer__big em { color: var(--accent); }
.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; margin-top: 60px; font-size: 12px; color: var(--muted); letter-spacing: .08em; }
.footer__row a:hover { color: var(--accent); }

/* Changement de cuvée */
.swap-out .hero__bottle > * { opacity: 0 !important; transform: translateY(-60px) rotate(-6deg) !important; transition-delay: 0s !important; transition-duration: .6s !important; }
.swap-out .hero__title .row > span { transform: translateY(-105%) !important; transition-duration: .6s !important; transition-delay: 0s !important; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .login { grid-template-columns: 1fr; }
  .login__visual { min-height: 42vh; }
  .login__quote { bottom: 28px; }
  .login__quote p { font-size: 26px; }
  .login__panel { padding-top: 48px; padding-bottom: 90px; }
  .nav, .switch { display: none; }
  .burger { display: block; }
  .grid-2, .tech, .estate { grid-template-columns: 1fr; }
  .tech__sticky { position: relative; top: 0; }
  .tech__bottle { height: 280px; }
  .tasting { grid-template-columns: 1fr; }
  .taste, .taste + .taste { padding: 34px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .universe { flex-direction: column; }
  .house { border-right: 0; border-bottom: 1px solid var(--line); }
  .house:hover { flex: 1; }
  .house__bottle { height: 32vh; top: 40%; left: 72%; }
  .house__desc { display: none; }
}
@media (max-width: 640px) {
  .tech dl > div { grid-template-columns: 1fr; gap: 6px; }
  .pair { grid-template-columns: 40px 1fr; }
  .pair small { display: none; }
  .hero__meta strong { font-size: 22px; }
  .hero__title { font-size: 21vw; }
  .estate__stats { grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
  .sec-head { flex-direction: column; align-items: start; }
  .logo__txt { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- Logos ---------- */
.logo__img { height: 46px; width: auto; }
.header.scrolled .logo__img { height: 38px; }
.curtain__mark img { height: clamp(56px, 9vw, 110px); width: auto; }
.footer__logo { height: clamp(110px, 16vw, 230px); width: auto; }

/* Mention sanitaire en page d'accueil */
.universe__legal {
  position: fixed; left: 0; right: 0; bottom: 12px; z-index: 20; text-align: center; pointer-events: none;
  font-size: 10px; letter-spacing: .1em; color: var(--muted);
}

/* ---------- Bouteilles photo ---------- */
.bphoto { position: relative; display: block; width: 100%; height: 100%; }
.bphoto img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.bphoto__sheen {
  position: absolute; inset: 0; pointer-events: none;
  -webkit-mask: var(--src) center bottom / contain no-repeat; mask: var(--src) center bottom / contain no-repeat;
  background: linear-gradient(105deg, transparent 42%, rgba(255,255,255,.6) 50%, transparent 58%);
  background-size: 300% 100%; animation: bsheen 7s ease-in-out infinite; mix-blend-mode: screen;
}
@keyframes bsheen { 0% { background-position: 110% 0; } 45%, 100% { background-position: -10% 0; } }
.cuvee-card__bottle .bphoto__sheen { animation-delay: calc(var(--d, 0) * 1s); }

/* ---------- Photo du domaine ---------- */
.estate__visual .layer img { width: 100%; height: 100%; object-fit: cover; }
.estate__visual::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); pointer-events: none; }

/* ---------- Galerie horizontale ---------- */
.hscroll { position: relative; height: 320vh; }
.hscroll__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 5vh; }
.hscroll__title { padding: 0 var(--gutter); font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 6vw, 96px); line-height: .9; }
.hscroll__track { display: flex; align-items: center; gap: 3vw; padding: 0 var(--gutter); width: max-content; will-change: transform; }
.hscroll__item { position: relative; flex: 0 0 auto; height: 58vh; aspect-ratio: 4 / 5; overflow: hidden; margin: 0; }
.hscroll__item:nth-child(3n + 2) { height: 46vh; aspect-ratio: 3 / 4; transform: translateY(6vh); }
.hscroll__item:nth-child(3n) { aspect-ratio: 5 / 4; }
.hscroll__item img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.6s var(--ease-out), filter 1.2s; filter: saturate(.85); }
.hscroll__item:hover img { transform: scale(1.12); filter: saturate(1.05); }
.hscroll__item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255,255,255,.25), transparent 40%); pointer-events: none; }
@media (max-width: 980px) {
  .hscroll { height: auto; padding: 80px 0; }
  .hscroll__sticky { position: static; height: auto; }
  .hscroll__track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
  .hscroll__item, .hscroll__item:nth-child(3n + 2) { height: 52vh; transform: none; scroll-snap-align: center; }
}

/* ==========================================================================
   Finitions premium
   ========================================================================== */

/* ---------- Dorure (Bellevue) et argent (Maison Méger) ---------- */
.foil {
  --foil-grad: linear-gradient(115deg, #5a3f1c 0%, #7d5b30 22%, #a8834f 38%, #f1dfb2 50%, #a8834f 62%, #74552c 80%, #5a3f1c 100%);
  position: relative; display: inline-block; line-height: 0; vertical-align: middle;
  /* relief façon letterpress */
  filter: drop-shadow(0 1px 0 rgba(255,255,255,.85)) drop-shadow(0 -1px 0 rgba(40,28,14,.22)) drop-shadow(0 6px 10px rgba(60,45,25,.12));
}
.foil--silver {
  --foil-grad: linear-gradient(115deg, #262626 0%, #464646 22%, #7a7a7a 38%, #eeeeee 50%, #7a7a7a 62%, #3e3e3e 80%, #262626 100%);
}
.foil > img { opacity: 0; }
.foil::before, .foil::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat;
}
.foil::before {
  background: var(--foil-grad); background-size: 170% 170%;
  background-position: var(--fx, 50%) var(--fy, 50%);
  transition: background-position .5s var(--ease-out);
}
/* éclat de lumière qui balaie le métal */
.foil::after {
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.95) 50%, transparent 60%);
  background-size: 300% 100%; mix-blend-mode: soft-light;
  animation: foilSweep 6s ease-in-out infinite;
}
@keyframes foilSweep { 0% { background-position: 120% 0; } 40%, 100% { background-position: -20% 0; } }
.logo .foil { height: 46px; } .logo .foil > img { height: 46px; width: auto; }
.header.scrolled .logo .foil, .header.scrolled .logo .foil > img { height: 38px; }
.curtain__mark .foil > img { height: clamp(56px, 9vw, 110px); width: auto; }

/* ---------- Texture papier vergé ---------- */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 89; mix-blend-mode: multiply; opacity: .3;
  background-image:
    repeating-linear-gradient(0deg, rgba(90,70,40,.035) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(90,70,40,.05) 0 1px, transparent 1px 38px);
}

/* ---------- Bouteille 3D ---------- */
.bottle3d { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.hero__bottle.is-3d > .bphoto { visibility: hidden; }

/* ---------- Dégustation : bouteille fixe, notes qui défilent ---------- */
.tasting-pin { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 110px); }
.tasting-pin__side { position: sticky; top: 12vh; align-self: start; height: 76vh; display: flex; flex-direction: column; }
.tasting-pin__title { font-family: var(--serif); font-weight: 300; font-size: clamp(44px, 6vw, 96px); line-height: .9; margin-top: 8px; }
.tasting-pin__title em { font-style: italic; color: var(--accent); }
.tasting-pin__bottle { flex: 1; min-height: 0; margin-top: 4vh; aspect-ratio: 120 / 420; transition: transform .2s linear; filter: drop-shadow(0 30px 30px rgba(60,50,40,.22)); }
.tasting-pin .tasting { display: block; border-top: 0; padding: 22vh 0 18vh; }
.tasting-pin .taste, .tasting-pin .taste + .taste {
  min-height: 62vh; padding: 0; border: 0; display: flex; flex-direction: column; justify-content: center;
  opacity: .28; transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transform: translateX(16px);
}
.tasting-pin .taste.is-active { opacity: 1; transform: none; }
.tasting-pin .taste h3 { font-size: clamp(44px, 5vw, 72px); }
.tasting-pin .taste p { font-family: var(--serif); font-size: clamp(22px, 2.2vw, 30px); line-height: 1.35; color: var(--ink); max-width: 560px; }
@media (max-width: 980px) {
  .tasting-pin { grid-template-columns: 1fr; }
  .tasting-pin__side { position: relative; top: 0; height: auto; }
  .tasting-pin__bottle { height: 300px; flex: none; }
  .tasting-pin .tasting { padding: 30px 0 0; }
  .tasting-pin .taste, .tasting-pin .taste + .taste { min-height: 0; padding: 30px 0; opacity: 1; transform: none; border-bottom: 1px solid var(--line); }
}

/* ---------- Accroche révélée mot à mot ---------- */
#headline .w { transition: opacity .25s linear; }

/* ---------- Ouverture signature ---------- */
.loader__marks { display: flex; gap: clamp(18px, 3vw, 36px); align-items: center; justify-content: center; margin-bottom: 30px; }
.loader__marks .amp { font-family: var(--serif); font-style: italic; font-size: 34px; color: var(--muted); opacity: 0; animation: fadeIn 1s .9s forwards; }
.loader__marks .foil { clip-path: inset(0 100% 0 0); animation: unveil 1.5s var(--ease) .2s forwards; }
.loader__marks .foil:last-child { animation-delay: .55s; }
.loader__marks .foil > img { height: clamp(64px, 9vw, 96px); width: auto; }
@keyframes unveil { to { clip-path: inset(0 0 0 0); } }
@keyframes fadeIn { to { opacity: 1; } }
.loader__name { font-size: clamp(30px, 5vw, 60px); }
.loader__name span { animation-delay: .9s; }
.loader__name span:nth-child(2) { animation-delay: 1.02s; }
.loader__bar i { animation-duration: 2.3s; }
