/* ==========================================================================
   Maison — style.css
   Mobile d'abord. Points de rupture : 768 px (tablette), 1200 px (desktop).
   Versionner l'appel dans index.html (?v=) à chaque livraison.
   ========================================================================== */

/* ---------- Polices locales ---------- */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-var.woff2") format("woff2-variations"), url("../fonts/fraunces-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-var.woff2") format("woff2-variations"), url("../fonts/instrument-sans-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Caveat";
  src: url("../fonts/caveat-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- Jetons ---------- */
:root {
  /* Palette v2 : blanc neutre, encre, vert sapin (repris des cartes de boissons de la maison) */
  --fond: #FFFFFF;
  --fond-2: #F3F3F1;    /* sections alternées, gris très clair neutre */
  --encre: #1C1C1C;     /* texte et fonds sombres (17:1 sur blanc) */
  --vert: #3B4A32;      /* vert militaire (cartes de boissons de la maison) : CTA, liens, intertitres (9,5:1 sur blanc) */
  --vert-fonce: #2E3A27;/* survol des CTA */
  --accent: #A7B98A;    /* vert sauge : détails sur fond sombre uniquement (8:1 sur encre), jamais en texte sur blanc */
  --gris: #6B6B6B;      /* légendes, métadonnées (5,3:1 sur blanc) */
  --ligne: rgba(28, 28, 28, .1);         /* filets fins */
  --ligne-forte: rgba(28, 28, 28, .16);  /* filets de séparation */
  --voile: rgba(255, 255, 255, .94);     /* en-tête et barre mobile translucides */

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --main: "Caveat", "Bradley Hand", "Segoe Print", cursive;

  --header-h: 64px;
  --bar-h: 64px;
  --gutter: 20px;
  --maxw: 1200px;
  --radius: 14px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}
@media (min-width: 768px) { :root { --gutter: 40px; --header-h: 72px; } }
@media (min-width: 1200px) { :root { --gutter: 56px; --header-h: 80px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
html:not(.motion) { scroll-behavior: auto; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font-family: var(--sans);
  font-size: 1rem;           /* 16 px mobile */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom));
}
@media (min-width: 768px) { body { padding-bottom: 0; } }
@media (min-width: 1200px) { body { font-size: 1.125rem; } }  /* 18 px desktop */

img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--vert); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--vert); outline-offset: 3px; border-radius: 4px; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 500; }
address { font-style: normal; }
ul, ol { margin: 0; padding: 0; }

[hidden] { display: none !important; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 12px; top: 12px; z-index: 100;
  background: var(--encre); color: var(--fond); padding: 12px 16px; border-radius: 8px; white-space: nowrap;
  transform: translateY(calc(-100% - 24px)); /* caché quelle que soit sa hauteur */
}
.skip:focus { transform: none; }

