/* ==========================================================================
   ARDOISE · Feuille de style du site
   Un restaurant haut de gamme : la table tourne à l'accueil, puis la page
   alterne des parties sombres (expresso), claires (papier) et bordeaux (cave).
   Chaque partie porte un moment (data-moment) qui fixe ses couleurs : une
   ligne par moment ci-dessous, à ajuster pour vos couleurs.
   ========================================================================== */

/* ---------- Polices (auto-hébergées, licence SIL OFL) ---------- */
@font-face { font-family: 'Bodoni Moda'; src: url(../fonts/bodoni-moda.woff2) format('woff2'); font-weight: 400 700; font-style: normal; font-display: swap }
@font-face { font-family: 'Bodoni Moda'; src: url(../fonts/bodoni-moda-italic.woff2) format('woff2'); font-weight: 400 700; font-style: italic; font-display: swap }
@font-face { font-family: 'Albert Sans'; src: url(../fonts/albert-sans.woff2) format('woff2'); font-weight: 300 800; font-style: normal; font-display: swap }
@font-face { font-family: 'Albert Sans'; src: url(../fonts/albert-sans-italic.woff2) format('woff2'); font-weight: 400; font-style: italic; font-display: swap }

/* ---------- Réglages généraux ---------- */
:root {
  --f-titre: 'Bodoni Moda', 'Didot', 'Bodoni 72', Georgia, serif;
  --f-texte: 'Albert Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --g: clamp(20px, 5vw, 80px);                 /* marge latérale */
  --w: min(1280px, calc(100% - 2 * var(--g))); /* largeur de contenu */
  --hd: 76px;                                  /* hauteur de l'en-tête */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --laiton: #c6a06a;
}

/* Les moments : fond, encre, texte secondaire, filets, accent, surfaces */
[data-moment="nuit"]   { --fond: #120e0b; --ink: #f1e9dc; --muted: #a3978a; --line: rgba(241, 233, 220, .14); --accent: #c6a06a; --surface: #1b1612; --on-accent: #120e0b }
[data-moment="papier"] { --fond: #f2ebe0; --ink: #1a1511; --muted: #6b5f52; --line: rgba(26, 21, 17, .14); --accent: #8a6332; --surface: #f8f3ea; --on-accent: #f8f3ea }
[data-moment="vin"]    { --fond: #2b1215; --ink: #f3e6de; --muted: #c2a59d; --line: rgba(243, 230, 222, .15); --accent: #d9ad73; --surface: #361a1d; --on-accent: #2b1215 }
[data-moment="minuit"] { --fond: #0c0a08; --ink: #ebe3d6; --muted: #9a8f83; --line: rgba(235, 227, 214, .12); --accent: #c6a06a; --surface: #15120f; --on-accent: #0c0a08 }

*, *::before, *::after { box-sizing: border-box }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hd) + 12px); background: #120e0b }
html.lenis, html.lenis body { height: auto }
.lenis.lenis-smooth { scroll-behavior: auto !important }
body {
  margin: 0; font-family: var(--f-texte); font-size: 1.0625rem; line-height: 1.6; font-weight: 400;
  color: var(--ink); background: var(--fond);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto }
a { color: inherit }
button, input, select, textarea { font: inherit; color: inherit }
h1, h2, h3, h4 { font-family: var(--f-titre); font-weight: 400; margin: 0; line-height: 1.02; letter-spacing: -.01em; font-optical-sizing: auto }
p { margin: 0 }
ul, ol { margin: 0; padding: 0; list-style: none }
.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 }
.wrap { width: var(--w); margin-inline: auto }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px }
::selection { background: var(--accent); color: var(--on-accent) }
.evite { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--laiton); color: #120e0b; padding: 10px 16px; text-decoration: none; transition: top .2s }
.evite:focus { top: 12px }

/* ---------- Textes communs ---------- */
.sur { display: flex; align-items: center; gap: 16px; font-size: .72rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--muted) }
.sur b { font-family: var(--f-titre); font-weight: 400; font-style: italic; font-size: 1.3rem; letter-spacing: 0; text-transform: none; color: var(--accent); white-space: nowrap }
.sur b::after { content: ''; display: inline-block; width: 36px; height: 1px; background: currentColor; opacity: .6; margin-left: 16px; vertical-align: middle; transform: translateY(-4px) }
.titre { font-size: clamp(2.5rem, 5.4vw, 5.2rem); margin-top: 26px; max-width: 15ch; text-wrap: balance; font-weight: 400 }
.titre em { font-style: italic; color: var(--accent) }
.texte { color: var(--muted); max-width: 46ch; margin-top: 24px; font-size: 1.06rem }
.texte strong { color: var(--ink); font-weight: 600 }
.petit { font-size: .86rem; color: var(--muted) }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 50px; padding: 0 28px;
  border-radius: 2px; border: 1px solid transparent; font-weight: 600; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.btn-plein { background: linear-gradient(var(--ink), var(--ink)) no-repeat 50% 100% / 100% 0, var(--accent); color: var(--on-accent); transition: background-size .6s var(--ease-out), color .4s var(--ease) }
.btn-plein:hover { background-size: 100% 100%; color: var(--fond) }
.btn-ligne { border-color: var(--line); color: var(--ink); background: transparent }
.btn-ligne:hover { border-color: var(--accent); color: var(--accent) }
.btn svg { width: 16px; height: 16px; flex: none }
.lien { color: var(--ink); text-decoration: none; padding-bottom: 3px; background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1px, linear-gradient(var(--line), var(--line)) no-repeat 0 100% / 100% 1px; transition: background-size .6s var(--ease-out), color .3s }
.lien:hover { background-size: 100% 1px, 100% 1px; color: var(--accent) }

/* ---------- Statut ouvert / fermé ---------- */
.statut { display: inline-flex; align-items: center; gap: 10px; font-size: .8rem; font-weight: 500; letter-spacing: .02em; color: var(--ink); white-space: nowrap }
.statut i { width: 7px; height: 7px; border-radius: 50%; background: #8f8578; flex: none }
.statut.ouvert i { background: #7fbf86; animation: pouls 2.8s var(--ease) infinite }
@keyframes pouls { 0% { box-shadow: 0 0 0 0 rgba(127, 191, 134, .45) } 70% { box-shadow: 0 0 0 8px rgba(127, 191, 134, 0) } 100% { box-shadow: 0 0 0 0 rgba(127, 191, 134, 0) } }

/* ---------- Bandeau d'annonce ---------- */
.annonce { position: relative; z-index: 60; background: #1b1612; color: #e9dcc6; font-size: .84rem; border-bottom: 1px solid rgba(198, 160, 106, .22) }
.annonce[hidden] { display: none }
.annonce p { width: var(--w); margin-inline: auto; padding: 11px 40px 11px 0; text-align: center; letter-spacing: .02em }
.annonce a { color: var(--laiton); font-weight: 600; margin-left: 10px; text-underline-offset: 4px }
.annonce button { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; background: transparent; color: inherit; cursor: pointer; font-size: 1.2rem; line-height: 1 }

/* ---------- En-tête ---------- */
.hd {
  position: sticky; top: 0; z-index: 50; height: var(--hd);
  display: flex; align-items: center; gap: 32px; padding-inline: var(--g);
  color: var(--ink); background: transparent; border-bottom: 1px solid transparent;
  transition: background-color .5s var(--ease), border-color .5s var(--ease), color .5s var(--ease), transform .7s var(--ease-out);
}
.hd.plein { background: var(--fond); border-bottom-color: var(--line) }
/* quand on descend dans la page, l'en-tête s'efface ; il revient dès qu'on remonte */
.hd.masque { transform: translate3d(0, -101%, 0) }
.hd-logo { display: inline-flex; align-items: baseline; gap: 12px; text-decoration: none; font-family: var(--f-titre); font-size: 1.7rem; line-height: 1; margin-right: auto; letter-spacing: .01em }
.hd-logo small { font-family: var(--f-texte); font-size: .6rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--muted) }
.hd-nav { display: flex; gap: 30px }
.hd-nav a { text-decoration: none; font-size: .7rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ink); position: relative; padding: 8px 0; opacity: .82; transition: opacity .3s }
.hd-nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-out) }
.hd-nav a:hover, .hd-nav a[aria-current="true"] { opacity: 1 }
.hd-nav a:hover::after, .hd-nav a[aria-current="true"]::after { transform: scaleX(1); transform-origin: left }
.hd-cta { min-height: 42px; padding: 0 20px }
.hd-menu { display: none; align-items: center; gap: 10px; height: 42px; padding: 0 14px; border: 1px solid var(--line); border-radius: 2px; background: transparent; cursor: pointer; font-weight: 600; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase }
.hd-menu span { display: grid; gap: 5px }
.hd-menu span i { display: block; width: 18px; height: 1px; background: currentColor; transition: transform .35s var(--ease) }
.hd-menu[aria-expanded="true"] span i:first-child { transform: translateY(3px) rotate(45deg) }
.hd-menu[aria-expanded="true"] span i:last-child { transform: translateY(-3px) rotate(-45deg) }

