/* La Seconde Table · BRAND.md fait foi */
@font-face { font-family: "DM Serif Display"; src: url("fonts/dmserif-2.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Serif Display"; src: url("fonts/dmserif-1.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Libre Franklin"; src: url("fonts/franklin-1.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Kalam"; src: url("fonts/kalam-1.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Kalam"; src: url("fonts/kalam-2.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --lie: #6B1630;
  --lie-profond: #4A0E20;
  --lie-vive: #842240;
  --craie: #F4EFEA;
  --rose: #E9B9C2;
  --moutarde: #E2BE3C;
  --encre: #2A0A14;
  --ardoise: #1D1B1F;
  --ombre: 0 18px 40px -18px rgb(42 10 20 / .6);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "Libre Franklin", system-ui, sans-serif;
  --craie-f: "Kalam", "Comic Sans MS", cursive;
  --gouttiere: clamp(16px, 5vw, 48px);
  --max: 1180px;
  --entete: 56px;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--entete) + 8px);
  background: var(--lie);
}
body {
  margin: 0;
  background: var(--lie);
  color: var(--craie);
  font: 400 1.0625rem/1.55 var(--sans);
  font-variant-numeric: tabular-nums;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, a, [role="tab"] { touch-action: manipulation; }
button, [role="tab"], .bouton { user-select: none; -webkit-user-select: none; }
:focus-visible { outline: 3px solid var(--moutarde); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.evitement { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--moutarde); color: var(--encre); padding: 10px 14px; border-radius: 999px; font-weight: 700; }
.evitement:focus { top: 10px; }

/* ---------- Commun ---------- */
.etiquette { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--rose); }
.titre-2 { font: 400 clamp(2.4rem, 10vw, 4.5rem)/.95 var(--serif); letter-spacing: -.02em; text-wrap: balance; }
.titre-2 em, .heros__titre em { font-style: italic; color: var(--moutarde); }
.section { padding: clamp(56px, 12vw, 120px) var(--gouttiere); max-width: calc(var(--max) + 2 * var(--gouttiere)); margin-inline: auto; }
.section__tete { display: grid; gap: 10px; margin-bottom: 28px; }
.section__intro, .note { color: var(--rose); font-size: .95rem; }
.craie { font-family: var(--craie-f); }

.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px; border-radius: 999px;
  background: var(--moutarde); color: var(--encre);
  font: 700 1rem/1 var(--sans); text-decoration: none; white-space: nowrap;
  box-shadow: var(--ombre);
  transition: transform 120ms var(--ease-out), background-color 160ms ease;
}
.bouton:active { transform: scale(.97); }
.bouton--contour { background: transparent; color: var(--craie); box-shadow: inset 0 0 0 2px rgb(244 239 234 / .55); }
.lien-fleche { color: var(--craie); font-weight: 600; text-underline-offset: 4px; min-height: 44px; display: inline-flex; align-items: center; }
.lien-fleche::after { content: "→"; margin-left: 6px; }

/* ---------- En-tête ---------- */
.entete {
  position: sticky; top: 0; z-index: 20;
  height: calc(var(--entete) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) var(--gouttiere) 0;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: rgb(74 14 32 / .82);
  -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
}
.entete__nom { display: inline-flex; align-items: center; min-height: 44px; font: 400 1.35rem/1 var(--serif); text-decoration: none; letter-spacing: -.01em; }
.entete__tel { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px; background: var(--moutarde); color: var(--encre); font-weight: 700; font-size: .95rem; text-decoration: none; }
.entete__tel svg { width: 18px; height: 18px; fill: currentColor; }
.entete__tel span { display: none; }
@media (min-width: 380px) { .entete__tel span { display: inline; } }
@media (prefers-reduced-transparency: reduce) { .entete { background: var(--lie-profond); backdrop-filter: none; } }

/* ---------- 1. Héros ---------- */
.heros { position: relative; display: grid; }
.heros__photo { height: min(56svh, 470px); overflow: hidden; }
.heros__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.heros__photo::after { content: ""; position: absolute; inset: 0 0 auto; height: min(56svh, 470px); background: linear-gradient(to bottom, transparent 55%, var(--lie) 100%); pointer-events: none; }
.heros__texte { position: relative; padding: 0 var(--gouttiere) 36px; margin-top: calc(-1 * clamp(3rem, 15vw, 5.4rem)); display: grid; gap: 14px; }
.heros__titre { font: 400 clamp(3.4rem, 17vw, 9.5rem)/.88 var(--serif); letter-spacing: -.025em; display: grid; }
.heros__titre span:last-child { font-style: italic; color: var(--moutarde); padding-left: .55em; }
.heros__phrase { max-width: 34ch; font-size: 1.05rem; color: var(--craie); }
.heros__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-top: 4px; }
.heros .etiquette { order: -1; }
@media (max-width: 899px) {
  .heros .etiquette { display: none; }
  .heros__phrase { display: none; }
}
@media (max-height: 600px) and (max-width: 899px) {
  .heros__photo, .heros__photo::after { height: 44svh; }
}

/* Entrée du héros, une fois */
@keyframes monte { from { opacity: 0; transform: translateY(18px); } }
.heros__titre span { animation: monte 600ms var(--ease-out) both; }
.heros__titre span:last-child { animation-delay: 80ms; }
.heros__actions { animation: monte 600ms 160ms var(--ease-out) both; }

/* ---------- 2. Ticket ---------- */
.ticket {
  --cran: 9px;
  margin: 0 var(--gouttiere);
  max-width: 760px;
  padding: 20px 22px;
  background: var(--moutarde); color: var(--encre);
  display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; align-items: center;
  -webkit-mask: radial-gradient(circle var(--cran) at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle var(--cran) at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle var(--cran) at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle var(--cran) at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
  rotate: -1.2deg;
}
.ticket__haut { grid-column: 1; font-family: var(--craie-f); font-weight: 700; font-size: 1.25rem; line-height: 1.1; }
.ticket__adresse { grid-column: 1; font-size: .98rem; }
.ticket__lien { grid-column: 2; grid-row: 1 / 3; min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 999px; background: var(--encre); color: var(--moutarde); font-weight: 700; text-decoration: none; }

/* ---------- 3. Ardoise ---------- */
.ardoise-section { display: grid; gap: 18px; justify-items: center; }
.ardoise {
  width: 100%; max-width: 640px;
  padding: clamp(24px, 7vw, 48px) clamp(20px, 6vw, 48px) clamp(28px, 7vw, 44px);
  border-radius: 6px;
  border: 10px solid var(--lie-vive);
  background:
    radial-gradient(120% 80% at 20% 10%, rgb(255 255 255 / .06), transparent 60%),
    radial-gradient(90% 60% at 80% 90%, rgb(255 255 255 / .05), transparent 60%),
    var(--ardoise);
  box-shadow: var(--ombre), inset 0 0 0 1px rgb(255 255 255 / .04);
  color: var(--craie);
  text-align: center;
}
.ardoise__semaine { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--moutarde); font-weight: 700; }
.ardoise__titre { font-size: clamp(1.7rem, 7vw, 2.6rem); font-weight: 700; line-height: 1.1; margin: 8px 0 22px; }
.ardoise__titre::after { content: ""; display: block; width: 64px; height: 3px; margin: 12px auto 0; border-radius: 3px; background: rgb(244 239 234 / .5); }
.ardoise__lignes { display: grid; gap: 18px; }
.ardoise__lignes li { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; text-align: left; font-size: clamp(1.4rem, 6vw, 2.1rem); line-height: 1.15; }
.ardoise__plat { font-weight: 700; }
.ardoise__prix { color: var(--moutarde); font-weight: 700; white-space: nowrap; }
.ardoise__detail { grid-column: 1 / -1; font-size: .62em; color: rgb(244 239 234 / .75); }
.ardoise__mot { margin-top: 24px; font-size: 1.35rem; color: var(--rose); rotate: -3deg; }
.ardoise-section .note { max-width: 46ch; text-align: center; }

/* L'écriture à la craie : une ligne après l'autre */
.js .ardoise [data-ecrit] { clip-path: inset(0 100% 0 0); }
.js .ardoise.ecrit [data-ecrit] { clip-path: inset(0 0 0 0); transition: clip-path 700ms var(--ease-out); transition-delay: calc(var(--i) * 250ms); }

/* ---------- 4. Assiettes ---------- */
.assiettes { padding-right: 0; }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(74vw, 320px); gap: 14px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  padding: 4px var(--gouttiere) 12px 0; scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.assiette { scroll-snap-align: start; display: grid; grid-template-columns: 1fr auto; gap: 10px 12px; align-content: start; }
.assiette img { grid-column: 1 / -1; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; box-shadow: var(--ombre); }
.assiette__nom { font-weight: 600; line-height: 1.3; }
.assiette__prix { color: var(--moutarde); font-weight: 700; white-space: nowrap; }

/* ---------- 5. Carte ---------- */
.carte { background: var(--lie-profond); max-width: none; }
.carte > * { max-width: var(--max); margin-inline: auto; }
.onglets {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
  margin-inline: calc(-1 * var(--gouttiere)); padding: 4px var(--gouttiere) 14px;
  position: sticky; top: calc(var(--entete) + env(safe-area-inset-top, 0px)); z-index: 5;
  background: linear-gradient(var(--lie-profond) 80%, transparent);
}
@media (min-width: 900px) { .onglets { margin-inline: auto; padding-inline: 0; } }
.onglets::-webkit-scrollbar { display: none; }
.onglet {
  flex: none; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--lie-vive); color: var(--craie); font: 600 .98rem/1 var(--sans);
  transition: transform 120ms var(--ease-out), background-color 160ms ease, color 160ms ease;
}
.onglet:active { transform: scale(.97); }
.onglet[aria-selected="true"] { background: var(--moutarde); color: var(--encre); }
.panneau { padding-top: 8px; }
.panneau[hidden] { display: none; }
.panneau__note { color: var(--rose); font-size: .95rem; margin-bottom: 18px; max-width: 60ch; }
.groupe + .groupe { margin-top: 30px; }
.groupe__titre { font: 400 1.6rem/1.1 var(--serif); font-style: italic; color: var(--moutarde); margin-bottom: 8px; }
.plats { display: grid; column-gap: 48px; }
@media (min-width: 900px) { .plats { grid-template-columns: 1fr 1fr; } }
.plat { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 13px 0; border-bottom: 1px solid rgb(244 239 234 / .14); }
.plat__nom { font-weight: 600; }
.plat__prix { font-weight: 700; white-space: nowrap; }
.plat__detail { grid-column: 1 / -1; color: var(--rose); font-size: .92rem; }