.container { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Placeholders [À COMPLÉTER] / [À VALIDER] ---------- */
.todo {
  font-family: var(--sans);
  font-size: .85em;
  font-weight: 500;
  letter-spacing: 0;
  color: inherit;
  border: 1px dashed currentColor;
  border-radius: 4px;
  padding: 0 .3em;
  opacity: .8;
}
/* Mode développement (localhost ou ?dev) : surlignage franc */
.dev .todo {
  background: #FFE45C;
  color: #1F1C18;
  border-color: #1F1C18;
  opacity: 1;
}

/* ---------- Typographie ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--vert);
  margin-bottom: 14px;
}
.h2 .eyebrow { display: block; }   /* surtitre intégré au titre (structure H2 lisible par les moteurs) */
.h2 {
  font-family: var(--serif);
  font-variation-settings: "SOFT" 100, "WONK" 0;
  font-optical-sizing: auto;
  font-weight: 420;
  font-size: clamp(2.1rem, 1.4rem + 3.2vw, 4rem);
  line-height: 1.06;
  letter-spacing: -.015em;
  margin-bottom: 28px;
  text-wrap: balance;
}
.prose { max-width: 62ch; }
.prose p { text-wrap: pretty; }

/* ---------- Boutons et liens ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 12px 22px;
  border-radius: 999px; border: 1.5px solid transparent;
  font: 600 1rem/1.1 var(--sans);
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn--cta { background: var(--vert); color: var(--fond); }
.btn--cta:hover { background: var(--vert-fonce); text-decoration: none; transform: translateY(-2px); box-shadow: 0 8px 20px -10px rgba(28, 28, 28, .55); }
.btn:active { transform: translateY(0) scale(.97); box-shadow: none; }
/* Sur fond sombre (hero) : bouton sauge, texte encre (≈ 9:1) */
.hero .btn--cta { background: var(--accent); color: var(--encre); }
.hero .btn--cta:hover { background: #BCCBA3; }
.btn--lg { min-height: 56px; padding: 16px 28px; font-size: 1.0625rem; }

.link-arrow, .link-strong { font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; }
.link-arrow::after { content: "→"; margin-left: .45em; transition: transform .2s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }
.link-light { color: var(--fond); font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- En-tête ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  color: var(--encre);
  background: var(--voile);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ligne);
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
/* Menu ouvert : pas de backdrop-filter (il piégerait le panneau position: fixed) */
.site-header.is-open { background: var(--fond); -webkit-backdrop-filter: none; backdrop-filter: none; color: var(--encre); }
/* Transparent au-dessus du hero, tant qu'on n'a pas scrollé */
.site-header.is-top:not(.is-open) {
  background: transparent; color: var(--fond); border-color: transparent;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.site-header__inner {
  height: 100%;
  max-width: calc(1440px);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 24px;
}
/* Logo (raster détouré, encre) : inversé en clair sur fonds sombres */
.logo { display: block; height: 56px; width: auto; }
@media (min-width: 1200px) { .logo { height: 68px; } }
.site-header.is-top:not(.is-open) .logo { filter: invert(1); }
.logo--footer { height: 96px; filter: invert(1); margin-bottom: 24px; }
.wordmark { display: inline-flex; flex-direction: column; color: inherit; text-decoration: none; line-height: 1; min-height: 44px; justify-content: center; }
.wordmark__name { font-family: var(--serif); font-variation-settings: "SOFT" 100; font-weight: 500; font-size: 1.75rem; letter-spacing: -.02em; }
.wordmark__sub { font-family: var(--sans); font-size: .6875rem; letter-spacing: .2em; text-transform: uppercase; margin-top: 3px; padding-left: 2px; }
.site-header__mention { display: none; margin: 0; font-size: .875rem; color: inherit; opacity: .85; }
.site-header__cta { display: none; margin-left: auto; min-height: 44px; padding: 10px 18px; font-size: .9375rem; }

.site-nav { display: none; }
.site-nav ul { list-style: none; }
.site-nav a { color: inherit; text-decoration: none; font-weight: 500; display: inline-flex; align-items: center; min-height: 44px; position: relative; }
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1.5px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.site-nav a:hover::after, .site-nav a:focus-visible::after { transform: scaleX(1); }

.burger {
  margin-left: auto;
  width: 48px; height: 48px; border: 0; background: transparent; color: inherit; cursor: pointer;
  display: inline-grid; place-items: center; border-radius: 50%;
}
.burger__bars, .burger__bars::before, .burger__bars::after {
  display: block; width: 24px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s;
}
.burger__bars { position: relative; }
.burger__bars::before, .burger__bars::after { content: ""; position: absolute; left: 0; }
.burger__bars::before { top: -7px; }
.burger__bars::after { top: 7px; }
.is-open .burger__bars { background: transparent; }
.is-open .burger__bars::before { transform: translateY(7px) rotate(45deg); }
.is-open .burger__bars::after { transform: translateY(-7px) rotate(-45deg); }

/* Panneau mobile */
@media (max-width: 1199px) {
  .site-nav {
    display: block;
    position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0;
    background: var(--fond); color: var(--encre);
    padding: 32px var(--gutter);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s;
  }
  .is-open .site-nav { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .site-nav li { border-bottom: 1px solid var(--ligne); }
  .site-nav a { font-family: var(--serif); font-variation-settings: "SOFT" 100; font-size: 2rem; min-height: 64px; width: 100%; }
  .site-nav a::after { display: none; }
}
@media (min-width: 768px) {
  .site-header__cta { display: inline-flex; }
  .burger { margin-left: 0; }
}
@media (min-width: 1200px) {
  .burger { display: none; }
  .site-header__mention { display: block; padding-left: 20px; border-left: 1px solid currentColor; }
  .site-nav { display: block; margin-left: auto; }
  .site-nav ul { display: flex; gap: 28px; }
  .site-header__cta { margin-left: 8px; }
}

/* ---------- Barre mobile fixe ---------- */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: var(--voile);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid var(--ligne);
}
.action-bar__btn {
  display: flex; align-items: center; justify-content: center; min-height: 48px;
  border-radius: 999px; font-weight: 600; text-decoration: none;
  border: 1.5px solid var(--encre); color: var(--encre);
  transition: transform .15s var(--ease), background-color .2s;
}
.action-bar__btn:active { transform: scale(.97); }
.action-bar__btn--primary { background: var(--vert); border-color: var(--vert); color: var(--fond); }
@media (min-width: 768px) { .action-bar { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--fond); }
.hero__stage { position: relative; height: 100vh; height: 100svh; min-height: 520px; }
.hero__frame {
  position: absolute; inset: 0; overflow: hidden;
  background: var(--encre); color: var(--fond);
  will-change: transform, border-radius;
}
.hero__fallback, .hero__fallback img, .hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__fallback img { object-fit: cover; }
.hero__canvas { display: none; }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(28, 28, 28, .55) 0%, rgba(28, 28, 28, 0) 28%),
    linear-gradient(0deg, rgba(28, 28, 28, .82) 0%, rgba(28, 28, 28, .35) 45%, rgba(28, 28, 28, 0) 72%);
}
.hero__content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin: 0 auto;
}
.hero__h1, .hero__title, .hero__line {
  font-family: var(--serif);
  font-variation-settings: "SOFT" 100, "WONK" 0;
  font-weight: 420;
  font-size: clamp(2.5rem, 1.6rem + 4.6vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -.02em;
  max-width: 14ch;
  text-wrap: balance;
  margin: 0 0 18px;
  text-shadow: 0 2px 30px rgba(28, 28, 28, .35);
}
.hero__kicker {
  display: block; margin-bottom: 14px; line-height: 1.45;
  font-family: var(--sans); font-size: .8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  text-shadow: none;
}
@media (min-width: 1200px) { .hero__kicker { font-size: .875rem; } }
.hero__sub { font-size: 1.0625rem; max-width: 40ch; margin: 0 0 24px; }
@media (min-width: 1200px) { .hero__sub { font-size: 1.25rem; } }
.hero__veg { font-weight: 600; box-shadow: inset 0 -.32em 0 rgba(167, 185, 138, .55); }  /* « essentiellement végétale », mis en avant */
.veg { font-weight: 600; color: var(--vert); }
.hero__hint { display: none; margin: 0; font-size: .9375rem; opacity: .9; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }

/* Mode statique (sans JS, mouvement réduit, connexion lente) : état 1 + bouton de l'état 3 */
.hero:not(.hero--animated) .hero__state--2,
.hero:not(.hero--animated) .hero__title { display: none; }

/* Mode animé : le canvas remplace l'image, les trois états se superposent */
.hero--animated .hero__stage { height: 100vh; height: 100lvh; }
.hero--animated .hero__canvas { display: block; }
.hero--animated.is-ready .hero__fallback { visibility: hidden; }
.hero--animated .hero__state { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 48px; }
.hero--animated .hero__state--2, .hero--animated .hero__state--3 { opacity: 0; visibility: hidden; }
.hero--animated .hero__hint { display: inline-flex; align-items: center; gap: 10px; }
.hero__arrow { flex: none; animation: hint-arrow 1.6s var(--ease) infinite; }
@keyframes hint-arrow { 0%, 100% { transform: translateY(-2px); opacity: .7; } 50% { transform: translateY(5px); opacity: 1; } }
@media (max-width: 767px) {
  /* au-dessus de la barre fixe Appeler · Réserver */
  .hero__content { padding-bottom: calc(var(--bar-h) + 32px); }
  .hero--animated .hero__state { bottom: calc(var(--bar-h) + 24px + env(safe-area-inset-bottom)); }
}

/* ---------- Sections ---------- */
.section { padding: 88px 0; position: relative; }
@media (min-width: 768px) { .section { padding: 120px 0; } }
@media (min-width: 1200px) { .section { padding: 160px 0; } }

/* Menu du moment : intro pleine largeur, carte au format de « Boire » (lignes, deux colonnes, encadrés) */
.menu__head { display: grid; gap: 8px 64px; }
@media (min-width: 900px) {
  .menu__head { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; }
  .menu__head .prose { padding-top: 32px; }
}
.boire + .boire { margin-top: 0; border-top: 0; }   /* Manger puis Boire : un seul filet entre les deux */
.formule .boire__body { padding-bottom: 32px; }
.formule__foot { margin-top: 32px; }
/* Mosaïque d'assiettes : une grande + quatre petites (desktop), bande à faire glisser (mobile) */
.menu__photos { margin-top: 48px; }
.menu__photo { margin: 0; overflow: hidden; border-radius: 12px; background: var(--fond-2); }
.menu__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
@media (hover: hover) { .menu__photo:hover img { transform: scale(1.04); } }
@media (max-width: 767px) {
  .menu__photos {
    display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 4px;
    scrollbar-width: none;
  }
  .menu__photos::-webkit-scrollbar { display: none; }
  .menu__photo { flex: 0 0 72%; aspect-ratio: 4 / 5; scroll-snap-align: center; }
}
@media (min-width: 768px) {
  .menu__photos { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; height: clamp(380px, 42vw, 580px); }
  .menu__photo--big { grid-row: 1 / 3; }
}
/* Même langage que la carte « Boire » (.boisson, .boire__extra) */
.carte__titre {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px;
  margin: 0 0 6px; padding-bottom: 10px; border-bottom: 2px solid var(--vert);
  font-family: var(--serif); font-variation-settings: "SOFT" 100; font-weight: 500;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.15; color: var(--vert);
}
.carte__meta { font-family: var(--sans); font-size: .9375rem; font-weight: 600; color: var(--encre); }
.carte__liste { list-style: none; margin: 0 0 32px; }
@media (min-width: 900px) { .carte__liste { columns: 2; column-gap: 56px; } }  /* lecture de haut en bas, colonne par colonne */
.carte__liste li { padding: 12px 0; border-bottom: 1px solid var(--ligne); break-inside: avoid; }
.carte__liste .boisson__nom { font-size: 1rem; }
.carte__liste .boisson__detail { font-size: .9375rem; }
.carte__infos { display: grid; gap: 16px; margin-bottom: 24px; }
@media (min-width: 768px) { .carte__infos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.formule__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.formule__note { margin: 0; max-width: 52ch; color: var(--gris); }

/* Carte des boissons (repliable) */
.boire { margin-top: 56px; border-top: 1px solid var(--ligne-forte); border-bottom: 1px solid var(--ligne-forte); }
.boire__summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 72px; padding: 18px 0;
}
.boire__summary::-webkit-details-marker { display: none; }
.boire__head { display: flex; flex-direction: column; gap: 4px; }
.boire__titre { font-family: var(--serif); font-variation-settings: "SOFT" 100; font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem); line-height: 1.1; color: var(--vert); }
.boire__cats { font-size: .9375rem; color: var(--gris); }
.boire__icon {
  flex: none; width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--vert); position: relative;
  transition: transform .3s var(--ease), background-color .2s;
}
.boire__icon::before, .boire__icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 1.5px; background: var(--vert);
  transform: translate(-50%, -50%);
}
.boire__icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .3s var(--ease); }
.boire[open] .boire__icon::after { transform: translate(-50%, -50%) rotate(0); }
.boire__summary:hover .boire__icon { background: rgba(59, 74, 50, .1); }
.boire__body { padding: 8px 0 40px; }
.boire__grid { display: grid; gap: 32px; }
@media (min-width: 768px) { .boire__grid { grid-template-columns: repeat(2, 1fr); gap: 40px 48px; } }
@media (min-width: 1200px) { .boire__grid { grid-template-columns: repeat(4, 1fr); gap: 48px 40px; } }
.boire__cat-titre {
  margin: 0 0 10px; padding-bottom: 8px; border-bottom: 2px solid var(--vert);
  font-family: var(--serif); font-variation-settings: "SOFT" 100; font-weight: 500; font-size: 1.25rem; color: var(--vert);
}
.boire__cat-sous { font-family: var(--sans); font-size: .8125rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gris); margin-left: 6px; }
.boire__cat ul { list-style: none; }
.boire__cat li { padding: 7px 0; border-bottom: 1px solid var(--ligne); }
.boisson { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0; }
.boisson__nom { font-weight: 600; font-size: .9375rem; }
.boisson__prix { white-space: nowrap; font-size: .9375rem; font-variant-numeric: tabular-nums; }
.boisson__detail { margin: 2px 0 0; font-size: .875rem; color: var(--gris); line-height: 1.45; }
.boire__vins { margin: 32px 0 0; }
.boire__extras { display: grid; gap: 16px; margin-top: 40px; }
@media (min-width: 768px) { .boire__extras { grid-template-columns: 1fr 1fr; gap: 24px; } }
.boire__extra { padding: 20px 22px; border-radius: var(--radius); background: var(--fond-2); }
.boire__extra p { margin: 0; }
.boire__extra-titre { font-family: var(--serif); font-variation-settings: "SOFT" 100; font-size: 1.25rem; margin-bottom: 8px !important; color: var(--vert); }
.boire__extra--dark { background: var(--vert); color: var(--fond); }
.boire__extra--dark .boire__extra-titre { color: var(--fond); }

