/* ==========================================================================
   Chez Martin – Brasserie 1910 · Vichy
   Esprit vieux Vichy : papier crème, encre olive, filets fins, petites capitales.
   DA : crème / sauge / vieux rose / olive · Rowan (serif) + Quilon (sans)
   ========================================================================== */

/* ---------- Polices (auto-hébergées, Fontshare / ITF Free Font License) ---------- */
@font-face { font-family: "Rowan"; src: url("../fonts/rowan-var.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Rowan"; src: url("../fonts/rowan-var-italic.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Quilon"; src: url("../fonts/quilon-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Quilon"; src: url("../fonts/quilon-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Quilon"; src: url("../fonts/quilon-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Quilon"; src: url("../fonts/quilon-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  /* Charte 2025 : primaires #8E9B8A #3F443D #FFF9E8 · secondaires #D8B4A0 #6A7466 #C9C0B6 #383B36 */
  --cream: #fff9e8;
  --cream-2: #f6eedb;
  --card: #fbf5e4;
  --sage: #8e9b8a;
  --sage-700: #6a7466;
  --sage-ink: #5d6b59; /* petits textes sur crème foncée (contraste AA) */
  --olive: #3f443d;
  --olive-900: #383b36;
  --taupe: #c9c0b6;
  --blush: #d8b4a0;
  --blush-700: #a87560;
  --text: #3f443d;
  --muted: #5b5f57;
  --rule: rgba(63, 68, 61, .2);
  --rule-strong: rgba(63, 68, 61, .5);
  --rule-light: rgba(255, 249, 232, .2);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .27 0 0 0 0 .2 0 0 0 .3 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  /* grain clair pour les fonds olive unis */
  --grain-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .98 0 0 0 0 .91 0 0 0 .16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  --f-serif: "Rowan", Georgia, "Times New Roman", serif;
  --f-sans: "Quilon", "Helvetica Neue", Arial, sans-serif;
  --f-title: var(--f-sans); /* charte : Quilon pour les titres, Rowan pour le texte */

  --container: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(5rem, 10vw, 8.5rem);
  --header-h: 80px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (max-width: 999px) { :root { --header-h: 66px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--cream) var(--grain);
  color: var(--text);
  font: 400 1.12rem/1.78 var(--f-serif);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
  font-feature-settings: "kern" 1, "liga" 1;
  overflow-x: clip;
}
p { text-wrap: pretty; }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, h5, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
abbr[title] { text-decoration: none; cursor: help; }
strong { font-weight: 600; }
address { font-style: normal; }
button { font: inherit; color: inherit; cursor: pointer; }
/* Focus clavier : vieux rose foncé sur fond clair, vieux rose clair sur fond sombre */
:focus-visible { outline: 2px solid var(--blush-700); outline-offset: 3px; border-radius: 2px; }
.topbar :focus-visible, .essentiel :focus-visible, .bar :focus-visible, .site-footer :focus-visible { outline-color: var(--blush); }
.tab:focus-visible { outline: none; }
.tablist .tab:focus-visible .tab-ico { box-shadow: inset 0 0 0 1px var(--rule-strong), 0 0 0 2px var(--cream), 0 0 0 4px var(--blush-700); }
.bar .tablist .tab:focus-visible .tab-ico { box-shadow: inset 0 0 0 1px var(--rule-light), 0 0 0 2px var(--olive), 0 0 0 4px var(--blush); }
.faq-item summary:focus-visible { outline-offset: -2px; }
.tabpanel:focus-visible { outline-offset: 8px; }
::selection { background: var(--blush); color: var(--olive); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden, .vh, .js .panel-title {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.small { font-size: .95rem; color: var(--muted); }
.ico { width: 1.1em; height: 1.1em; flex: none; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--olive); color: var(--cream); padding: .7rem 1rem; }
.skip-link:focus { top: 1rem; }

/* ---------- Typographie ---------- */
.eyebrow { font: 600 .72rem/1 var(--f-sans); letter-spacing: .3em; text-transform: uppercase; color: var(--sage-700); }
/* Titres en Quilon (charte) ; les mots en italique gardent Rowan, Quilon n'ayant pas d'italique */
.h2 { font: 600 clamp(2rem, 1.3rem + 2.1vw, 3rem)/1.1 var(--f-title); letter-spacing: -.015em; text-wrap: balance; }
.h2 em { font: italic 500 1.12em/1 var(--f-serif); letter-spacing: -.01em; color: var(--sage-700); }
.ornament { width: 88px; height: auto; color: var(--sage-700); margin: 0 auto 1.6rem; }
.ornament--light { color: var(--blush); }

.section { position: relative; padding-block: var(--section-y); }
.section-head { max-width: 40rem; margin: 0 auto clamp(3rem, 5vw, 4.2rem); text-align: center; }
.section-head > p:not(.eyebrow) { margin-top: 1.3rem; color: var(--muted); text-wrap: pretty; }

/* ---------- Compositions à fond perdu ---------- */
.bleed { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
.bleed-media { position: relative; min-height: 560px; margin: 0; overflow: hidden; }
.bleed-media > picture { position: absolute; inset: 0; }
.bleed-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.bleed:hover .bleed-media img { transform: scale(1.02); }
.bleed-content { align-self: center; padding-block: calc(var(--section-y) * 1.05); }
.bleed--left .bleed-content { padding-left: clamp(2.5rem, 7vw, 7rem); padding-right: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); }
.bleed--right .bleed-content { padding-right: clamp(2.5rem, 7vw, 7rem); padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); }
.section-head--left { text-align: left; max-width: 34rem; margin: 0 0 2.4rem; }
.muted { color: var(--muted); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .9rem 1.5rem;
  border: 1px solid transparent; border-radius: 2px; background-color: transparent; /* aussi pour les <button> */
  font: 600 .76rem/1.1 var(--f-sans); letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
  /* au survol, la couleur --fill glisse de gauche à droite */
  background-image: linear-gradient(var(--fill, var(--olive)), var(--fill, var(--olive)));
  background-repeat: no-repeat; background-position: 0 0; background-size: 0 100%;
  transition: background-size .45s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .15s var(--ease);
}
.btn:hover { background-size: 100% 100%; }
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 40px; padding: .65rem 1.1rem; font-size: .7rem; }
.btn--primary { --fill: var(--sage-700); background-color: var(--olive); color: var(--cream); }
.btn--outline { --fill: var(--olive); border-color: var(--rule-strong); color: var(--olive); }
.btn--outline:hover { border-color: var(--olive); color: var(--cream); }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }
.link {
  display: inline-block; padding-bottom: .35rem; text-decoration: none;
  font: 600 .74rem/1 var(--f-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--sage-700);
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size .35s var(--ease), color .3s var(--ease);
}
.link:hover { color: var(--olive); background-size: 35% 1px; }
/* zone tactile agrandie (44 px) sans changer l'apparence */
.link, .footer-more { position: relative; }
.link::after, .footer-more::after { content: ""; position: absolute; inset: -14px -10px; }

/* ---------- Bandeau ---------- */
.topbar { background: var(--olive) var(--grain-light); color: var(--cream); text-align: center; font: 500 .8rem/1.4 var(--f-sans); letter-spacing: .04em; padding: .5rem var(--gutter); }
.topbar em { font: italic 600 1.05em var(--f-serif); color: var(--blush); letter-spacing: 0; }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(255, 249, 232, .97) var(--grain); border-bottom: 1px solid var(--rule); transition: box-shadow .35s var(--ease); }
.is-scrolled .site-header { box-shadow: 0 14px 32px -24px rgba(45, 49, 43, .45); }
/* En-tête compact au défilement (écrans larges) : --header-h pilote aussi les éléments collés dessous */
@media (min-width: 1000px) {
  .header-inner { transition: height .35s var(--ease); }
  .header-logo { transition: width .35s var(--ease); }
  html.is-scrolled { --header-h: 62px; }
  html.is-scrolled .header-logo { width: 94px; }
}
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--rule); pointer-events: none; }
.header-inner { position: relative; display: flex; align-items: center; height: var(--header-h); }
.header-logo { display: block; width: 116px; color: var(--olive); }
.header-logo svg { width: 100%; height: auto; }
.nav-list a:not(.btn) { position: relative; display: inline-block; padding: .5rem 0; font: 600 .72rem/1 var(--f-sans); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; }
.nav-list a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transition: transform .3s var(--ease); }
.nav-list a:not(.btn):hover::after, .nav-list a[aria-current="true"]::after { transform: scaleX(1); }
.nav-mobile-extra, .nav-toggle { display: none; }
@media (min-width: 1000px) {
  .header-logo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1; }
  .main-nav { width: 100%; display: flex; justify-content: space-between; align-items: center; }
  .nav-list { display: flex; align-items: center; gap: clamp(1.2rem, 2.4vw, 2.2rem); }
}
@media (max-width: 999px) {
  .header-logo { width: 92px; }
  .nav-toggle { display: inline-grid; place-items: center; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--rule); border-radius: 50%; background: transparent; }
  .nav-toggle .ico { width: 22px; height: 22px; }
  .nav-toggle .ico--close, .nav-open .nav-toggle .ico--open { display: none; }
  .nav-open .nav-toggle .ico--close { display: block; }
  .main-nav {
    position: fixed; inset: var(--nav-top, 110px) 0 0 0; z-index: 55;
    padding: 1.5rem var(--gutter) 3rem; background: var(--cream) var(--grain);
    display: flex; flex-direction: column; overflow-y: auto;
    opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility 0s .3s;
  }
  .nav-open .main-nav { opacity: 1; visibility: visible; transition-delay: 0s; }
  .nav-list a:not(.btn) { display: block; padding: .85rem 0; width: 100%; font: italic 500 1.9rem/1.1 var(--f-serif); letter-spacing: 0; text-transform: none; border-bottom: 1px solid var(--rule); }
  .nav-list a:not(.btn)::after { display: none; }
  .nav-cta { margin-top: 1.4rem; }
  .nav-cta .btn { width: 100%; min-height: 52px; font-size: .78rem; }
  .nav-mobile-extra { display: grid; gap: .75rem; margin-top: .75rem; }
  .nav-mobile-note { font-size: .9rem; color: var(--muted); text-align: center; }
  .nav-open body { overflow: hidden; }
}

