/* La Riveraine — site de démonstration de la formule Restaurant (Studio Emy). Identité propre : lac, crème, laiton. */
@font-face {
  font-family: "Outfit"; font-style: normal; font-weight: 200 600; font-display: swap;
  src: url("/assets/fonts/outfit-latin.woff2") format("woff2");
}

:root {
  --lake: #16211D;
  --lake-2: #22322C;
  --lake-3: #2E433B;
  --cream: #F5EEE2;
  --paper: #FBF7F0;
  --ink: #1D1C1A;
  --muted: #6F675D;
  --gold: #C9A66B;
  --gold-2: #E2C690;
  --dusk: #E7B79C;
  --line: rgba(29, 28, 26, .12);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "Outfit", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --radius: 22px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 300 1.05rem/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; line-height: 1.08; }
h1 em, h2 em { font-style: italic; color: var(--gold); }
p { margin: 0 0 1rem; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
button, input, select { font: inherit; color: inherit; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1rem; font-size: .78rem; font-weight: 450; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.hint { font-size: .88rem; color: var(--muted); }
section { position: relative; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 50px; padding: .8rem 1.6rem; border: 0; border-radius: 999px; font-size: .95rem; font-weight: 450; text-decoration: none; cursor: pointer; transition: transform .35s var(--ease), background .3s, box-shadow .35s, color .3s; }
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.btn-gold { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--lake); box-shadow: 0 14px 30px -14px rgba(201, 166, 107, .8); }
.btn-gold:hover { box-shadow: 0 20px 40px -16px rgba(201, 166, 107, .95); }
.btn-line { box-shadow: inset 0 0 0 1px rgba(245, 238, 226, .45); color: var(--cream); }
.btn-line:hover { box-shadow: inset 0 0 0 1px var(--gold); color: var(--gold-2); }
.btn-dark { background: var(--lake); color: var(--cream); }
.btn-small { min-height: 42px; padding: .55rem 1.15rem; font-size: .88rem; }
.btn-wide { width: 100%; }

/* Bandeau de démonstration */
.demo-bar { position: relative; z-index: 60; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .55rem clamp(1rem, 4vw, 2.5rem); background: #0D1411; color: rgba(245, 238, 226, .78); font-size: .82rem; }
.demo-bar p { display: flex; align-items: center; gap: .6rem; margin: 0; min-width: 0; }
.demo-bar strong { color: var(--gold-2); font-weight: 450; white-space: nowrap; }
.demo-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-bar a { flex: none; color: var(--cream); font-weight: 450; text-decoration: none; }
.demo-bar a:hover { color: var(--gold-2); }
.demo-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--dusk); box-shadow: 0 0 0 4px rgba(231, 183, 156, .2); }
@media (max-width: 760px) { .demo-text { display: none; } }

/* En-tête */
.top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.5rem); height: 72px; padding: 0 clamp(1rem, 4vw, 2.5rem); color: var(--cream); background: rgba(22, 33, 29, 0); transition: background-color .4s, box-shadow .4s; }
.top.is-solid { background: rgba(22, 33, 29, .96); box-shadow: 0 10px 40px -20px rgba(0, 0, 0, .6); }
.brand { display: inline-flex; align-items: center; gap: .7rem; margin: 0; font-family: var(--serif); font-size: 1.3rem; text-decoration: none; line-height: 1.1; }
.brand small { display: block; font-family: var(--sans); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50% 50% 12px 12px; background: linear-gradient(160deg, var(--gold-2), var(--gold)); color: var(--lake); font-family: var(--serif); font-size: 1.25rem; }
.top nav { margin-left: auto; }
.top nav ul { display: flex; gap: 1.8rem; }
.top nav a { position: relative; font-size: .92rem; text-decoration: none; color: rgba(245, 238, 226, .82); transition: color .3s; }
.top nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.top nav a:hover { color: var(--cream); }
.top nav a:hover::after { transform: scaleX(1); }
.lang { font-size: .82rem; font-weight: 450; letter-spacing: .1em; text-decoration: none; padding: .3rem .6rem; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(245, 238, 226, .3); }
.lang:hover { box-shadow: inset 0 0 0 1px var(--gold); color: var(--gold-2); }
@media (max-width: 980px) { .top nav { display: none; } .lang { margin-left: auto; } }
@media (max-width: 520px) { .top .btn { display: none; } .brand small { display: none; } }