/* Grands visuels plein écran */
.visual {
  margin: 0; position: relative; overflow: hidden;
  height: 56svh; min-height: 340px; max-height: 560px;   /* mobile */
  background: var(--fond-2);
}
/* Lames plein écran, façon patek.com : la photo se dévoile comme derrière un rideau (main.js) */
.motion .visual { height: 80vh; height: 80svh; max-height: none; }
@media (min-width: 768px) {
  .visual { height: clamp(380px, 68svh, 680px); max-height: none; }   /* sans animation : lames moins hautes */
  .motion .visual { height: 100vh; height: 100svh; min-height: 560px; }
}
.visual img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; }
.visual picture { position: absolute; inset: 0; display: block; }
.motion .visual picture, .motion .hero__fallback { will-change: transform; }  /* effet rideau (main.js) */
/* Diptyque : deux photos côte à côte (desktop/tablette), une seule sur mobile */
.visual--duo { display: grid; gap: 6px; background: var(--fond); }
.visual__half { position: relative; overflow: hidden; background: var(--fond-2); }
.visual__half--desktop { display: none; }
@media (min-width: 768px) {
  .visual--duo { grid-template-columns: 1fr 1fr; }
  .visual__half--desktop { display: block; }
}

/* Une maison, une histoire */
.histoire__grid { display: grid; gap: 56px; }
@media (min-width: 900px) {
  .histoire__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; align-items: start; }
  .histoire__media { position: sticky; top: calc(var(--header-h) + 40px); }
}
.postcard { margin: 0; position: relative; }
.postcard__photo {
  position: relative;
  background: #fff;
  padding: 10px 10px 12px;
  box-shadow: 0 1px 2px rgba(28, 28, 28, .12), 0 18px 40px -18px rgba(28, 28, 28, .45);
  transform: rotate(-3deg);
  transition: transform .6s var(--ease);
}
@media (hover: hover) and (min-width: 768px) {
  .postcard:hover .postcard__photo { transform: rotate(-.5deg) translateY(-4px); }
}
.postcard__photo .annot--postcard { position: absolute; inset: 10px 10px 12px; width: calc(100% - 20px); height: calc(100% - 22px); }
.postcard__caption {
  font-family: var(--main); font-weight: 600; font-size: 1.5rem; line-height: 1.2;
  color: var(--encre); margin: 28px 0 0 64px; max-width: 22ch;
}
.annot--arrow { position: absolute; left: 0; bottom: 18px; width: 58px; height: 46px; }
.prose--story p:first-child { font-family: var(--serif); font-variation-settings: "SOFT" 100; font-size: 1.375rem; line-height: 1.35; }
.signature { margin: 8px 0 0; }
.annot--signature { width: 140px; height: 62px; }
.annot--signature text { font-family: var(--main); font-weight: 600; font-size: 56px; fill: var(--encre); }