/* Menu plein écran (téléphone) */
.menu { position: fixed; inset: 0; z-index: 45; padding: calc(var(--hd) + 24px) var(--g) 120px; background: var(--fond); color: var(--ink); overflow-y: auto; display: flex; flex-direction: column; gap: 32px }
.menu[hidden] { display: none }
.menu ol { display: grid }
.menu li a { display: flex; align-items: baseline; gap: 18px; padding: 14px 0; text-decoration: none; font-family: var(--f-titre); font-size: 2.1rem; line-height: 1.05; border-bottom: 1px solid var(--line) }
.menu li a small { font-family: var(--f-titre); font-style: italic; font-size: 1rem; color: var(--accent); min-width: 52px }
.menu .menu-pied { display: grid; gap: 10px; color: var(--muted); font-size: .95rem }
.menu .menu-pied a { color: var(--ink) }

/* ---------- La frise des heures (ordinateur) ---------- */
.rail { position: fixed; right: clamp(16px, 2.2vw, 36px); top: 50%; transform: translateY(-50%); z-index: 40; height: min(56vh, 460px); width: 64px; color: var(--ink); display: none; opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility .6s, color .5s }
.rail.vu { opacity: 1; visibility: visible }
.rail ol { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end }
.rail ol::before { content: ''; position: absolute; right: 3px; top: 4px; bottom: 4px; width: 1px; background: currentColor; opacity: .2 }
.rail li a { position: relative; display: flex; align-items: center; justify-content: flex-end; width: 40px; height: 18px; text-decoration: none; font-size: 0; color: inherit; opacity: .45; transition: opacity .3s }
.rail li a::after { content: ''; width: 7px; height: 1px; background: currentColor }
.rail li a:hover, .rail li a[aria-current="true"] { opacity: 1 }
.rail li a span { position: absolute; right: 22px; white-space: nowrap; opacity: 0; transform: translateX(6px); transition: opacity .3s, transform .3s var(--ease-out); pointer-events: none; font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; padding: 6px 12px; background: var(--fond); box-shadow: 0 0 0 1px var(--line) }
.rail li a:hover span, .rail li a:focus-visible span { opacity: 1; transform: none }
.rail-curseur { position: absolute; right: 0; top: 0; width: 7px; height: 7px; margin-top: -3px; border-radius: 50%; background: var(--accent); will-change: transform }
.rail-h { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-family: var(--f-titre); font-style: italic; font-size: 1.05rem; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--accent); transition: opacity .3s }
.rail:hover .rail-h { opacity: 0 }

