/* ==========================================================================
   Osteria Bella Casa — feuille de style
   ========================================================================== */

:root {
  /* Couleurs */
  --blue-900: #182631;
  --blue-800: #1e3040;
  --blue-700: #24394b;
  --cream: #ede6d7;
  --cream-100: #e5dcc8;
  --paper: #f6f1e7;
  --terracotta: #8b5540;
  --terracotta-dark: #75462f;
  --terracotta-light: #c89377;
  --wine: #722f37;
  --wood: #6b4e3a;
  --ink: #211f1c;
  --ink-2: #4a443c;
  --ink-3: #6e665b;
  --line: rgba(33, 31, 28, 0.12);
  --line-light: rgba(237, 230, 215, 0.14);

  /* Typographie */
  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-editorial: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-hand: "Caveat", "Segoe Script", cursive;

  /* Mise en page */
  --max: 1320px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 76px;
  --ease: cubic-bezier(.16, 1, .3, 1);

  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream) var(--noise);
  color: var(--ink);
  font-family: var(--font-editorial);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
a { color: var(--blue-700); text-decoration: none; }
a:hover { color: var(--terracotta); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; }
.on-dark :focus-visible, .site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--terracotta-light); }
::selection { background: var(--terracotta); color: var(--cream); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
body.is-locked { overflow: hidden; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 1000;
  background: var(--terracotta); color: var(--cream);
  padding: 12px 18px; font-family: var(--font-display); letter-spacing: .12em; text-transform: uppercase; font-size: .8rem;
  transition: top .2s;
}
.skip-link:focus { top: 12px; color: var(--cream); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 960px; }
.section { padding: clamp(72px, 10vw, 140px) 0; position: relative; }
.section--tint { background: var(--cream-100) var(--noise); }
.section--dark { background: var(--blue-900) var(--noise); color: var(--cream); }
.section--blue { background: var(--blue-700) var(--noise); color: var(--cream); }
.section--clip { overflow: hidden; }

/* ---------- Typographie ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-size: .75rem; font-weight: 500;
  letter-spacing: .26em; text-transform: uppercase; color: var(--terracotta);
}
.eyebrow::before { content: ""; width: 28px; height: 1.5px; background: currentColor; }
.on-dark .eyebrow, .section--dark .eyebrow, .section--blue .eyebrow, .page-hero .eyebrow, .hero .eyebrow { color: var(--terracotta-light); }

.display {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  line-height: .95; letter-spacing: .01em; color: var(--blue-700);
}
.section--dark .display, .section--blue .display, .page-hero .display, .hero .display { color: var(--cream); }
.h-xl { font-size: clamp(3.2rem, 9vw, 7.6rem); line-height: .86; }
.h-lg { font-size: clamp(2.4rem, 5vw, 4rem); }
.h-md { font-size: clamp(2rem, 4vw, 3.2rem); }
.h-sm { font-size: clamp(1.4rem, 2.4vw, 1.7rem); letter-spacing: .08em; }

.hand { font-family: var(--font-hand); font-weight: 500; line-height: 1; color: var(--wine); font-size: clamp(1.8rem, 3.2vw, 2.4rem); }
.section--dark .hand, .section--blue .hand, .page-hero .hand, .hero .hand { color: var(--terracotta-light); }

.lead { font-size: clamp(1.15rem, 1.6vw, 1.3rem); line-height: 1.65; max-width: 46ch; }
.prose { display: flex; flex-direction: column; gap: 18px; max-width: 56ch; }
.muted { color: var(--ink-3); }
.italic { font-style: italic; }
.section--dark .muted, .section--blue .muted { color: rgba(237, 230, 215, .66); }
.stack { display: flex; flex-direction: column; gap: 22px; }
.stack--sm { gap: 12px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 15px 28px;
  font-family: var(--font-display); font-size: .88rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  border: 1.5px solid transparent; border-radius: 2px; cursor: pointer; text-align: center;
  transition: background .15s, color .15s, border-color .15s, transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--terracotta); color: var(--cream); }
.btn--primary:hover { background: var(--terracotta-dark); color: var(--cream); box-shadow: 0 12px 26px rgba(24, 38, 49, .25); }
.btn--blue { background: var(--blue-700); color: var(--cream); }
.btn--blue:hover { background: var(--blue-900); color: var(--cream); }
.btn--cream { background: var(--cream); color: var(--blue-900); }
.btn--cream:hover { background: #fffdf9; color: var(--blue-900); box-shadow: 0 14px 28px rgba(13, 20, 26, .3); }
.btn--ghost { background: transparent; color: var(--cream); border-color: rgba(237, 230, 215, .55); }
.btn--ghost:hover { background: rgba(237, 230, 215, .1); color: var(--cream); }
.btn--ghost-dark { background: transparent; color: var(--blue-700); border-color: rgba(36, 57, 75, .5); }
.btn--ghost-dark:hover { background: rgba(36, 57, 75, .06); color: var(--blue-700); }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.link-arrow {
  align-self: flex-start; font-style: italic; font-size: 1.1rem;
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
.section--dark .link-arrow, .section--blue .link-arrow { color: var(--cream); }

/* ---------- En-tête ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  background: rgba(24, 38, 49, .96);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-light);
  transition: transform .4s cubic-bezier(.4, 0, .2, 1), background .3s;
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header.is-top.is-over-hero { background: linear-gradient(rgba(24, 38, 49, .55), rgba(24, 38, 49, 0)); border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; flex-direction: column; gap: 2px; color: var(--cream); line-height: 1; }
.brand:hover { color: var(--cream); }
.brand small { font-family: var(--font-display); font-size: .58rem; letter-spacing: .34em; text-transform: uppercase; color: rgba(237, 230, 215, .62); }
.brand strong { font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: clamp(20px, 2.8vw, 38px); }
.nav a {
  position: relative; padding: 8px 0;
  font-family: var(--font-display); font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--cream);
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1.5px; background: var(--terracotta-light);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav a:hover { color: var(--cream); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav .btn { min-height: 42px; padding: 10px 18px; font-size: .74rem; }
.nav .btn::after { display: none; }

.menu-toggle {
  display: none; align-items: center; gap: 10px; padding: 10px 0; background: none; border: 0; cursor: pointer; color: var(--cream);
  font-family: var(--font-display); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
}
.menu-toggle span.bars { display: flex; flex-direction: column; gap: 5px; }
.menu-toggle span.bars i { display: block; width: 26px; height: 1.5px; background: currentColor; }

/* Menu mobile */
.mobile-menu {
  position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column;
  padding: 18px var(--gutter) 32px; background: var(--blue-900) var(--noise); color: var(--cream);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  overflow-y: auto;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu__top { display: flex; align-items: center; justify-content: space-between; height: 54px; }
.icon-btn {
  width: 44px; height: 44px; display: inline-grid; place-items: center; cursor: pointer;
  background: none; border: 1px solid rgba(237, 230, 215, .3); border-radius: 2px; color: inherit; font-size: 1.1rem;
}
.mobile-menu nav { display: flex; flex-direction: column; margin-top: 36px; }
.mobile-menu nav a {
  display: flex; align-items: baseline; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line-light);
  font-family: var(--font-display); font-size: clamp(1.8rem, 8vw, 2.3rem); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--cream);
  transform: translateY(12px); opacity: 0; transition: transform .5s var(--ease), opacity .5s var(--ease);
}
.mobile-menu nav a small { font-size: .7rem; letter-spacing: .2em; color: rgba(237, 230, 215, .45); font-weight: 400; }
.mobile-menu.is-open nav a { transform: none; opacity: 1; }
.mobile-menu.is-open nav a:nth-child(2) { transition-delay: .05s; }
.mobile-menu.is-open nav a:nth-child(3) { transition-delay: .1s; }
.mobile-menu.is-open nav a:nth-child(4) { transition-delay: .15s; }
.mobile-menu.is-open nav a:nth-child(5) { transition-delay: .2s; }
.mobile-menu__foot { margin-top: auto; padding-top: 32px; display: flex; flex-direction: column; gap: 16px; }
.mobile-menu__foot a.tel { color: rgba(237, 230, 215, .8); font-size: 1.1rem; }