/* ---------- Accueil ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.foliage { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); width: max(100%, 980px); max-width: none; height: auto; z-index: -1; pointer-events: none; }
/* feuillage décoratif chargé juste après la page (main.js), en fondu */
.js .foliage { opacity: 0; transition: opacity .9s var(--ease); }
.js .foliage.is-loaded { opacity: 1; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); min-height: min(calc(100svh - var(--header-h) - 34px), 860px); }
.hero-text {
  align-self: center;
  padding: clamp(130px, 13vw, 190px) clamp(2rem, 5vw, 4.5rem) clamp(3rem, 6vw, 5rem) max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
}
.hero-title { display: block; }
.hero-kicker { display: block; font: 600 .74rem/1 var(--f-sans); letter-spacing: .22em; text-transform: uppercase; color: var(--sage-ink); }
.hero-main { display: block; margin-top: 1.5rem; font: 600 clamp(2.5rem, 1.15rem + 4vw, 4.5rem)/1.04 var(--f-title); letter-spacing: -.02em; }
.hero-main > span, .hero-main > em { display: block; }
.hero-main em { font: italic 500 1.14em/1 var(--f-serif); letter-spacing: -.01em; color: var(--sage-700); }
.hero-lead { margin-top: 2rem; max-width: 26rem; font-size: 1.18rem; line-height: 1.7; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.6rem; }
.hero-media { position: relative; min-height: 440px; }
.hero-media > picture { position: absolute; inset: 0; }
.hero-media > picture img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }

.plate { background: var(--card); padding: 10px 10px 8px; box-shadow: 0 0 0 1px var(--rule), 0 22px 40px -28px rgba(45, 49, 43, .55); }
.plate img { width: 100%; height: auto; }
.plate figcaption { font: italic 400 .88rem/1.3 var(--f-serif); color: var(--muted); text-align: center; padding-top: .45rem; }