/* Accueil plein écran */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 2rem; margin-top: -72px; min-height: calc(100svh - 2.3rem); padding: 8rem clamp(1rem, 4vw, 3rem) clamp(4.5rem, 9vh, 6.5rem); color: var(--cream); overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: -4% 0 0; z-index: -2; will-change: transform; transform: scale(calc(1.06 + var(--p, 0) * .12)) translateY(calc(var(--p, 0) * 6%)); transform-origin: 50% 60%; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; animation: kenburns 18s var(--ease) both; }
@keyframes kenburns { from { opacity: .35; } to { opacity: 1; } }
.hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(13, 20, 17, .55) 0%, rgba(13, 20, 17, 0) 28%, rgba(13, 20, 17, .15) 55%, rgba(13, 20, 17, .82) 100%), linear-gradient(90deg, rgba(13, 20, 17, .55), transparent 65%); opacity: calc(1 + var(--p, 0) * .4); }
.hero-shade::after { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 55% at 72% 30%, rgba(240, 168, 120, .55), transparent 70%), linear-gradient(180deg, rgba(231, 183, 156, .25), transparent 45%); mix-blend-mode: soft-light; }

.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .14; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E"); mix-blend-mode: overlay; }
.hero-content { max-width: 760px; transform: translateY(calc(var(--p, 0) * -60px)); opacity: calc(1 - var(--p, 0) * 1.4); }
.hero h1 { font-size: clamp(3.4rem, min(10vw, 15vh), 9rem); line-height: .92; margin-bottom: 1.4rem; text-shadow: 0 10px 40px rgba(0, 0, 0, .25); }
.hero .lead { max-width: 46ch; font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: rgba(245, 238, 226, .88); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.btn-glass { background: rgba(13, 20, 17, .35); color: var(--cream); box-shadow: inset 0 0 0 1px rgba(245, 238, 226, .4); }
.btn-glass:hover { background: rgba(245, 238, 226, .2); }
.hero-side { display: grid; justify-items: end; gap: 1.4rem; opacity: calc(1 - var(--p, 0) * 1.6); }
.status { display: inline-flex; align-items: center; gap: .6rem; margin: 0; padding: .55rem 1rem .55rem .8rem; border-radius: 999px; background: rgba(13, 20, 17, .62); box-shadow: inset 0 0 0 1px rgba(245, 238, 226, .2); font-size: .88rem; color: rgba(245, 238, 226, .92); }
.status:empty { display: none; }
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #E06C5A; }
.status.is-open::before { background: #6FCF8E; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(111, 207, 142, .55); } 70% { box-shadow: 0 0 0 9px rgba(111, 207, 142, 0); } 100% { box-shadow: 0 0 0 0 rgba(111, 207, 142, 0); } }
.badge { width: 140px; height: 140px; animation: spin 26s linear infinite; }
.badge text { fill: var(--gold-2); font-family: var(--sans); font-size: 15.5px; font-weight: 450; letter-spacing: 2.6px; text-transform: uppercase; }
.badge circle { fill: var(--gold); }
.badge-fish { fill: var(--lake); }
@keyframes spin { to { transform: rotate(360deg); } }
.scroll-cue { position: absolute; left: 50%; bottom: 1.4rem; width: 26px; height: 42px; margin-left: -13px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px rgba(245, 238, 226, .6); opacity: calc(1 - var(--p, 0) * 3); }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--cream); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding-bottom: 6.5rem; }
  .hero-side { justify-items: start; grid-row: 1; align-self: start; margin-top: 1rem; }
  .badge { display: none; }
  .scroll-cue { display: none; }
}

/* Titres qui apparaissent mot à mot */
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; margin-bottom: -.08em; }
[data-split] .w > span { display: inline-block; }
.js [data-split] .w > span { transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 55ms); }
.js [data-split].is-visible .w > span { transform: none; }