@media (max-width: 960px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
}

/* Bouton flottant */
.fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 150;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 22px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--terracotta); color: var(--cream);
  font-family: var(--font-display); font-size: .8rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  box-shadow: 0 12px 28px rgba(24, 38, 49, .35);
  transition: transform .3s var(--ease), background .15s, opacity .3s;
}
.fab:hover { background: var(--terracotta-dark); transform: translateY(-3px); }
.fab.is-away { opacity: 0; transform: translateY(20px); pointer-events: none; }
.fab svg { width: 18px; height: 18px; }
.fab-call { display: none; }
@media (max-width: 640px) {
  .fab { right: 12px; bottom: 12px; padding: 14px 18px; }
  .fab-call {
    display: inline-grid; place-items: center; position: fixed; left: 12px; bottom: 12px; z-index: 150;
    width: 52px; height: 52px; border-radius: 50%; background: var(--blue-700); color: var(--cream);
    box-shadow: 0 12px 28px rgba(24, 38, 49, .35); transition: opacity .3s, transform .3s var(--ease);
  }
  .fab-call:hover { color: var(--cream); }
  .fab-call.is-away { opacity: 0; transform: translateY(20px); pointer-events: none; }
  .fab-call svg { width: 22px; height: 22px; }
}

/* ---------- Hero accueil ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden;
  background: var(--blue-700) var(--noise); color: var(--cream);
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 7s var(--ease) both; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(24, 38, 49, .88) 0%, rgba(24, 38, 49, .55) 55%, rgba(24, 38, 49, .25) 100%),
    linear-gradient(0deg, rgba(24, 38, 49, .7), rgba(24, 38, 49, 0) 40%);
}
/* Décor quand aucune photo n'est fournie */
.hero__deco { position: absolute; inset: 0; pointer-events: none; }
.hero__deco .arch {
  position: absolute; right: -6vw; top: 50%; transform: translateY(-50%);
  width: min(56vw, 720px); aspect-ratio: 3 / 4; border-radius: 999px 999px 0 0;
  background:
    radial-gradient(circle at 50% 30%, rgba(200, 147, 119, .35), rgba(200, 147, 119, 0) 60%),
    linear-gradient(180deg, rgba(139, 85, 64, .5), rgba(114, 47, 55, .35));
  box-shadow: inset 0 0 0 1.5px rgba(237, 230, 215, .18);
}
.hero__deco .arch::after {
  content: ""; position: absolute; inset: 22px; border-radius: inherit; border: 1px dashed rgba(237, 230, 215, .22);
}
.hero__content { position: relative; z-index: 1; padding-top: calc(var(--header-h) + 60px); padding-bottom: 150px; }
.hero__content .stack { max-width: 760px; gap: 24px; }
.hero .lead { color: rgba(237, 230, 215, .85); max-width: 40ch; }
.hero__bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  border-top: 1px solid var(--line-light); background: rgba(24, 38, 49, .55);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.hero__bar .container { display: flex; flex-wrap: wrap; gap: 10px 36px; padding-top: 18px; padding-bottom: 18px; }
.hero__bar a, .hero__bar span { display: inline-flex; align-items: center; gap: 10px; color: rgba(237, 230, 215, .85); font-size: 1rem; }
.hero__bar a:hover { color: var(--terracotta-light); }
.hero__bar svg { width: 16px; height: 16px; flex: none; color: var(--terracotta-light); }
.scroll-cue {
  position: absolute; right: var(--gutter); bottom: 90px; z-index: 1;
  writing-mode: vertical-rl; font-family: var(--font-display); font-size: .66rem; letter-spacing: .3em; text-transform: uppercase; color: rgba(237, 230, 215, .55);
  display: flex; align-items: center; gap: 12px;
}
.scroll-cue::after { content: ""; width: 1px; height: 54px; background: linear-gradient(rgba(237, 230, 215, .6), transparent); animation: cue 2.2s ease-in-out infinite; }
@media (max-width: 640px) { .scroll-cue { display: none; } .hero__content { padding-bottom: 170px; } }