/* ---------- Barre du bas (téléphone) ---------- */
.barre { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 48; display: none; align-items: center; gap: 8px; padding: 7px; border-radius: 3px; background: #1b1612; color: #f1e9dc; box-shadow: 0 14px 40px rgba(0, 0, 0, .35), 0 0 0 1px rgba(198, 160, 106, .25); transform: translateY(0); transition: transform .5s var(--ease-out) }
.barre.cachee { transform: translateY(150%) }
.barre-tel { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(241, 233, 220, .16); border-radius: 2px; color: inherit; flex: none }
.barre-tel svg { width: 18px; height: 18px }
.barre-heure { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 8px; font-size: .78rem; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-left: 6px; background: none; border: 0; text-align: left; cursor: pointer; color: #b9ac9c }
.barre-heure b { font-family: var(--f-titre); font-style: italic; font-weight: 400; font-size: 1.1rem; color: var(--laiton); font-variant-numeric: tabular-nums }
.barre .btn { min-height: 44px; padding: 0 18px; background: var(--laiton); color: #120e0b }

/* ---------- Parties ---------- */
.moment { position: relative; padding-block: clamp(88px, 9.5vw, 150px); color: var(--ink); background: var(--fond) }

/* ==========================================================================
   L'ACCUEIL : LA TABLE QUI TOURNE
   ========================================================================== */
.scene { position: relative; height: max(calc(100svh - var(--bandeau, 0px)), 640px); padding: 0; overflow: hidden; overflow: clip; isolation: isolate;
  background: radial-gradient(ellipse 70% 55% at 50% 70%, #24282b 0%, #15181a 55%, #0c0e0f 100%) }
/* le fond en dalles d'ardoise (en 3D, c'est un vrai sol sous la table : voir table3d.js) */
:root:not(.vise-3d) .scene { background: radial-gradient(ellipse 75% 65% at 50% 72%, rgba(8, 9, 10, .1) 0%, rgba(8, 9, 10, .6) 62%, rgba(6, 7, 8, .9) 100%), #1c1f21 url(../img/ardoise-sol.webp) center / 560px }
.hd ~ main .scene { margin-top: calc(var(--hd) * -1) }
/* le rideau : l'accueil reste en place pendant que la partie suivante glisse par-dessus */
.js [data-page="accueil"] .scene { position: sticky; top: 0 }
.js [data-page="accueil"] .scene + .moment { box-shadow: 0 -30px 70px rgba(0, 0, 0, .45) }
.scene-tete { position: absolute; z-index: 6; left: 0; right: 0; top: calc(var(--hd) + 2.2vh); display: grid; justify-items: center; text-align: center; padding-inline: var(--g); pointer-events: none }
.scene-tete > * { pointer-events: auto }
.scene-statut { display: flex; align-items: center; gap: 14px; color: var(--muted) }
.scene-statut .statut { font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 600; color: var(--muted) }
.scene-nom { font-size: clamp(4.2rem, 10vw, 9.2rem); line-height: .86; margin-top: 16px; letter-spacing: -.02em; font-weight: 400 }
.scene-accroche { margin-top: clamp(20px, 2.6vw, 38px); font-family: var(--f-titre); font-style: italic; font-size: clamp(1.1rem, 1.6vw, 1.45rem); color: var(--muted); max-width: 34ch; text-wrap: balance }

.table-zone { position: absolute; inset: 0; z-index: 2; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent }
.table-zone.tient { cursor: grabbing }
.plateau { position: absolute; left: 0; top: 0; width: 1000px; height: 1000px; border-radius: 50%; will-change: transform; pointer-events: none;
  background: #2a1a10 center / cover;
  box-shadow: inset 0 0 0 1px rgba(255, 230, 190, .12), inset 0 0 0 16px rgba(0, 0, 0, .2), inset 0 0 160px rgba(0, 0, 0, .55), 0 80px 160px rgba(0, 0, 0, .75), 0 24px 60px rgba(0, 0, 0, .5) }
.assiettes { position: absolute; inset: 0; pointer-events: none }
.assiette { position: absolute; left: 0; top: 0; width: 100px; height: 100px; padding: 0; border: 0; background: none; border-radius: 50%; cursor: pointer; will-change: transform; pointer-events: auto; -webkit-tap-highlight-color: transparent }
.assiette:focus-visible { outline: 1px solid var(--laiton); outline-offset: 8px }
.assiette .ombre { position: absolute; inset: 3%; border-radius: 50%; box-shadow: 0 26px 40px -8px rgba(0, 0, 0, .72), 0 6px 14px rgba(0, 0, 0, .45); pointer-events: none }
.assiette img { position: relative; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; pointer-events: none; -webkit-user-drag: none }
.lumiere { position: absolute; inset: 0; z-index: 3; pointer-events: none }
.carton {
  position: absolute; z-index: 5; left: 50%; top: 0; width: min(390px, calc(100% - 2 * var(--g) - 130px)); transform: translateX(-50%);
  padding: 22px 26px 20px; background: #f4ede2; color: #1a1511; border-radius: 1px;
  /* l’ombre tombe vers le bas et la droite, comme celles de la table (la suspension est en haut à gauche) */
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 16px 26px 46px -16px rgba(0, 0, 0, .78), 5px 7px 14px -6px rgba(0, 0, 0, .5);
  text-align: center;
}
.carton::before { content: ''; position: absolute; inset: 6px; border: 1px solid rgba(138, 99, 50, .28); pointer-events: none }
.carton-cat { font-size: .62rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: #8a6332 }
.carton-nom { font-family: var(--f-titre); font-style: italic; font-size: clamp(1.45rem, 2.1vw, 1.95rem); line-height: 1.08; margin-top: 8px; text-wrap: balance }
.carton-desc { margin-top: 8px; font-size: .9rem; line-height: 1.45; color: #6b5f52; text-wrap: balance }
.carton-pied { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 12px }
.carton-prix { font-family: var(--f-titre); font-size: 1.35rem; font-variant-numeric: tabular-nums }
.carton-pied a { font-size: .64rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: #8a6332; text-decoration: none; border-bottom: 1px solid rgba(138, 99, 50, .35); padding-bottom: 2px }
.carton-pied a:hover { border-bottom-color: currentColor }
.carton .change { transition: opacity .35s var(--ease), transform .45s var(--ease-out) }
.carton.passe .change { opacity: 0; transform: translateY(6px) }
.table-fleche { position: absolute; z-index: 5; left: 0; top: 0; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(241, 233, 220, .24); background: rgba(18, 14, 11, .55); color: #f1e9dc; display: grid; place-items: center; cursor: pointer; opacity: var(--sortie, 1); transition: border-color .3s, background-color .3s, color .3s }
.table-fleche:hover { border-color: var(--laiton); color: var(--laiton) }
.table-fleche svg { width: 18px; height: 18px }
.table-indice { position: absolute; z-index: 5; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; font-size: .64rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: rgba(241, 233, 220, .62); opacity: var(--sortie, 1); transition: opacity .6s; pointer-events: none; white-space: nowrap }
.table-indice svg { width: 22px; height: 22px; color: var(--laiton) }
.table-indice.parti { opacity: 0 }
.scene-repli { position: absolute; left: 0; right: 0; bottom: 0; height: 52%; margin: 0; z-index: 1 }
.scene-repli img { width: 100%; height: 100%; object-fit: cover; opacity: .72 }
.scene.sans-table .table-zone { display: none }
/* entrée : la table arrive en tournant (voir ardoise.js) ; les textes montent.
   Le titre reste caché tant que les polices et le bandeau ne sont pas en place (rien ne bouge
   sous les yeux), puis passe à 1 % — invisible à l’œil, mais le navigateur le compte comme
   affiché (LCP) — et se dévoile. */
.js .scene-tete > * { opacity: 0; transform: translateY(18px) }
.scene.titre-pose .scene-tete > * { opacity: .01 }
.scene.titre-vu .scene-tete > * { opacity: 1; transform: none; transition: opacity 1.1s var(--ease), transform 1.2s var(--ease-out) }
.scene.titre-vu .scene-tete > :nth-child(2) { transition-delay: .1s }
.scene.titre-vu .scene-tete > :nth-child(3) { transition-delay: .2s }
.js .table-zone { opacity: 0; transition: opacity 1.4s var(--ease) }
.scene.pret .table-zone { opacity: 1 }

/* ---------- La table en 3D (table3d.js) : la même vue de dessus, en vraie lumière ---------- */
.table-3d { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.2s var(--ease) }
.scene.en-3d .table-3d { opacity: 1 }
/* la 3D est prévue : le bois et les photos à plat ne se montrent pas (ils reviennent si la 3D échoue) ;
   les assiettes HTML restent en place, transparentes, pour le clic et le clavier */
.vise-3d .scene .plateau { display: none }
.vise-3d .scene .assiette :is(img, .ombre) { visibility: hidden }
/* le bois de la table à plat ne se télécharge que si la table reste à plat (la 3D a le sien) */
:root:not(.vise-3d) .plateau { background-image: url(../img/plateau.webp) }

/* ==========================================================================
   L'ARDOISE · 12:00 : un vrai tableau noir, encadré de chêne, écrit à la craie
   ========================================================================== */
@font-face { font-family: 'Caveat'; src: url(../fonts/caveat.woff2) format('woff2'); font-weight: 400 700; font-style: normal; font-display: swap }
.ardoise { overflow: hidden; overflow: clip }
.ardoise-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 110px); align-items: start }
.ardoise-texte { padding-top: clamp(0px, 3vw, 48px) }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 30px; margin-top: 38px }
.chevalet { position: relative; margin: 0 }
.cadre-bois {
  position: relative; padding: clamp(14px, 1.7vw, 22px) clamp(14px, 1.7vw, 22px) 0; border-radius: 5px;
  background: #b48552 url(../img/cadre-chene.webp) center / 340px;
  box-shadow: inset 0 1px 0 rgba(255, 238, 210, .45), inset 0 -2px 0 rgba(0, 0, 0, .28), inset 0 0 0 1px rgba(70, 40, 15, .4),
    0 46px 80px -36px rgba(40, 24, 10, .6), 0 16px 30px -16px rgba(40, 24, 10, .5);
}
.tableau {
  position: relative; padding: clamp(26px, 4.2vw, 58px) clamp(24px, 4.4vw, 64px) clamp(30px, 4vw, 52px); border-radius: 2px;
  background: #2b2f30 url(../img/ardoise.webp) center / cover; color: #f2f0e9; font-family: 'Caveat', 'Segoe Print', 'Bradley Hand', cursive;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .4), inset 0 8px 16px rgba(0, 0, 0, .45), inset 0 0 70px rgba(0, 0, 0, .35);
}
/* le grain de la craie : un masque troué de petites lacunes */
.craie { -webkit-mask-image: url(../img/craie.png); mask-image: url(../img/craie.png); -webkit-mask-size: 230px; mask-size: 230px; text-shadow: 0 0 1px rgba(255, 255, 255, .45), 0 0 9px rgba(255, 255, 255, .07) }
.cr-trait { display: inline-block; transform: rotate(var(--r, 0deg)) }
.cr-date .cr-trait { flex: none; white-space: nowrap }
.cr-date { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: clamp(1.3rem, 1.9vw, 1.65rem); color: #f2e2a4 }
.cr-titre { font-family: inherit; font-weight: 700; font-size: clamp(2.9rem, 5.8vw, 4.8rem); line-height: .95; text-align: center; margin-top: 10px; letter-spacing: 0; position: relative }
.cr-feuille { position: absolute; width: clamp(38px, 4vw, 56px); top: 4px; right: max(2%, calc(50% - 7.6em)); color: #c9dcb8; transform: rotate(-14deg) }
.cr-souligne { display: block; width: min(380px, 74%); height: 24px; margin: 2px auto 0; color: #f2e2a4 }
.cr-sous { text-align: center; font-size: clamp(1.2rem, 1.7vw, 1.45rem); color: rgba(242, 240, 233, .78); margin-top: 4px }
.cr-prix { display: grid; gap: 4px; margin: clamp(18px, 2.4vw, 28px) auto 0; max-width: 560px }
.cr-prix li { display: flex; align-items: baseline; gap: 10px; font-size: clamp(1.35rem, 2vw, 1.75rem) }
.cr-prix li::after { content: ''; order: 1; flex: 1; min-width: 24px; border-bottom: 2px dotted rgba(242, 240, 233, .5); transform: translateY(-7px) }
.cr-prix b { order: 2; flex: none; white-space: nowrap; font-weight: 700; color: #f2e2a4 }
.cr-groupes { display: grid; gap: 4px; margin-top: clamp(14px, 2vw, 22px); text-align: center }
.cr-label { display: block; font-weight: 700; font-size: clamp(1.45rem, 2.1vw, 1.85rem); color: #f2e2a4; margin-top: 6px }
.cr-ligne { display: block; font-size: clamp(1.6rem, 2.7vw, 2.25rem); line-height: 1.12; text-wrap: balance }
.cr-sep { display: block; width: 110px; height: 14px; margin: clamp(10px, 1.4vw, 16px) auto 0; color: rgba(242, 240, 233, .7) }
.cr-note { margin-top: clamp(18px, 2.4vw, 28px); text-align: center; font-size: clamp(1.3rem, 2vw, 1.65rem); color: #f1c9c2 }
.cr-etoile { display: inline-block; width: 26px; height: 26px; vertical-align: -3px; margin-left: 8px; color: #f2e2a4 }
.doodle { overflow: visible }
.doodle path { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round }
/* le rebord : un bâton de craie et la brosse */
.rebord { position: relative; height: clamp(28px, 2.8vw, 36px); display: flex; align-items: center; gap: clamp(18px, 3vw, 34px); padding-left: 14% }
.rebord::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 9px; background: linear-gradient(rgba(0, 0, 0, .4), rgba(0, 0, 0, 0)) }
.baton { width: clamp(46px, 5vw, 64px); height: 11px; border-radius: 4px 3px 3px 4px; background: #f3f0e6 url(../img/craie.png) 0 0 / 120px; transform: rotate(-4deg) translateY(-1px); box-shadow: 0 3px 3px rgba(0, 0, 0, .35) }
.brosse { width: clamp(64px, 7vw, 92px); height: 20px; border-radius: 3px; background: linear-gradient(#77502c 0 52%, #3a3a3c 52%); box-shadow: inset 0 1px 0 rgba(255, 230, 190, .3), 0 4px 5px rgba(0, 0, 0, .45); transform: rotate(2deg) translateY(-2px) }
.ardoise-maj { display: flex; align-items: center; gap: 10px; margin-top: 20px; font-size: .84rem; color: var(--muted) }
.ardoise-maj i { width: 7px; height: 7px; border-radius: 50%; background: #6f9f76; flex: none }
/* le plat du jour en photo, décalé sous le texte comme dans un magazine */
.ardoise-photo { width: min(78%, 380px); margin: clamp(52px, 6.5vw, 96px) 0 0 auto; display: grid; gap: 14px }
.ardoise-photo:empty { display: none }
.ardoise-photo .cadre-photo { aspect-ratio: 4 / 5 }
.ardoise-photo p { font-family: var(--f-titre); font-style: italic; font-size: 1.05rem; color: var(--muted) }
.ardoise-photo p::before { content: ''; display: inline-block; width: 22px; height: 1px; margin-right: 12px; vertical-align: middle; background: var(--accent) }
.ardoise-ferme { margin-top: 18px; font-size: .95rem; color: var(--muted) }
/* elle s'écrit ligne après ligne, les petits dessins se tracent */
.jour:not(.reduit) .tableau .cr-trait { clip-path: inset(-25% 104% -25% -4%); transition: clip-path .9s cubic-bezier(.55, .1, .35, 1); transition-delay: var(--d, 0s) }
.jour:not(.reduit) .tableau.vu .cr-trait { clip-path: inset(-25% -4% -25% -4%) }
.jour:not(.reduit) .tableau .doodle path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .85s cubic-bezier(.55, .1, .35, 1); transition-delay: var(--d, 0s) }
.jour:not(.reduit) .tableau.vu .doodle path { stroke-dashoffset: 0 }

/* ==========================================================================
   LE BANDEAU DE MOTS : deux lignes en grand qui glissent en sens contraire
   ========================================================================== */
.mots { position: relative; overflow: hidden; overflow: clip; padding-block: clamp(84px, 10vw, 170px) clamp(10px, 2vw, 30px); background: var(--fond); color: var(--ink) }
.mots-ligne { display: flex; width: max-content; white-space: nowrap; font-family: var(--f-titre); font-weight: 400; font-size: clamp(3.3rem, 10vw, 10.5rem); line-height: 1.08; letter-spacing: -.025em; will-change: transform }
.mots-copie { display: flex; align-items: center; flex: none }
.mots-copie span { flex: none; padding-inline: .3em }
.mots-copie i { flex: none; width: .09em; height: .09em; border-radius: 50%; background: var(--accent) }
.mots-ligne:first-child { font-style: italic }
.mots-contour { color: var(--accent); font-size: clamp(2.2rem, 6.4vw, 6.8rem); letter-spacing: .01em; margin-top: .1em }
.maison { overflow: hidden; overflow: clip }

/* ==========================================================================
   LA CARTE · 13:00
   ========================================================================== */
.carte-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(40px, 6vw, 120px); align-items: start }
.carte-side { position: sticky; top: calc(var(--hd) + 40px) }
.carte-cats { margin-top: 40px; display: grid }
.carte-cats :is(a, button) { position: relative; display: flex; justify-content: space-between; align-items: baseline; width: 100%; text-align: left; text-decoration: none; padding: 13px 0; border: 0; border-bottom: 1px solid var(--line); background: none; cursor: pointer; font-family: var(--f-titre); font-size: 1.2rem; color: var(--muted); transition: color .3s, padding .5s var(--ease-out) }
.carte-cats :is(a, button) small { font-family: var(--f-texte); font-variant-numeric: tabular-nums; font-size: .72rem; letter-spacing: .1em }
.carte-cats :is(a, button)::before { content: ''; position: absolute; left: 0; top: 50%; width: 12px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease-out) }
.carte-cats :is(a, button):hover, .carte-cats a[aria-current="true"] { color: var(--ink); padding-left: 8px }
/* à l'accueil, les rubriques sont des onglets : une seule à la fois, la page reste courte */
.carte-cats [aria-selected="true"], .carte-cats [aria-selected="true"]:hover { color: var(--ink); padding-left: 24px }
.carte-cats [aria-selected="true"]::before { transform: none }
.carte-outils { display: grid; gap: 16px; margin-top: 30px; justify-items: start }
.bascule { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-size: .86rem; user-select: none; color: var(--ink) }
.bascule input { appearance: none; -webkit-appearance: none; width: 40px; height: 22px; border-radius: 999px; border: 1px solid var(--line); background: transparent; position: relative; cursor: pointer; transition: background-color .3s, border-color .3s; margin: 0; flex: none }
.bascule input::after { content: ''; position: absolute; left: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--muted); transition: transform .3s var(--ease-out), background-color .3s }
.bascule input:checked { border-color: var(--accent) }
.bascule input:checked::after { transform: translateX(18px); background: var(--accent) }
.legende { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .78rem; color: var(--muted) }
.legende span { display: inline-flex; align-items: center; gap: 6px }
.cat + .cat { margin-top: clamp(64px, 7vw, 100px) }
.cat[hidden] { display: none }
.cat[role="tabpanel"] { margin-top: 0 }
.cat.entre { animation: rubrique .7s var(--ease-out) both }
@keyframes rubrique { from { opacity: 0; transform: translate3d(0, 16px, 0) } }
.cat-titre { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--accent) }
.cat-titre h3 { font-size: clamp(2rem, 3vw, 2.8rem); font-style: italic }
.cat-titre span { font-size: .68rem; color: var(--muted); letter-spacing: .2em; text-transform: uppercase }
.plat { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 6px 28px; padding: 24px 0; border-bottom: 1px solid var(--line); transition: padding .5s var(--ease-out) }
.plat-nom { font-family: var(--f-titre); font-size: clamp(1.35rem, 1.9vw, 1.7rem); line-height: 1.15; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap }
.plat-prix { font-family: var(--f-titre); font-size: clamp(1.25rem, 1.7vw, 1.5rem); font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; color: var(--accent) }
.plat-desc { grid-column: 1; color: var(--muted); font-size: .98rem; max-width: 54ch }
.plat-pied { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; margin-top: 4px }
.picto { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; letter-spacing: .02em; color: var(--muted); white-space: nowrap }
.picto svg { width: 15px; height: 15px; color: var(--accent) }
.plat-alg-btn { border: 0; background: none; padding: 4px 0; cursor: pointer; font-size: .74rem; color: var(--muted); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px }
.plat-alg-btn:hover { color: var(--ink) }
.plat-alg { grid-column: 1 / -1; font-size: .86rem; color: var(--muted); margin-top: 2px }
.plat-alg[hidden] { display: none }
.plat-alg b { color: var(--ink); font-weight: 600 }
.plat-photo-mob { display: none }
/* le plat photographié de dessus : son assiette ronde, posée à gauche de son nom */
/* (dans une rubrique où certains plats ont leur assiette, tous les noms restent alignés) */
.avec-assiettes .plat { grid-template-columns: var(--rond) minmax(0, 1fr) auto; column-gap: clamp(18px, 2vw, 30px) }
.avec-assiettes { --rond: clamp(68px, 6.2vw, 92px) }
.plat-assiette { grid-column: 1; grid-row: 1 / span 3; align-self: start; width: var(--rond, 76px); aspect-ratio: 1; border-radius: 50%; margin-top: 2px; box-shadow: 0 16px 24px -12px rgba(0, 0, 0, .75), 0 4px 8px -2px rgba(0, 0, 0, .4); transition: transform .7s var(--ease-out) }
.plat-assiette img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover }
[data-moment="papier"] .plat-assiette { box-shadow: 0 14px 22px -12px rgba(60, 38, 18, .55), 0 3px 7px -2px rgba(60, 38, 18, .28) }
.plat.avec-assiette:hover .plat-assiette { transform: rotate(-16deg) scale(1.04) }
.avec-assiettes :is(.plat-nom, .plat-desc) { grid-column: 2 }
.avec-assiettes .plat-prix { grid-column: 3; grid-row: 1 }
.avec-assiettes :is(.plat-pied, .plat-alg) { grid-column: 2 / -1 }
.plat.epuise .plat-assiette { opacity: .5; filter: grayscale(1) }
.plat.epuise .plat-nom, .plat.epuise .plat-prix { opacity: .45 }
.plat.epuise .plat-desc { opacity: .6 }
.plat.choisi { padding-left: 16px }
.plat.choisi::before { content: ''; position: absolute; left: 0; top: 24px; bottom: 24px; width: 1px; background: var(--accent) }
.badge { display: inline-block; padding: 3px 10px; border: 1px solid currentColor; font-family: var(--f-texte); font-size: .6rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); vertical-align: middle }
.carte-note { margin-top: 40px; font-size: .88rem; color: var(--muted) }
/* l'assiette (ou la photo) du plat suit la souris (ordinateur) */
.survol { position: fixed; left: 0; top: 0; z-index: 30; width: 260px; aspect-ratio: 4 / 5; overflow: hidden; pointer-events: none; opacity: 0; transform: translate3d(-999px, 0, 0); scale: .9; transition: opacity .4s var(--ease), scale .5s var(--ease-out); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .7); background: var(--surface) }
.survol.vu { opacity: 1; scale: 1 }
.survol img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: opacity .3s }
.survol.rond { width: 300px; aspect-ratio: 1; border-radius: 50%; background: transparent; overflow: visible; box-shadow: none }
.survol.rond img { border-radius: 50%; box-shadow: 0 34px 60px -18px rgba(0, 0, 0, .85), 0 10px 20px rgba(0, 0, 0, .5) }

/* ==========================================================================
   LA MAISON · 15:30 (papier)
   ========================================================================== */
.maison-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 7vw, 130px); align-items: center }
.maison-texte .titre { max-width: 16ch; font-size: clamp(2.2rem, 3.9vw, 3.9rem) }
.producteurs-bloc { margin-top: clamp(40px, 4.4vw, 60px) }
.producteurs-titre { font-size: .7rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px }
.producteurs { border-top: 1px solid var(--line) }
.producteurs li { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 2px 14px; padding: 18px 0; border-bottom: 1px solid var(--line) }
.producteurs b { font-family: var(--f-titre); font-weight: 400; font-size: 1.4rem }
.producteurs span { grid-column: 1; color: var(--muted); font-size: .92rem }
.producteurs em { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-style: italic; font-family: var(--f-titre); font-size: 1.2rem; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--accent) }
/* deux photos qui se chevauchent : la grande salle, et les produits du matin posés devant, au premier plan */
.maison-photos { position: relative; padding-bottom: 22% }
.maison-photos .cadre:nth-child(1) { width: 80%; aspect-ratio: 4 / 5 }
.maison-photos .cadre:nth-child(1) img { object-position: 62% 50% }
.maison-photos .cadre:nth-child(2) { position: absolute; right: 0; bottom: 0; width: 47%; aspect-ratio: 4 / 5; box-shadow: 0 0 0 clamp(8px, 1vw, 14px) var(--fond) }
.maison-photos .cadre:nth-child(n+3) { display: none }
.cadre { position: relative; margin: 0; overflow: hidden; background: var(--surface) }
.cadre img { width: 100%; height: 100%; object-fit: cover }
.photo-in { will-change: transform }
.chiffres { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: clamp(64px, 8vw, 110px); border-top: 1px solid var(--line); padding-top: 32px }
.chiffres li > b { display: block; font-family: var(--f-titre); font-weight: 400; font-size: clamp(2.6rem, 4.6vw, 4.2rem); line-height: 1; font-variant-numeric: tabular-nums }
.chiffres li > span { display: block; margin-top: 12px; font-size: .86rem; color: var(--muted); max-width: 18ch }
.avis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(36px, 4vw, 64px) clamp(28px, 5vw, 96px); margin-top: clamp(80px, 10vw, 140px) }
.avis figure { margin: 0; display: flex; flex-direction: column; gap: 18px; padding-top: 26px; border-top: 1px solid var(--line) }
.avis blockquote { margin: 0; font-family: var(--f-titre); font-style: italic; font-size: clamp(1.2rem, 1.7vw, 1.5rem); line-height: 1.3; text-wrap: pretty }
.avis figure:first-child { grid-column: 1 / -1; align-items: center; text-align: center; padding: 0 0 clamp(16px, 2vw, 28px); border: 0 }
.avis figure:first-child blockquote { max-width: 26ch; font-size: clamp(1.8rem, 3.6vw, 3.3rem); line-height: 1.14; text-wrap: balance }
.avis figure:first-child blockquote::before { content: '«'; display: block; margin-bottom: 8px; font-size: 1.6em; line-height: .6; color: var(--accent) }
.avis figcaption { font-size: .7rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted) }
.avis-pied { margin-top: 36px }

/* ==========================================================================
   LA CAVE · 18:30 (bordeaux)
   ========================================================================== */
.cave-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 130px); align-items: start }
/* le titre et la photo restent en place pendant que la liste des vins défile à côté */
.cave-side { position: sticky; top: calc(var(--hd) + 32px) }
.cave-photo { aspect-ratio: 4 / 3; max-height: 42svh; margin-top: 44px }
.cave-photo img { object-position: 50% 40% }
.cave-liste { display: grid; gap: clamp(40px, 4vw, 56px) }
.cave-groupe h3 { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 14px; border-bottom: 1px solid var(--accent); font-size: clamp(1.7rem, 2.4vw, 2.2rem); font-style: italic }
.cave-groupe h3 span { display: flex; gap: 28px; font-family: var(--f-texte); font-style: normal; font-size: .62rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted) }
.cave-groupe h3 span em { font-style: normal; width: 52px; text-align: right }
.vin { display: grid; grid-template-columns: 1fr auto; gap: 2px 28px; padding: 16px 0; border-bottom: 1px solid var(--line) }
.vin b { font-family: var(--f-titre); font-weight: 400; font-size: 1.3rem; line-height: 1.2 }
.vin span { grid-column: 1; color: var(--muted); font-size: .9rem }
.vin-prix { grid-row: 1 / span 2; grid-column: 2; display: flex; gap: 28px; font-family: var(--f-titre); font-size: 1.2rem; font-variant-numeric: tabular-nums; align-self: center; color: var(--accent) }
.vin-prix em { font-style: normal; width: 52px; text-align: right }
.evin { margin-top: 30px; font-size: .72rem; color: var(--muted) }

