/* Carte : « onglets + coups de cœur », pensée mobile d'abord */
* { margin: 0; padding: 0; box-sizing: border-box; }
body.page-carte { --bg: #f6f3ee; --card: #fff; --ink: #1c1c1a; --mute: #6f6a62; --line: #e6dfd3; background: var(--bg); color: var(--ink); }
img { display: block; max-width: 100%; }
.page-carte .mbar { display: none; } /* remplacée par la barre .cta */

.top { background: var(--green-dk); color: var(--cream); padding: 120px 16px 34px; text-align: center; }
.top h1 { font-size: clamp(52px, 9vw, 96px); }
.top p { opacity: .85; margin-top: 10px; }

/* coups de cœur */
.stars { padding: 28px 0 8px; }
.stars h2 { padding: 0 16px; font-size: 30px; max-width: 1100px; margin: 0 auto 14px; display: flex; align-items: center; gap: 10px; }
.stars h2::before { content: ""; width: 12px; height: 12px; background: var(--red); border-radius: 50%; }
.scroller { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 16px 18px; max-width: 1100px; margin: 0 auto; scrollbar-width: none; }
.scroller::-webkit-scrollbar { display: none; }
.star {
    flex: 0 0 min(72vw, 300px); scroll-snap-align: start; background: var(--card); border: 0; border-radius: 18px; overflow: hidden;
    box-shadow: 0 2px 0 var(--line); cursor: pointer; text-align: left; font: inherit; color: inherit; transition: transform .2s;
}
.star:hover, .star:focus-visible { transform: translateY(-4px); }
.star .ph { display: block; aspect-ratio: 4 / 3; position: relative; overflow: hidden; background: var(--green) url("/assets/logo_nobg_beige.svg") center / 40% no-repeat; }
.star .ph img { width: 100%; height: 100%; object-fit: cover; }
.star .tag { position: absolute; left: 10px; top: 10px; background: var(--red); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 5px 8px; border-radius: 5px; }
.star .b { padding: 14px 16px 16px; display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.star .nm { font-size: 24px; }
.star .pr { font-family: var(--display); font-size: 22px; color: var(--green); }

/* onglets collants (sous le header fixe) */
.tabs { position: sticky; top: 60px; z-index: 20; background: rgba(246, 243, 238, .96); border-bottom: 1px solid var(--line); }
.tabs .in { display: flex; gap: 8px; overflow-x: auto; padding: 12px 16px; max-width: 1100px; margin: 0 auto; scrollbar-width: none; }
.tabs .in::-webkit-scrollbar { display: none; }
.tabs a { flex: none; padding: 10px 16px; border-radius: 999px; font-weight: 800; font-size: 15px; border: 2px solid var(--green); color: var(--green); text-decoration: none; transition: background .15s, color .15s; }
.tabs a.on { background: var(--green); color: #fff; }

.menu { max-width: 1100px; margin: 0 auto; padding: 10px 16px 80px; }
.cat { scroll-margin-top: 140px; padding-top: 34px; }
.cat-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-bottom: 3px solid var(--ink); padding-bottom: 8px; margin-bottom: 6px; }
.cat-h h2 { font-size: clamp(34px, 5vw, 48px); }
.cat-h span { color: var(--mute); font-size: 15px; text-align: right; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 36px; }
@media (max-width: 760px) { .grid { grid-template-columns: 1fr; } }
.item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); cursor: pointer; scroll-margin-top: 150px; border-radius: 6px; }
.item:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
.item.flash { animation: flash 1.6s ease; }
@keyframes flash { 0%, 40% { background: #fff3c4; } 100% { background: transparent; } }
.item .t { flex: 1; min-width: 0; }
.item .row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.item h3 { font-weight: 800; font-size: 19px; }
.item .pr { font-family: var(--display); font-size: 20px; color: var(--green); white-space: nowrap; }
.item p { color: var(--mute); font-size: 15px; line-height: 1.4; margin-top: 4px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.chip { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 8px; border-radius: 5px; background: var(--beige); color: var(--green-dk); }
.chip.veg { background: #dcebd6; color: #2b5a26; }
.item .th { width: 84px; height: 84px; border-radius: 12px; object-fit: cover; flex: none; }

.drinks summary { cursor: pointer; font-weight: 800; padding: 16px 0; color: var(--green); }
.drinks-img { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .drinks-img { grid-template-columns: 1fr; } }

.formules { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.formule { border-radius: 18px; padding: 22px; color: #fff; position: relative; background: var(--green); }
.formule.midi { background: var(--red); }
.formule h3 { font-size: 30px; padding-right: 90px; }
.formule small { display: block; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: 12px; opacity: .9; margin-top: 6px; }
.formule p { margin-top: 10px; line-height: 1.4; font-size: 15px; }
.formule .pr { position: absolute; right: 18px; top: 18px; font-family: var(--display); font-size: 32px; }
@media (max-width: 640px) { .formules { grid-template-columns: 1fr; } }

.allerg { margin-top: 34px; padding: 16px; border: 2px dashed var(--line); border-radius: 14px; color: var(--mute); font-size: 15px; }

/* barre d'action */
.cta { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 30; display: flex; gap: 6px; background: var(--ink); padding: 7px; border-radius: 999px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.cta a { padding: 12px 18px; border-radius: 999px; font-weight: 800; color: #fff; white-space: nowrap; text-decoration: none; }
.cta a.call { background: var(--red); }
.page-carte .ft { padding-bottom: 110px; }

/* fiche détail */
.sheet-bg { position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 140; opacity: 0; pointer-events: none; transition: opacity .25s; }
.sheet { position: fixed; z-index: 141; left: 50%; bottom: 0; width: min(100%, 560px); max-height: 92vh; overflow: auto; transform: translate(-50%, 105%); background: var(--bg); border-radius: 22px 22px 0 0; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.sheet-open .sheet-bg { opacity: 1; pointer-events: auto; }
.sheet-open .sheet { transform: translate(-50%, 0); }
.sheet img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.sheet .in { padding: 20px 20px 28px; }
.sheet h3 { font-size: 40px; }
.sheet .pr { font-family: var(--display); font-size: 30px; color: var(--red); margin: 6px 0 10px; }
.sheet p { line-height: 1.5; color: #3d3a35; }
.sheet .x { position: absolute; right: 12px; top: 12px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: #fff; font-size: 24px; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }
.sheet .call { display: block; text-align: center; margin-top: 18px; background: var(--red); color: #fff; font-weight: 800; padding: 15px; border-radius: 999px; text-decoration: none; }
@media (min-width: 700px) { .sheet { bottom: auto; top: 50%; border-radius: 22px; transform: translate(-50%, -40%) scale(.96); opacity: 0; pointer-events: none; transition: transform .3s, opacity .25s; } .sheet-open .sheet { transform: translate(-50%, -50%); opacity: 1; pointer-events: auto; } }