@keyframes kenburns { from { transform: scale(1.1); } to { transform: scale(1); } }
@keyframes cue { 0%, 100% { transform: scaleY(.4); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } }

/* ---------- En-tête des pages internes ---------- */
.page-hero { background: var(--blue-700) var(--noise); color: var(--cream); padding: calc(var(--header-h) + clamp(56px, 8vw, 96px)) 0 clamp(48px, 6vw, 72px); position: relative; overflow: hidden; }
.page-hero .stack { gap: 16px; }
.page-hero .lead { color: rgba(237, 230, 215, .78); }
.page-hero .ghost-word { color: rgba(237, 230, 215, .05); right: -2vw; bottom: -3vw; }

/* ---------- Mots décoratifs ---------- */
.ghost-word {
  position: absolute; pointer-events: none; user-select: none;
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase; line-height: .78;
  font-size: clamp(7rem, 22vw, 19rem); color: rgba(139, 85, 64, .09);
}

/* ---------- Photos (avec emplacement si le fichier manque) ---------- */
.ph {
  position: relative; overflow: hidden; min-width: 0;
  background:
    repeating-linear-gradient(135deg, rgba(139, 85, 64, .07) 0 2px, transparent 2px 14px),
    linear-gradient(160deg, #e0d4bd, #cdbb9d);
}
.ph::before {
  content: attr(data-label); position: absolute; inset: auto 14px 14px 14px;
  font-family: var(--font-display); font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(33, 31, 28, .5);
}
.ph::after {
  content: ""; position: absolute; left: 50%; top: 45%; width: 42px; height: 42px; transform: translate(-50%, -50%); opacity: .35;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b5540' stroke-width='1.3'%3E%3Crect x='3' y='5' width='18' height='14' rx='1'/%3E%3Ccircle cx='9' cy='10' r='1.8'/%3E%3Cpath d='M21 16l-5-5-8 8'/%3E%3C/svg%3E");
}
.ph img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.ph:hover img { transform: scale(1.05); }
.ph--dark { background: repeating-linear-gradient(135deg, rgba(237, 230, 215, .05) 0 2px, transparent 2px 14px), linear-gradient(160deg, #2c4458, #1e3040); }
.ph--dark::before { color: rgba(237, 230, 215, .45); }
.r-3-4 { aspect-ratio: 3 / 4; }
.r-4-5 { aspect-ratio: 4 / 5; }
.r-1 { aspect-ratio: 1; }
.r-16-10 { aspect-ratio: 16 / 10; }
.tilt-r { transform: rotate(1.4deg); box-shadow: 8px 8px 0 rgba(24, 38, 49, .14); }
.tilt-l { transform: rotate(-1.2deg); box-shadow: 8px 8px 0 rgba(24, 38, 49, .14); }

.stamp {
  position: absolute; width: clamp(110px, 14vw, 168px); aspect-ratio: 1; z-index: 2;
  filter: drop-shadow(5px 5px 0 rgba(24, 38, 49, .16));
}
.stamp img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- Grilles ---------- */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: clamp(40px, 6vw, 90px); align-items: center; }
.split--top { align-items: start; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.grid-4 > :nth-child(even) { margin-top: clamp(0px, 4vw, 52px); }
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .grid-4 > :nth-child(even) { margin-top: 28px; }
}
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head p { max-width: 42ch; }

.dish-card { display: flex; flex-direction: column; gap: 12px; }
.dish-card figcaption { font-family: var(--font-display); font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--wood); }

/* Galerie défilante (mobile) */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 760px) {
  .gallery {
    grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 72%;
    overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 8px;
    scrollbar-width: none;
  }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery > * { scroll-snap-align: start; }
}