/* ==========================================================================
   RÉSERVER · 20:30
   ========================================================================== */
/* la photo du soir en fond, sur toute la largeur ; elle défile plus lentement que la page */
.soir { overflow: hidden; overflow: clip; isolation: isolate }
.resa-fond { position: absolute; left: 0; right: 0; top: 0; height: min(100%, 135svh); margin: 0; z-index: 0; overflow: hidden; pointer-events: none; transform-origin: 50% 0;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 60%, rgba(0, 0, 0, 0) 100%); mask-image: linear-gradient(180deg, #000 0%, #000 60%, rgba(0, 0, 0, 0) 100%) }
.resa-fond img { position: absolute; left: 0; top: -9%; width: 100%; height: 118%; object-fit: cover; object-position: 50% 45%; will-change: transform }
.resa-fond::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(18, 14, 11, .9) 0%, rgba(18, 14, 11, .72) 38%, rgba(18, 14, 11, .38) 72%, rgba(18, 14, 11, .5) 100%),
    linear-gradient(180deg, rgba(18, 14, 11, .55) 0%, rgba(18, 14, 11, 0) 22%, rgba(18, 14, 11, 0) 55%, #120e0b 100%) }
.soir > .wrap { position: relative; z-index: 1 }
.resa-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 130px); align-items: start }
.resa-texte { padding-top: clamp(0px, 2vw, 32px) }
.resa-texte .texte { color: #c9bdae }
.resa-tel { display: grid; gap: 6px; margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line) }
.resa-tel a { font-family: var(--f-titre); font-size: clamp(1.8rem, 2.8vw, 2.5rem); text-decoration: none; line-height: 1.1 }
.resa-tel a:hover { color: var(--accent) }
.form { background: var(--surface); border: 1px solid var(--line); box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .8); padding: clamp(24px, 3.6vw, 52px); display: grid; gap: 28px }
.champ { display: grid; gap: 10px }
.champ > label, .champ > legend, .champ-titre { font-size: .66rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); padding: 0 }
fieldset.champ { border: 0; margin: 0; padding: 0; min-width: 0 }
.champs-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px }
.saisie { width: 100%; min-height: 52px; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--ink); font-size: 1.05rem; transition: border-color .3s; color-scheme: dark }
[data-moment="papier"] .saisie { color-scheme: light }
.saisie::placeholder { color: var(--muted); opacity: .7 }
.saisie:focus { outline: none; border-bottom-color: var(--accent) }
textarea.saisie { min-height: 90px; resize: vertical; padding-top: 14px }
.pas-a-pas { display: inline-flex; align-items: center; border: 1px solid var(--line); height: 52px; width: max-content }
.pas-a-pas button { width: 52px; height: 50px; border: 0; background: transparent; cursor: pointer; font-size: 1.3rem; color: var(--ink) }
.pas-a-pas button:disabled { opacity: .3; cursor: default }
.pas-a-pas output { min-width: 110px; text-align: center; font-family: var(--f-titre); font-style: italic; font-size: 1.2rem }
.onglets { display: inline-flex; border: 1px solid var(--line); width: max-content }
.onglets button { min-height: 42px; padding: 0 22px; border: 0; background: transparent; cursor: pointer; font-weight: 600; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted) }
.onglets button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent) }
.onglets button:disabled { opacity: .35; cursor: default }
.creneaux { display: flex; flex-wrap: wrap; gap: 8px }
.creneaux button { min-width: 78px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); background: transparent; cursor: pointer; font-family: var(--f-titre); font-size: 1.02rem; font-variant-numeric: tabular-nums; transition: border-color .25s, background-color .25s, color .25s }
.creneaux button:hover { border-color: var(--accent) }
.creneaux button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent) }
.creneaux-vide { font-size: .95rem; color: var(--muted) }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .84rem; color: var(--muted); cursor: pointer }
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); flex: none }
.form-pied { display: flex; align-items: center; gap: 16px 24px; flex-wrap: wrap }
.form-pied .petit { max-width: 34ch }
.form-msg { font-size: .95rem; padding: 14px 18px; border: 1px solid var(--line) }
.form-msg[hidden] { display: none }
.form-msg.ok { border-color: #6f9f76 }
.form-msg.ko { border-color: #c1583b }
.piege { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0 }
.resa-ok { display: grid; gap: 16px; justify-items: start }
.resa-ok h3 { font-size: clamp(2rem, 3.2vw, 2.8rem); font-style: italic }
.resa-ok p { color: var(--muted) }
.resa-ok:focus { outline: none }

/* ==========================================================================
   INFOS · 23:00
   ========================================================================== */
.infos { padding-bottom: clamp(64px, 7vw, 110px) }
.infos-tete { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 90px); align-items: end }
.infos-nom { font-size: clamp(4rem, 12vw, 11rem); line-height: .9; letter-spacing: -.025em; margin-top: clamp(30px, 4vw, 60px); font-style: italic }
.infos-photo { justify-self: end; width: min(100%, 340px) }
.infos-photo:not(:has(img)) { display: none }
.infos-photo .cadre { aspect-ratio: 4 / 5 }
.infos-photo img { object-position: 30% 50% }
.infos-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 72px); margin-top: clamp(56px, 6vw, 96px); padding-top: 36px; border-top: 1px solid var(--line) }
.infos-grid h3 { font-family: var(--f-texte); font-size: .68rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px }
.horaires li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .95rem }
.horaires li span:last-child { color: var(--muted); text-align: right }
.horaires li.aujourdhui, .horaires li.aujourdhui span:last-child { color: var(--accent) }
.infos-bloc { display: grid; gap: 8px; font-size: 1rem; align-content: start }
.infos-bloc a { text-decoration-color: var(--line); text-underline-offset: 5px }
.infos-bloc .petit { margin-top: 6px }
.fermetures { margin-top: 18px; font-size: .9rem; color: var(--accent) }

