/* Teral — écran client (variables fournies par le modèle : --bg --surface --text --accent --on-accent --display --body) */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.cs { margin: 0; min-height: 100vh; min-height: 100dvh; font-family: var(--body), system-ui, sans-serif; font-size: 16px; line-height: 1.5; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
    --muted: color-mix(in srgb, var(--text) 62%, var(--bg));
    --line: color-mix(in srgb, var(--text) 11%, transparent);
    --soft: color-mix(in srgb, var(--accent) 12%, var(--surface));
    --accent-ink: var(--accent);
    --radius: 22px; --radius-sm: 14px;
    --shadow: 0 10px 30px -14px color-mix(in srgb, var(--text) 30%, transparent), 0 2px 6px -2px color-mix(in srgb, var(--text) 10%, transparent);
    --ease: cubic-bezier(.22, 1, .36, 1); --spring: cubic-bezier(.34, 1.56, .64, 1);
}
.cs-dark { --accent-ink: color-mix(in srgb, var(--accent) 78%, #fff); --shadow: 0 14px 30px -14px rgba(0,0,0,.7); }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4, p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 2px; border-radius: 8px; }
svg.lucide { width: 1.2em; height: 1.2em; stroke-width: 2; flex-shrink: 0; }
.brand-ico { display: inline-block; width: 1.2em; height: 1.2em; background: currentColor; -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.center { text-align: center; }
.mt { margin-top: 1.2rem; }
.grow { flex: 1; min-width: 0; }
.mono { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; letter-spacing: .04em; }

.cs-app { max-width: 560px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.cs-preview-bar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: .6rem; padding: .6rem 1rem; background: #0f172a; color: #fff; font-size: .8rem; font-weight: 600; font-family: system-ui, sans-serif; }
.cs-preview-bar span { flex: 1; }
.cs-preview-bar a { padding: .3rem .7rem; border-radius: 8px; background: #fa3009; font-weight: 700; }

.cs-contact { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin-top: 1rem; }
.cs-contact a { display: flex; align-items: center; justify-content: center; gap: .5rem; padding: .85rem; border-radius: var(--radius-sm); border: 1.5px solid var(--line); font-weight: 650; font-size: .92rem; transition: background .2s; }
.cs-contact a:active { background: var(--soft); }
.cs-empty { display: grid; justify-items: center; gap: .6rem; padding: 2rem 1rem; text-align: center; color: var(--muted); }
.cs-empty svg { width: 32px; height: 32px; color: var(--accent-ink); }

.cs-foot { padding: 1.5rem 1rem calc(1.5rem + env(safe-area-inset-bottom)); text-align: center; font-size: .78rem; color: var(--muted); }
.cs-foot a { display: inline-flex; align-items: center; gap: .3rem; opacity: .75; transition: opacity .2s; }
.cs-foot a:hover { opacity: 1; }
.cs-foot b { font-family: system-ui, sans-serif; font-weight: 800; letter-spacing: -.02em; }
.cs-dot { width: 7px; height: 7px; border-radius: 50%; background: #fa3009; display: inline-block; margin-left: -2px; }

/* ---------- Panneaux ---------- */
.sheet-scrim { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.45); backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
body.has-sheet .sheet-scrim { opacity: 1; visibility: visible; }
body.has-sheet { overflow: hidden; }
.sheet { position: fixed; z-index: 50; left: 50%; bottom: 0; width: min(560px, 100%); max-height: 88vh; max-height: 88dvh; display: flex; flex-direction: column; background: var(--bg); border-radius: 28px 28px 0 0; box-shadow: 0 -20px 50px -20px rgba(0,0,0,.4); transform: translate(-50%, 105%); transition: transform .45s var(--ease); visibility: hidden; }
.sheet.is-open { transform: translate(-50%, 0); visibility: visible; }
.sheet.is-dragging { transition: none; }
.sheet-tall { height: 80vh; height: 80dvh; }
.sheet-full { top: 0; max-height: none; border-radius: 0; height: 100%; }
.sheet-grip { width: 44px; height: 5px; margin: .7rem auto .2rem; border-radius: 99px; background: var(--line); flex-shrink: 0; cursor: grab; touch-action: none; }
.sheet-body { overflow-y: auto; overscroll-behavior: contain; padding: .8rem 1.3rem calc(1.6rem + env(safe-area-inset-bottom)); flex: 1; }
.sheet-title { font-family: var(--display), serif; font-weight: 700; font-size: 1.55rem; line-height: 1.15; letter-spacing: -.015em; }
.sheet-sub { margin-top: .4rem; color: var(--muted); font-size: .95rem; }
.sheet-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: .6rem; padding: calc(.7rem + env(safe-area-inset-top)) .8rem .7rem; background: var(--bg); }
.sheet-head h2 { flex: 1; text-align: center; font-family: var(--display), serif; font-size: 1.3rem; }
.sheet-back { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); }

.cs-input { width: 100%; min-height: 50px; margin-top: .7rem; padding: .8rem 1rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); font-size: 16px; transition: border-color .2s, box-shadow .2s; }
.cs-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
textarea.cs-input { resize: vertical; min-height: 90px; }
.cs-input::placeholder { color: var(--muted); opacity: .8; }
.cs-row { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.cs-row .cs-input { min-width: 0; }
.cs-label { margin: 1.2rem 0 .5rem; font-weight: 700; font-size: .9rem; }
.cs-btn { display: flex; align-items: center; justify-content: center; gap: .55rem; width: 100%; min-height: 54px; margin-top: 1rem; padding: .9rem 1.2rem; border: 0; border-radius: var(--radius-sm); background: var(--accent); color: var(--on-accent); font-weight: 750; font-size: 1.02rem; box-shadow: 0 12px 24px -12px color-mix(in srgb, var(--accent) 80%, transparent); transition: transform .2s var(--ease), filter .2s, opacity .2s; }
.cs-btn:active { transform: scale(.97); }
.cs-btn:disabled { opacity: .6; }
.cs-btn-lg { min-height: 60px; font-size: 1.1rem; }
.cs-btn-ghost { background: transparent; color: var(--text); border: 1.5px solid var(--line); box-shadow: none; }
.cs-btn-google { background: #fff; color: #1f1f1f; border: 1.5px solid #dadce0; box-shadow: 0 6px 16px -8px rgba(0,0,0,.3); }
.cs-btn .spin { width: 18px; height: 18px; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Menu */
.menu-search { display: flex; align-items: center; gap: .6rem; margin: 0 1rem .5rem; padding: 0 1rem; border-radius: 99px; background: var(--surface); border: 1.5px solid var(--line); }
.menu-search input { flex: 1; min-height: 46px; border: 0; background: none; outline: none; font-size: 16px; }
.menu-cats { position: sticky; top: 0; z-index: 1; display: flex; gap: .5rem; padding: .4rem 1rem .8rem; overflow-x: auto; scrollbar-width: none; background: var(--bg); }
.menu-cats::-webkit-scrollbar { display: none; }
.menu-cat { display: inline-flex; align-items: center; gap: .4rem; padding: .55rem 1rem; border-radius: 99px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 650; font-size: .9rem; white-space: nowrap; transition: background .25s, color .25s, border-color .25s; }
.menu-cat.is-active { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.menu-body { padding-top: 0; scroll-behavior: smooth; }
.menu-sec { padding-top: .8rem; scroll-margin-top: 10px; }
.menu-sec-title { display: flex; align-items: baseline; gap: .5rem; margin-bottom: .8rem; font-family: var(--display), serif; font-size: 1.4rem; font-weight: 700; }
.menu-sec-title small { font-family: var(--body); font-size: .8rem; color: var(--muted); font-weight: 600; }
.menu-items { display: grid; gap: .7rem; margin-bottom: 1.2rem; }
.dish { display: flex; gap: 1rem; padding: 1rem; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); animation: up .5s var(--ease) both; }
.dish.has-photo { cursor: zoom-in; }
.dish-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dish h4 { font-size: 1.02rem; font-weight: 700; line-height: 1.3; }
.dish p { margin-top: .25rem; color: var(--muted); font-size: .88rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.dish-badges { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .45rem; }
.dish-badges span { display: inline-flex; align-items: center; gap: .25rem; padding: .15rem .5rem; border-radius: 99px; background: var(--soft); color: var(--accent-ink); font-size: .72rem; font-weight: 700; }
.dish-badges svg { width: 12px; height: 12px; }
.dish-price { margin-top: auto; padding-top: .55rem; font-weight: 800; color: var(--accent-ink); font-size: 1rem; }
.dish-img { width: 104px; height: 104px; border-radius: 12px; object-fit: cover; flex-shrink: 0; background: var(--soft); }
.menu-none { text-align: center; color: var(--muted); padding: 2rem 0; }
.menu-call { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: center; gap: .5rem; width: 100%; min-height: 54px; margin-top: .5rem; border: 0; border-radius: 99px; background: var(--text); color: var(--bg); font-weight: 700; box-shadow: var(--shadow); }
.zoom { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 1.5rem; background: rgba(0,0,0,.88); animation: fade .25s; }
.zoom img { max-height: 80vh; border-radius: 18px; animation: zoomIn .4s var(--spring); }
.zoom button { position: absolute; top: 1rem; right: 1rem; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: #fff; display: grid; place-items: center; }
@keyframes fade { from { opacity: 0; } }
@keyframes zoomIn { from { transform: scale(.8); opacity: 0; } }

/* Demandes */
.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: 1.2rem; }
.svc { position: relative; }
.svc input { position: absolute; opacity: 0; }
.svc span { display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; height: 100%; padding: 1rem; border-radius: var(--radius-sm); border: 2px solid var(--line); background: var(--surface); font-weight: 650; font-size: .92rem; line-height: 1.25; cursor: pointer; transition: border-color .2s, background .2s, transform .2s var(--ease); }
.svc span svg { width: 24px; height: 24px; color: var(--accent-ink); }
.svc input:checked + span { border-color: var(--accent); background: var(--soft); transform: scale(1.02); }
.svc input:focus-visible + span { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); }

/* Avis */
.stars-input { display: flex; justify-content: center; gap: .3rem; margin-top: 1.4rem; }
.stars-input label { position: relative; cursor: pointer; }
.stars-input input { position: absolute; opacity: 0; }
.stars-input svg { width: 50px; height: 50px; fill: var(--line); stroke: none; transition: fill .2s, transform .35s var(--spring); }
.stars-input label.is-on svg { fill: #fbbf24; transform: scale(1.12); }
.stars-input label.is-pop svg { animation: starPop .45s var(--spring); }
@keyframes starPop { 40% { transform: scale(1.4) rotate(-12deg); } }
.stars-input input:focus-visible + svg { filter: drop-shadow(0 0 4px var(--accent)); }
.stars-label { margin-top: .5rem; text-align: center; color: var(--muted); font-weight: 650; min-height: 1.5em; }
.review-more { animation: up .5s var(--ease); margin-top: 1rem; }
.aspects { display: grid; gap: .5rem; padding: .9rem 1rem; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.aspect { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: .92rem; font-weight: 600; }
.mini-stars { display: flex; gap: 2px; }
.mini-stars button { padding: 3px; border: 0; background: none; }
.mini-stars svg { width: 24px; height: 24px; fill: var(--line); transition: fill .15s, transform .2s var(--spring); }
.mini-stars button.is-on svg { fill: #fbbf24; }
.mini-stars button:active svg { transform: scale(1.3); }

.done-state { text-align: center; padding: 1rem 0; }
.done-ico { display: inline-grid; place-items: center; width: 84px; height: 84px; margin-bottom: 1rem; border-radius: 50%; background: var(--accent); color: var(--on-accent); animation: donePop .7s var(--spring); box-shadow: 0 0 0 12px color-mix(in srgb, var(--accent) 15%, transparent); }
.done-ico svg { width: 40px; height: 40px; stroke-width: 2.5; }
@keyframes donePop { 0% { transform: scale(0) rotate(-45deg); } }

/* Pourboire */
.staff-row { display: flex; gap: .6rem; overflow-x: auto; padding-bottom: .3rem; scrollbar-width: none; }
.staff { position: relative; flex-shrink: 0; }
.staff input { position: absolute; opacity: 0; }
.staff > span { display: flex; flex-direction: column; align-items: center; gap: .35rem; width: 92px; padding: .7rem .4rem; border-radius: var(--radius-sm); border: 2px solid var(--line); background: var(--surface); font-weight: 650; font-size: .82rem; text-align: center; line-height: 1.2; cursor: pointer; transition: border-color .2s, background .2s; }
.staff small { color: var(--muted); font-size: .7rem; font-weight: 500; }
.staff-av { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; overflow: hidden; background: var(--soft); color: var(--accent-ink); font-weight: 800; }
.staff-av img { width: 100%; height: 100%; object-fit: cover; }
.staff input:checked + span { border-color: var(--accent); background: var(--soft); }
.amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.amount { position: relative; }
.amount input { position: absolute; opacity: 0; }
.amount span { display: grid; place-items: center; padding: .85rem .2rem; border-radius: var(--radius-sm); border: 2px solid var(--line); background: var(--surface); font-weight: 800; font-size: 1rem; line-height: 1.1; cursor: pointer; transition: all .2s var(--ease); }
.amount small { font-size: .65rem; font-weight: 600; color: var(--muted); }
.amount input:checked + span { border-color: var(--accent); background: var(--accent); color: var(--on-accent); transform: translateY(-2px); box-shadow: 0 10px 20px -10px color-mix(in srgb, var(--accent) 80%, transparent); }
.amount input:checked + span small { color: inherit; opacity: .85; }
.amount-custom { position: relative; }
.amount-custom span { position: absolute; right: 1rem; top: 50%; transform: translateY(-25%); color: var(--muted); font-weight: 650; font-size: .85rem; }
.pay-logos { display: flex; justify-content: center; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.pay-logos span { padding: .25rem .6rem; border-radius: 8px; border: 1px solid var(--line); font-size: .72rem; font-weight: 750; color: var(--muted); }
.cs-secure { display: flex; align-items: center; justify-content: center; gap: .35rem; margin-top: .6rem; font-size: .78rem; color: var(--muted); }
.cs-secure svg { width: 14px; height: 14px; }

/* Réseaux */
.socials { display: grid; gap: .6rem; margin-top: 1.2rem; }
.social { display: flex; align-items: center; gap: .9rem; padding: .9rem 1rem; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); font-size: 1rem; transition: transform .2s var(--ease); }
.social:active { transform: scale(.98); }
.social b { flex: 1; }
.social-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--c); color: #fff; }
.social-ico .brand-ico, .social-ico svg { width: 22px; height: 22px; }
.social > svg { color: var(--muted); }

/* Wi-Fi */
.wifi-ico { display: inline-grid; place-items: center; width: 72px; height: 72px; margin-bottom: .8rem; border-radius: 22px; background: var(--soft); color: var(--accent-ink); }
.wifi-ico svg { width: 34px; height: 34px; }
.wifi-box { display: grid; gap: .8rem; margin-top: 1.2rem; padding: 1.2rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-align: left; }
.wifi-box small { display: block; color: var(--muted); font-size: .8rem; font-weight: 600; }
.wifi-box b { font-size: 1.2rem; word-break: break-all; }
.wifi-box .cs-btn { margin-top: 0; }
.wifi-qr { display: grid; place-items: center; margin-top: .8rem; padding: .8rem; border-radius: 18px; background: #fff; width: max-content; margin-inline: auto; }

/* Commodités / contacts / infos */
.amen-list, .contact-list { display: grid; gap: .7rem; margin-top: 1.2rem; }
.amen { display: flex; gap: 1rem; padding: 1.1rem; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.amen h3 { font-size: 1.05rem; }
.amen p { color: var(--muted); font-size: .9rem; margin-top: .25rem; }
.amen-meta { display: flex; flex-wrap: wrap; gap: .3rem .9rem; }
.amen-meta span { display: inline-flex; align-items: center; gap: .3rem; color: var(--accent-ink); font-weight: 650; font-size: .84rem; }
.amen-meta svg { width: 14px; height: 14px; }
.amen-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--soft); color: var(--accent-ink); flex-shrink: 0; }
.contact { display: flex; align-items: center; gap: 1rem; padding: .9rem 1rem; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.contact b { display: block; }
.contact small { color: var(--muted); }
.call-btn { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--accent); color: var(--on-accent); flex-shrink: 0; }
.info-list { display: grid; gap: .7rem; margin-top: 1.2rem; }
.info-duo { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.info-duo > div { padding: 1rem; border-radius: var(--radius-sm); background: var(--soft); }
.info-duo svg { color: var(--accent-ink); }
.info-duo small { display: block; margin-top: .4rem; color: var(--muted); font-size: .8rem; font-weight: 600; }
.info-duo b { font-size: 1.15rem; }
.info-row { display: flex; gap: .9rem; padding: 1rem; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.info-row > svg { color: var(--accent-ink); margin-top: .15rem; }
.info-row small { color: var(--muted); font-size: .8rem; font-weight: 650; }
.info-row p { margin-top: .1rem; }

.cs-toast { position: fixed; z-index: 90; left: 50%; bottom: calc(1.2rem + env(safe-area-inset-bottom)); transform: translate(-50%, 150%); max-width: calc(100% - 2rem); padding: .85rem 1.2rem; border-radius: 14px; background: #111827; color: #fff; font-weight: 600; font-size: .92rem; box-shadow: 0 16px 40px -12px rgba(0,0,0,.5); visibility: hidden; transition: transform .4s var(--spring), visibility .4s; }
.cs-toast.is-on { transform: translate(-50%, 0); visibility: visible; }

/* ---------- Page indisponible ---------- */
.na { min-height: 100vh; min-height: 100dvh; display: grid; place-content: center; justify-items: center; gap: .6rem; padding: 2rem 1.5rem; text-align: center; }
.na .cs-logo { animation: none; }
.na-ico { display: grid; place-items: center; width: 64px; height: 64px; margin: 1rem 0 .4rem; border-radius: 50%; background: var(--soft); color: var(--accent-ink); animation: breathe 3s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.08); } }
.na h1 { font-family: var(--display), serif; font-size: 1.8rem; }
.na p { color: var(--muted); max-width: 30ch; }

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

/* Logo générique (page indisponible) */
.cs-logo { width: 104px; height: 104px; margin: 0 auto 1rem; border-radius: 30px; overflow: hidden; display: grid; place-items: center; background: var(--surface); border: 4px solid var(--surface); box-shadow: var(--shadow); }
.cs-logo img { width: 100%; height: 100%; object-fit: cover; }
.cs-logo span { font-family: var(--display), serif; font-weight: 700; font-size: 2.1rem; color: var(--accent-ink); }
@keyframes up { from { opacity: 0; transform: translateY(14px); } }
@keyframes tileIn { from { opacity: 0; transform: translateY(22px) scale(.98); } }
@keyframes fadeIn { from { opacity: 0; } }
/* Tuiles : apparition en cascade, commune à tous les modèles */
.cs-app nav > a, .cs-app nav > * > a { animation: tileIn .7s var(--ease) both; animation-delay: calc(.35s + var(--i, 0) * .06s); }
.cs-app { position: relative; z-index: 1; }

/* ---------- Dock d'accès rapide (mobile) ---------- */
.cs-dock { position: fixed; z-index: 35; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom)); display: flex; gap: 4px; padding: 6px; max-width: calc(100% - 24px); border-radius: 24px; background: color-mix(in srgb, var(--surface) 84%, transparent); border: 1px solid var(--line); box-shadow: 0 18px 40px -16px rgba(0,0,0,.45), 0 2px 6px rgba(0,0,0,.08); backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5); transform: translate(-50%, 160%); transition: transform .5s var(--spring); }
.cs-dock.is-on { transform: translate(-50%, 0); }
body.has-sheet .cs-dock { transform: translate(-50%, 160%); }
.cs-dock a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 66px; min-height: 52px; padding: 6px 10px; border-radius: 18px; font-size: .68rem; font-weight: 700; letter-spacing: .01em; color: var(--text); transition: background .2s, transform .2s var(--ease); }
.cs-dock a svg { width: 21px; height: 21px; }
.cs-dock a:active { transform: scale(.92); }
.cs-dock a.is-main { background: var(--accent); color: var(--on-accent); }
.cs-foot { padding-bottom: calc(5.8rem + env(safe-area-inset-bottom)); }

/* ---------- Réglages mobiles communs ---------- */
.sheet-body { padding: .6rem 1.1rem calc(1.4rem + env(safe-area-inset-bottom)); }
.sheet-title { font-size: 1.4rem; }
.cs-btn { min-height: 52px; }
.dish { padding: .85rem; gap: .85rem; }
.dish-img { width: 92px; height: 92px; }
.menu-cats { padding: .3rem 1rem .7rem; }
@media (max-width: 360px) { .cs-dock a { min-width: 58px; padding: 6px 6px; font-size: .64rem; } .amounts { grid-template-columns: repeat(2, 1fr); } }

/* Pas de tuile orpheline : la dernière occupe toute la largeur */
.bt-grid > a:last-child:nth-child(even), .tr-grid > a:last-child:nth-child(even), .cn-grid > a:last-child:nth-child(even),
.pl-grid > a:last-child:nth-child(even), .lg-grid > a:last-child:nth-child(even), .ld-grid > a:last-child:nth-child(even),
.pp-grid > a:last-child:nth-child(odd), .rd-grid > a:last-child:nth-child(odd) { grid-column: 1 / -1; }
.cs-app { overflow-x: clip; }

/* ---------- Réservation ---------- */
.chip-row { display: flex; gap: .45rem; overflow-x: auto; padding: .1rem .1rem .35rem; margin: 0 -.1rem; scrollbar-width: none; }
.chip-row::-webkit-scrollbar { display: none; }
.slot-row { flex-wrap: wrap; overflow: visible; }
.chip-pick { position: relative; flex-shrink: 0; }
.chip-pick input { position: absolute; opacity: 0; pointer-events: none; }
.chip-pick > span { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .5rem .9rem; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 650; font-size: .9rem; cursor: pointer; transition: all .2s var(--ease); }
.chip-pick input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); box-shadow: 0 8px 16px -10px color-mix(in srgb, var(--accent) 85%, transparent); }
.chip-pick input:focus-visible + span { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
.chip-pick.day > span { flex-direction: column; gap: 0; width: 62px; padding: .5rem 0; line-height: 1.15; }
.chip-pick.day b { font-size: 1.25rem; font-weight: 800; }
.chip-pick.day small { font-size: .68rem; font-weight: 600; opacity: .75; }
.bk-field { display: grid; gap: .1rem; font-size: .78rem; font-weight: 700; color: var(--muted); }
.bk-field .cs-input { margin-top: .2rem; }
.bk-party { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 1.1rem 0 .3rem; padding: .7rem .9rem; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.stepper, .qty { display: inline-flex; align-items: center; gap: .2rem; }
.stepper button, .qty button { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--bg); color: var(--text); font-size: 1.1rem; font-weight: 700; line-height: 1; transition: transform .15s; }
.stepper button:active, .qty button:active { transform: scale(.88); }
.stepper button svg, .qty button svg { width: 17px; height: 17px; }
.stepper output, .qty output { min-width: 2ch; text-align: center; font-weight: 800; font-size: 1.05rem; }

/* ---------- Commande en ligne ---------- */
.od-eta { display: inline-flex; align-items: center; gap: .3rem; padding: .35rem .65rem; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); font-size: .74rem; font-weight: 700; white-space: nowrap; }
.od-eta svg { width: 14px; height: 14px; color: var(--accent-ink); }
.od-browse { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.od-body { padding-bottom: 6.5rem; }
.oitem { display: flex; align-items: center; gap: .8rem; padding: .7rem; border-radius: var(--radius-sm); background: var(--surface); border: 1.5px solid var(--line); transition: border-color .2s, box-shadow .2s; }
.oitem.has-qty { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent); }
.oitem img { width: 66px; height: 66px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.oitem-txt { flex: 1; min-width: 0; }
.oitem-txt h4 { font-size: .95rem; font-weight: 700; line-height: 1.25; }
.oitem-txt p { font-size: .78rem; color: var(--muted); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.oitem-txt b { display: block; margin-top: .2rem; font-size: .88rem; color: var(--accent-ink); }
.oitem .qty button[data-q="-1"], .oitem .qty output { display: none; }
.oitem.has-qty .qty button[data-q="-1"], .oitem.has-qty .qty output { display: grid; }
.oitem .qty button[data-q="1"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.od-bar { position: absolute; left: 1rem; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom)); z-index: 3; display: flex; align-items: center; gap: .7rem; min-height: 58px; padding: .5rem .6rem .5rem .5rem; border: 0; border-radius: 18px; background: var(--accent); color: var(--on-accent); font-weight: 700; box-shadow: 0 18px 34px -14px color-mix(in srgb, var(--accent) 85%, transparent); transform: translateY(160%); transition: transform .45s var(--spring); }
.od-bar.is-on { transform: none; }
.od-count { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 .4rem; border-radius: 12px; background: rgba(255,255,255,.22); font-weight: 800; }
.od-bar b { margin-left: auto; font-size: 1rem; }
.od-checkout { flex: 1; overflow-y: auto; }
.od-cart { display: grid; gap: .5rem; padding: .7rem; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.od-line { display: flex; align-items: center; gap: .6rem; font-size: .9rem; }
.od-line b { white-space: nowrap; font-size: .88rem; }
.qty.is-sm button { width: 30px; height: 30px; font-size: 1rem; }
.seg2 { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.seg2 label { position: relative; }
.seg2 input { position: absolute; opacity: 0; }
.seg2 span { display: flex; align-items: center; justify-content: center; gap: .4rem; min-height: 48px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 700; font-size: .88rem; cursor: pointer; transition: all .2s; }
.seg2 span svg { width: 18px; height: 18px; }
.seg2 input:checked + span { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); color: var(--accent-ink); }
.od-hint { display: flex; align-items: center; gap: .35rem; margin-top: .4rem; font-size: .78rem; color: var(--muted); }
.od-hint svg { width: 14px; height: 14px; }
.od-sum { display: grid; gap: .35rem; margin-top: 1.1rem; padding: .85rem 1rem; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); font-size: .9rem; }
.od-sum > div { display: flex; justify-content: space-between; }
.od-grand { padding-top: .4rem; border-top: 1px dashed var(--line); font-weight: 800; font-size: 1.05rem; }

/* ---------- Suivi de commande ---------- */
.ot { padding: calc(1.2rem + env(safe-area-inset-top)) 1.1rem 0; }
.ot-head { display: flex; align-items: center; gap: .7rem; }
.ot-head b { display: block; font-family: var(--display); font-size: 1.05rem; }
.ot-head small { color: var(--muted); font-size: .8rem; font-weight: 600; }
.ot-logo { width: 44px; height: 44px; border-radius: 14px; overflow: hidden; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-weight: 800; }
.ot-logo img { width: 100%; height: 100%; object-fit: cover; }
.ot-hero { margin: 1.4rem 0 1rem; padding: 1.6rem 1rem; border-radius: 26px; text-align: center; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.ot-hero h1 { margin-top: .9rem; font-family: var(--display); font-size: 1.6rem; }
.ot-hero p { margin-top: .2rem; color: var(--muted); font-size: .9rem; }
.ot-pulse { position: relative; display: inline-grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--accent); color: var(--on-accent); }
.ot-pulse svg { width: 34px; height: 34px; }
.ot-pulse span { position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--accent); animation: otPing 2s ease-out infinite; }
@keyframes otPing { from { transform: scale(1); opacity: .7; } to { transform: scale(1.7); opacity: 0; } }
.ot-steps { display: grid; grid-template-columns: repeat(4, 1fr); padding: 0; margin: 0 0 1rem; list-style: none; position: relative; }
.ot-steps::before { content: ""; position: absolute; top: 19px; left: 12%; right: 12%; height: 3px; border-radius: 3px; background: var(--line); }
.ot-steps li { position: relative; display: grid; justify-items: center; gap: .35rem; text-align: center; font-size: .7rem; color: var(--muted); }
.ot-steps li > span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line); z-index: 1; transition: all .3s; }
.ot-steps li > span svg { width: 18px; height: 18px; }
.ot-steps li.is-done > span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.ot-steps li.is-done { color: var(--text); }
.ot-steps li.is-current > span { box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 20%, transparent); }
.ot-pay { display: flex; align-items: center; gap: .5rem; margin-bottom: 1rem; padding: .75rem .9rem; border-radius: 14px; font-weight: 650; font-size: .88rem; background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.ot-pay svg { width: 18px; height: 18px; flex-shrink: 0; }
.ot-pay.is-paid { background: #e8f8ee; color: #15803d; }
.ot-pay.is-failed { background: #fdecec; color: #b91c1c; }
.ot-pay.is-pending svg { animation: spin 1.4s linear infinite; }
.ot-card { padding: 1rem; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.ot-card h2 { font-family: var(--display); font-size: 1.1rem; margin-bottom: .6rem; }
.ot-line { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; font-size: .9rem; border-bottom: 1px dashed var(--line); }
.ot-line.muted { color: var(--muted); }
.ot-total { border-bottom: 0; font-weight: 800; font-size: 1.05rem; padding-top: .6rem; }
.ot-meta { display: flex; gap: .4rem; align-items: flex-start; margin-top: .6rem; font-size: .84rem; color: var(--muted); }
.ot-meta svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: .1rem; }
.ot-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: .4rem; }
.ot-hero.is-cancel .done-ico { background: #dc2626; color: #fff; }