/* ---------- Carte : lignes de menu ---------- */
.menu-list { display: flex; flex-direction: column; }
.dish { padding: 20px 0; border-bottom: 1px solid var(--line); }
.dish__row { display: flex; align-items: baseline; gap: 14px; }
.dish__name {
  font-family: var(--font-display); font-size: 1.28rem; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: var(--blue-700);
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 10px;
}
.dish__dots { flex: 1; min-width: 20px; border-bottom: 1.5px dotted rgba(33, 31, 28, .3); transform: translateY(-5px); }
.dish__price { font-family: var(--font-display); font-size: 1.2rem; color: var(--terracotta); white-space: nowrap; font-variant-numeric: tabular-nums; }
.dish__desc { margin-top: 6px; max-width: 62ch; font-style: italic; font-size: 1.05rem; line-height: 1.5; color: var(--ink-2); }
.dish__note { font-style: italic; font-size: .92rem; color: var(--ink-3); }
.tag {
  display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px 1px; border-radius: 999px;
  font-family: var(--font-display); font-size: .6rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  border: 1px solid currentColor; line-height: 1.5; transform: translateY(-2px);
}
.tag--veg { color: #4f6b3a; }
.tag--mer { color: #2f5f7a; }
.tag--maison { color: var(--wine); }

.menu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 0 48px; }
.menu-grid .dish { padding: 12px 0; }
.menu-grid .dish__name { font-family: var(--font-editorial); text-transform: none; letter-spacing: 0; font-size: 1.12rem; font-weight: 500; color: var(--ink); }
.menu-grid .dish__price { font-size: 1.05rem; }

.extras { margin-top: 26px; background: var(--paper); border: 1px solid var(--line); padding: 20px 22px; }
.extras h4 { font-family: var(--font-display); font-size: .72rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--wine); margin-bottom: 6px; }
.extras .dish { padding: 8px 0; border: 0; }

