/* ============ Tokens ============ */
:root {
  --wine: #7A2331;
  --wine-dark: #591620;
  --gold: #C99A3B;
  --paper: #FBF7F0;
  --cream: #F3EADB;
  --ink: #231612;
  --grey: #6F6056;
  --line: #E3D5BF;
  --board: #1F2A25;
  --chalk: #F1ECE0;
  --white: #FFFFFF;

  --serif: "Fraunces", Georgia, serif;
  --sans: "Work Sans", Arial, Helvetica, sans-serif;
  --hand: "Caveat", "Segoe Print", cursive;

  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 72px; --s7: 112px;
  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1200px;
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, p, figure, ul, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--s3); }
@media (min-width: 768px) { .container { padding-inline: var(--s4); } }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [role="tab"]:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px;
}

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--wine); color: var(--white); padding: var(--s2) var(--s3); z-index: 300; }
.skip-link:focus { left: 0; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; letter-spacing: -0.015em; font-optical-sizing: auto; }
h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h3 { font-size: 1.25rem; }

.eyebrow {
  display: inline-block; font-family: var(--sans); font-size: 0.76rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--wine); margin-bottom: var(--s2);
}
.eyebrow-light { color: var(--gold); }
.lede { color: var(--grey); font-size: 1.1rem; max-width: 52ch; }
.section-head { max-width: 720px; margin-bottom: var(--s5); }

/* ============ Demo banner ============ */
.demo-banner { background: var(--ink); color: rgba(255,255,255,0.85); text-align: center; font-size: 0.82rem; padding: 9px var(--s2); }
.demo-banner a { color: var(--gold); font-weight: 600; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 0.97rem;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn-wine { background: var(--wine); color: var(--white); }
.btn-wine:hover { background: var(--wine-dark); transform: translateY(-2px); box-shadow: 0 14px 28px -14px rgba(89,22,32,.7); }
.btn-outline-light { color: var(--white); border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.06); backdrop-filter: blur(6px); }
.btn-outline-light:hover { border-color: var(--white); transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ============ Header ============ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251,247,240,.9); backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 30px -24px rgba(35,22,18,.6); }
.site-header > .container { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); height: 76px; }

.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1; }
.brand-word { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.7rem; letter-spacing: -0.02em; }
.brand-sub { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--grey); margin-top: 4px; }

.main-nav { display: none; }
.main-nav ul { display: flex; gap: var(--s4); }
.main-nav a { text-decoration: none; font-weight: 500; font-size: 0.95rem; position: relative; padding-block: 4px; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px; background: var(--wine); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.main-nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: var(--s2); }
.header-actions .btn { display: none; padding: 11px 22px; }

.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; }
.nav-toggle svg { width: 20px; height: 20px; }

.mobile-nav { display: none; border-top: 1px solid var(--line); background: var(--paper); }
.mobile-nav.is-open { display: block; }
.mobile-nav .container { display: flex; flex-direction: column; padding-block: var(--s3); }
.mobile-nav a:not(.btn) { font-family: var(--serif); font-size: 1.5rem; text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mobile-nav .btn { margin-top: var(--s3); }

@media (min-width: 1024px) {
  .main-nav { display: block; }
  .header-actions .btn { display: inline-flex; }
  .nav-toggle, .mobile-nav { display: none !important; }
}

/* ============ Hero ============ */
.hero { position: relative; min-height: min(92vh, 880px); display: flex; color: var(--white); overflow: hidden; background: var(--ink); }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 115%; object-fit: cover; will-change: transform; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,10,8,.35) 0%, rgba(20,10,8,.15) 35%, rgba(20,10,8,.85) 100%);
}
.hero-inner { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: flex-end; padding-block: var(--s6) var(--s5); }

.hero-kicker { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,.85); margin-bottom: var(--s2); animation: rise .8s var(--ease) both; }
.hero-title {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(4.2rem, 17vw, 14rem); line-height: .85; letter-spacing: -0.045em;
  margin-left: -0.04em; animation: rise 1s var(--ease) both .1s;
}
.hero-bottom { display: grid; gap: var(--s3); margin-top: var(--s4); animation: rise .9s var(--ease) both .25s; }
.hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 40ch; color: rgba(255,255,255,.88); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s2); }