/* ---------- L'essentiel ---------- */
/* Bande olive sous l'accueil : pictogramme, intitulé, valeur, précision ; chaque case mène à sa section */
.essentiel { background: var(--olive) var(--grain-light); color: var(--cream); }
.essentiel .container { max-width: 1400px; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fact {
  position: relative; padding: 2.1rem 1.4rem 2.1rem calc(1.4rem + 46px + 1rem);
  transition: background-color .3s var(--ease);
}
.fact + .fact { border-left: 1px solid var(--rule-light); }
.fact dt { font: 600 .62rem/1.3 var(--f-sans); letter-spacing: .22em; text-transform: uppercase; color: var(--blush); }
.fact-ico {
  position: absolute; left: 1.4rem; top: 50%; width: 46px; height: 46px; margin-top: -23px; padding: 11px; border-radius: 50%;
  color: var(--blush); box-shadow: inset 0 0 0 1px rgba(216, 180, 160, .45);
  transition: background-color .3s var(--ease), color .3s var(--ease), transform .45s cubic-bezier(.3, 1.6, .5, 1);
}
.fact-value { margin-top: .45rem; font: 600 1.24rem/1.15 var(--f-title); letter-spacing: -.01em; white-space: nowrap; }
.fact-link { color: var(--cream); text-decoration: none; }
.fact-from { font: italic 400 .8em/1 var(--f-serif); letter-spacing: 0; color: rgba(255, 249, 232, .8); }
.fact-link::after { content: ""; position: absolute; inset: 0; } /* toute la case est cliquable */
.fact-sub { margin-top: .3rem; font: italic 400 .92rem/1.4 var(--f-serif); color: rgba(255, 249, 232, .72); }
.fact:hover { background: rgba(255, 249, 232, .05); }
.fact:hover .fact-ico { background: var(--blush); color: var(--olive); }
.fact:focus-within { background: rgba(255, 249, 232, .05); }
.fact-link:focus-visible { outline: none; }
.fact-link:focus-visible::after { outline: 2px solid var(--blush); outline-offset: -6px; }
@media (min-width: 480px) and (max-width: 1099px) {
  .facts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--rule-light); }
}

/* ---------- L'histoire ---------- */
.maison { background: var(--cream-2) var(--grain); border-top: 1px solid var(--rule); }
.maison .bleed-content > p + p { margin-top: 1.3rem; }
.maison .bleed { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.maison .h2 em { display: block; }
.maison-lead { font-size: 1.2rem; line-height: 1.72; }
.maison-scene { color: var(--muted); line-height: 1.75; }
.maison-note { font: italic 400 1.15rem/1.6 var(--f-serif); color: var(--sage-700); }
.bleed-media--portrait { min-height: 680px; }
.bleed-media--portrait img { object-position: 50% 22%; }
/* Frise façon ligne de chemin de fer : une gare par date, terminus en 2026 */
.timeline {
  --tl-year: 5.6rem; --tl-rail: 2.6rem; --tl-mid: 1.15rem; /* milieu de la ligne de l'année */
  margin-top: 3.2rem; padding-top: 2rem; border-top: 1px solid var(--rule-strong);
}
.timeline li { position: relative; display: grid; grid-template-columns: var(--tl-year) var(--tl-rail) minmax(0, 1fr); align-items: start; padding-bottom: 1.5rem; }
.timeline li:last-child { padding-bottom: 0; }
.tl-year { font: italic 600 1.6rem/1.45 var(--f-serif); letter-spacing: -.01em; color: var(--sage-700); text-align: right; }
/* nom de la gare, comme un panneau de quai, centré sur la ligne de l'année ; la phrase dessous */
.tl-title { grid-column: 3; padding-top: calc(var(--tl-mid) - .5rem); font: 600 .72rem/1rem var(--f-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--olive); }
.tl-text { grid-column: 3; margin-top: .3rem; font-size: 1rem; line-height: 1.6; color: var(--muted); }
/* la voie : un segment entre chaque gare */
.timeline li:not(:last-child)::after {
  content: ""; position: absolute; left: calc(var(--tl-year) + var(--tl-rail) / 2 - 1px); top: var(--tl-mid); bottom: calc(var(--tl-mid) * -1);
  width: 2px; background: var(--sage); transform-origin: top;
}
/* les gares */
.timeline li::before {
  content: ""; position: absolute; z-index: 1; left: calc(var(--tl-year) + var(--tl-rail) / 2 - 7px); top: calc(var(--tl-mid) - 7px);
  width: 14px; height: 14px; border-radius: 50%; background: var(--cream-2); box-shadow: inset 0 0 0 2px var(--sage);
  transition: background-color .3s var(--ease);
}
.timeline li:hover::before { background: var(--sage); }
.timeline li:hover .tl-text { color: var(--text); }
/* terminus */
.timeline li:last-child::before {
  left: calc(var(--tl-year) + var(--tl-rail) / 2 - 9px); top: calc(var(--tl-mid) - 9px); width: 18px; height: 18px;
  background: var(--blush-700); box-shadow: 0 0 0 4px var(--cream-2), 0 0 0 5px var(--blush-700);
}
/* la ligne se trace quand la frise arrive à l'écran */
@media (prefers-reduced-motion: no-preference) {
  .js .timeline.reveal { opacity: 1; transform: none; }
  .js .timeline li { opacity: 0; transform: translateY(8px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
  .js .timeline li::after { transform: scaleY(0); transition: transform .45s var(--ease); }
  .js .timeline.is-in li { opacity: 1; transform: none; }
  .js .timeline.is-in li::after { transform: scaleY(1); }
  .timeline li:nth-child(2) { transition-delay: .25s; } .timeline li:nth-child(1)::after { transition-delay: .2s; }
  .timeline li:nth-child(3) { transition-delay: .5s; } .timeline li:nth-child(2)::after { transition-delay: .45s; }
  .timeline li:nth-child(4) { transition-delay: .75s; } .timeline li:nth-child(3)::after { transition-delay: .7s; }
  .timeline li:nth-child(5) { transition-delay: 1s; } .timeline li:nth-child(4)::after { transition-delay: .95s; }
  .timeline li:nth-child(6) { transition-delay: 1.25s; } .timeline li:nth-child(5)::after { transition-delay: 1.2s; }
  .timeline li:nth-child(7) { transition-delay: 1.5s; } .timeline li:nth-child(6)::after { transition-delay: 1.45s; }
  .timeline li:nth-child(n+8) { transition-delay: 1.75s; }
}
/* dernière étape (ouverture) : en point d'orgue, sur toute la largeur si elle tombe seule */
.timeline li:last-child .tl-year, .timeline li:last-child .tl-title { color: var(--blush-700); }
.timeline li:last-child .tl-text { color: var(--text); font-weight: 500; }
.postcards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; background: var(--cream); }
.pc { position: relative; margin: 0; }
.pc picture { aspect-ratio: 1.5; overflow: hidden; }
.pc img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.pc:hover img { transform: scale(1.03); }

/* ---------- Bandeau photos ---------- */
/* joints olive : la bande d'infos et les photos se lisent comme un seul bloc */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; background: var(--olive); border-top: 3px solid var(--olive); }
.strip picture { aspect-ratio: 1; overflow: hidden; }
.strip img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.strip figure:hover img { transform: scale(1.03); }

/* ---------- Onglets ---------- */
.tablist {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem clamp(1.4rem, 2.6vw, 2.6rem);
  position: sticky; top: calc(var(--header-h) - 1px); z-index: 20; transition: top .35s var(--ease);
  padding: .9rem 0 .5rem; background: var(--cream) var(--grain); border-bottom: 1px solid var(--rule);
}
/* Onglet : pictogramme dans une pastille, libellé dessous (pictos : src/pictos.svg) */
.tab {
  position: relative; display: inline-flex; flex-direction: column; align-items: center; gap: .55rem;
  min-height: 44px; padding: .1rem .2rem .75rem; border: 0; background: none; white-space: nowrap;
  font: 600 .7rem/1 var(--f-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.tab-ico {
  width: 38px; height: 38px; padding: 8px; border-radius: 50%; color: var(--sage-700);
  box-shadow: inset 0 0 0 1px var(--rule-strong);
  transition: background-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease), transform .45s cubic-bezier(.3, 1.6, .5, 1);
}
.tab:hover .tab-ico { color: var(--olive); box-shadow: inset 0 0 0 1px var(--olive); }
.bar .tab:hover .tab-ico { color: var(--cream); box-shadow: inset 0 0 0 1px rgba(255, 249, 232, .6); }
.tab.is-active .tab-ico { background: var(--sage); color: var(--cream); box-shadow: inset 0 0 0 1px var(--sage); transform: none; }
.tab::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 0; height: 2px; border-radius: 2px; background: currentColor; transform: scaleX(0); transition: transform .3s var(--ease); }
.tab:hover { color: var(--olive); }
.tab.is-active { color: var(--olive); }
.tab.is-active::after { transform: scaleX(1); }
/* Onglets de même largeur : un libellé long passe sur deux lignes, centré
   (tous les onglets gardent la même hauteur, le trait de l'onglet actif reste aligné) */
.tab { width: 7rem; white-space: normal; text-align: center; }
.tab > span { line-height: 1.35; }
@media (min-width: 900px) {
  /* une seule rangée : largeur commune de 8rem, partagée à égalité si la colonne est plus étroite */
  .tablist { flex-wrap: nowrap; gap: .3rem clamp(.3rem, 1.2vw, 1.2rem); }
  .tab { flex: 1 1 0; width: auto; min-width: 0; max-width: 8rem; }
}
.tabpanel { margin-top: clamp(2.6rem, 5vw, 3.6rem); }
.js .tabpanel:not(.is-active) { display: none; }
html:not(.js) .tablist { display: none; }
.panel-title { font: italic 500 1.8rem/1.1 var(--f-serif); margin-bottom: 1.4rem; }
html:not(.js) .tabpanel + .tabpanel { margin-top: 3.5rem; }

/* ---------- Carte ---------- */
/* Deux colonnes réparties au build (panel_body) ; la seconde s'ouvre sur deux photos 3:4 */
.menu-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 clamp(3rem, 5vw, 5.5rem); align-items: start; }
.menu-col > * { margin-bottom: 3.8rem; }
.menu-photos { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.menu-photo { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--cream-2); }
.bar .menu-photo { background: var(--olive-900); }
.menu-photo picture { position: absolute; inset: 0; }
.menu-photo img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); transition: transform 1.2s var(--ease); }
.menu-photo:hover img { transform: scale(1.04); }