/* ---------- Pied de page ---------- */
.pied { padding: 30px 0 calc(30px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); font-size: .78rem; color: var(--muted); background: var(--fond) }
.pied .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px }
.pied nav { display: flex; flex-wrap: wrap; gap: 8px 22px }
.pied a { color: inherit; text-decoration: none }
.pied a:hover { color: var(--accent) }

/* ---------- Le fond vivant : la journée qui passe (assets/js/fond.js) ----------
   Une toile fixée derrière la page ; une fois prête (classe fond-vif), les parties qui suivent l'ardoise
   deviennent transparentes : lumière de fenêtre et feuilles le jour, soleil couchant, bougies le soir.
   Sans WebGL 2, ou en mouvement réduit : fonds unis. */
.fond-vivant { position: fixed; left: 0; top: 0; width: 100%; height: 100vh; height: 100lvh; display: block; visibility: hidden; pointer-events: none }
.fond-vivant.actif { visibility: visible }
.fond-vif main > :is(.moment, .mots) { background: transparent }
/* Au-dessus de la toile, aucun calque ne doit être entièrement opaque : sinon le navigateur croit la toile
   cachée et peut sauter son dessin au mauvais endroit (rectangles noirs). Les cadres photo perdent donc leur
   fond d'attente, et l'en-tête et la barre du bas gardent une opacité de 0,999, invisible à l'œil. */