/* Variante sombre (cave, bar) */
.on-dark .dish { border-bottom-color: rgba(237, 230, 215, .1); }
.on-dark .dish__name { color: var(--cream); }
.on-dark .menu-grid .dish__name { color: rgba(237, 230, 215, .94); }
.on-dark .dish__dots { border-bottom-color: rgba(237, 230, 215, .28); }
.on-dark .dish__price { color: var(--terracotta-light); }
.on-dark .dish__desc { color: rgba(237, 230, 215, .66); }
.on-dark .dish__note { color: rgba(237, 230, 215, .5); }

/* ---------- Page carte ---------- */
.subnav {
  position: sticky; top: 0; z-index: 60; background: rgba(237, 230, 215, .96);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); transition: top .4s cubic-bezier(.4, 0, .2, 1);
}
body.header-visible .subnav { top: var(--header-h); }
.subnav__scroll { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 0 var(--gutter); max-width: var(--max); margin: 0 auto; }
.subnav__scroll::-webkit-scrollbar { display: none; }
.subnav a {
  flex: none; padding: 16px 12px; white-space: nowrap; border-bottom: 2px solid transparent;
  font-family: var(--font-display); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--blue-700);
}
.subnav a:hover { color: var(--terracotta); }
.subnav a.is-active { border-bottom-color: var(--terracotta); color: var(--terracotta); }
.subnav a.sep { margin-left: 10px; padding-left: 22px; border-left: 1px solid var(--line); }

.menu-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 28px 0 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 40px; padding: 8px 16px; border-radius: 999px; cursor: pointer;
  background: transparent; border: 1px solid rgba(33, 31, 28, .25); color: var(--ink-2);
  font-family: var(--font-display); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  transition: background .15s, color .15s, border-color .15s;
}
.chip:hover { border-color: var(--terracotta); color: var(--terracotta); }
.chip[aria-pressed="true"] { background: var(--blue-700); border-color: var(--blue-700); color: var(--cream); }
.search {
  position: relative; flex: 1 1 240px; max-width: 320px;
}
.search input {
  width: 100%; min-height: 44px; padding: 10px 14px 10px 40px; border-radius: 999px;
  border: 1px solid rgba(33, 31, 28, .25); background: var(--paper); font-size: 1.05rem;
}
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--ink-3); pointer-events: none; }
.no-result { padding: 40px 0; text-align: center; font-style: italic; color: var(--ink-3); }

.menu-body { display: flex; flex-direction: column; gap: clamp(64px, 8vw, 110px); padding: clamp(40px, 6vw, 70px) 0 clamp(80px, 10vw, 120px); }
.cat-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; margin-bottom: 26px; }
.cat-head h2 { font-size: clamp(2.1rem, 5vw, 3.5rem); letter-spacing: .06em; }
.cat-head span { font-style: italic; color: var(--terracotta); letter-spacing: .04em; }
.on-dark .cat-head span { color: var(--terracotta-light); }

.legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; font-size: .98rem; color: var(--ink-3); font-style: italic; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }

/* Cave */
.cantina { background: var(--blue-900) var(--noise); color: var(--cream); padding: clamp(72px, 9vw, 120px) 0; }
.tabs { display: inline-flex; padding: 4px; border: 1px solid rgba(237, 230, 215, .25); border-radius: 999px; gap: 4px; }
.tabs button {
  min-height: 42px; padding: 8px 20px; border-radius: 999px; border: 0; cursor: pointer; background: transparent; color: rgba(237, 230, 215, .8);
  font-family: var(--font-display); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
}
.tabs button[aria-selected="true"] { background: var(--cream); color: var(--blue-900); }
.wine-group + .wine-group { margin-top: 30px; }
.wine-group h4 { font-family: var(--font-display); font-size: .74rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--terracotta-light); margin-bottom: 4px; }
.wine .dish__name { font-family: var(--font-editorial); text-transform: none; letter-spacing: 0; font-size: 1.15rem; font-weight: 600; }
.wine__meta { margin-top: 3px; font-style: italic; font-size: .95rem; color: rgba(237, 230, 215, .55); }
.wine__meta b { font-weight: 500; font-style: normal; color: rgba(237, 230, 215, .7); }
.wine .dish__desc { font-style: normal; font-size: 1rem; }
.price-pair { display: inline-flex; gap: 12px; }
.price-pair small { font-family: var(--font-editorial); font-style: italic; font-size: .85rem; color: rgba(237, 230, 215, .5); margin-right: 4px; letter-spacing: 0; }
.bar-block + .bar-block { margin-top: clamp(50px, 6vw, 80px); }
.bar-block h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; border-bottom: 1.5px solid rgba(200, 147, 119, .7); padding-bottom: 10px; margin-bottom: 6px; }
.bar-block h3 small { font-family: var(--font-editorial); font-style: italic; font-size: .95rem; letter-spacing: .02em; text-transform: none; color: rgba(237, 230, 215, .55); font-weight: 400; }

.print-note { text-align: center; font-style: italic; font-size: .98rem; }

/* ---------- Accueil : extrait & cantina ---------- */
.menu-card { border-top: 3px solid var(--blue-700); }
.cantina-teaser .dish { padding: 8px 0; border: 0; }
.dashed-box { border: 1.5px dashed rgba(200, 147, 119, .6); padding: 20px 22px; max-width: 46ch; }
.dashed-box--light { border-color: rgba(139, 85, 64, .5); }
.box-title { display: block; font-family: var(--font-display); font-size: .7rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--terracotta); margin-bottom: 6px; }
.section--dark .box-title { color: var(--terracotta-light); }
.list-title { font-family: var(--font-display); font-size: .95rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; border-bottom: 1.5px solid rgba(200, 147, 119, .7); padding-bottom: 8px; margin-bottom: 8px; }

blockquote.quote { border-left: 2.5px solid var(--terracotta); padding-left: 24px; font-style: italic; font-size: 1.25rem; line-height: 1.55; }
blockquote.quote cite { display: block; margin-top: 12px; font-family: var(--font-display); font-style: normal; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }

/* Valeurs */
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 32px; }
.value { border-top: 2.5px solid var(--terracotta); padding-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.value span { font-family: var(--font-display); font-size: .7rem; letter-spacing: .2em; color: var(--terracotta); }
.value h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--blue-700); }
.value p { color: var(--ink-2); }

/* Infos pratiques */
.infos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: clamp(32px, 4vw, 60px); }
.info-col { display: flex; flex-direction: column; gap: 18px; }
.info-col > h2, .info-col > h3 { font-family: var(--font-display); font-size: 1.45rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-700); border-bottom: 1.5px solid var(--terracotta); padding-bottom: 10px; }
.info-item { display: flex; flex-direction: column; gap: 4px; }
.info-item .label { font-family: var(--font-display); font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--terracotta); }
.info-item a.big { font-size: 1.3rem; }
.soon { border: 1.5px dashed rgba(139, 85, 64, .5); padding: 14px 16px; color: var(--ink-3); font-style: italic; }
.soon .label { font-style: normal; }