/* Ligne de la carte : léger fond au survol */
@media (hover: hover) {
  .items .item { margin-inline: -.75rem; padding-inline: .75rem; border-radius: 3px; transition: background-color .25s var(--ease); }
  .items .item:hover { background: rgba(142, 155, 138, .14); }
  .items .item:hover .item-name { color: var(--sage-700); }
  .bar .items .item:hover { background: rgba(255, 249, 232, .06); }
  .bar .items .item:hover .item-name { color: var(--blush); }
}

/* Changement d'onglet : les rubriques arrivent en cascade */
@keyframes menu-in { from { opacity: 0; transform: translateY(16px); } }
@media (prefers-reduced-motion: no-preference) {
  .js .tabpanel.is-active .menu-col > * { animation: menu-in .6s var(--ease) both; }
  .js .tabpanel.is-active .menu-col > :nth-child(2) { animation-delay: .08s; }
  .js .tabpanel.is-active .menu-col > :nth-child(3) { animation-delay: .16s; }
  .js .tabpanel.is-active .menu-col > :nth-child(n+4) { animation-delay: .22s; }
  .js .tabpanel.is-active .menu-col + .menu-col > :first-child { animation-delay: .05s; }
}

/* Tampon rond sur les encarts (menus, happy hour), repris des mentions de la carte */
.stamp {
  position: absolute; z-index: 2; top: -20px; right: -16px;
  display: grid; place-content: center; gap: .2rem; width: 82px; height: 82px; border-radius: 50%;
  color: #8a5a47; background: var(--cream); text-align: center; /* vieux rose foncé : contraste AA sur crème */
  box-shadow: inset 0 0 0 1.5px currentColor, inset 0 0 0 4px var(--cream), inset 0 0 0 5px currentColor, 0 10px 20px -12px rgba(45, 49, 43, .55);
  font: 600 .54rem/1.2 var(--f-sans); letter-spacing: .14em; text-transform: uppercase;
  transform: rotate(-12deg); transition: transform .5s cubic-bezier(.3, 1.6, .5, 1);
}
.stamp-big { font: italic 600 1.02rem/1 var(--f-serif); letter-spacing: 0; text-transform: none; }
.menu-box--sage .stamp { color: var(--sage-ink); }
@media (max-width: 1099px) { .stamp { right: -4px; top: -24px; } } /* reste dans l'écran sur mobile */
.menu-box:hover .stamp, .happy-card:hover .stamp { transform: rotate(-3deg) scale(1.06); }
.menu-box-pied .ico { display: inline-block; width: 1.25em; height: 1.25em; vertical-align: -.25em; margin-right: .15rem; color: var(--blush-700); }
@media (max-width: 899px) {
  .menu-grid { grid-template-columns: minmax(0, 1fr); }
  .menu-photos { gap: 8px; }
}
.menu-sec { --colw: 3.6rem; --leader: rgba(63, 68, 61, .45); }
.menu-sec-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .8rem; margin-bottom: 1.3rem; }
.menu-sec-head::after { content: ""; flex: 1 1 2rem; height: 1px; background: var(--rule-strong); align-self: center; }
.menu-sec-title { font: italic 600 1.55rem/1.15 var(--f-serif); color: var(--olive); }
.menu-note { order: 3; flex-basis: 100%; font: italic 400 .92rem/1.3 var(--f-serif); color: var(--muted); }
.item { padding: .8rem 0; }
.item-line { display: flex; align-items: flex-end; gap: .45rem; font-family: var(--f-sans); }
.item-name { flex: 0 1 auto; font-weight: 600; font-size: 1rem; line-height: 1.35; }
.lead {
  flex: 1 0 1.4rem; height: 2px; margin-bottom: .36em;
  background: radial-gradient(circle, var(--leader) 1px, transparent 1.3px) 0 50% / 6px 2px repeat-x;
}
.item-price { flex: none; font: 600 1.04rem/1.2 var(--f-sans); white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }
.item-desc { display: block; margin-top: .3rem; max-width: 32rem; font: 400 .88rem/1.6 var(--f-sans); color: var(--muted); }
.ico--veg { display: inline-block; width: .9em; height: .9em; color: var(--blush-700); vertical-align: -.06em; margin-left: .15rem; }
.ou { display: inline-block; padding: 0 .3rem .06rem; border-radius: 2px; background: var(--blush); color: var(--olive); font: 500 .76em/1.3 var(--f-sans); vertical-align: .08em; letter-spacing: 0; text-transform: none; }
.pr sup { font-size: .6em; position: relative; top: -.15em; vertical-align: super; line-height: 0; margin-left: .04em; }
.item-price--var { display: inline-flex; gap: .9rem; }
.var-l { font: italic 500 .84rem var(--f-serif); color: var(--muted); margin-right: .2rem; }
.cols-head { display: flex; justify-content: flex-end; gap: .4rem; margin-bottom: .1rem; }
.cols-head span { width: var(--colw); text-align: right; font: 600 .6rem/1.2 var(--f-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--sage-ink); }
.item-price--cols { display: inline-grid; grid-auto-flow: column; grid-auto-columns: var(--colw); gap: .4rem; text-align: right; }
.c--na { color: var(--muted); font-weight: 400; }
.menu-sec-foot { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--rule); font: 400 .87rem/1.7 var(--f-sans); color: var(--muted); }
.menu-sec-foot strong { color: var(--text); }
.menu-box {
  position: relative; padding: 2.8rem 2.2rem 2.6rem; text-align: center; font-family: var(--f-sans);
  background: var(--cream-2); border: 1px solid var(--rule-strong);
  box-shadow: inset 0 0 0 5px var(--cream-2), inset 0 0 0 6px var(--rule);
  --leader: rgba(63, 68, 61, .45);
}
.menu-box-title { font: italic 600 1.95rem/1.1 var(--f-serif); color: var(--sage-700); }
.menu-box--olive .menu-box-title { color: var(--blush-700); }
.menu-box-cond { font-size: .88rem; line-height: 1.6; color: var(--muted); margin-top: .6rem; }
.menu-box-formules { display: grid; gap: .7rem; max-width: 21rem; margin: 1.8rem auto 0; }
.menu-box-formules li { display: flex; align-items: flex-end; gap: .45rem; font: 600 .78rem/1.3 var(--f-sans); letter-spacing: .12em; text-transform: uppercase; text-align: left; }
.menu-box-formules .pr { font-size: 1.15rem; letter-spacing: 0; }
.menu-box-groups { display: grid; gap: 1.3rem; margin-top: 1.9rem; padding-top: 1.6rem; border-top: 1px solid var(--rule); }
.grp h5 { font: 600 .64rem/1.3 var(--f-sans); letter-spacing: .22em; text-transform: uppercase; color: var(--sage-ink); }
.grp p { font-size: .92rem; line-height: 1.7; margin-top: .45rem; }
.grp > p:first-child { margin-top: 0; }
.grp-suite { font-size: .9em; color: var(--muted); }
.menu-box-pied { margin-top: 1.3rem; font: italic 400 .98rem/1.5 var(--f-serif); color: var(--muted); }
.menu-box-pied a { color: var(--text); text-decoration-color: var(--rule-strong); }
.menu-box-pied a:hover { color: var(--sage-ink); }
.menu-sec + .menu-sec--suite { margin-top: -2.2rem; } /* suite d'une rubrique, sans titre, comme sur la carte */
.legend { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 2rem; margin-top: 2rem; padding-top: 1.8rem; border-top: 1px solid var(--rule); font: 400 .82rem/1.5 var(--f-sans); color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: .35rem; }