.fond-vif .cadre { background: transparent }
.fond-vif :is(.hd, .barre, .photo-in, .resa-fond img) { opacity: .999 }
.fond-vif .scene.en-3d .table-3d { opacity: .999 }
/* la fin d'après-midi tombe entre la maison et la cave : un peu plus de place pour le crépuscule */
.fond-vif .maison { padding-bottom: clamp(110px, 11vw, 190px) }
.fond-vif .cave { padding-top: clamp(130px, 14vw, 230px) }
/* l'ouverture : la table ne reste en place que sous l'ardoise (et pas sous toute la page) */
.ouverture { position: relative }

/* ---------- La parallaxe liée au défilement par le navigateur (rien à calculer à chaque image) ----------
   Les navigateurs qui ne savent pas le faire passent par parallaxe() dans ardoise.js. */
@supports (animation-timeline: view()) {
  .defile-css .cadre.ouvre { view-timeline: --cadre block }
  .defile-css .cadre.ouvre .photo-in { transform: none; animation: photo-glisse linear both, photo-ouvre linear both; animation-timeline: --cadre, --cadre; animation-range: cover 0% cover 100%, entry 0% entry 90% }
  .defile-css [data-vitesse] { animation: couche linear both; animation-timeline: view(); animation-range: cover 0% cover 100% }
  .defile-css .soir { view-timeline: --soir block }
  .defile-css .resa-fond { animation: fond-ouvre linear both; animation-timeline: --soir; animation-range: entry 0% entry 100% }
  .defile-css .resa-fond img { transform: none; animation: fond-glisse linear both; animation-timeline: --soir; animation-range: cover 0% cover 100% }
}
@keyframes photo-glisse { from { translate: 0 -8% } to { translate: 0 8% } }
/* la photo se dévoile en entrant : elle apparaît en fondu et se dézoome (un pseudo-élément animé au défilement
   a été écarté : certains navigateurs le dessinaient au mauvais endroit) */