.hours { width: 100%; border-collapse: collapse; font-size: 1.05rem; }
.hours th, .hours td { padding: 7px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.hours td { text-align: right; color: var(--ink-2); }
.hours tr.is-today th, .hours tr.is-today td { color: var(--terracotta); font-weight: 600; }
.status { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status--open { color: #4f7a3a; }
.status--closed { color: var(--wine); }
.hero .status--open { color: #a8d08d; }
.hero .status--closed { color: var(--terracotta-light); }

/* Carte Google (chargée au clic) */
.map-embed { position: relative; aspect-ratio: 16 / 10; background: var(--blue-700) var(--noise); color: var(--cream); overflow: hidden; }
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-embed__cover { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 24px; }
.map-embed__cover p { font-style: italic; color: rgba(237, 230, 215, .75); font-size: 1rem; max-width: 36ch; }
.map-embed__pin { width: 38px; height: 38px; color: var(--terracotta-light); }

/* ---------- Formulaire de réservation ---------- */
.form-note { font-style: italic; font-size: .95rem; color: var(--ink-3); }
.form-card { background: var(--paper) var(--noise); border: 1px solid var(--line); padding: clamp(22px, 4vw, 40px); display: flex; flex-direction: column; gap: 22px; }
/* Fenêtre modale */
.modal {
  position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(24, 38, 49, .72); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__dialog {
  width: 100%; max-width: 560px; max-height: calc(100svh - 32px); overflow-y: auto;
  background: var(--cream) var(--noise); border: 1px solid rgba(33, 31, 28, .18);
  box-shadow: 0 24px 60px -20px rgba(24, 38, 49, .5); padding: clamp(22px, 4vw, 40px);
  display: flex; flex-direction: column; gap: 20px;
  transform: translateY(16px) scale(.98); transition: transform .35s var(--ease);
}
.modal.is-open .modal__dialog { transform: none; }
.modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.modal .icon-btn { border-color: rgba(33, 31, 28, .2); color: var(--ink); }

/* ---------- CTA ---------- */
.cta { text-align: center; }
.cta .stack { align-items: center; max-width: 820px; margin: 0 auto; }
.cta .lead { color: rgba(237, 230, 215, .82); }

/* ---------- Pied de page ---------- */
.site-footer { position: relative; overflow: hidden; background: var(--blue-900) var(--noise); color: var(--cream); padding: clamp(60px, 8vw, 100px) 0 28px; }
.site-footer .ghost-word { left: 50%; transform: translateX(-50%); bottom: -1.5vw; white-space: nowrap; color: rgba(237, 230, 215, .05); font-size: clamp(4.5rem, 17vw, 15rem); }
.footer-grid { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 36px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.footer-col .label { font-family: var(--font-display); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(237, 230, 215, .5); }
.footer-col a, .footer-col address { color: rgba(237, 230, 215, .8); font-style: normal; }
.footer-col a:hover { color: var(--terracotta-light); }
.footer-col .hand { font-size: 1.8rem; }
.footer-col img { width: 96px; opacity: .9; }
.footer-bottom { position: relative; margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid rgba(237, 230, 215, .15); padding-top: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-family: var(--font-display); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(237, 230, 215, .45); }

/* ---------- Apparition au défilement ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal-group > .reveal:nth-child(2) { transition-delay: .1s; }
.js .reveal-group > .reveal:nth-child(3) { transition-delay: .2s; }
.js .reveal-group > .reveal:nth-child(4) { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0s !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .ph:hover img { transform: none; }
}

/* ---------- Impression (la carte s'imprime proprement) ---------- */
@media print {
  .site-header, .mobile-menu, .fab, .fab-call, .subnav, .menu-tools, .site-footer, .modal, .page-hero .btn-row, .skip-link { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .page-hero, .cantina, .section--dark { background: #fff !important; color: #000 !important; padding: 12pt 0 !important; }
  .page-hero .display, .cantina .display, .on-dark .dish__name, .on-dark .dish__desc, .on-dark .dish__price, .wine__meta { color: #000 !important; }
  .dish { break-inside: avoid; padding: 6pt 0; }
  .menu-body { gap: 24pt; padding: 0; }
  .js .reveal { opacity: 1; transform: none; }
  [role="tabpanel"][hidden] { display: block !important; }
  .tabs { display: none; }
}

/* ---------- Bon à savoir ---------- */
.good-to-know { margin-top: clamp(40px, 5vw, 64px); border: 1.5px dashed rgba(139, 85, 64, .45); padding: clamp(20px, 3vw, 32px); }
.good-to-know h2, .good-to-know h3 { color: var(--blue-700); margin-bottom: 18px; }
.good-to-know ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 16px 32px; }
.good-to-know li { display: flex; flex-direction: column; gap: 2px; }
.good-to-know .label { font-family: var(--font-display); font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--terracotta); }
.info-col .good-to-know, .stack > .good-to-know { margin-top: 0; }

/* ---------- Annonce ---------- */
.annonce { position: absolute; left: 0; right: 0; top: 100%; padding: 10px var(--gutter); text-align: center; background: var(--terracotta); color: var(--cream); font-family: var(--font-display); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; box-shadow: 0 8px 20px rgba(24, 38, 49, .2); }

/* ---------- Accueil : le hero reste en place et la section suivante glisse dessus ---------- */
.hero-stack { position: relative; }
.hero-stack > .hero { position: sticky; top: 0; z-index: 0; }
.hero-stack > .section { position: relative; z-index: 1; background: var(--cream) var(--noise); box-shadow: 0 -32px 56px rgba(24, 38, 49, .22); }
.cat-note { margin-top: 8px; padding: 6px 14px; border: 1px dashed rgba(139, 85, 64, .5); border-radius: 999px; font-style: italic; font-size: .95rem; color: var(--ink-3); }
@media (max-width: 640px) {
  .hero__media::after { background: linear-gradient(180deg, rgba(24, 38, 49, .78) 0%, rgba(24, 38, 49, .7) 60%, rgba(24, 38, 49, .85) 100%); }
}

/* ---------- Galerie ---------- */
.gal-grid { columns: 3 280px; column-gap: 16px; }
.gal-item { break-inside: avoid; margin: 0 0 16px; display: flex; flex-direction: column; gap: 8px; }
.gal-item a { display: block; overflow: hidden; background: var(--cream-100); cursor: zoom-in; }
.gal-item img { width: 100%; height: auto; transition: transform .9s var(--ease); }
.gal-item a:hover img { transform: scale(1.04); }
.gal-item figcaption { font-family: var(--font-display); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--wood); }
@media (max-width: 640px) { .gal-grid { columns: 2 150px; column-gap: 10px; } .gal-item { margin-bottom: 10px; } .gal-item figcaption { font-size: .6rem; } }

.lightbox { position: fixed; inset: 0; z-index: 400; display: flex; align-items: center; justify-content: center; background: rgba(12, 18, 24, .94); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox figure { margin: 0; max-width: min(92vw, 1100px); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lightbox img { max-width: 100%; max-height: 80svh; width: auto; height: auto; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lightbox figcaption { color: var(--cream); font-style: italic; font-size: 1.05rem; text-align: center; }
.lightbox figcaption small { display: block; margin-top: 4px; font-style: normal; font-family: var(--font-display); font-size: .66rem; letter-spacing: .2em; color: rgba(237, 230, 215, .5); }
.lightbox .icon-btn { position: absolute; color: var(--cream); border-color: rgba(237, 230, 215, .35); background: rgba(24, 38, 49, .6); }
.lightbox [data-lb-close] { top: 16px; right: 16px; }
.lightbox [data-lb-prev] { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox [data-lb-next] { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) { .lightbox [data-lb-prev], .lightbox [data-lb-next] { top: auto; bottom: 20px; transform: none; } }

/* ---------- Mentions légales ---------- */
.legal { max-width: 760px; }
.legal h2 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-700); margin: 44px 0 14px; padding-bottom: 8px; border-bottom: 1.5px solid var(--terracotta); }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--ink-2); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 20px; margin: 14px 0; display: flex; flex-direction: column; gap: 10px; }
.legal dl { display: grid; grid-template-columns: minmax(0, 240px) 1fr; gap: 8px 24px; margin: 0; }
.legal dt { font-family: var(--font-display); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--terracotta); padding-top: 5px; }
.legal dd { margin: 0; }
@media (max-width: 640px) { .legal dl { grid-template-columns: 1fr; gap: 2px; } .legal dd { margin-bottom: 10px; } }

/* ---------- La nostra cucina : 5 photos ---------- */
.grid-5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.grid-5 > :nth-child(even) { margin-top: clamp(0px, 4vw, 52px); }
@media (max-width: 1100px) {
  .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .grid-5 > :nth-child(even) { margin-top: 28px; }
  /* 5e photo : même taille que les autres, centrée sous les deux colonnes */
  .grid-5 > :nth-child(5) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 7px); margin-top: 28px; }
}