/* ---------- Carte et bar : encadrés fixes (30 %) + carte à onglets (70 %), pleine largeur ----------
   .split--right met les encadrés à droite (bar), en miroir de la carte.
   La hauteur de collage (--stick-top) est calculée dans main.js pour les écrans trop bas. */
.split { padding: var(--section-y) var(--gutter); }
.split-aside {
  margin: 0 calc(var(--gutter) * -1) clamp(3rem, 6vw, 4rem); padding: clamp(2.2rem, 5vw, 3rem) var(--gutter);
  /* motif M de la charte, ton sur ton */
  background: var(--sage) url("../img/motif-m-sauge.svg") 0 0 / 260px auto;
}
/* bar : motif saule de la charte, feuilles vieux rose sur olive */
/* motif chargé à l'approche de la section (main.js, [data-bg]) pour ne pas freiner le premier affichage */
.bar .split-aside { background: var(--olive) 50% 0 / 300px auto; }
.bar .split-aside.is-bg, html:not(.js) .bar .split-aside {
  background-image: url("../img/motif-saule.webp");
  background-image: image-set(url("../img/motif-saule.avif") type("image/avif"), url("../img/motif-saule.webp") type("image/webp"));
}
/* encarts étroits et centrés dans leur colonne, quelle que soit la largeur d'écran */
.split-aside-inner { display: grid; gap: 1.5rem; max-width: 25rem; margin-inline: auto; }
.split-aside .menu-box { background: var(--cream) var(--grain); box-shadow: inset 0 0 0 5px var(--cream), inset 0 0 0 6px var(--rule), 0 22px 40px -32px rgba(45, 49, 43, .5); }
@media (min-width: 700px) and (max-width: 1099px) {
  .carte .split-aside-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; max-width: 48rem; }
}
@media (min-width: 1100px) {
  .split {
    /* colonne des encarts : 30 %, plafonnée sur très grand écran pour rester pleine autour de l'encart */
    /* au-delà de 1900px, encart + carte restent groupés au centre et le motif déborde jusqu'au bord */
    --split-extra: max(0px, (100vw - 1900px) / 2);
    display: grid; grid-template-columns: calc(clamp(340px, 30%, 540px) + var(--split-extra)) minmax(0, 1fr); grid-template-rows: auto 1fr;
    padding: 0;
  }
  .split-aside {
    grid-column: 1; grid-row: 1 / span 2; margin: 0;
    padding: var(--section-y) clamp(1.5rem, 2.6vw, 3rem) var(--section-y) calc(clamp(var(--gutter), 3.5vw, 4.5rem) + var(--split-extra));
  }
  .split-aside-inner { position: sticky; top: var(--stick-top, calc(var(--header-h) + 1.5rem)); gap: 1rem; max-width: 23rem; }
  .split-aside .menu-box { padding: 1.6rem 1.5rem 1.45rem; }
  .split-aside .menu-box-title { font-size: 1.65rem; }
  .split-aside .menu-box-cond { margin-top: .4rem; }
  .split-aside .menu-box-formules { margin-top: 1.1rem; gap: .45rem; }
  .split-aside .menu-box-groups { gap: .9rem; margin-top: 1.15rem; padding-top: 1.05rem; }
  .split-aside .grp p { line-height: 1.6; margin-top: .3rem; }
  .split-head, .split-main { grid-column: 2; padding-inline: clamp(3rem, 5vw, 6rem) clamp(var(--gutter), 5vw, 6.5rem); }
  .split-head, .split-main { width: 100%; max-width: 1360px; justify-self: start; }
  /* marges à 0 : les marges auto de .section-head décaleraient le titre des onglets sur très grand écran */
  .split-head { padding-top: var(--section-y); margin-inline: 0; }
  .split-head > p { max-width: 36rem; margin-inline: auto; }
  .split-main { padding-bottom: var(--section-y); }

  .split--right { grid-template-columns: minmax(0, 1fr) calc(clamp(340px, 30%, 540px) + var(--split-extra)); }
  .split--right .split-aside { grid-column: 2; padding: var(--section-y) calc(clamp(var(--gutter), 3.5vw, 4.5rem) + var(--split-extra)) var(--section-y) clamp(1.5rem, 2.6vw, 3rem); }
  .split--right .split-head, .split--right .split-main { grid-column: 1; justify-self: end; padding-inline: clamp(var(--gutter), 5vw, 6.5rem) clamp(3rem, 5vw, 6rem); }
}