.status-card {
  align-self: flex-start; margin-top: var(--s4);
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: 999px; text-decoration: none;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(10px);
  font-size: 0.88rem; animation: rise .9s var(--ease) both .4s;
}
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #9AA39D; flex-shrink: 0; }
.status-card.is-open .status-dot { background: #6FD08C; box-shadow: 0 0 0 0 rgba(111,208,140,.6); animation: pulse 2s infinite; }

@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(111,208,140,.55); } 70% { box-shadow: 0 0 0 10px rgba(111,208,140,0); } 100% { box-shadow: 0 0 0 0 rgba(111,208,140,0); } }

@media (min-width: 900px) {
  .hero-bottom { grid-template-columns: 1fr auto; align-items: end; }
  .status-card { position: absolute; top: var(--s5); right: var(--s4); margin-top: 0; }
}

/* ============ Marquee ============ */
.marquee { background: var(--wine); color: var(--cream); overflow: hidden; padding-block: 16px; }
.marquee-track { display: flex; gap: var(--s4); width: max-content; animation: scroll-x 38s linear infinite; font-family: var(--serif); font-style: italic; font-size: 1.35rem; white-space: nowrap; }
.marquee-track span:nth-child(even) { color: var(--gold); font-style: normal; font-size: 1rem; align-self: center; }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ============ Ardoise ============ */
.ardoise-section { padding-block: var(--s7); }
.ardoise-grid { display: grid; gap: var(--s5); align-items: center; }
.formule { margin-top: var(--s4); display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; padding: var(--s2) var(--s3); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); color: var(--grey); }
.formule strong { color: var(--ink); }
.formule span { margin-left: auto; font-family: var(--serif); font-size: 1.5rem; color: var(--wine); }

.ardoise {
  position: relative; padding: var(--s5) var(--s4) var(--s4);
  background:
    radial-gradient(120% 90% at 20% 10%, rgba(255,255,255,.06), transparent 60%),
    radial-gradient(90% 70% at 90% 100%, rgba(255,255,255,.04), transparent 60%),
    var(--board);
  color: var(--chalk); border-radius: 6px;
  border: 12px solid #6B4A2E;
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.25), 0 30px 60px -30px rgba(35,22,18,.7);
  transform: rotate(-1deg);
}
.ardoise-date { font-family: var(--hand); font-size: 1.9rem; color: var(--gold); line-height: 1; margin-bottom: var(--s3); }
.ardoise-date::first-letter { text-transform: uppercase; }
.ardoise-list { display: grid; gap: var(--s2); }
.ardoise-list li { display: flex; align-items: baseline; gap: var(--s2); font-family: var(--hand); font-size: 1.65rem; line-height: 1.2; }
.ardoise-list li span:first-child { flex: 1; }
.ardoise-list li span:last-child { font-weight: 700; }
.ardoise-list li span:last-child::after { content: " €"; }
.ardoise-sign { font-family: var(--hand); font-size: 1.5rem; text-align: right; margin-top: var(--s3); opacity: .75; }

@media (min-width: 900px) { .ardoise-grid { grid-template-columns: 0.9fr 1.1fr; gap: var(--s6); } }

/* ============ Story ============ */
.story { padding-block: var(--s7); background: var(--cream); }
.story-grid { display: grid; gap: var(--s6); align-items: center; }
.story-quote { font-style: italic; font-size: clamp(1.8rem, 3.6vw, 2.8rem); margin-bottom: var(--s4); }
.story-copy p { color: var(--grey); max-width: 52ch; }
.story-sign { margin-top: var(--s3); font-family: var(--hand); font-size: 1.6rem; color: var(--wine) !important; }

.story-media { position: relative; padding-bottom: 18%; }
.story-img { overflow: hidden; border-radius: var(--radius); }
.story-img img { width: 100%; height: 100%; object-fit: cover; }
.story-img-main { width: 82%; margin-left: auto; aspect-ratio: 4 / 5; }
.story-img-small { position: absolute; left: 0; bottom: 0; width: 52%; aspect-ratio: 1; border: 8px solid var(--cream); }

@media (min-width: 900px) { .story-grid { grid-template-columns: 1fr 1fr; } }

/* ============ Carte ============ */
.carte { padding-block: var(--s7); }
.carte-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s4); }