/* Bandeau d'ingrédients */
.marquee { overflow: hidden; padding: 1.1rem 0; background: var(--gold); color: var(--lake); }
.marquee-track { display: flex; gap: 1.6rem; width: max-content; animation: marquee 38s linear infinite; font-family: var(--serif); font-size: clamp(1.15rem, 2vw, 1.5rem); font-style: italic; white-space: nowrap; }
.marquee i { font-style: normal; font-size: .8em; opacity: .55; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Suggestion du jour */
.daily { padding: clamp(3rem, 7vw, 5rem) clamp(1rem, 4vw, 2.5rem) 0; }
.daily-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: clamp(1rem, 3vw, 2rem); align-items: center; max-width: 900px; margin: 0 auto; padding: 1.1rem clamp(1.1rem, 3vw, 1.6rem); border-radius: 999px; background: #fff; box-shadow: 0 30px 60px -40px rgba(29, 28, 26, .4), inset 0 0 0 1px rgba(201, 166, 107, .35); }
.daily-photo { width: 92px; height: 92px; border-radius: 50%; overflow: hidden; }
.daily-photo img { width: 100%; height: 100%; object-fit: cover; }
.daily .eyebrow { margin-bottom: .3rem; }
.daily h2 { font-size: clamp(1.2rem, 2.4vw, 1.6rem); margin-bottom: .2rem; }
.daily .hint { margin: 0; }
.daily-price { margin: 0 .6rem 0 0; font-family: var(--serif); font-size: 1.6rem; color: var(--lake-3); white-space: nowrap; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--dusk); animation: pulse-dusk 2s infinite; }
@keyframes pulse-dusk { 0% { box-shadow: 0 0 0 0 rgba(231, 183, 156, .7); } 70% { box-shadow: 0 0 0 8px rgba(231, 183, 156, 0); } 100% { box-shadow: 0 0 0 0 rgba(231, 183, 156, 0); } }
@media (max-width: 640px) { .daily-card { grid-template-columns: auto minmax(0, 1fr); border-radius: 28px; } .daily-price { grid-column: 2; margin: 0; } .daily-photo { width: 72px; height: 72px; } }

/* Récit à image fixe */
.story { max-width: 1240px; margin: 0 auto; padding: clamp(4rem, 9vw, 7rem) clamp(1rem, 4vw, 2.5rem); }
.story-head { max-width: 760px; margin-bottom: clamp(2rem, 5vw, 4rem); }
.story-head h2 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); }
.story-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(2rem, 6vw, 6rem); }
.story-media { position: relative; }
.story-frame { position: sticky; top: 14vh; height: 72vh; overflow: hidden; border-radius: 999px 999px 32px 32px; box-shadow: 0 50px 90px -50px rgba(29, 28, 26, .6); }
.story-img { position: absolute; inset: 0; opacity: 0; transform: scale(1.08); transition: opacity 1.1s var(--ease), transform 1.6s var(--ease); }
.story-img.is-active { opacity: 1; transform: none; }
.story-img img { width: 100%; height: 100%; object-fit: cover; }
.story-clock { position: absolute; left: 50%; bottom: 1.4rem; transform: translateX(-50%); margin: 0; padding: .45rem 1.1rem; border-radius: 999px; background: rgba(13, 20, 17, .72); color: var(--cream); font-family: var(--serif); font-size: 1.3rem; }
.story-steps { display: grid; }
.story-step { min-height: 72vh; display: grid; align-content: center; padding: 2rem 0; opacity: .28; transition: opacity .6s var(--ease); }
.story-step.is-active { opacity: 1; }
.story-step h3 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); margin-bottom: 1rem; }
.story-step p { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: #4E4840; max-width: 42ch; }
.story-time { margin-bottom: .6rem !important; font-family: var(--serif); font-style: italic; font-size: 1.3rem !important; color: var(--gold) !important; }
.story-inline { display: none; }
.story .signature { margin-top: 2rem; }
.signature { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--lake-3); }
.signature::before { content: "— "; color: var(--gold); }
.signature .hint { font-family: var(--sans); font-style: normal; }
@media (max-width: 900px) {
  .story-grid { grid-template-columns: 1fr; }
  .story-media { display: none; }
  .story-step { min-height: 0; opacity: 1; padding: 1rem 0 2.5rem; }
  .story-inline { display: block; overflow: hidden; margin-bottom: 1.2rem; border-radius: 26px; }
  .story-inline img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
}