@keyframes photo-ouvre { from { scale: 1.42; opacity: 0 } 70% { opacity: .999 } to { scale: 1.2; opacity: .999 } }
@keyframes couche { from { translate: 0 calc(var(--v, 0) * 60vh) } to { translate: 0 calc(var(--v, 0) * -60vh) } }
@keyframes fond-ouvre { from { scale: .86 } to { scale: 1 } }
@keyframes fond-glisse { from { translate: 0 -12vh } to { translate: 0 12vh } }

/* ---------- Les heures en filigrane ----------
   Le fil du service, en très grand, derrière chaque chapitre : des chiffres détourés, qui défilent
   plus lentement que le texte (une couche de parallaxe de plus, voir data-vitesse). */
.filigrane { position: absolute; z-index: 0; top: clamp(40px, 6.5vw, 100px); right: calc((100% - var(--w)) / 2);
  font-family: var(--f-titre); font-style: italic; font-weight: 400; font-size: clamp(6.2rem, 16.5vw, 16.5rem); line-height: .8;
  letter-spacing: -.02em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px var(--accent); opacity: .3;
  pointer-events: none; user-select: none }
.moment > .wrap { position: relative; z-index: 1 }
.soir > .filigrane { z-index: 1 } /* au-dessus de la photo du soir */
/* sur ordinateur, le tableau, la photo des infos et le formulaire occupent ce coin : l'heure reste au fil (à droite) */
@media (min-width: 1100px) { :is(.ardoise, .soir, .infos) > .filigrane { display: none } }

/* ---------- Les grands titres montent mot à mot ---------- */
.fendu .mot { display: inline-block; overflow: hidden; overflow: clip; vertical-align: top; padding: .08em .1em .18em; margin: -.08em -.1em -.18em }
.fendu .mot > span { display: inline-block; transform: translate3d(0, 115%, 0); transition: transform 1.25s var(--ease-out); transition-delay: calc(var(--d, 0s) + var(--i, 0) * 55ms) }
.fendu.vu .mot > span { transform: none }
.js [data-apparait].fendu { opacity: 1; transform: none; animation: none }

/* ---------- Apparitions ---------- */
/* cachés dès le premier affichage ; si le script ne démarre pas, ils apparaissent quand même */
.js [data-apparait] { opacity: 0; transform: translate3d(0, 30px, 0); animation: apparait-secours .8s 1.6s forwards }
@keyframes apparait-secours { to { opacity: 1; transform: none } }
.jour [data-apparait] { animation: none }
.jour [data-apparait].vu { opacity: 1; transform: none; transition: opacity 1.2s var(--ease), transform 1.3s var(--ease-out); transition-delay: var(--d, 0s) }
.jour.reduit [data-apparait] { opacity: 1; transform: none; transition: none }

/* ---------- Ordinateur large ---------- */
@media (min-width: 1100px) {
  .rail { display: block }
  .moment > .wrap { padding-right: 56px }
}

/* ---------- Tablette ---------- */
@media (max-width: 1099px) {
  .hd-nav { display: none }
  .hd-menu { display: inline-flex }
  .ardoise-grid, .carte-grid, .maison-grid, .cave-grid, .resa-grid { grid-template-columns: minmax(0, 1fr) }
  /* l'ardoise : le titre, puis le tableau tout de suite, puis les boutons et la photo du plat */
  .ardoise-grid { row-gap: 0 }
  .ardoise-texte { display: contents }
  .ardoise-texte > .sur { order: 1 }
  .ardoise-texte > .titre { order: 2 }
  .ardoise-texte > .texte { order: 3 }
  .chevalet { order: 4; margin-top: 40px }
  .ardoise-texte > .actions { order: 5 }
  .ardoise-photo { order: 6 }
  .carte-side, .cave-side { position: static }
  /* les rubriques : une rangée de pastilles qui défile au doigt */
  .carte-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px }
  .carte-cats[role="tablist"] { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--g) * -1); padding: 2px var(--g); scroll-padding-inline: var(--g) }
  .carte-cats[role="tablist"]::-webkit-scrollbar { display: none }
  .carte-cats :is(a, button) { flex: none; width: auto; min-height: 42px; align-items: center; border: 1px solid var(--line); padding: 0 18px; font-family: var(--f-texte); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; color: var(--ink) }
  .carte-cats :is(a, button):hover, .carte-cats [aria-selected="true"], .carte-cats [aria-selected="true"]:hover { padding-left: 18px }
  .carte-cats :is(a, button)::before, .carte-cats :is(a, button) small { display: none }
  .carte-cats [aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent) }
  .carte-liste { margin-top: 8px }
  .cave-photo { aspect-ratio: 16 / 10; max-height: none }
  .avis { grid-template-columns: minmax(0, 1fr); gap: 32px }
  .infos-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) }
  .survol { display: none }
}