/* Sélecteur de sauce */
.sauce { margin-top: 30px; padding: 22px; border-radius: 14px; background: var(--lie); box-shadow: var(--ombre); }
.sauce__titre { font: 400 1.6rem/1.1 var(--serif); margin-bottom: 6px; }
.sauce__aide { color: var(--rose); font-size: .95rem; margin-bottom: 16px; }
.sauce fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.sauce legend { font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--rose); margin-bottom: 10px; padding: 0; }
.pastilles { display: flex; flex-wrap: wrap; gap: 8px; }
.pastilles + .sauce__legend2 { margin-top: 18px; }
.pastille { position: relative; }
.pastille input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pastille span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
  background: var(--lie-vive); font-weight: 600; font-size: .95rem;
  transition: transform 120ms var(--ease-out), background-color 160ms ease, color 160ms ease;
}
.pastille input:active + span { transform: scale(.97); }
.pastille input:checked + span { background: var(--moutarde); color: var(--encre); }
.pastille input:focus-visible + span { outline: 3px solid var(--moutarde); outline-offset: 3px; }
.sauce__total { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; padding-top: 16px; border-top: 1px dashed rgb(244 239 234 / .35); }
.sauce__resume { font-weight: 600; }
.sauce__prix { font: 400 2.2rem/1 var(--serif); color: var(--moutarde); }

