/* Ji Fu, la carte : l'en-tête au lavis, le registre à onglets collant (la ligne glisse sous le versant à l'écran, à
   sa couleur), les bandes des versants et leur sommaire en lanternes, les rubriques, les plats sans points de
   conduite, les filtres. Couleurs des versants, mesurées sur les photos de la maison (24.10) : côté chinois la laque
   (#d90502) et le lampion dans l'ombre (#93241b) ; côté japonais l'ardoise et le bois des barques (#b48d56) ; les
   menus sur la nappe (#5d5368). */

/* ── L'en-tête : un ciel de papier, la guirlande, le titre et son sceau, les montagnes qui se fondent dans la page ── */
.tete-carte { background: linear-gradient(180deg, #dce4de 0%, #e5eae4 55%, #ecefea 100%); color: var(--encre); --halo: .45; }
.tete-carte .tete-page-dedans { padding-bottom: 0; }
.tete-carte .surtitre { color: var(--encre-2); }
.tete-carte .tete-page-chapeau { color: var(--encre-2); }
.tete-carte-sceau { width: max(30px, .32em); margin-left: .14em; vertical-align: top; translate: 0 .02em; --retard: .45s; }
.guirlande-carte { --corde: rgba(20, 32, 27, .45); }
.guirlande-carte .lanterne-large { display: none; }
@media (min-width: 760px) { .guirlande-carte .lanterne-large { display: inline-flex; } }
.muraille-carte { position: relative; z-index: 1; height: clamp(170px, 24vw, 340px); margin-top: clamp(-96px, -5vw, -24px); }
@media (max-width: 759.98px) {
  .guirlande-carte { --echelle: .72; --fil-k: .5; }
  .tete-carte .tete-page-dedans { padding-top: 128px; }
}

/* ── Le registre ─────────────────────────────────────────────────────────────────────────── */
.registre { position: sticky; top: var(--barre-h); z-index: 40; background: rgba(236, 239, 234, .95); border-bottom: 1px solid var(--filet); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.registre-dedans { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-block: 8px; }
.registre-onglets { position: relative; display: flex; gap: 4px; }
.registre-onglets a { display: inline-flex; align-items: baseline; gap: .45em; min-height: 48px; padding: 12px .9em 10px; font: 700 1.02rem/1 var(--f-titre); font-stretch: 112%; text-decoration: none; color: var(--encre-2); transition: color .25s; }
.registre-onglets a small { font: 600 .78rem var(--f-titre); font-stretch: 100%; color: #5f6b65; }
.registre-onglets a[aria-current="true"] { color: var(--encre); }
.registre-ligne { position: absolute; left: 0; bottom: 2px; width: 100px; height: 3px; border-radius: 3px; background: #d90502; transform-origin: left; transition: transform .45s var(--ease-porte), width .45s var(--ease-porte), background-color .45s; }
.registre-ligne[data-versant="japonais"] { background: #b48d56; }
.registre-ligne[data-versant="menus"] { background: var(--nappe); }
html:not(.js) .registre-ligne { display: none; }
.filtres { display: flex; flex-wrap: wrap; gap: 6px; }
.filtres button { display: inline-flex; align-items: center; gap: .4em; min-height: 40px; padding: 0 .9em; border: 1.5px solid rgba(20, 32, 27, .22); border-radius: 999px; background: transparent; font: 600 .86rem var(--f-titre); font-stretch: 100%; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.filtres button .ico { width: 1em; height: 1em; }
.filtres button:hover { border-color: var(--encre); }
.filtres button[aria-pressed="true"] { background: var(--boiserie); border-color: var(--boiserie); color: var(--clair); }
@media (max-width: 759.98px) {
  .registre-dedans { gap: 0; padding-block: 4px 8px; }
  .registre-onglets { width: 100%; overflow-x: auto; scrollbar-width: none; }
  .registre-onglets a { padding-inline: .6em; font-size: .95rem; white-space: nowrap; }
  .filtres { width: 100%; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; padding-bottom: 2px; }
  .filtres button { flex: none; min-height: 44px; }
}
html { scroll-padding-top: calc(var(--barre-h) + 140px); }

/* ── Les versants : une bande à leur couleur, puis les rubriques sur la pierre ───────────── */
.versant-bloc { padding-bottom: 24px; }
.versant-bloc-chinois { --bande-fond: radial-gradient(120% 110% at 88% 0%, #b3171b 0%, #93241b 42%, #5e0f0c 100%); --bande-texte: #fbeee8; --corde: #c9a36b; --v-titre: #93241b; --v-filet: #d90502; --v-prix: #93241b; }
.versant-bloc-japonais { --bande-fond: #2a332f url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); --bande-texte: var(--clair); --corde: #b48d56; --v-titre: var(--ardoise); --v-filet: #b48d56; --v-prix: #6f5129; }
.versant-bloc-menus { --bande-fond: linear-gradient(160deg, #6a5f76, #5d5368 45%, #4b4256); --bande-texte: #f3eef6; --corde: #cdb994; --v-titre: #4b4256; --v-filet: var(--nappe); --v-prix: var(--nappe); }
.versant-banniere { position: relative; overflow: hidden; margin-bottom: clamp(24px, 3vw, 40px); padding-block: clamp(48px, 6vw, 88px) clamp(20px, 3vw, 36px); background: var(--bande-fond); color: var(--bande-texte); }
.versant-banniere .surtitre { color: inherit; opacity: .82; }
.versant-banniere .surtitre .trait { background: var(--corde); }
.versant-banniere :focus-visible { outline-color: var(--fleur-clair); }
.banniere-grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.banniere-photo { position: relative; margin: 0; aspect-ratio: 16 / 11; overflow: hidden; border-radius: 16px; box-shadow: 0 40px 70px -40px rgba(0, 0, 0, .7); }
.banniere-photo img { width: 100%; height: 100%; object-fit: cover; }
.banniere-photo::after { content: ''; position: absolute; top: -10%; bottom: -10%; right: 0; width: 3px; background: var(--corde); }
.versant-bloc-japonais .banniere-photo::after { right: auto; left: 0; }
@media (prefers-reduced-motion: no-preference) {
  .js .banniere-grille .banniere-photo img { transform: scale(1.12); transition: transform 1.6s var(--ease-sortie); }
  .js .banniere-grille.est-vu .banniere-photo img { transform: none; }
  .js .banniere-grille .banniere-photo { clip-path: inset(0 0 0 100%); transition: clip-path 1.1s var(--ease-porte) .1s; }
  .js .versant-bloc-japonais .banniere-grille .banniere-photo { clip-path: inset(0 100% 0 0); }
  .js .banniere-grille.est-vu .banniere-photo { clip-path: inset(0); }
}
.banniere-texte h2 { font-size: clamp(2.6rem, 1.4rem + 4.6vw, 5.4rem); font-stretch: 125%; font-weight: 820; letter-spacing: -.04em; line-height: .92; }
.banniere-texte > p:not(.surtitre) { margin-top: .9rem; max-width: 42ch; font-size: 1.15rem; opacity: .88; }
.sommaire-nav { margin-top: clamp(36px, 5vw, 60px); }
.guirlande-menus { --halo: 1; }
@media (max-width: 859.98px) { .banniere-grille { grid-template-columns: 1fr; } }
@media (max-width: 759.98px) { .guirlande-menus { --echelle: .72; --fil-k: .6; } }

/* ── Les rubriques et les plats ──────────────────────────────────────────────────────────── */
.rubrique { padding-block: 28px 20px; }
.rubrique h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--v-filet, var(--encre)); color: var(--v-titre, var(--encre)); font-size: clamp(1.45rem, 1.1rem + 1.2vw, 2.1rem); }
.rubrique h3 small { font: 600 .82rem var(--f-titre); font-stretch: 100%; color: var(--encre-2); letter-spacing: 0; white-space: nowrap; }
.rubrique-note { margin-top: 12px; font-style: italic; color: var(--encre-2); }
.plats { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(28px, 4vw, 64px); margin: 0; padding: 0; list-style: none; }
@media (max-width: 859.98px) { .plats { grid-template-columns: 1fr; } }
.plat { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--filet); }
.plat-photo { flex: none; width: 76px; height: 76px; overflow: hidden; border-radius: 12px; }
.plat-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-sortie); }
.plat:hover .plat-photo img { transform: scale(1.08); }
.plat-corps { flex: 1; min-width: 0; }
.plat-tete { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.plat-nom { font: 500 1.12rem/1.35 var(--f-texte); letter-spacing: 0; font-stretch: 100%; }
.plat-prix { flex: none; font: 700 1.06rem var(--f-titre); font-stretch: 100%; font-variant-numeric: tabular-nums; color: var(--v-prix, var(--encre)); }
.plat-desc { margin-top: 3px; font-size: .98rem; font-style: italic; color: var(--encre-2); }
.plat-suite { margin: 6px 0 0; padding: 0 0 0 1.1em; font-size: .98rem; color: var(--encre-2); }
.plat-suite li { padding-block: 1px; }
.plat-suite li::marker { color: var(--fleur); }
.plat-marques { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.marque-plat { display: inline-flex; align-items: center; gap: .35em; padding: 3px .6em; border-radius: 999px; font: 600 .74rem var(--f-titre); font-stretch: 100%; letter-spacing: .02em; }
.marque-plat .ico { width: 1.05em; height: 1.05em; }
.m-epice { background: rgba(175, 25, 23, .09); color: var(--cinabre); }
.m-vegetarien { background: rgba(27, 51, 41, .09); color: var(--boiserie-2); }
.m-ardoise { background: var(--ardoise); color: var(--clair); }
/* Signature : le sceau de la maison, posé comme sur un papier */
.m-signature { gap: .45em; padding-left: 0; color: #a3151a; }
.sceau-mini { width: 1.5em; rotate: -6deg; }
.filtres .sceau-mini { width: 1.35em; margin-left: -.2em; }
.plat.est-filtre, .rubrique.est-vide, .versant-bloc.est-vide { display: none; }
.carte-vide { padding-block: 48px; font-size: 1.15rem; }
.carte-allergenes { padding-top: 28px; font-style: italic; color: var(--encre-2); }
.carte-allergenes a { font-style: normal; white-space: nowrap; }
.carte-vide button { border: 0; background: none; padding: 0 .3em; cursor: pointer; text-decoration: underline; }

/* ── Les buffets ─────────────────────────────────────────────────────────────────────────── */
.carte-buffets { margin-top: clamp(40px, 6vw, 80px); padding-block: clamp(56px, 7vw, 96px); background: var(--boiserie); color: var(--clair); }
.carte-buffets .surtitre { color: var(--clair-2); }
.carte-buffets-grille { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.carte-buffets-grille > div > p:not(.surtitre) { margin-top: 1rem; color: var(--clair-2); max-width: 44ch; }
.table-buffets { width: 100%; font-family: var(--f-titre); font-stretch: 100%; font-variant-numeric: tabular-nums; }
.table-buffets th, .table-buffets td { padding: 12px 0; border-bottom: 1px solid var(--filet-clair); text-align: left; font-weight: 500; }
.table-buffets thead th { vertical-align: bottom; font-weight: 700; font-size: 1.05rem; }
.table-buffets thead small { display: block; font-size: .78rem; font-weight: 500; color: var(--clair-2); }
.table-buffets td, .table-buffets thead th + th { text-align: right; }
.table-buffets tbody tr:first-child td { font-size: 1.5rem; font-weight: 800; font-stretch: 112%; color: var(--fleur-clair); }
.carte-regle { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--filet-clair); color: var(--clair-2); max-width: 70ch; }
@media (max-width: 859.98px) { .carte-buffets-grille { grid-template-columns: 1fr; } }