.veg-toggle { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 0.93rem; font-weight: 500; user-select: none; }
.veg-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.veg-switch { width: 42px; height: 24px; border-radius: 999px; background: var(--line); position: relative; transition: background .25s var(--ease); flex-shrink: 0; }
.veg-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--white); box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .25s var(--ease); }
.veg-toggle input:checked + .veg-switch { background: #4E7A55; }
.veg-toggle input:checked + .veg-switch::after { transform: translateX(18px); }
.veg-toggle input:focus-visible + .veg-switch { outline: 3px solid var(--gold); outline-offset: 2px; }

.tabs { display: flex; gap: var(--s1); overflow-x: auto; padding-bottom: 4px; margin-bottom: var(--s4); border-bottom: 1px solid var(--line); scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex-shrink: 0; background: none; border: none; cursor: pointer;
  font-family: var(--serif); font-size: 1.35rem; color: var(--grey);
  padding: 8px 14px 14px; position: relative;
}
.tab::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -5px; height: 2px; background: var(--wine); transform: scaleX(0); transition: transform .3s var(--ease); }
.tab[aria-selected="true"] { color: var(--ink); }
.tab[aria-selected="true"]::after { transform: scaleX(1); }

.menu-panel { display: grid; gap: 0 var(--s6); min-height: 200px; }
.menu-item { padding-block: var(--s3); border-bottom: 1px solid var(--line); animation: rise .5s var(--ease) both; }
.menu-item:nth-child(2) { animation-delay: .05s; }
.menu-item:nth-child(3) { animation-delay: .1s; }
.menu-row { display: flex; align-items: baseline; gap: var(--s2); }
.menu-name { font-family: var(--serif); font-size: 1.28rem; line-height: 1.25; }
.menu-dots { flex: 1; border-bottom: 1px dotted rgba(111,96,86,.45); transform: translateY(-5px); min-width: 20px; }
.menu-price { font-weight: 600; color: var(--wine); white-space: nowrap; }
.menu-desc { color: var(--grey); font-size: 0.95rem; margin-top: 4px; }
.menu-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag { font-size: 0.72rem; font-weight: 600; letter-spacing: .02em; padding: 3px 9px; border-radius: 999px; background: var(--cream); color: var(--grey); }
.tag-veg { background: #E3EDE2; color: #3F6446; }
.menu-empty, .menu-loading { color: var(--grey); padding-block: var(--s4); }

.allergen-note { margin-top: var(--s5); padding: var(--s3); border-radius: var(--radius); background: var(--cream); color: var(--grey); font-size: 0.9rem; display: grid; gap: 6px; }
.allergen-note strong { color: var(--ink); }

@media (min-width: 900px) { .menu-panel { grid-template-columns: 1fr 1fr; } }

/* ============ Galerie ============ */
.galerie { padding-block: var(--s7) var(--s6); background: var(--ink); color: var(--cream); }
.galerie h2 { color: var(--white); }
.galerie .eyebrow { color: var(--gold); }

.mosaic {
  display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: var(--s2);
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--s3) var(--s3); scroll-padding-inline: var(--s3);
  scrollbar-width: thin;
}
.tile { position: relative; overflow: hidden; border-radius: var(--radius); scroll-snap-align: start; aspect-ratio: 4 / 5; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.tile:hover img { transform: scale(1.05); }
.tile figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: var(--s4) var(--s2) var(--s2);
  background: linear-gradient(0deg, rgba(20,10,8,.75), transparent);
  font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--white);
}

@media (min-width: 900px) {
  .mosaic {
    grid-auto-flow: row; grid-auto-columns: auto; overflow: visible;
    grid-template-columns: repeat(12, 1fr); grid-template-rows: repeat(2, 260px);
    max-width: var(--container); margin-inline: auto; padding: 0 var(--s4);
  }
  .tile { aspect-ratio: auto; }
  .tile-a { grid-column: 1 / 6; grid-row: 1 / 3; }
  .tile-b { grid-column: 6 / 10; grid-row: 1 / 2; }
  .tile-c { grid-column: 10 / 13; grid-row: 1 / 2; }
  .tile-d { grid-column: 6 / 9; grid-row: 2 / 3; }
  .tile-e { grid-column: 9 / 13; grid-row: 2 / 3; }
}

/* ============ Avis ============ */
.avis { padding-block: var(--s7); }
.avis-grid { display: grid; gap: var(--s5); align-items: center; }
.score { font-family: var(--serif); font-size: clamp(4.5rem, 10vw, 7rem); line-height: 1; letter-spacing: -0.04em; }
.score span { font-size: .35em; color: var(--grey); letter-spacing: 0; }
.stars { color: var(--gold); font-size: 1.4rem; letter-spacing: 4px; margin-top: var(--s1); }
.score-note { margin-top: var(--s2); font-size: 0.85rem; color: var(--grey); max-width: 30ch; }
.avis-main blockquote { font-family: var(--serif); font-style: italic; font-size: clamp(1.5rem, 3vw, 2.3rem); line-height: 1.25; }
.avis-main figcaption { margin-top: var(--s3); color: var(--grey); font-size: 0.92rem; }