/* ---------- 6. Avis ---------- */
.avis { background: var(--moutarde); color: var(--encre); padding: clamp(56px, 12vw, 110px) 0; }
.avis__note { display: flex; align-items: center; gap: 18px; padding: 0 var(--gouttiere); max-width: var(--max); margin: 0 auto 28px; }
.avis__chiffre { font: 400 clamp(5.5rem, 28vw, 10rem)/.8 var(--serif); letter-spacing: -.04em; }
.avis__titre { font: 400 clamp(1.7rem, 6.4vw, 2.6rem)/1 var(--serif); }
.avis__etoiles { margin-top: 8px; font-weight: 600; }
.avis__etoiles span { letter-spacing: .1em; color: var(--lie); }
.avis__rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(82vw, 360px); gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
  padding: 4px var(--gouttiere) 8px; scroll-padding-inline: var(--gouttiere);
}
.avis__rail::-webkit-scrollbar { display: none; }
@media (min-width: 1100px) { .avis__rail { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); max-width: var(--max); margin: 0 auto; overflow: visible; } }
.citation { scroll-snap-align: start; background: var(--lie); color: var(--craie); border-radius: 14px; padding: 22px; display: grid; gap: 14px; align-content: space-between; box-shadow: var(--ombre); }
.citation blockquote { margin: 0; font: 400 1.25rem/1.3 var(--serif); }
.citation p { color: var(--rose); font-size: .9rem; font-weight: 600; }