/* Annotations manuscrites (SVG tracés) */
.annot path { fill: none; stroke: var(--encre); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.annot--underline path { stroke-width: 3; vector-effect: non-scaling-stroke; }
.annot--circle path { stroke-width: 2.4; vector-effect: non-scaling-stroke; }
.annot__text { font-family: var(--main); font-weight: 600; font-size: 72px; fill: var(--encre); }
.annot-wrap { position: relative; display: inline-block; white-space: nowrap; }
.annot-wrap--circle { margin: 0 .14em; }  /* le cercle déborde de 9 % : on laisse de l'air aux mots voisins */
.annot--underline { position: absolute; left: -2%; width: 104%; bottom: -.12em; height: .22em; overflow: visible; }
.annot--circle { position: absolute; left: -9%; top: -16%; width: 118%; height: 132%; overflow: visible; pointer-events: none; }
/* Tracé au scroll (désactivé sans mouvement) */
.motion .annot path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.3s var(--ease) .25s; }
.motion .annot text { opacity: 0; transition: opacity .8s var(--ease) .2s; }
.motion .is-drawn .annot path, .motion .annot.is-drawn path, .reveal-all .annot path { stroke-dashoffset: 0; }
.motion .is-drawn .annot text, .motion .annot.is-drawn text, .reveal-all .annot text { opacity: 1; }