/* ---------- Vins & bar ---------- */
.bar { background: var(--olive) var(--grain-light); color: var(--cream); }
.bar .h2 em { color: var(--blush); }
.bar .section-head > p { color: rgba(255, 249, 232, .8); }

/* Happy hour : carte crème fixée dans la colonne vieux rose */
.happy-card {
  position: relative;
  padding: 2.4rem 2rem 2.1rem; text-align: center; color: var(--olive);
  background: var(--cream) var(--grain); border: 1px solid var(--rule-strong);
  box-shadow: inset 0 0 0 5px var(--cream), inset 0 0 0 6px var(--rule), 0 22px 40px -32px rgba(45, 49, 43, .55);
  --leader: rgba(63, 68, 61, .45);
}
.happy-card-title { font: italic 600 2.2rem/1 var(--f-serif); color: var(--blush-700); }
.happy-card--formats { padding-top: 2rem; }
.happy-card--formats .happy-card-title { font-size: 1.75rem; color: var(--sage-700); }
.happy-card-when { margin-top: .7rem; font: 600 .66rem/1.5 var(--f-sans); letter-spacing: .22em; text-transform: uppercase; color: var(--sage-700); }
.happy-card-list { margin-top: 1.5rem; border-top: 1px solid var(--rule-strong); text-align: left; }
.happy-card-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--rule); }
.happy-n { font: 500 .9rem/1.4 var(--f-sans); text-wrap: balance; }
.happy-card-list .pr { font: 600 1.2rem/1.2 var(--f-sans); white-space: nowrap; }

.bar .tablist { background: var(--olive) var(--grain-light); border-color: var(--rule-light); }
.bar .tab { color: rgba(255, 249, 232, .65); }
.bar .tab:hover, .bar .tab.is-active { color: var(--cream); }
.bar .tab-ico { color: var(--blush); box-shadow: inset 0 0 0 1px var(--rule-light); }
.bar .tab.is-active .tab-ico { background: var(--blush); color: var(--olive-900); box-shadow: inset 0 0 0 1px var(--blush); }
.bar .menu-sec { --leader: rgba(255, 249, 232, .4); }
.bar .menu-sec-title { color: var(--cream); }
.bar .menu-sec-head::after { background: var(--rule-light); }
.bar .menu-note, .bar .item-desc, .bar .var-l, .bar .c--na { color: rgba(255, 249, 232, .7); }
.bar .menu-sec-foot { border-color: var(--rule-light); }
.bar .cols-head span { color: var(--blush); }
.bar .ou { background: rgba(216, 180, 160, .9); }
#panel-boissons-vins .menu-sec { --colw: 4.2rem; }
.legend--dark { border-color: var(--rule-light); color: rgba(255, 249, 232, .7); }

/* ---------- Infos ---------- */
.infos { background: var(--cream) var(--grain); border-top: 1px solid var(--rule); }
.infos-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--rule-strong); }
.info { padding: 1.9rem 2rem 1.9rem 0; border-bottom: 1px solid var(--rule); }
.info + .info:not(.info--wide) { padding-left: 2rem; padding-right: 0; border-left: 1px solid var(--rule); }
.info--wide { grid-column: 1 / -1; padding-right: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; }
.info--wide .info-title { flex-basis: 100%; margin-bottom: 0; }
.infos .bleed { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
@media (max-width: 1179px) {
  .infos-grid { grid-template-columns: minmax(0, 1fr); }
  .info, .info + .info:not(.info--wide) { padding: 1.6rem 0; border-left: 0; }
}
.info-title { font: 600 .7rem/1 var(--f-sans); letter-spacing: .2em; text-transform: uppercase; color: var(--sage-700); margin-bottom: 1.2rem; }
.info address { font-size: 1.1rem; line-height: 1.5; }
.info .small { margin: .8rem 0 1.1rem; }
.hours { width: 100%; border-collapse: collapse; font-size: 1rem; }
.hours th, .hours td { padding: .7rem 0; border-bottom: 1px solid var(--rule); }
.hours th { text-align: left; font-weight: 400; }
.hours td { text-align: right; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--sage-700); }
.hours tr.is-today th::before {
  content: "Aujourd'hui"; display: block; width: fit-content; margin-bottom: .4rem; padding: .32rem .5rem .28rem; border-radius: 2px;
  background: var(--sage); color: var(--cream); font: 600 .58rem/1 var(--f-sans); letter-spacing: .14em; text-transform: uppercase;
}
.hours td { vertical-align: bottom; }
.info-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.socials { display: flex; gap: 1.2rem; margin: 0; font: 500 .85rem/1 var(--f-sans); }
.socials a { display: inline-flex; align-items: center; gap: .4rem; text-decoration: none; }
.socials a:hover { text-decoration: underline; }