@media (min-width: 900px) { .avis-grid { grid-template-columns: 0.4fr 1fr; gap: var(--s6); } }

/* ============ Réservation ============ */
.reservation { padding-block: var(--s7); background: var(--wine); color: var(--white); scroll-margin-top: 70px; }
.reservation h2 { color: var(--white); margin-bottom: var(--s3); }
.reservation .lede { color: rgba(255,255,255,.82); }
.reservation-phone { margin-top: var(--s4); color: rgba(255,255,255,.82); }
.reservation-phone a { color: var(--white); font-weight: 600; }
.reservation-wrap { display: grid; gap: var(--s5); align-items: center; }

.reservation-card { background: var(--paper); color: var(--ink); border-radius: calc(var(--radius) + 4px); padding: var(--s4); box-shadow: 0 40px 80px -40px rgba(0,0,0,.6); }
.form-grid { display: grid; gap: var(--s3); margin-bottom: var(--s3); }
.form-row { display: grid; gap: var(--s3); }
@media (min-width: 480px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-field { display: grid; gap: 6px; }
.form-field label { font-size: 0.85rem; font-weight: 600; }
.optional { font-weight: 400; color: var(--grey); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: var(--ink); font-size: 1rem;
}
.form-field input, .form-field select { height: 50px; }
.form-field textarea { min-height: 88px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--wine); outline: none; box-shadow: 0 0 0 3px rgba(122,35,49,.15); }
.form-note { margin-top: var(--s2); font-size: 0.8rem; color: var(--grey); }

.form-success { display: none; text-align: center; padding: var(--s5) var(--s2); }
.form-success.is-visible { display: block; }
.success-title { font-family: var(--serif); font-style: italic; font-size: 2rem; margin-bottom: var(--s1); }
.form-success p:not(.success-title) { color: var(--grey); }

@media (min-width: 900px) { .reservation-wrap { grid-template-columns: 1fr 1fr; gap: var(--s6); } }

/* ============ Infos ============ */
.infos { padding-block: var(--s7); }
.infos-grid { display: grid; gap: var(--s5); }
.infos-block h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: var(--s3); }
.infos-block h3 { margin-bottom: var(--s2); }
.infos-block h3:not(:first-child) { margin-top: var(--s4); }
.infos-block p { color: var(--grey); }
.infos-block a { color: var(--ink); font-weight: 600; }
.hours li { display: flex; justify-content: space-between; gap: var(--s2); padding-block: 10px; border-bottom: 1px solid var(--line); color: var(--grey); }
.hours li span:last-child { color: var(--ink); font-weight: 500; text-align: right; }

.open-pill { display: inline-flex; align-items: center; gap: 8px; margin-top: var(--s3); padding: 7px 14px; border-radius: 999px; background: var(--cream); font-size: 0.88rem; font-weight: 600; color: var(--ink) !important; }
.open-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #9AA39D; }
.open-pill.is-open::before { background: #3FA55E; }

@media (min-width: 900px) { .infos-grid { grid-template-columns: 1fr 1fr; gap: var(--s6); } }

/* ============ Footer ============ */
.site-footer { background: var(--ink); color: rgba(255,255,255,.7); padding-block: var(--s6) var(--s4); overflow: hidden; }
.footer-word { font-family: var(--serif); font-style: italic; font-size: clamp(4rem, 16vw, 12rem); line-height: .9; letter-spacing: -0.045em; color: var(--cream); opacity: .9; }
.footer-credit { margin-top: var(--s4); padding-top: var(--s3); border-top: 1px solid rgba(255,255,255,.12); font-size: 0.85rem; }
.footer-credit a { color: var(--gold); font-weight: 600; }

/* ============ Reveal ============ */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
/* Clip the image, not the observed figure: a fully clipped target never counts as intersecting in Chrome. */
.js .reveal-img img { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--ease), transform .8s var(--ease); }
.js .reveal-img.is-visible img { clip-path: inset(0 0 0 0); }
.js .reveal-img figcaption { opacity: 0; transition: opacity .6s var(--ease) .5s; }
.js .reveal-img.is-visible figcaption { opacity: 1; }
.js .story-img-small.reveal-img img { transition-delay: .25s; }

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .marquee-track { animation: none; }
  .js .reveal { opacity: 1; transform: none; }
  .js .reveal-img img { clip-path: none; }
  .js .reveal-img figcaption { opacity: 1; }
}