/* De chez nous */
.terroir { background: var(--fond-2); }
.terroir__head .h2 { max-width: 16ch; }
/* Sticker « Bien manger c'est résister » : rond crème, penché, posé à droite du titre ; arrive comme un coup de tampon */
.terroir__head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.sticker {
  flex: none; width: clamp(104px, 22vw, 200px); aspect-ratio: 1;
  display: grid; place-items: center;
  border-radius: 50%; background: #F1E9DF;
  box-shadow: 0 10px 24px -12px rgba(28, 28, 28, .45), inset 0 0 0 1px rgba(28, 28, 28, .06);
  transform: rotate(-8deg);
}
.sticker img { width: 82%; height: 82%; object-fit: contain; }
@media (min-width: 768px) { .terroir__head { gap: 48px; } }
.motion .sticker.reveal { opacity: 0; transform: scale(1.7) rotate(-28deg); transition: opacity .35s var(--ease), transform .7s cubic-bezier(.34, 1.56, .64, 1); transition-delay: .25s; }
.motion .sticker.reveal.is-visible { opacity: 1; transform: rotate(-8deg); }
@media (hover: hover) { .motion .sticker.reveal.is-visible:hover { transform: rotate(4deg) scale(1.05); transition-delay: 0s; } }
/* Citation (Florent Ladeyn) : manuscrite, légèrement penchée, comme un sticker */
.citation { margin: 8px 0 40px; }
.citation blockquote { margin: 0; }
.citation p {
  display: inline-block; margin: 0; transform: rotate(-2deg);
  font-family: var(--main); font-weight: 600; font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); line-height: 1.15; color: var(--vert);
}
.citation figcaption { margin-top: 6px; font-size: .875rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gris); }
.citation figcaption::before { content: "— "; }
@media (min-width: 1000px) {
  .prose--cols { max-width: none; columns: 2; column-gap: 56px; }
  .prose--cols p { break-inside: avoid; }
}
.inline-photo { margin: 48px 0 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--fond-2); }
.inline-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
@media (min-width: 768px) { .inline-photo { aspect-ratio: 16 / 9; } }
@media (min-width: 1200px) { .inline-photo { aspect-ratio: 21 / 9; } .inline-photo img { object-position: 50% 35%; } }
.producteurs { list-style: none; display: grid; gap: 16px; margin: 56px 0 0; }
@media (min-width: 768px) { .producteurs { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.producteur {
  background: var(--fond); border-radius: var(--radius); padding: 24px;
  border-top: 3px solid var(--vert);
}
.producteur p { margin: 0 0 6px; }
.producteur__nom { font-family: var(--serif); font-size: 1.25rem; color: var(--vert); }
.producteur__lieu { font-size: .9375rem; color: var(--gris); }
.producteur__todo { margin-top: 12px !important; font-size: .875rem; }
.reconnaissances { margin-top: 64px; text-align: center; }
.reconnaissances__band {
  list-style: none;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 24px 48px;
  padding: 32px 0; border-top: 1px solid var(--ligne-forte); border-bottom: 1px solid var(--ligne-forte);
}
.label img { height: 36px; width: auto; }
.label--tdt img { height: 46px; }  /* trait fin : un peu plus grand pour équilibrer avec APAQ-W */
.label--ccb img { height: 52px; }  /* logo plus compact : un peu plus grand pour l'équilibre */
@media (min-width: 1200px) { .label img { height: 40px; } .label--tdt img { height: 54px; } .label--ccb img { height: 60px; } }
.reconnaissances__phrase { margin: 20px auto 0; max-width: 46ch; color: var(--gris); }

/* La vie de la maison */
.vie__grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .vie__grid { grid-template-columns: 1fr 1fr; gap: 72px; } }
.vie .h2 { max-width: 14ch; }
.agenda { margin: 32px 0; border-top: 1px solid var(--ligne-forte); }
.agenda__row { display: grid; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--ligne-forte); }
@media (min-width: 600px) { .agenda__row { grid-template-columns: 200px 1fr; gap: 16px; } }
.agenda dt { font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--vert); padding-top: .2em; }
.agenda dd { margin: 0; }