/* La carte */
.menu { padding: clamp(4rem, 9vw, 7rem) clamp(1rem, 4vw, 2.5rem); background: var(--cream); }
.section-title { max-width: 720px; margin: 0 auto clamp(2rem, 4vw, 3rem); text-align: center; }
.section-title h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); margin-bottom: .9rem; }
.menu-tabs { position: relative; display: flex; justify-content: center; gap: .3rem; width: max-content; max-width: 100%; margin: 0 auto 2.5rem; padding: .35rem; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); overflow-x: auto; scrollbar-width: none; }
.menu-tabs button { position: relative; z-index: 1; padding: .6rem 1.3rem; border: 0; border-radius: 999px; background: none; font-size: .92rem; font-weight: 400; color: var(--muted); cursor: pointer; white-space: nowrap; transition: color .35s; }
.menu-tabs button[aria-selected="true"] { color: var(--cream); }
.menu-tabs-ink { position: absolute; z-index: 0; top: .35rem; bottom: .35rem; left: 0; width: 0; border-radius: 999px; background: var(--lake); transition: transform .5s var(--ease), width .5s var(--ease); }
.no-js .menu-tabs { display: none; }
.menu-body { max-width: 820px; margin: 0 auto; }
.menu-section h3 { margin-bottom: 1.2rem; font-size: 1.5rem; color: var(--lake-3); }
.js .menu-section h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.menu-section li { padding: 1.05rem 0; border-bottom: 1px solid var(--line); }
.menu-section li:last-child { border-bottom: 0; }
.dish { display: flex; align-items: baseline; gap: .8rem; margin: 0 0 .25rem; }
.dish strong { font-family: var(--serif); font-size: 1.28rem; font-weight: 400; }
.leader { flex: 1; min-width: 1.5rem; border-bottom: 1px dotted rgba(29, 28, 26, .35); transform: translateY(-.3rem); }
.dish b { font-family: var(--serif); font-size: 1.2rem; font-weight: 400; color: var(--lake-3); white-space: nowrap; }
.desc { margin: 0; font-size: .95rem; color: var(--muted); }
.desc em { display: inline-block; margin-left: .4rem; padding: .05rem .55rem; border-radius: 999px; background: rgba(201, 166, 107, .18); color: #8A6B37; font-size: .75rem; font-style: normal; font-weight: 450; letter-spacing: .04em; }
.js .menu-section[hidden] { display: none; }
.menu-section.is-in { animation: fade-up .55s var(--ease); }
.no-js .menu-section + .menu-section { margin-top: 2.5rem; }
/* Aperçu du plat qui suit la souris (ordinateur) */
.dish-preview { position: fixed; z-index: 40; left: 0; top: 0; width: 240px; height: 300px; overflow: hidden; border-radius: 999px 999px 22px 22px; box-shadow: 0 30px 60px -25px rgba(29, 28, 26, .55); pointer-events: none; opacity: 0; transform: translate3d(var(--x, 0), var(--y, 0), 0) rotate(var(--r, 0deg)) scale(.85); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.dish-preview.is-on { opacity: 1; transform: translate3d(var(--x, 0), var(--y, 0), 0) rotate(var(--r, 0deg)) scale(1); }
.dish-preview img { width: 100%; height: 100%; object-fit: cover; }
.menu-section li[data-dish-img] { cursor: zoom-in; }
.menu-section li[data-dish-img] .dish strong::after { content: " ◦"; color: var(--gold); }
@media (hover: none), (max-width: 900px) { .dish-preview { display: none; } .menu-section li[data-dish-img] { cursor: auto; } }
.menu-note { max-width: 820px; margin: clamp(3.5rem, 6vw, 5rem) auto 0; text-align: center; }

/* Réservation */
.booking { padding: clamp(4rem, 9vw, 7rem) clamp(1rem, 4vw, 2.5rem); background: radial-gradient(60% 80% at 100% 0%, rgba(231, 183, 156, .2), transparent 70%), var(--lake); color: var(--cream); }
.booking-inner { max-width: 880px; margin: 0 auto; }
.booking .section-title p { color: rgba(245, 238, 226, .72); }
.booking .section-title a { color: var(--gold-2); text-decoration: none; }
.card-form { position: relative; display: grid; gap: 1.1rem; }
.glass { padding: clamp(1.25rem, 3.5vw, 2.25rem); border-radius: 30px; background: rgba(245, 238, 226, .06); box-shadow: inset 0 0 0 1px rgba(245, 238, 226, .14), 0 40px 80px -40px rgba(0, 0, 0, .6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.card-form label, .times legend { display: grid; gap: .45rem; font-size: .85rem; font-weight: 400; letter-spacing: .02em; }
.card-form input, .card-form select { width: 100%; min-height: 50px; padding: .7rem 1rem; border: 0; border-radius: 14px; background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); font-size: 1rem; transition: box-shadow .25s; }
.glass input { background: rgba(245, 238, 226, .95); }
.card-form input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--gold); }
.row2, .row3 { display: grid; gap: 1rem; }
.row2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.row3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 680px) { .row3 { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .row2 { grid-template-columns: 1fr; } }
.stepper { display: grid; grid-template-columns: 50px minmax(0, 1fr) 50px; align-items: center; border-radius: 14px; background: rgba(245, 238, 226, .95); overflow: hidden; }
.stepper input { min-height: 50px; border-radius: 0; background: transparent !important; box-shadow: none !important; text-align: center; font-size: 1.1rem; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.stepper button { height: 50px; border: 0; background: none; color: var(--lake); font-size: 1.3rem; cursor: pointer; }
.stepper button:hover { background: rgba(201, 166, 107, .25); }
.times { margin: 0; padding: 0; border: 0; min-width: 0; }
.times legend { margin-bottom: .5rem; padding: 0; }
.time-chips { display: flex; flex-wrap: wrap; gap: .45rem; min-height: 46px; align-items: center; }
.time-chips .hint { margin: 0; color: rgba(245, 238, 226, .6); }
.time-chips label { display: block; position: relative; }
.time-chips input { position: absolute; inset: 0; opacity: 0; cursor: pointer; min-height: 0; }
.time-chips label span { display: block; padding: .5rem .85rem; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(245, 238, 226, .28); font-size: .9rem; transition: background .25s, color .25s, box-shadow .25s; }
.time-chips label:hover span { box-shadow: inset 0 0 0 1px var(--gold); }
.time-chips input:checked + span { background: var(--gold); color: var(--lake); box-shadow: none; }
.time-chips input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.time-group { display: contents; }
.time-sep { flex-basis: 100%; height: 0; }
.done { display: grid; justify-items: center; gap: .3rem; padding: 2rem 1rem; text-align: center; animation: fade-up .6s var(--ease); }
.done strong { font-family: var(--serif); font-size: 1.6rem; font-weight: 400; }
.done p { max-width: 46ch; margin: 0; color: var(--muted); }
.glass .done p { color: rgba(245, 238, 226, .75); }
.done-check { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: .6rem; border-radius: 50%; background: var(--gold); color: var(--lake); font-size: 1.5rem; animation: pop .6s var(--ease); }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.1); } 100% { transform: scale(1); opacity: 1; } }
.card-form.is-sent > :not(.done) { display: none; }