/* ---------- Téléphone ---------- */
@media (max-width: 720px) {
  :root { --hd: 64px }
  body { font-size: 1rem }
  .hd { gap: 12px }
  .hd-logo { font-size: 1.45rem }
  .hd-logo small { display: none }
  .hd-cta { min-height: 38px; padding: 0 14px; font-size: .64rem; letter-spacing: .16em }
  [data-page="accueil"] .hd .statut { display: none }
  .hd .statut { font-size: .72rem; max-width: 52vw; overflow: hidden; text-overflow: ellipsis }
  .hd-menu b { display: none }
  .barre { display: flex }
  .sur { gap: 12px; letter-spacing: .18em; font-size: .64rem }
  .sur b { font-size: 1.15rem }
  .sur b::after { width: 20px; margin-left: 12px }
  .scene { height: max(calc(100svh - var(--bandeau, 0px)), 560px) }
  .scene-tete { top: calc(var(--hd) + 4px) }
  .scene-nom { font-size: clamp(3.4rem, 18vw, 5.2rem); margin-top: 8px }
  .scene-accroche { font-size: .98rem; margin-top: 14px; max-width: 30ch }
  .carton { width: calc(100% - 2 * var(--g)); padding: 16px 18px 14px }
  .carton-nom { font-size: 1.4rem }
  .carton-desc { font-size: .82rem }
  .table-fleche { width: 42px; height: 42px }
  .table-indice { bottom: 12px }
  .plat { grid-template-columns: 1fr auto; padding: 20px 0 }
  .plat-photo-mob { display: block; grid-column: 2; grid-row: 2 / span 2; width: 76px; height: 76px; border-radius: 50%; overflow: hidden; align-self: start; margin-top: 6px; background: var(--surface) }
  .plat-photo-mob img { width: 100%; height: 100%; object-fit: cover }
  .avec-assiettes .plat-photo-mob { grid-column: 1; grid-row: 1 / span 3; width: var(--rond); height: var(--rond); margin-top: 2px }
  .maison-photos .cadre:nth-child(1) { width: 84% }
  .maison-photos .cadre:nth-child(2) { width: 50% }
  .avec-assiettes { --rond: 60px }
  .avec-assiettes .plat { column-gap: 16px }
  .ardoise-photo { width: 76% }
  .resa-fond { height: min(100%, 115svh) }
  .resa-fond::after { background: linear-gradient(180deg, rgba(18, 14, 11, .84) 0%, rgba(18, 14, 11, .74) 45%, #120e0b 94%) }
  .chiffres { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 34px }
  .champs-2 { grid-template-columns: minmax(0, 1fr) }
  .form { padding: 24px 20px }
  .cave-groupe h3 span { gap: 14px }
  .cave-groupe h3 span em, .vin-prix em { width: 42px }
  .vin-prix { gap: 14px; font-size: 1.08rem }
  .infos-grid { grid-template-columns: minmax(0, 1fr) }
  .infos-tete { grid-template-columns: minmax(0, 1fr) }
  .infos-photo { width: 60%; margin-top: 8px }
  .pied { padding-bottom: calc(96px + env(safe-area-inset-bottom)) }
  .tableau { padding: 24px 18px 30px }
  .cadre-bois { padding: 11px 11px 0 }
  .rebord { height: 26px; padding-left: 10% }
  .cr-feuille { top: -22px; right: 2px; width: 34px }
  .mots { padding-block: 72px 8px }
}
@media (max-width: 380px) {
  .hd-logo small { display: none }
}

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important }
  .js [data-apparait], .js .scene-tete > *, .js .table-zone { opacity: 1; transform: none }
  .js [data-page="accueil"] .scene { position: relative }
}

/* ---------- Page « carte » (QR code des tables) ---------- */
[data-page="carte"] .hd { gap: 14px }
.pc { position: relative; z-index: 2; padding: 34px 0 68px }
.pc-wrap { width: min(760px, calc(100% - 2 * var(--g))); margin-inline: auto }
.pc-titre { font-size: clamp(2.8rem, 10vw, 4.4rem); line-height: 1; margin-bottom: 12px; font-style: italic }
.pc-titre-2 { font-size: clamp(2.1rem, 7vw, 3.2rem); margin-bottom: 30px }
.carte-ardoise { margin-top: 30px }
.carte-ardoise .tableau { padding: clamp(24px, 5vw, 44px) clamp(18px, 4vw, 40px) }
.pc-cats { position: sticky; top: var(--hd); z-index: 5; display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; padding: 12px 0; margin-top: 30px; background: var(--fond); scrollbar-width: none }
.pc-cats::-webkit-scrollbar { display: none }
.pc-cats a { flex: none; border: 1px solid var(--line); padding: 8px 16px; color: var(--ink); text-decoration: none; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; font-family: var(--f-texte) }
.pc-cats a small { display: none }
.pc-cats a { width: auto; align-items: center }
.pc-cats a:hover { padding-left: 16px }
.pc-outils { display: grid; gap: 12px; margin: 12px 0 30px }
.pc-cave { margin-top: 76px }
.pc-pied { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 56px }
.pc-pied .btn { flex: 1 1 auto }

/* ---------- L'aperçu de l'ardoise dans l'espace restaurant (carte.html?apercu=ardoise) ---------- */
.apercu, .apercu body { background: #f2ebe0 }
.apercu body > :not(main), .apercu .pc-wrap > :not(.carte-ardoise), .apercu .ardoise-maj { display: none !important }
.apercu main, .apercu .pc { margin: 0; padding: 0 }
.apercu .chevalet { margin: 0 !important } /* (la règle tablette lui donne une marge qui remonterait jusqu'en haut) */
.apercu .pc-wrap { width: 100% }
.apercu .carte-ardoise { margin: 0 }
.cr-vide { font-size: clamp(1.3rem, 5vw, 1.7rem); text-align: center; color: rgba(242, 240, 233, .7); padding: 24px 0 }

/* ---------- Mentions légales ---------- */
.legal { position: relative; z-index: 2; padding: clamp(44px, 7vw, 100px) 0 84px }
.legal .wrap { max-width: 760px }
.legal h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); margin-bottom: 32px; font-style: italic }
.legal h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin: 46px 0 14px }
.legal p, .legal li { color: var(--muted); margin-top: 10px; max-width: 64ch }
.legal ul { list-style: disc; padding-left: 20px }
.legal strong { color: var(--ink); font-weight: 600 }

/* ---------- Impression ---------- */
@media print {
  .hd, .rail, .barre, .annonce, .menu, .survol, .form, .resa-fond, .scene, .fond-vivant { display: none !important }
  .cadre .photo-in, [data-vitesse] { transform: none !important; translate: none !important; scale: none !important; animation: none !important; opacity: 1 !important }
  .fendu .mot > span { transform: none !important }
  .cat[hidden] { display: block !important }
  .moment { background: #fff !important; color: #000; padding-block: 24px }
}