/* Avis */
.avis { background: var(--fond-2); }
.avis .h2 { max-width: 16ch; }
.avis__notes { list-style: none; display: grid; gap: 16px; margin: 8px 0 0; padding: 0; }
@media (min-width: 600px) { .avis__notes { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 720px; gap: 24px; } }
.note { padding: 24px; border-radius: var(--radius); background: var(--fond); }
.note p { margin: 0; }
.note__logo { display: block; width: 36px; height: 36px; margin-bottom: 16px; }
.note__score { font-family: var(--serif); font-variation-settings: "SOFT" 100; line-height: 1; }
.note__chiffre { font-size: 3rem; font-weight: 420; letter-spacing: -.02em; }
.note__sur { font-size: 1.25rem; color: var(--gris); margin-left: 2px; }
.note__etoiles {
  display: inline-block; letter-spacing: .12em; margin: 8px 0 4px !important;
  background: linear-gradient(90deg, var(--vert) calc(var(--note, 5) / 5 * 100%), var(--ligne-forte) 0);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.note__source { color: var(--gris); font-size: .9375rem; }
.note .link-arrow { margin-top: 8px; }
.avis__cta { margin: 40px 0 0; }

/* Infos pratiques */
.infos { background: var(--fond); }
.infos__grid { display: grid; gap: 0; margin: 24px 0 0; border-top: 1px solid var(--ligne-forte); }
@media (min-width: 768px) { .infos__grid { grid-template-columns: repeat(2, 1fr); column-gap: 40px; } }
@media (min-width: 1200px) { .infos__grid { grid-template-columns: repeat(3, 1fr); column-gap: 56px; } }
.info { padding: 24px 0; border-bottom: 1px solid var(--ligne-forte); }
.info dt { font-family: var(--serif); font-variation-settings: "SOFT" 100; font-size: 1.5rem; color: var(--vert); margin-bottom: 8px; }
.info dd { margin: 0; }
.info dd p { margin-bottom: 12px; }
.infos__closing { margin-top: 48px; max-width: 52ch; font-family: var(--serif); font-variation-settings: "SOFT" 100; font-size: 1.375rem; line-height: 1.4; }

/* Questions fréquentes */
.faq { margin-top: 56px; max-width: 820px; border-top: 1px solid var(--ligne-forte); }
.faq__titre { margin: 24px 0 8px; font-family: var(--serif); font-variation-settings: "SOFT" 100; font-weight: 500; font-size: 1.5rem; color: var(--vert); }
.faq__item { border-bottom: 1px solid var(--ligne); }
.faq__item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 52px; padding: 12px 0; font-weight: 600;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; flex: none; font-size: 1.375rem; font-weight: 400; color: var(--vert); transition: transform .25s var(--ease); }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { margin: 0 0 16px; max-width: 64ch; color: var(--gris); }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--encre); color: var(--fond); padding: 64px 0 40px; }
.site-footer a { color: var(--fond); display: inline-flex; align-items: center; min-height: 44px; }
.site-footer a:hover { color: var(--accent); }
.site-footer p { margin: 0 0 6px; }
.site-footer span[aria-hidden] { color: var(--accent); margin: 0 6px; }
.site-footer__brand { font-family: var(--serif); font-variation-settings: "SOFT" 100; font-size: 1.375rem; margin-bottom: 16px !important; }
.site-footer__brand .wordmark__name { font-size: inherit; }
.site-footer__legal { margin-top: 24px !important; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .8125rem; opacity: .75; }
.site-footer__legal a { min-height: 44px; }
.credit-peakstone { vertical-align: middle; margin-left: 4px; }
.credit-peakstone img { width: auto; height: 18px; transition: opacity .2s; }
.credit-peakstone:hover img, .credit-peakstone:focus-visible img { opacity: .8; }
.site-footer__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.social { list-style: none; display: flex; gap: 8px; }
.site-footer .social a {
  width: 48px; height: 48px; justify-content: center; border-radius: 50%;
  border: 1px solid currentColor; transition: color .2s, border-color .2s, transform .2s var(--ease);
}
.site-footer .social a:hover { transform: translateY(-2px); }
.site-footer__last { margin-top: 32px !important; font-family: var(--main); font-weight: 600; font-size: 1.625rem; color: var(--accent); }