/* Groupes */
.groups { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; max-width: 1240px; margin: 0 auto; padding: clamp(4rem, 9vw, 7rem) clamp(1rem, 4vw, 2.5rem); }
.groups-photo { overflow: hidden; border-radius: 30px 30px 30px 180px; box-shadow: 0 40px 80px -45px rgba(29, 28, 26, .55); }
.groups-photo img { width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; }
.groups h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); margin-bottom: 1.2rem; }
.groups-text > p { color: #4E4840; }
.ticks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem 1.2rem; margin: 1.4rem 0 1.8rem; }
.ticks li { display: flex; gap: .6rem; align-items: baseline; font-size: .95rem; }
.ticks li::before { content: "✦"; color: var(--gold); font-size: .8rem; }
.kinds { display: flex; flex-wrap: wrap; gap: .45rem; }
.kinds label { position: relative; display: block; }
.kinds input { position: absolute; inset: 0; opacity: 0; min-height: 0; cursor: pointer; }
.kinds span { display: block; padding: .5rem .95rem; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); font-size: .9rem; transition: background .25s, color .25s; }
.kinds input:checked + span { background: var(--lake); color: var(--cream); box-shadow: none; }
.kinds input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.groups .card-form { padding: clamp(1.1rem, 3vw, 1.6rem); border-radius: 26px; background: #fff; box-shadow: 0 30px 60px -45px rgba(29, 28, 26, .45), inset 0 0 0 1px var(--line); }
.groups .card-form .btn { justify-self: start; }
@media (max-width: 860px) { .groups { grid-template-columns: 1fr; } .groups-photo { border-radius: 30px 30px 30px 120px; } }
@media (max-width: 460px) { .ticks { grid-template-columns: 1fr; } }

/* Lavaux : image pleine largeur en profondeur */
.vines { position: relative; display: grid; align-items: center; min-height: 92vh; padding: clamp(4rem, 9vw, 7rem) clamp(1rem, 4vw, 3rem); color: var(--cream); overflow: hidden; isolation: isolate; }
.vines-bg, .outro-bg { position: absolute; inset: -12% 0; z-index: -2; will-change: transform; transform: translateY(var(--d, 0)); }
.vines-bg img, .outro-bg img { width: 100%; height: 100%; object-fit: cover; }
.vines::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(13, 20, 17, .78) 0%, rgba(13, 20, 17, .35) 55%, rgba(13, 20, 17, .1) 100%); }
.vines-text { max-width: 620px; }
.vines h2 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); margin-bottom: 1.3rem; }
.vines p { color: rgba(245, 238, 226, .85); font-size: clamp(1.05rem, 1.5vw, 1.2rem); }

