/* Les Têtes Brûlées : sarcelle de l'enseigne, terre cuite, crème, marbre noir, bois brûlé */
:root {
  --creme: #F4E9D8;
  --creme-2: #EBDcc4;
  --encre: #24150D;
  --encre-2: #4A3426;
  --teal: #0E6763;
  --teal-nuit: #0A3B39;
  --terre: #A9401C;
  --braise: #E8792F;
  --lueur: #FFB066;
  --marbre: #0F0F10;
  --bois: #C99560;
  --brule: #2E1708;
  --f-titre: "Gloock", Georgia, "Times New Roman", serif;
  --f-txt: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-main: "Kalam", "Segoe Print", cursive;
  --haut-bandeau: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--haut-bandeau) + 12px); }
body {
  margin: 0;
  font-family: var(--f-txt);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--encre);
  background: var(--creme);
}
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--braise); outline-offset: 3px; }

.evite {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--encre); color: var(--creme); padding: 10px 16px; border-radius: 8px;
}
.evite:focus { top: 12px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 24px; border-radius: 999px;
  font-weight: 600; font-size: 1rem; text-decoration: none; text-align: center;
  border: 2px solid transparent; transition: background-color .25s, color .25s, transform .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-feu { background: var(--braise); color: var(--encre); }
.btn-feu:hover { background: var(--lueur); }
.btn-clair { background: var(--creme); color: var(--encre); }
.btn-clair:hover { background: #fff; }
.btn-ligne { border-color: var(--teal); color: var(--teal); }
.btn-ligne:hover { background: var(--teal); color: var(--creme); }
.btn-ligne-clair { border-color: var(--creme); color: var(--creme); }
.btn-ligne-clair:hover { background: var(--creme); color: var(--teal-nuit); }

.sur {
  font-weight: 700; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--terre);
  display: inline-flex; align-items: center; gap: 10px;
}
.sur::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.sur-clair { color: var(--lueur); }

/* ---------- Bandeau ---------- */
.bandeau {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--haut-bandeau);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 0 clamp(16px, 3vw, 40px);
  background: rgba(244, 233, 216, .94); border-bottom: 1px solid rgba(36, 21, 13, .12);
  -webkit-backdrop-filter: saturate(1.2); backdrop-filter: saturate(1.2);
}
.marque {
  font-family: var(--f-titre); color: var(--teal); text-decoration: none; line-height: .92;
  font-size: 1.2rem; display: flex; flex-direction: column;
}
.marque span:last-child { padding-left: .9em; }
.bandeau ul { list-style: none; display: flex; gap: clamp(14px, 2.4vw, 34px); margin: 0; padding: 0; }
.bandeau nav a { text-decoration: none; font-weight: 600; font-size: .95rem; position: relative; padding: 6px 0; }
.bandeau nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--braise);
  transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.bandeau nav a:hover::after { transform: scaleX(1); }
.b-tel {
  font-weight: 700; text-decoration: none; background: var(--teal); color: var(--creme);
  padding: 10px 18px; border-radius: 999px; font-size: .95rem; white-space: nowrap;
}
.b-tel:hover { background: var(--teal-nuit); }