/* ---------- 7. Maison ---------- */
.maison { display: grid; gap: 22px; }
.maison__texte { display: grid; gap: 14px; max-width: 52ch; justify-items: start; }
@media (min-width: 900px) { .maison { grid-template-columns: 1fr 1fr; align-items: end; } }

/* ---------- 8. Infos ---------- */
.infos { padding-top: 0; }
.infos__grille { display: grid; gap: 32px; margin-top: 26px; }
@media (min-width: 900px) { .infos__grille { grid-template-columns: 1.1fr .9fr; } }
.horaires { width: 100%; border-collapse: collapse; }
.horaires th, .horaires td { text-align: left; padding: 12px 0; border-bottom: 1px solid rgb(244 239 234 / .14); font-weight: 400; }
.horaires td { text-align: right; }
.horaires tr.ferme td { color: var(--rose); }
.horaires tr.aujourdhui th, .horaires tr.aujourdhui td { color: var(--moutarde); font-weight: 700; }
.horaires tr.aujourdhui th::after { content: "aujourd’hui"; display: block; font-weight: 600; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.horaires td { line-height: 1.45; }
.infos__adresse { display: grid; gap: 10px; align-content: start; }
.infos__rue { font: 400 2rem/1.1 var(--serif); }
.infos__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

/* ---------- Pied ---------- */
.pied { background: var(--lie-profond); padding: 56px var(--gouttiere) calc(120px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 10px; text-align: center; justify-items: center; }
.pied__nom { font: 400 clamp(2.8rem, 14vw, 8rem)/.9 var(--serif); letter-spacing: -.025em; }
.pied__petit { color: var(--rose); font-size: .85rem; max-width: 46ch; }
@media (min-width: 900px) { .pied { padding-bottom: 56px; } }

/* ---------- Barre du bas (téléphone) ---------- */
.barre {
  position: fixed; inset: auto 0 0 0; z-index: 30;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgb(74 14 32 / .9);
  -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
  transform: translateY(110%);
  transition: transform 260ms var(--ease-out);
}
.barre .bouton { padding: 0 12px; min-height: 50px; }
.barre.visible { transform: none; }
@media (min-width: 900px) { .barre { display: none; } }
@media (prefers-reduced-transparency: reduce) { .barre { background: var(--lie-profond); backdrop-filter: none; } }

/* ---------- Bureau ---------- */
@media (min-width: 900px) {
  :root { --entete: 68px; }
  .heros { grid-template-columns: 1fr 1fr; min-height: calc(100svh - var(--entete)); max-height: 900px; }
  .heros__photo { order: 2; height: auto; }
  .heros__photo::after { display: none; }
  .heros__texte { margin-top: 0; align-content: center; padding: 48px var(--gouttiere); }
  .heros__titre { margin-right: -28%; position: relative; z-index: 2; }
  .heros__phrase { font-size: 1.2rem; }
  .ticket { margin: -34px auto 0 var(--gouttiere); position: relative; z-index: 3; }
  .assiettes { padding-right: var(--gouttiere); }
  .rail { grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); overflow: visible; padding: 4px 0 0; }
}

/* ---------- Survol, souris seulement ---------- */
@media (hover: hover) and (pointer: fine) {
  .bouton:hover { background: #ECCB52; }
  .bouton--contour:hover { background: rgb(244 239 234 / .1); }
  .onglet:hover { background: #9A2C4D; }
  .onglet[aria-selected="true"]:hover { background: var(--moutarde); }
  .assiette img { transition: transform 400ms var(--ease-out); }
  .assiette:hover img { transform: scale(1.03); }
  .ticket__lien:hover, .lien-fleche:hover { text-decoration: underline; }
}

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .heros__titre span, .heros__actions { animation: none; }
  .js .ardoise [data-ecrit] { clip-path: none; transition: none; }
  .barre { transition: none; }
}
.pied a { white-space: nowrap; }