/* ---------- Modale Barestho ---------- */
.modal {
  width: min(720px, calc(100vw - 48px)); height: min(820px, calc(100vh - 48px));
  padding: 0; border: 0; border-radius: var(--radius);
  background: var(--fond); color: var(--encre);
  box-shadow: 0 30px 80px -20px rgba(28, 28, 28, .6);
  overflow: hidden;
}
.modal[open] { display: flex; flex-direction: column; }
.modal::backdrop { background: rgba(28, 28, 28, .6); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.modal__head { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 24px; border-bottom: 1px solid var(--ligne); }
.modal__title { margin: 0; font-family: var(--serif); font-variation-settings: "SOFT" 100; font-size: 1.375rem; }
.modal__close { width: 48px; height: 48px; border: 0; border-radius: 50%; background: transparent; font-size: 2rem; line-height: 1; cursor: pointer; color: var(--encre); }
.modal__close:hover { background: var(--fond-2); }
.modal__body { flex: 1; position: relative; }
.modal__body iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.modal__empty { padding: 32px 24px; }
.motion .modal[open] { animation: modal-in .35s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }

/* ---------- Nouvelle carte en préparation (remplace « J'ai faim ») ---------- */
.bientot {
  margin-top: 56px; padding: 40px 24px; text-align: center;
  border-top: 1px solid var(--ligne-forte);
}
.bientot__texte {
  margin: 0; font-family: var(--serif); font-variation-settings: "SOFT" 100;
  font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem); line-height: 1.15; color: var(--vert); text-wrap: balance;
}
.bientot__main { display: inline-block; font-family: var(--main); font-weight: 600; font-size: 1.2em; color: var(--encre); transform: rotate(-3deg); }
.bientot + .boire { margin-top: 0; }