/* ---------- 1. Entrée ---------- */
.entree { position: relative; height: 100vh; height: 100svh; min-height: 600px; overflow: hidden; background: var(--marbre); color: var(--creme); }
.e-scene { position: absolute; inset: 0; }
.e-table, .e-salle { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.e-table { z-index: 1; object-position: 50% 90%; }
.e-salle { z-index: 2; display: none; object-position: 50% 90%; }
.e-voile {
  position: absolute; inset: 0; z-index: 3;
  background:
    linear-gradient(to top, rgba(12, 7, 4, .92) 0%, rgba(12, 7, 4, .62) 38%, rgba(12, 7, 4, .18) 70%, rgba(12, 7, 4, .35) 100%);
}
.e-dedans {
  position: absolute; z-index: 4; left: 0; right: 0; bottom: 0;
  padding: 0 clamp(18px, 5vw, 72px) clamp(36px, 8vh, 80px);
  max-width: 1200px;
}
.e-sur { font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .82rem; color: var(--lueur); margin-bottom: 14px; }
.entree h1 {
  font-family: var(--f-titre); font-size: clamp(3.4rem, 12vw, 9.6rem); line-height: .88; letter-spacing: -.01em;
  color: var(--creme);
}
.entree h1 .l1, .entree h1 .l2 { display: block; }
.entree h1 .l2 { color: var(--lueur); padding-left: .55em; }
.e-lede { max-width: 34rem; margin-top: 20px; font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: #F8EFE2; }
.e-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.e-carton { display: none; }

/* Mode animé : l'enseigne de papier couvre la scène */
.motion .e-salle { display: block; }
.motion .e-carton { display: block; position: absolute; inset: 0; z-index: 5; color: var(--encre); }
.e-feu { position: absolute; inset: 0; display: block; }
.e-carton-txt {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 80px 20px 40px;
}
.e-mot { font-family: var(--f-titre); color: var(--teal); line-height: .86; font-size: clamp(3.6rem, 15vw, 11.5rem); }
.e-mot-2 { padding-left: .5em; }
.ch { display: inline-block; }
.sr-txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.e-sous { margin-top: 26px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; font-size: clamp(.72rem, 1.6vw, .9rem); color: var(--terre); }
.e-indice {
  position: absolute; left: 0; right: 0; bottom: 28px; text-align: center;
  font-family: var(--f-main); font-size: 1.1rem; color: var(--encre-2);
}
.e-indice::after { content: ""; display: block; width: 2px; height: 34px; margin: 8px auto 0; background: linear-gradient(var(--terre), transparent); }

/* ---------- 2. La maison ---------- */
.maison { padding: clamp(80px, 12vw, 150px) clamp(18px, 5vw, 72px); background: var(--creme); }
.maison-grille { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(36px, 6vw, 96px); align-items: center; }
.maison h2, .table-tete h2, .carte-tete h2, .venir h2 {
  font-family: var(--f-titre); font-size: clamp(2.3rem, 5.4vw, 4.4rem); line-height: 1.02; margin-top: 16px;
}
.maison h2 { color: var(--teal); }
.attrib { margin-top: 14px; font-style: italic; color: var(--encre-2); }
.faits { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 4px; }
.faits li { display: grid; grid-template-columns: 56px 1fr; gap: 14px; padding: 18px 0; border-top: 1px solid rgba(36, 21, 13, .18); }
.f-n { font-family: var(--f-titre); color: var(--terre); font-size: 1.6rem; line-height: 1.1; }
.faits strong { font-weight: 700; }
.maison-photo { margin: 0; }
.mp-cadre { border-radius: 999px 999px 22px 22px; overflow: hidden; background: var(--brule); aspect-ratio: 718 / 1100; box-shadow: 0 30px 60px -30px rgba(46, 23, 8, .6); }
.mp-cadre img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; }
.maison-photo figcaption { margin-top: 14px; font-family: var(--f-main); font-size: 1.1rem; color: var(--encre-2); text-align: center; }

/* ---------- 3. À table ---------- */
.table {
  padding: clamp(80px, 11vw, 140px) clamp(18px, 4vw, 56px);
  color: var(--creme);
  background:
    radial-gradient(120% 60% at 20% 0%, rgba(232, 121, 47, .14), transparent 60%),
    linear-gradient(115deg, transparent 47%, rgba(255, 255, 255, .05) 47.3%, transparent 47.8%),
    linear-gradient(160deg, transparent 63%, rgba(255, 255, 255, .04) 63.2%, transparent 63.6%),
    var(--marbre);
}
.table-tete { max-width: 1200px; margin: 0 auto 50px; }
.table-tete p:last-child { margin-top: 14px; color: #E9DCC8; max-width: 36rem; }
.assiettes { list-style: none; margin: 0 auto; padding: 0; max-width: 1280px; columns: 4 230px; column-gap: 16px; }
.assiettes li { break-inside: avoid; margin-bottom: 16px; }
.vue { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; text-align: left; }
.vue img { width: 100%; border-radius: 14px; transition: filter .4s; }
.vue:hover img { filter: brightness(1.08); }
.vue-cap { display: block; margin-top: 8px; font-size: .9rem; color: #E9DCC8; }

/* ---------- 4. La carte ---------- */
.carte { position: relative; padding: clamp(80px, 11vw, 140px) clamp(16px, 4vw, 56px); background: var(--creme-2); }
.carte-tete { max-width: 1280px; margin: 0 auto 44px; }
.carte-tete h2 { color: var(--teal); }
.carte-chapo { margin-top: 16px; max-width: 42rem; }
.plus-ex { display: inline-grid; place-items: center; width: 1.5em; height: 1.5em; border-radius: 50%; background: var(--teal); color: var(--creme); font-weight: 700; line-height: 1; }
.carte-grille { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 200px minmax(0, 1fr) 320px; gap: clamp(20px, 3vw, 44px); align-items: start; }
.carte-nav { position: sticky; top: calc(var(--haut-bandeau) + 20px); }
.onglets { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.onglet {
  display: block; padding: 9px 14px; border-radius: 10px; text-decoration: none; font-weight: 600;
  color: var(--encre-2); transition: background-color .25s, color .25s;
}
.onglet:hover { background: rgba(14, 103, 99, .1); color: var(--teal); }
.onglet[aria-selected="true"] { background: var(--teal); color: var(--creme); }
.rubrique { margin-bottom: 52px; }
.rubrique h3 { font-family: var(--f-titre); font-size: clamp(2rem, 3.6vw, 2.8rem); color: var(--terre); line-height: 1.05; }
.cat-note { margin-top: 8px; color: var(--encre-2); font-size: .95rem; }
.plats { list-style: none; margin: 18px 0 0; padding: 0; }
.plat { padding: 16px 0; border-bottom: 1px dashed rgba(36, 21, 13, .28); }
.plat-tete { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px 18px; flex-wrap: wrap; }
.plat h4 { font-family: var(--f-txt); font-weight: 700; font-size: 1.08rem; line-height: 1.35; padding-top: 6px; }
.plat p { margin-top: 4px; color: var(--encre-2); font-size: .97rem; max-width: 40rem; }
.plat-prix { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: flex-end; }
.prix { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.p-k { font-size: .82rem; font-weight: 600; color: var(--encre-2); }
.p-v { font-family: var(--f-titre); font-size: 1.22rem; color: var(--encre); }
.ajout {
  display: none; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: var(--teal); color: var(--creme); font-size: 1.4rem; font-weight: 700; line-height: 1; cursor: pointer;
  transition: background-color .2s, transform .2s;
}
.js .ajout { display: inline-grid; }
.ajout:hover { background: var(--terre); transform: rotate(90deg); }
.ajout.pique { animation: pique .5s ease; }
@keyframes pique { 40% { transform: scale(1.25); background: var(--braise); color: var(--encre); } }
.source { margin-top: 10px; padding: 18px 20px; border-left: 3px solid var(--terre); background: rgba(255, 255, 255, .45); font-size: .92rem; color: var(--encre-2); }
.js .carte.onglets-actifs .rubrique { display: none; }
.js .carte.onglets-actifs .rubrique.active { display: block; }

/* La planche : signature, les plats s'y gravent au fer */
.planche { display: none; }
.js .planche { display: block; position: sticky; top: calc(var(--haut-bandeau) + 20px); }
.planche-bois {
  position: relative; padding: 50px 24px 26px; border-radius: 26px 26px 34px 34px; color: var(--brule);
  background:
    repeating-linear-gradient(92deg, rgba(110, 62, 24, .08) 0 3px, transparent 3px 11px),
    repeating-linear-gradient(88deg, rgba(255, 233, 190, .14) 0 1px, transparent 1px 23px),
    radial-gradient(120% 90% at 30% 20%, #D8A874, var(--bois) 60%, #B98450);
  box-shadow: inset 0 0 0 2px rgba(110, 62, 24, .25), inset 0 -18px 30px -18px rgba(70, 35, 10, .45), 0 24px 40px -22px rgba(46, 23, 8, .55);
}
.planche-manche {
  position: absolute; left: 50%; top: -34px; width: 74px; height: 52px; transform: translateX(-50%);
  border-radius: 16px 16px 6px 6px; background: linear-gradient(#C99560, #B07A47);
  box-shadow: inset 0 0 0 2px rgba(110, 62, 24, .25);
}
.planche-manche::after { content: ""; position: absolute; left: 50%; top: 12px; width: 16px; height: 16px; border-radius: 50%; transform: translateX(-50%); background: var(--creme-2); box-shadow: inset 0 2px 3px rgba(0, 0, 0, .35); }
.planche h3 { font-family: var(--f-main); font-weight: 700; font-size: 1.7rem; text-align: center; line-height: 1.1; }
.planche-vide { margin-top: 10px; text-align: center; font-family: var(--f-main); font-size: 1.05rem; }
.planche-liste { list-style: none; margin: 14px 0 0; padding: 0; font-family: var(--f-main); font-size: 1.08rem; line-height: 1.3; }
.planche-liste li { display: grid; grid-template-columns: auto 1fr auto auto; align-items: baseline; gap: 8px; padding: 6px 0; border-bottom: 1px solid rgba(46, 23, 8, .22); }
.pl-q { font-weight: 700; }
.pl-v { white-space: nowrap; font-weight: 700; }
.pl-moins {
  width: 30px; height: 30px; border-radius: 50%; border: 2px solid rgba(46, 23, 8, .55); background: transparent;
  color: var(--brule); font-weight: 700; line-height: 1; cursor: pointer; align-self: center;
}
.pl-moins:hover { background: var(--brule); color: var(--bois); }
.planche-total { margin-top: 14px; display: flex; justify-content: space-between; font-family: var(--f-main); font-weight: 700; font-size: 1.3rem; }
.planche-vider { margin-top: 10px; border: 0; background: none; padding: 6px 0; text-decoration: underline; font-weight: 600; cursor: pointer; color: var(--brule); }
.grave { animation: grave 1.5s ease-out both; }
@keyframes grave {
  0% { color: #FFE2A8; text-shadow: 0 0 10px #FF7A1A, 0 0 2px #fff; clip-path: inset(0 100% 0 0); }
  45% { color: #F08A33; text-shadow: 0 0 8px #FF7A1A; clip-path: inset(0 0 0 0); }
  100% { color: var(--brule); text-shadow: 0 0 0 transparent; clip-path: inset(0 0 0 0); }
}
.planche-actions { margin-top: 18px; display: grid; gap: 10px; }
.planche-mention { font-size: .85rem; color: var(--encre-2); text-align: center; }
.planche-fermer, .planche-ouvrir { display: none; }

/* ---------- 5. Venir ---------- */
.venir { padding: clamp(80px, 11vw, 140px) clamp(18px, 5vw, 72px); background: var(--teal-nuit); color: var(--creme); }
.venir-grille { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.adresse { margin-top: 10px; font-size: 1.1rem; color: #E6F0EE; }
.horaires { margin-top: 30px; width: 100%; max-width: 420px; border-collapse: collapse; }
.horaires caption { text-align: left; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; color: var(--lueur); padding-bottom: 8px; }
.horaires th, .horaires td { padding: 9px 12px; text-align: left; border-bottom: 1px solid rgba(244, 233, 216, .18); font-weight: 400; }
.horaires td { text-align: right; }
.horaires tr.today { background: var(--braise); color: var(--encre); font-weight: 700; }
.horaires tr.today th, .horaires tr.today td { font-weight: 700; border-color: transparent; }
.h-note { margin-top: 12px; font-size: .9rem; color: #D4E2DF; }
.venir-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.venir-plan { border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 4.4; background: #0d4a47; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.venir-plan iframe { width: 100%; height: 100%; border: 0; display: block; filter: sepia(.25) saturate(.9); }

/* ---------- Pied ---------- */
.pied { background: var(--marbre); color: #E9DCC8; padding: 48px clamp(18px, 5vw, 72px) 40px; font-size: .95rem; }
.pied-haut { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 30px; align-items: baseline; }
.pied-marque { font-family: var(--f-titre); font-size: 1.8rem; color: var(--lueur); }
.pied a { color: #fff; }
.credits, .mention { max-width: 1200px; margin: 22px auto 0; }
.credits summary { cursor: pointer; font-weight: 600; }
.credits p { margin-top: 8px; font-size: .88rem; }
.mention { font-size: .88rem; color: #CDBFA9; }

.cta-mobile { display: none; }

/* ---------- Visionneuse ---------- */
.visionneuse { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.visionneuse::backdrop { background: rgba(10, 6, 4, .92); }
.visionneuse figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 70px; }
.visionneuse img { max-height: 80vh; width: auto; border-radius: 12px; }
.visionneuse figcaption { margin-top: 12px; color: var(--creme); }
.visionneuse button {
  position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--creme); color: var(--encre); font-size: 1.6rem; line-height: 1;
}
.vi-fermer { top: 16px; right: 16px; }
.vi-prec { left: 14px; top: 50%; transform: translateY(-50%); }
.vi-suiv { right: 14px; top: 50%; transform: translateY(-50%); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .carte-grille { grid-template-columns: 180px minmax(0, 1fr); }
  .js .planche {
    position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; top: auto; max-height: 86vh; overflow: auto;
    padding: 44px 16px 22px; background: var(--creme); border-radius: 22px 22px 0 0;
    box-shadow: 0 -20px 50px rgba(0, 0, 0, .35); transform: translateY(105%); transition: transform .45s cubic-bezier(.2, .8, .2, 1);
    visibility: hidden;
  }
  .js .planche.ouverte { transform: none; visibility: visible; }
  .planche-bois { max-width: 460px; margin: 30px auto 0; }
  .planche-actions { max-width: 460px; margin-left: auto; margin-right: auto; }
  .js .planche-fermer { display: block; position: absolute; top: 12px; right: 14px; border: 0; background: var(--encre); color: var(--creme); border-radius: 999px; padding: 8px 16px; font-weight: 600; cursor: pointer; }
  .js .planche-ouvrir {
    display: inline-flex; align-items: center; gap: 8px; position: fixed; z-index: 55; right: 16px; bottom: 20px;
    border: 0; border-radius: 999px; padding: 12px 18px; min-height: 48px; background: var(--brule); color: var(--creme);
    font-weight: 700; cursor: pointer; box-shadow: 0 10px 24px rgba(0, 0, 0, .3);
    opacity: 0; pointer-events: none; transform: translateY(20px); transition: opacity .3s, transform .3s;
  }
  .js .carte.en-vue .planche-ouvrir { opacity: 1; pointer-events: auto; transform: none; }
  .po-n { display: inline-grid; place-items: center; min-width: 26px; height: 26px; border-radius: 999px; background: var(--braise); color: var(--encre); padding: 0 6px; }
}

@media (max-width: 900px) {
  .maison-grille, .venir-grille { grid-template-columns: 1fr; }
  .maison-photo { max-width: 420px; }
  .venir-plan { aspect-ratio: 4 / 3.4; }
}

@media (max-width: 760px) {
  :root { --haut-bandeau: 58px; }
  body { padding-bottom: 64px; }
  .bandeau nav { display: none; }
  .marque { font-size: 1.05rem; }
  .b-tel { padding: 9px 14px; font-size: .9rem; }
  .carte-grille { grid-template-columns: minmax(0, 1fr); }
  .carte-nav {
    top: var(--haut-bandeau); z-index: 5; margin: 0 -16px; padding: 10px 16px;
    background: var(--creme-2); border-bottom: 1px solid rgba(36, 21, 13, .12);
  }
  .onglets { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
  .onglets::-webkit-scrollbar { display: none; }
  .onglet { white-space: nowrap; padding: 8px 14px; background: rgba(255, 255, 255, .5); }
  html:not(.js) .carte-nav { position: static; }
  .js .planche-ouvrir { bottom: 76px; }
  .cta-mobile {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; z-index: 58; left: 0; right: 0; bottom: 0;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: var(--marbre);
  }
  .cta-mobile a {
    display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 999px;
    font-weight: 700; text-decoration: none; background: var(--braise); color: var(--encre);
  }
  .cta-mobile a + a { background: var(--creme); }
  .assiettes { columns: 2; column-gap: 10px; }
  .assiettes li { margin-bottom: 12px; }
  .vue-cap { font-size: .82rem; }
  .entree h1 .l2 { padding-left: .3em; }
  .e-actions .btn { flex: 1 1 auto; }
  .visionneuse figure { padding: 70px 12px; }
  .vi-prec, .vi-suiv { top: auto; bottom: 18px; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .grave { animation: none; }
}