/* Galerie : défile à l'horizontale pendant qu'on descend */
.reel { position: relative; height: var(--reel-h, auto); background: var(--lake); color: var(--cream); }
.reel-sticky { position: sticky; top: 0; display: grid; align-content: center; gap: 1.6rem; height: 100vh; overflow: hidden; }
.reel-head { display: flex; justify-content: space-between; align-items: baseline; padding: 0 clamp(1rem, 4vw, 3rem); }
.reel-head .eyebrow { margin: 0; }
.reel-head .hint { margin: 0; color: rgba(245, 238, 226, .6); }
.reel-track { display: flex; gap: clamp(.8rem, 2vw, 1.6rem); width: max-content; padding: 0 clamp(1rem, 4vw, 3rem); transform: translate3d(var(--rx, 0), 0, 0); will-change: transform; }
.reel figure { position: relative; flex: none; width: clamp(260px, 34vw, 520px); height: min(64vh, 620px); overflow: hidden; border-radius: 28px; }
.reel figure:nth-child(even) { margin-top: 8vh; height: min(56vh, 540px); }
.reel img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.4s var(--ease); }
.reel figure:hover img { transform: scale(1); }
.reel figcaption { position: absolute; left: .9rem; bottom: .9rem; padding: .4rem .9rem; border-radius: 999px; background: rgba(251, 247, 240, .92); color: var(--ink); font-size: .82rem; }
.no-js .reel-sticky, .calm .reel-sticky { position: static; height: auto; padding: 4rem 0; }
.no-js .reel-track, .calm .reel-track { overflow-x: auto; width: auto; scroll-snap-type: x mandatory; }
@media (max-width: 760px) {
  .reel { height: auto !important; }
  .reel-sticky { position: static; height: auto; padding: 3.5rem 0; }
  .reel-track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; transform: none !important; padding-bottom: 1rem; scrollbar-width: none; }
  .reel figure, .reel figure:nth-child(even) { width: 78vw; height: 58vh; margin-top: 0; scroll-snap-align: center; }
}