/* ---------- FAQ ---------- */
/* fond crème soutenu : alternance avec « Nous trouver », transition douce vers le pied de page */
.faq { background: var(--cream-2) var(--grain); border-top: 1px solid var(--rule); }
/* Titre fixe à gauche, questions sur une colonne à droite */
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr); gap: 3rem clamp(3rem, 7vw, 7rem); align-items: start; }
.faq-head { position: sticky; top: calc(var(--header-h) + 2.5rem); transition: top .35s var(--ease); }
.faq-head .h2 { text-wrap: balance; }
.faq-head p { margin-top: 1.3rem; color: var(--muted); max-width: 22rem; }
.faq-head .btn { margin-top: 1.8rem; }
.faq-list { border-top: 1px solid var(--rule-strong); interpolate-size: allow-keywords; }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-item::details-content { height: 0; overflow: clip; transition: height .4s var(--ease), content-visibility .4s allow-discrete; }
.faq-item[open]::details-content { height: auto; }
@media (prefers-reduced-motion: reduce) { .faq-item::details-content { transition: none; } }
@media (max-width: 899px) {
  .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .faq-head { position: static; }
}
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 1.4rem; padding: 1.35rem 0; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q { font: 500 1.08rem/1.35 var(--f-serif); }
.faq-item summary .ico { width: 1.1rem; height: 1.1rem; color: var(--sage-700); transition: transform .3s var(--ease); }
.faq-item[open] summary .ico { transform: rotate(45deg); }
.faq-item summary:hover .faq-q { color: var(--sage-700); }
.faq-a { padding: 0 2rem 1.6rem 0; color: var(--muted); font-size: 1.02rem; line-height: 1.7; }

/* ---------- Bandeau de consentement (cookies de mesure d'audience) ---------- */
.consent {
  position: fixed; z-index: 80; left: 12px; right: 12px; bottom: 12px; display: grid; gap: 1rem; padding: 1.2rem 1.3rem;
  background: var(--olive-900) var(--grain-light); color: rgba(255, 249, 232, .88);
  box-shadow: 0 0 0 1px var(--rule-light), 0 24px 48px -20px rgba(0, 0, 0, .6);
  font: 400 .86rem/1.55 var(--f-sans);
  opacity: 0; transform: translateY(14px); transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.consent[hidden] { display: none; }
.consent.is-in { opacity: 1; transform: none; }
.consent strong { margin-right: .25rem; font: italic 600 1.1rem/1 var(--f-serif); color: var(--blush); }
.consent a { color: var(--cream); text-decoration-color: rgba(255, 249, 232, .45); }
.consent-actions { display: flex; gap: .6rem; }
.consent-actions .btn { flex: 1 1 0; min-height: 44px; }
@media (min-width: 700px) { .consent { left: auto; right: 24px; bottom: 24px; max-width: 27rem; } }
@media (prefers-reduced-motion: reduce) { .consent { transition: none; } }
.footer-cookies { padding: 0; border: 0; background: none; font: inherit; color: rgba(255, 249, 232, .8); cursor: pointer; }
.footer-cookies:hover { color: var(--cream); text-decoration: underline; text-decoration-color: rgba(255, 249, 232, .4); }

/* ---------- Mentions légales et page introuvable ---------- */
.legal-head { display: flex; justify-content: center; padding: 1.4rem var(--gutter); border-bottom: 1px solid var(--rule); background: var(--cream-2) var(--grain); }
/* le logo n'est centré en absolu que dans la barre de navigation de l'accueil */
.legal-head .header-logo { position: static; transform: none; }
.legal { max-width: 46rem; padding-block: 3.5rem 6rem; }
.legal .h2 { margin: 1.6rem 0 2rem; }
.legal h2:not(.h2) { margin: 2.4rem 0 .6rem; font: 600 .74rem/1.4 var(--f-sans); letter-spacing: .2em; text-transform: uppercase; color: var(--sage-ink); }
.legal p { color: var(--muted); }
.legal a:not(.link) { color: var(--text); }
.legal mark { padding: 0 .2em; background: var(--blush); color: var(--olive); }
.notfound { padding-block: 8rem; text-align: center; }
.notfound p { margin-top: 1.2rem; color: var(--muted); }
.notfound .btn { margin-top: 2.4rem; }

/* ---------- Pied de page ---------- */
.site-footer {
  position: relative; color: rgba(255, 249, 232, .78);
  background: var(--olive-900) url("../img/motif-m-olive.svg") 0 0 / 260px auto; /* motif M de la charte */
  padding: clamp(5rem, 9vw, 7rem) clamp(var(--gutter), 5vw, 6.5rem) 0; font: 400 .92rem/1.7 var(--f-sans);
}
.site-footer a { text-decoration: none; transition: color .2s var(--ease); }
.site-footer a:hover { color: var(--cream); text-decoration: underline; text-decoration-color: rgba(255, 249, 232, .4); }

.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2.4rem 3rem; padding-bottom: clamp(3rem, 5vw, 4rem); border-bottom: 1px solid var(--rule-light); }
.footer-brand { display: flex; align-items: center; gap: clamp(1.4rem, 3vw, 2.4rem); max-width: 40rem; }
.footer-ecusson { flex: none; width: clamp(120px, 11vw, 160px); height: auto; aspect-ratio: 262 / 257; color: var(--sage); }
.footer-pitch { font: italic 400 clamp(1.35rem, 1.1rem + .7vw, 1.75rem)/1.4 var(--f-serif); color: var(--cream); text-wrap: balance; }
.footer-cta { display: flex; flex-wrap: wrap; gap: .8rem; }
.btn--blush { --fill: var(--cream); background-color: var(--blush); color: var(--olive-900); }
.btn--line { --fill: var(--cream); border-color: rgba(255, 249, 232, .35); color: var(--cream); }
.btn--line:hover { border-color: var(--cream); color: var(--olive-900); }
.site-footer .btn:hover { text-decoration: none; }