/* ---------- Pop-up d'annonce (fermeture) ---------- */
.annonce {
  width: min(520px, calc(100vw - 32px)); max-height: calc(100svh - 32px);
  padding: 0; border: 0; background: transparent; overflow: visible; color: var(--fond);
}
.annonce::backdrop { background: rgba(28, 28, 28, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.annonce__carte {
  position: relative; padding: 56px 28px 32px; text-align: center;
  border-radius: 22px; background: var(--vert);
  box-shadow: 0 30px 80px -20px rgba(28, 28, 28, .7);
  transform: rotate(-1.5deg);
}
@media (min-width: 768px) { .annonce__carte { padding: 64px 48px 40px; } }
.annonce__fermer {
  position: absolute; top: 8px; right: 8px; width: 48px; height: 48px;
  border: 0; border-radius: 50%; background: transparent; color: var(--fond);
  font-size: 2rem; line-height: 1; cursor: pointer;
}
.annonce__fermer:hover { background: rgba(255, 255, 255, .12); }
.annonce__dates {
  margin: 0 0 18px; font-family: var(--serif); font-variation-settings: "SOFT" 100; font-weight: 420;
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem); line-height: 1.12; text-wrap: balance;
}
.annonce__dates strong { font-weight: 600; color: var(--accent); white-space: nowrap; }
.annonce__suite { margin: 0 0 32px; font-size: 1.125rem; line-height: 1.5; text-wrap: balance; }
.annonce__suite .annot path { stroke: var(--accent); }
.annonce__suite .annot-wrap--circle { margin: 0 .35em; }
.annonce__ok { background: var(--fond); color: var(--vert); border-color: var(--fond); }
.annonce__ok:hover { background: var(--fond-2); transform: translateY(-2px); }
.annonce__eclats { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; }
.annonce__eclats i { display: none; }

/* L'animation « pop » : la carte jaillit avec rebond, les éclats partent, le contenu suit, le cercle se trace */
.motion .annonce[open]::backdrop { animation: annonce-fond .35s var(--ease) both; }
.motion .annonce[open] .annonce__carte { animation: annonce-pop .75s cubic-bezier(.34, 1.56, .64, 1) both; }
.motion .annonce[open] .annonce__carte > p,
.motion .annonce[open] .annonce__ok { animation: annonce-monte .5s var(--ease) both; }
.motion .annonce[open] .annonce__dates { animation-delay: .22s; }
.motion .annonce[open] .annonce__suite { animation-delay: .34s; }
.motion .annonce[open] .annonce__ok { animation-delay: .46s; }
.motion .annonce[open] .annonce__eclats i {
  display: block; position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent); opacity: 0;
  animation: annonce-eclat .8s cubic-bezier(.2, .7, .3, 1) .12s both;
}
.annonce__eclats i:nth-child(1) { --x: -230px; --y: -170px; }
.annonce__eclats i:nth-child(2) { --x: 240px;  --y: -150px; background: var(--fond) !important; }
.annonce__eclats i:nth-child(3) { --x: -270px; --y: 40px;   border-radius: 2px !important; }
.annonce__eclats i:nth-child(4) { --x: 270px;  --y: 70px; }
.annonce__eclats i:nth-child(5) { --x: -160px; --y: 200px;  background: var(--fond) !important; }
.annonce__eclats i:nth-child(6) { --x: 180px;  --y: 210px;  border-radius: 2px !important; }
.annonce__eclats i:nth-child(7) { --x: 20px;   --y: -230px; }
.annonce__eclats i:nth-child(8) { --x: -20px;  --y: 240px;  background: #E8C872 !important; }
.motion .annonce.is-closing .annonce__carte { animation: annonce-sort .22s var(--ease) both; }
.motion .annonce.is-closing::backdrop { animation: annonce-fond .22s var(--ease) reverse both; }
@keyframes annonce-fond { from { opacity: 0; } }
@keyframes annonce-pop {
  0%   { opacity: 0; transform: scale(.35) rotate(-14deg); }
  55%  { opacity: 1; transform: scale(1.06) rotate(2deg); }
  100% { opacity: 1; transform: scale(1) rotate(-1.5deg); }
}
@keyframes annonce-monte { from { opacity: 0; transform: translateY(14px); } }
@keyframes annonce-eclat {
  0%   { opacity: 1; transform: translate(0, 0) scale(.4); }
  70%  { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--x), var(--y)) scale(1) rotate(160deg); }
}
@keyframes annonce-sort { to { opacity: 0; transform: scale(.9) rotate(-4deg); } }
@media (max-width: 767px) { .annonce__eclats { transform: scale(.6); } }  /* éclats moins loin sur petit écran */

/* ---------- Apparitions au scroll ---------- */
.motion .reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s var(--ease), transform .9s var(--ease); }
/* Titres de section : montent en se redressant (pas de clip-path : un élément entièrement rogné
   n'est jamais vu par l'IntersectionObserver et ne s'afficherait pas) */
.motion .h2.reveal { transform: translateY(70px) skewY(3deg); transition: opacity .8s var(--ease), transform 1.1s var(--ease); }
/* Photos en parallaxe (main.js) : l'image est agrandie pour ne jamais laisser de bord vide */
.motion .menu__photo picture, .motion .inline-photo picture { display: block; height: 100%; will-change: transform; }
.motion .reveal.is-visible, .reveal-all .reveal { opacity: 1; transform: none; }

/* ---------- Mouvement réduit : tout est coupé ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .postcard__photo { transform: rotate(-3deg) !important; }
}

/* ---------- Pages secondaires ---------- */
.page { padding: calc(var(--header-h) + 48px) 0 96px; }
.page h1 { font-family: var(--serif); font-variation-settings: "SOFT" 100; font-weight: 420; font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.5rem); line-height: 1.1; margin-bottom: 32px; }
.page h2 { font-family: var(--serif); font-variation-settings: "SOFT" 100; font-size: 1.5rem; margin: 40px 0 12px; }
.page .prose { max-width: 68ch; }