/* Infos pratiques */
.infos { padding: clamp(4rem, 9vw, 7rem) clamp(1rem, 4vw, 2.5rem); background: var(--cream); }
.infos-grid { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: clamp(1rem, 2vw, 1.5rem); max-width: 1180px; margin: 0 auto; }
.infos-card { padding: clamp(1.3rem, 3vw, 2rem); border-radius: 26px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.infos-card h3 { margin: 0 0 .9rem; font-size: 1.35rem; }
.infos-card h3:not(:first-child) { margin-top: 1.4rem; }
.hours { width: 100%; border-collapse: collapse; margin-bottom: 1rem; font-size: .95rem; }
.hours th, .hours td { padding: .55rem 0; vertical-align: top; border-bottom: 1px solid var(--line); text-align: left; font-weight: 300; }
.hours td { text-align: right; color: var(--muted); white-space: nowrap; line-height: 1.5; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--lake); font-weight: 450; }
.hours tr.is-today th::after { content: " ●"; color: var(--gold); font-size: .7rem; }
.map { width: 100%; height: auto; margin-bottom: .8rem; border-radius: 18px; }
.map-land { fill: #EDE5D6; }
.map-lake { fill: #A9C4C0; }
.map-road { fill: none; stroke: #fff; stroke-width: 9; stroke-linecap: round; }
.map-road.thin { stroke-width: 5; }
.map-walk { fill: none; stroke: var(--lake-3); stroke-width: 2.5; stroke-dasharray: 2 7; stroke-linecap: round; animation: walk 1.6s linear infinite; }
@keyframes walk { to { stroke-dashoffset: -18; } }
.map-station { fill: var(--lake); }
.map-label { fill: var(--lake); font-family: var(--sans); font-size: 14px; font-weight: 450; }
.lake-label { fill: #4F7470; font-family: var(--serif); font-style: italic; font-size: 18px; }
.map-pin path { fill: var(--gold); }
.map-pin circle { fill: var(--lake); }
.infos-contact .big-link { font-family: var(--serif); font-size: 1.5rem; text-decoration: none; }
.infos-contact p a { text-decoration: none; }
.infos-contact .btn { margin-top: 1rem; }
@media (max-width: 960px) { .infos-grid { grid-template-columns: 1fr 1fr; } .map-card { grid-column: span 2; order: -1; } }
@media (max-width: 620px) { .infos-grid { grid-template-columns: 1fr; } .map-card { grid-column: auto; } }

/* Fin de page */
.outro { position: relative; display: grid; place-items: center; min-height: 86vh; padding: 5rem clamp(1rem, 4vw, 3rem); text-align: center; color: var(--cream); overflow: hidden; isolation: isolate; }
.outro::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 60% at 50% 50%, rgba(13, 20, 17, .35), rgba(13, 20, 17, .82)); }
.outro-text { max-width: 900px; }
.outro-title { margin: 0 0 2rem; font-family: var(--serif); font-size: clamp(2.6rem, 7vw, 6rem); line-height: 1; }
.outro-title em { font-style: italic; color: var(--gold-2); }

/* Pied de page */
.foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; padding: 2.2rem clamp(1rem, 4vw, 2.5rem) 2.6rem; background: var(--lake); color: rgba(245, 238, 226, .75); font-size: .88rem; }
.foot .brand { color: var(--cream); }
.foot-links { display: flex; flex-wrap: wrap; gap: 1.4rem; margin: 0; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--gold-2); }

/* Barre du bas (téléphone) */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: 76px; }
  .mobile-bar { position: fixed; z-index: 55; left: 12px; right: 12px; bottom: 12px; display: grid; grid-template-columns: 1fr 1.6fr; gap: 8px; padding: 7px; border-radius: 999px; background: rgba(22, 33, 29, .97); box-shadow: 0 20px 40px -15px rgba(0, 0, 0, .5); }
  .mobile-bar a { display: grid; place-items: center; min-height: 48px; border-radius: 999px; color: var(--cream); font-size: .95rem; font-weight: 450; text-decoration: none; }
  .mobile-bar .is-main { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--lake); }
}

/* Apparitions au défilement */
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.hero-content [data-reveal]:nth-child(3) { transition-delay: .35s; }
.hero-content [data-reveal]:nth-child(4) { transition-delay: .5s; }


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .arch img { transform: none; }
}

/* Safari : cadres arrondis qui rognent une image en mouvement, isolés pour ne pas scintiller ;
   titres mot à mot : une fois apparus, les mots ne sont plus rognés un à un */
.room-photo, .story-frame, .story-img, .reel figure, .arch, .groups-photo, .work figure, .compare-stage, .daily-photo, .drawer-photo, .story-inline { isolation: isolate; transform: translateZ(0); }
[data-split].is-done .w { overflow: visible; }