.footer-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.25fr) repeat(3, minmax(0, 1fr)); gap: 3rem clamp(2rem, 4vw, 4.5rem); padding-block: clamp(3.2rem, 5vw, 4.5rem); }
.footer-title { margin-bottom: 1.4rem; font: 600 .68rem/1 var(--f-sans); letter-spacing: .24em; text-transform: uppercase; color: var(--blush); }
.footer-col address { font: 400 1.08rem/1.6 var(--f-serif); color: var(--cream); }
.footer-col address strong { font-weight: 600; }
.footer-note { margin-top: .9rem; font-size: .86rem; color: rgba(255, 249, 232, .62); }
.footer-more { display: inline-flex; align-items: center; gap: .45rem; margin-top: 1.1rem; font: 600 .72rem/1 var(--f-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--cream); }
.footer-hours div { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--rule-light); }
.footer-hours div:first-child { border-top: 1px solid var(--rule-light); }
.footer-hours dd { margin: 0; color: var(--cream); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.footer-links { display: grid; gap: .55rem; }
.footer-socials { display: flex; gap: .6rem; margin-top: 1.6rem; }
.footer-socials a { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(255, 249, 232, .3); border-radius: 50%; color: var(--cream); }
.footer-socials a:hover { background: var(--cream); color: var(--olive-900); }
.footer-socials .ico { width: 1.1rem; height: 1.1rem; }

.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 2rem; padding-block: 1.5rem 2rem; border-top: 1px solid var(--rule-light); font-size: .8rem; color: rgba(255, 249, 232, .58); }
.footer-bottom { align-items: center; }
.footer-bottom a { color: rgba(255, 249, 232, .8); }
.footer-luds { display: block; color: rgba(255, 249, 232, .7); }
.site-footer .footer-luds:hover { color: var(--cream); }
.footer-luds-logo { width: 46px; height: auto; }

@media (max-width: 1179px) {
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 699px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.6rem 1.6rem; }
  .footer-grid > .footer-col:nth-child(-n+2) { grid-column: 1 / -1; }
  .footer-cta, .footer-cta .btn { width: 100%; }
  .footer-brand { flex-direction: column; align-items: flex-start; }
}

/* ---------- Rendu différé des sections hors écran (performances mobile) ----------
   Le navigateur ne met en page ces sections qu'à leur approche ; la place réservée
   correspond à leur hauteur réelle mesurée (puis mémorisée par le navigateur : « auto »). */
.carte, .bar, .maison, .infos, .faq, .site-footer, .strip { content-visibility: auto; }
.strip { contain-intrinsic-block-size: auto 25vw; } /* 4 photos carrées */
@media (max-width: 899px) { .strip { contain-intrinsic-block-size: auto 100vw; } } /* 2 x 2 */
.carte, .bar { contain-intrinsic-block-size: auto 2050px; }
.maison { contain-intrinsic-block-size: auto 1500px; }
.infos { contain-intrinsic-block-size: auto 900px; }
.faq { contain-intrinsic-block-size: auto 1360px; }
.site-footer { contain-intrinsic-block-size: auto 800px; }
@media (max-width: 1099px) {
  .carte { contain-intrinsic-block-size: auto 3300px; }
  .bar { contain-intrinsic-block-size: auto 3400px; }
  .maison { contain-intrinsic-block-size: auto 2100px; }
  .infos { contain-intrinsic-block-size: auto 1350px; }
  .faq { contain-intrinsic-block-size: auto 1450px; }
  .site-footer { contain-intrinsic-block-size: auto 1040px; }
}
@media (max-width: 699px) {
  .carte { contain-intrinsic-block-size: auto 4300px; }
  .bar { contain-intrinsic-block-size: auto 3900px; }
  .maison { contain-intrinsic-block-size: auto 1900px; }
  .infos { contain-intrinsic-block-size: auto 1250px; }
  .faq { contain-intrinsic-block-size: auto 1650px; }
  .site-footer { contain-intrinsic-block-size: auto 1650px; }
}
@media print { .carte, .bar, .maison, .infos, .faq, .site-footer, .strip { content-visibility: visible; } }

/* ---------- Apparition ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 899px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-text { padding: clamp(112px, 24vw, 150px) var(--gutter) 2.4rem; }
  .hero-media { min-height: 0; aspect-ratio: 4 / 3.5; }
  .bleed, .maison .bleed, .infos .bleed { grid-template-columns: minmax(0, 1fr); }
  .bleed-media { min-height: 0; aspect-ratio: 4 / 3.3; }
  .bleed-media--portrait { aspect-ratio: 4 / 4.4; }
  .bleed--right .bleed-media { order: -1; }
  .bleed--left .bleed-content, .bleed--right .bleed-content { padding: 3.2rem var(--gutter) var(--section-y); }
  .postcards { grid-template-columns: 1fr 1fr; }
  .strip { grid-template-columns: 1fr 1fr; }
  .tablist { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .tablist::-webkit-scrollbar { display: none; }
  .tab { flex: none; }
}
/* mobile à l'horizontale : écran bas, le titre remonte sous le feuillage */
@media (max-width: 999px) and (max-height: 520px) and (orientation: landscape) {
  .hero-text { padding-top: 92px; }
  .foliage { width: max(100%, 760px); }
}
@media (max-width: 599px) {
  .topbar-more { display: none; }
  .info-actions .btn { flex: 1 1 100%; }
  .timeline { --tl-year: 4.1rem; --tl-rail: 2.7rem; --tl-mid: 1rem; }
  .tl-year { font-size: 1.35rem; line-height: 1.5; }
  .tl-text { font-size: .97rem; }
  .infos-grid { grid-template-columns: minmax(0, 1fr); }
  .info, .info + .info:not(.info--wide) { padding: 1.2rem 0; border-left: 0; }

  .menu-sec { --colw: 3.4rem; }
  #panel-boissons-vins .menu-sec { --colw: 3.9rem; }
  .item-price { font-size: 1rem; padding-left: .7rem; }
  .faq-a { padding-right: 0; }
}
@media (max-width: 479px) {
  .facts { grid-template-columns: minmax(0, 1fr); }
  .fact + .fact { border-left: 0; border-top: 1px solid var(--rule-light); }
  .fact { padding-block: 1.4rem; }
  .hero-actions .btn { flex: 1 1 100%; }
}

@media print {
  .topbar, .site-header, .hero-media, .foliage, .tablist, .strip { display: none !important; }
  .js .tabpanel:not(.is-active) { display: block !important; }
  .bar, .site-footer { background: #fff !important; color: #000 !important; }
}

/* ---------- WordPress : barre d'administration (connecté) ---------- */
.admin-bar .site-header { top: 32px; }
.admin-bar .tablist { top: calc(var(--header-h) + 31px); }
.admin-bar .faq-head { top: calc(var(--header-h) + 2.5rem + 32px); }
@media screen and (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
  .admin-bar .tablist { top: calc(var(--header-h) + 45px); }
}
@media screen and (max-width: 600px) {
  .admin-bar .site-header { top: 0; }
  .admin-bar .tablist { top: calc(var(--header-h) - 1px); }
}
