/* Caféino — menu client (QR à table), système v2 « Torréfaction ».
   Page claire (lait), bandeau espresso avec lueur cuivre, matières verre pour tout ce qui flotte,
   mouvement expressif (ressorts, cascades courtes) — transform/opacity uniquement. */

[hidden] { display: none !important; }
/* Accessibilité (thème clair) : texte secondaire ≥ 5:1 sur tous les fonds de la page, anneau de focus net,
   dégradé cuivre assez profond pour le texte clair des boutons. */
.menu-page {
  --muted: #6B6158;
  --focus: 0 0 0 2px var(--surface), 0 0 0 4px var(--wood-strong);
  --accent-grad: linear-gradient(180deg, #BD7841 0%, #98592A 100%);
  --wood-grad: var(--accent-grad);
  --ok-ink: #256b43;
  --topbar-h: 54px;
  --card-shadow: 0 1px 2px rgba(26, 21, 18, .04), 0 6px 20px -6px rgba(26, 21, 18, .10), inset 0 0 0 1px rgba(26, 21, 18, .035);
  --card-shadow-hover: 0 2px 4px rgba(26, 21, 18, .05), 0 16px 36px -10px rgba(26, 21, 18, .18), inset 0 0 0 1px rgba(26, 21, 18, .05);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  background: var(--bg); padding-bottom: calc(150px + env(safe-area-inset-bottom));
}
.amount small.cur, small.cur { font-size: .74em; font-weight: 650; letter-spacing: 0; color: var(--muted); margin-left: .05em; }
.menu-page button { touch-action: manipulation; }
.menu-page .input { font-size: 16px; } /* évite le zoom automatique d'iOS */
.menu-page .btn-sm { min-height: 44px; }
.menu-page .icon-btn { width: 44px; height: 44px; }
.menu-page .btn:focus-visible, .menu-page .icon-btn:focus-visible { box-shadow: var(--focus); }
#app { overflow-x: clip; min-height: 100dvh; }
.wrap { max-width: 560px; margin: 0 auto; }
.grow { flex: 1; min-width: 0; }
.noscript { padding: 40px 20px; text-align: center; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } }
@keyframes popIn { 0% { opacity: 0; transform: scale(.85); } 60% { opacity: 1; transform: scale(1.04); } 100% { transform: none; } }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.22); } 70% { transform: scale(.95); } 100% { transform: scale(1); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -60% 0; } }
@keyframes flash { 0%, 100% { background: transparent; } 25% { background: var(--wood-soft); } }
@keyframes springUp { 0% { opacity: 0; transform: translateY(18px) scale(.97); } 60% { opacity: 1; } 100% { opacity: 1; transform: none; } }
@keyframes springIn { 0% { opacity: 0; transform: translateX(28px) scale(.94); } 100% { opacity: 1; transform: none; } }
@keyframes glowDrift { 0% { transform: translate3d(-6%, -4%, 0) scale(1); } 50% { transform: translate3d(8%, 6%, 0) scale(1.12); } 100% { transform: translate3d(-6%, -4%, 0) scale(1); } }

/* ---------- Squelette de chargement ---------- */
.sk { display: block; border-radius: 8px; background: linear-gradient(100deg, var(--surface-3) 30%, #f9f8f6 50%, var(--surface-3) 70%); background-size: 260% 100%; animation: shimmer 1.4s linear infinite; }
.hero-band .sk { background: linear-gradient(100deg, rgba(255, 255, 255, .07) 30%, rgba(255, 255, 255, .14) 50%, rgba(255, 255, 255, .07) 70%); background-size: 260% 100%; }
.skel-hero { position: relative; padding: 14px 20px 30px; display: grid; gap: 10px; }
.sk-eyebrow { height: 11px; width: 34%; border-radius: 6px; }
.sk-h1 { height: 30px; width: 80%; border-radius: 10px; }
.sk-h2 { height: 18px; width: 56%; margin-bottom: 4px; }
.sk-p { height: 14px; width: 94%; }
.sk-short { width: 62%; }
.sk-tiny { width: 30%; margin-top: auto; }
.skel-row { display: flex; gap: 10px; overflow: hidden; }
.sk-pill { height: 30px; width: 130px; border-radius: 999px; margin-top: 6px; }
.skel-favs { padding: 26px 20px 6px; display: grid; gap: 12px; }
.sk-fav { flex: none; width: 156px; height: 214px; border-radius: 24px; }
.skel-nav { margin-top: 10px; padding: 8px 0; }
.skel-nav .skel-row { padding: 0 12px; }
.sk-round { flex: none; width: 44px; height: 44px; border-radius: 50%; }
.sk-cat { flex: none; width: 104px; height: 44px; border-radius: 999px; }
.skel-list { padding: 22px 18px; display: grid; gap: 10px; }
.skel-item { display: flex; gap: 14px; padding: 12px; border-radius: 22px; background: var(--surface); box-shadow: var(--card-shadow); }
.skel-item > div { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.sk-tile { flex: none; width: 84px; height: 84px; border-radius: 30%; }
.sk-line { height: 14px; width: 70%; }
.sk-chip { width: 104px; opacity: .6; }

/* ---------- Bandeau espresso (store noir de la façade) ---------- */
.awning, .hero-band { background: var(--espresso); color: var(--milk); position: relative; }
.hero-band { overflow: hidden; isolation: isolate; border-radius: 0 0 32px 32px; box-shadow: 0 18px 40px -24px rgba(14, 12, 11, .55); }
.hb-glow {
  position: absolute; z-index: -1; inset: -40% -30% auto auto; width: 120%; aspect-ratio: 1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(200, 129, 74, .42), rgba(200, 129, 74, .12) 55%, transparent 72%);
  animation: glowDrift 14s ease-in-out infinite;
}
.hero-band::after {   /* grain de crema très léger, en bas du bandeau */
  content: ''; position: absolute; z-index: -1; inset: auto 0 0; height: 60%; pointer-events: none;
  background: radial-gradient(120% 80% at 10% 120%, rgba(233, 201, 163, .14), transparent 60%);
}
.awning-inner { max-width: 560px; margin: 0 auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 14px 20px 10px; padding-top: calc(14px + env(safe-area-inset-top)); }
.awning .logo, .hero-band .logo { font-size: 28px; }
.table-chip {
  position: relative; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px 0 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .1); color: var(--milk); font-weight: 650; font-size: 14px; letter-spacing: -.01em;
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), inset 0 1px 0 rgba(255, 255, 255, .12);
  transition: background-color var(--dur) ease, transform var(--dur-fast) var(--ease-out);
}
.table-chip .ico { color: var(--crema); }
.table-chip:active { background: rgba(255, 255, 255, .18); transform: scale(.95); }
.table-chip:focus-visible { box-shadow: 0 0 0 3px rgba(233, 201, 163, .7); }
.tc-dot { position: absolute; top: 5px; right: 7px; width: 10px; height: 10px; border-radius: 50%; background: var(--copper); box-shadow: 0 0 0 2.5px var(--espresso); }
.tc-dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: ping 1.8s cubic-bezier(0, 0, .2, 1) infinite; }

/* Barre verre compacte (apparaît au défilement) */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 25; padding-top: env(safe-area-inset-top);
  background: var(--glass-thick); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  box-shadow: inset 0 -1px 0 var(--glass-line);
  opacity: 0; transform: translateY(-100%); visibility: hidden;
  transition: transform var(--dur-slow) var(--ease-out), opacity var(--dur) ease, visibility 0s var(--dur-slow), box-shadow var(--dur) ease;
}
.topbar.show { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
body.cats-stuck .topbar { box-shadow: none; }
.topbar-inner { max-width: 560px; height: var(--topbar-h); margin: 0 auto; padding: 0 12px 0 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo-mini { font-size: 17px; padding-top: .5em; color: var(--ink); }
.logo-mini .logo-sub { display: none; }
.table-chip-mini { height: 38px; padding: 0 14px 0 12px; font-size: 13.5px; color: var(--ink); background: var(--surface); box-shadow: var(--shadow-xs), inset 0 0 0 1px var(--line); }
.table-chip-mini .ico { color: var(--accent); }
.table-chip-mini:active { background: var(--surface-3); }
.table-chip-mini::after { content: ''; position: absolute; inset: -3px 0; }   /* zone tactile ≥ 44 px */
.table-chip-mini .tc-dot { box-shadow: 0 0 0 2.5px var(--surface); top: 3px; right: 5px; }
.table-chip-mini:focus-visible { box-shadow: var(--focus); }

/* ---------- Accueil (dans le bandeau) ---------- */
.hero { position: relative; padding: 18px 20px 28px; }
.hero > * { animation: springUp .7s var(--ease-out) both; }
.hero > :nth-child(2) { animation-delay: 50ms; } .hero > :nth-child(3) { animation-delay: 100ms; } .hero > :nth-child(4) { animation-delay: 150ms; }
.hero-eyebrow { color: var(--crema); opacity: .85; }
.hero h1 { margin-top: 6px; font-size: 32px; line-height: 1.06; font-weight: 750; letter-spacing: -.035em; color: var(--milk); text-wrap: balance; max-width: 15ch; }
.hero p { margin-top: 10px; color: rgba(246, 241, 234, .72); font-size: 15px; line-height: 1.45; text-wrap: pretty; max-width: 36ch; }
.hero .hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.pill {
  display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 13px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: rgba(255, 255, 255, .08); color: rgba(246, 241, 234, .9); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
}
.pill .ico { color: var(--crema); }
.dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #5FBD88; box-shadow: 0 0 0 3px rgba(95, 189, 136, .22); }
.pill-rate { gap: 6px; background: rgba(200, 129, 74, .2); box-shadow: inset 0 0 0 1px rgba(233, 201, 163, .22); color: var(--crema); }
.pill-rate strong { font-weight: 750; color: var(--milk); }
.rp-star { display: inline-flex; color: #E3A56E; }

/* ---------- « Comme la dernière fois ? » ---------- */
.last-order { position: relative; z-index: 1; padding: 0 16px; margin-top: -14px; }
.ag-box {
  padding: 14px; border-radius: 24px; background: var(--surface);
  box-shadow: 0 2px 4px rgba(26, 21, 18, .05), 0 18px 40px -16px rgba(26, 21, 18, .28), inset 0 0 0 1px rgba(26, 21, 18, .04);
  animation: springUp .6s .12s var(--ease-out) both;
}
.ag-txt h2 { letter-spacing: -.02em; }
.ag-go { border-radius: 999px; }
.ag-card { display: flex; align-items: flex-start; gap: 12px; }
.ag-go { margin-top: 12px; min-height: 48px; }
.ag-ico { width: 52px; height: 52px; font-size: 26px; border-radius: 14px; flex: none; }
.ag-txt { flex: 1; min-width: 0; padding-top: 1px; }
.ag-txt h2 { font-size: 16px; font-weight: 700; }
.ag-items { margin-top: 3px; font-size: 14px; color: var(--ink-2); line-height: 1.35; }
.ag-items .ag-out { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px; }
.ag-items em { font-style: normal; text-decoration: none; display: inline-block; }
.ag-when { margin-top: 3px; font-size: 12.5px; color: var(--muted); }
.ag-x { flex: none; margin: -6px -6px 0 0; }
.ag-done { align-items: center; }
.ag-done p { flex: 1; font-size: 14px; color: var(--ink-2); }
.ag-done p strong { color: var(--ink); }
.ag-check { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: #fff; animation: popIn .4s ease; }

/* ---------- Favoris de la maison ---------- */
.favs { max-width: 560px; margin: 0 auto; padding-top: 26px; }
.sec-head { padding: 0 20px; }
.sec-head h2 { font-size: 22px; font-weight: 750; letter-spacing: -.028em; }
.sec-head p { color: var(--muted); font-size: 13.5px; margin-top: 3px; }
.favs-scroll {
  display: flex; gap: 12px; overflow-x: auto; padding: 14px 20px 22px; scroll-snap-type: x mandatory; scroll-padding: 0 20px;
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.favs-scroll::-webkit-scrollbar { display: none; }
.fav {
  position: relative; flex: none; width: 156px; scroll-snap-align: start; display: flex; flex-direction: column; padding: 8px 8px 10px;
  border-radius: 24px; background: var(--surface); box-shadow: var(--card-shadow);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) ease;
  animation: springIn .7s var(--spring) both; animation-delay: calc(80ms + var(--i, 0) * 45ms);
}
.fav .item-icon { position: relative; width: 100%; height: 118px; font-size: 62px; border-radius: 17px; }
.fav .item-icon .emo { transition: transform var(--dur-slow) var(--spring); }
.fav h3 { font-family: var(--font); font-size: 14.5px; font-weight: 650; letter-spacing: -.012em; line-height: 1.25; margin: 10px 4px 0; min-height: 2.5em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fav .item-foot { padding: 6px 0 0 4px; }
.fav .item-foot strong { font-size: 15px; }
.fav-badge { position: absolute; left: 7px; top: 7px; }
.fav-badge .badge { box-shadow: 0 2px 6px rgba(26, 21, 18, .1); }

/* ---------- Catégories collantes (verre) + recherche ---------- */
#nav-anchor { height: 0; }
.cats {
  position: sticky; top: calc(var(--topbar-h) + env(safe-area-inset-top)); z-index: 20; margin-top: 2px;
  background: transparent; transition: background-color var(--dur) ease, box-shadow var(--dur) ease;
}
body.cats-stuck .cats { background: var(--glass-thick); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); box-shadow: inset 0 -1px 0 var(--glass-line), 0 10px 24px -18px rgba(26, 21, 18, .35); }
.nav-inner { max-width: 560px; margin: 0 auto; display: flex; align-items: center; gap: 4px; padding: 8px 0 8px 14px; min-height: 60px; }
.search-btn { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-xs), inset 0 0 0 1px var(--line); transition: transform var(--dur-fast) var(--ease-out), background-color .15s; }
.search-btn:active { transform: scale(.92); background: var(--surface-3); }
.cats-scroll {
  position: relative; flex: 1; min-width: 0; display: flex; gap: 8px; overflow-x: auto; padding: 0 18px 0 6px; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 8px, #000 calc(100% - 26px), transparent);
  mask-image: linear-gradient(to right, transparent 0, #000 8px, #000 calc(100% - 26px), transparent);
}
.cats-scroll::-webkit-scrollbar { display: none; }
.cat-chip {
  flex: none; height: 44px; padding: 0 16px 0 13px; border-radius: 999px; font-weight: 650; font-size: 14px; letter-spacing: -.01em;
  background: var(--surface); color: var(--ink-2); box-shadow: var(--shadow-xs), inset 0 0 0 1px var(--line);
  transition: background-color var(--dur) ease, color var(--dur) ease, box-shadow var(--dur) ease, transform var(--dur-slow) var(--spring);
}
.cat-chip > span[aria-hidden] { display: inline-block; margin-right: 2px; transition: transform var(--dur-slow) var(--spring); }
.cat-chip:active { transform: scale(.94); }
.cat-chip.active { background: var(--espresso); color: var(--milk); box-shadow: 0 6px 16px -4px rgba(14, 12, 11, .35), inset 0 1px 0 rgba(255, 255, 255, .08); }
.cat-chip.active > span[aria-hidden] { transform: scale(1.18) rotate(-8deg); }
.cat-chip:focus-visible, .search-btn:focus-visible { box-shadow: var(--focus); }
.search-row { display: none; flex: 1; min-width: 0; align-items: center; gap: 4px; padding-right: 8px; }
.cats.searching .search-row { display: flex; animation: fadeUp .2s ease both; }
.cats.searching .cats-scroll, .cats.searching .search-btn { display: none; }
.search-field {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 4px 0 14px; border-radius: 999px;
  background: var(--surface); color: var(--muted); box-shadow: var(--shadow-xs), inset 0 0 0 1px var(--line-strong); transition: box-shadow .15s;
}
.search-field:focus-within { box-shadow: inset 0 0 0 2px var(--accent), 0 0 0 4px rgba(200, 129, 74, .18); }
.search-field input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent; color: var(--ink); font-size: 16px; }
.search-field input:focus-visible { box-shadow: none; }
#list.is-filtered .cat-section > h2 small { display: none; }
.search-field input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.search-field input::placeholder { color: var(--muted); }
.search-field { padding-right: 0; }
.q-clear { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--ink-2); }
.q-clear .ico { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--surface-3); }
.search-cancel { height: 44px; padding: 0 10px; font-weight: 600; font-size: 14px; color: var(--wood-ink); border-radius: 10px; }
.search-cancel:focus-visible, .q-clear:focus-visible { box-shadow: var(--focus); }
body.is-searching #list { min-height: 100dvh; }

/* ---------- Filtres régimes (sous la recherche) ---------- */
.diet { padding-top: 6px; }
.diet-row {
  display: flex; gap: 8px; overflow-x: auto; padding: 2px 20px 4px; scrollbar-width: none; overscroll-behavior-x: contain;
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent);
}
.diet-row::-webkit-scrollbar { display: none; }
.diet-chip {
  flex: none; display: inline-flex; align-items: center; gap: 0; min-height: 36px; padding: 0 14px; border-radius: 999px;
  background: transparent; color: var(--ink-2); font-weight: 600; font-size: 13.5px; box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: background-color .15s, color .15s, box-shadow .15s, transform var(--dur-slow) var(--spring); position: relative;
}
.diet-chip::after { inset: -4px 0 !important; }
.diet-chip::after { content: ''; position: absolute; inset: -2px 0; }   /* zone tactile ≥ 44 px */
.diet-chip:last-child { margin-right: 18px; }
.diet-chip:active { transform: scale(.95); }
.diet-chip:focus-visible { box-shadow: var(--focus); }
.dc-ico { display: inline-grid; width: 0; overflow: hidden; opacity: 0; transition: width .18s, opacity .18s, margin .18s; }
.diet-chip[aria-pressed="true"] { background: var(--ok-soft); color: var(--ok-ink); box-shadow: inset 0 0 0 1.5px var(--ok-ink); }
.diet-chip[aria-pressed="true"] .dc-ico { width: 14px; opacity: 1; margin-right: 6px; }
.diet-chip[aria-pressed="true"]:focus-visible { box-shadow: inset 0 0 0 1.5px var(--ok-ink), var(--focus); }
.diet-count { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 18px 0; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.diet-count .link-btn { color: var(--wood-ink); font-size: 13.5px; }
.filt-sum { display: inline-flex; align-items: center; gap: 6px; background: var(--ok-soft); color: var(--ok-ink); box-shadow: inset 0 0 0 1.5px var(--ok-ink); }
.filt-sum .ico { flex: none; }

/* Repères vegan / sans gluten sur les cartes : discrets, couleur du texte secondaire. */
.if-l { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.dmarks { display: inline-flex; gap: 3px; color: var(--muted); }
.dm { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.dm-ico { width: 13px; height: 13px; display: block; }
.dm-vegan { color: var(--ok-ink); }
.fav.is-dim { opacity: .42; filter: saturate(.4); }
.fav.is-dim:focus-within { opacity: 1; filter: none; }

/* ---------- Liste des produits ---------- */
.cat-section { padding: 26px 16px 4px; scroll-margin-top: 120px; }
.cat-section > h2 { font-size: 22px; font-weight: 750; letter-spacing: -.028em; margin: 0 4px 12px; display: flex; align-items: center; gap: 9px; }
.cat-section > h2 > span[aria-hidden] { font-size: .95em; }
.cat-section > h2 small { font: 650 12px/1 var(--font); color: var(--muted); background: var(--surface-3); border-radius: 999px; padding: 5px 9px; letter-spacing: 0; }
.items { display: grid; gap: 12px; }
.item {
  position: relative; display: flex; gap: 14px; padding: 12px; border-radius: 24px; background: var(--surface);
  box-shadow: var(--card-shadow);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) ease, opacity .2s;
}
#list .item { animation: springUp .62s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 40ms); }
.hit { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.hit:focus-visible { box-shadow: var(--focus); }
.item:active:not(:has(.js-act:active)), .fav:active:not(:has(.js-act:active)) { transform: scale(.972); }
@media (hover: hover) {
  .item:hover, .fav:hover { box-shadow: var(--card-shadow-hover); transform: translateY(-2px); }
  .item:hover .emo, .fav:hover .emo { transform: scale(1.08) rotate(-4deg); }
  .add-btn:hover { background: #2A2420; }
}
.item .item-icon { position: relative; width: 88px; height: 88px; font-size: 46px; }
.item .item-icon .emo { display: inline-block; transition: transform var(--dur-slow) var(--spring); }
.item-main { flex: 1; min-width: 0; display: flex; flex-direction: column; padding-top: 2px; }
.item h3 { font-family: var(--font); font-size: 16px; font-weight: 650; letter-spacing: -.015em; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.item-desc { color: var(--muted); font-size: 13.5px; line-height: 1.4; margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item-foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.item-foot strong { font-size: 16px; border-radius: 6px; padding: 1px 3px; margin-left: -3px; }
.js-act { position: relative; z-index: 2; display: inline-flex; }
.add-btn {
  position: relative; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--espresso); color: var(--milk);
  box-shadow: 0 6px 14px -4px rgba(14, 12, 11, .45), inset 0 1px 0 rgba(255, 255, 255, .1);
  transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur) ease;
}
.add-btn::after { content: ''; position: absolute; inset: -2px; border-radius: 50%; }   /* zone tactile 44 px */
.add-btn .ico { transition: transform var(--dur-slow) var(--spring); }
.add-btn:active { transform: scale(.84); }
.add-btn:focus-visible { box-shadow: var(--focus); }
.add-btn.added { animation: addOk .6s var(--spring); }
.add-btn.added .ico { transform: rotate(90deg); }
.add-btn.added::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(200, 129, 74, .6);
  animation: addRing .6s var(--ease-out) forwards;
}
@keyframes addOk { 0% { transform: scale(.8); } 45% { transform: scale(1.18); background: var(--copper); } 100% { transform: none; } }
@keyframes addRing { to { box-shadow: 0 0 0 14px rgba(200, 129, 74, 0); } }
.item-count {
  position: absolute; top: -6px; right: -6px; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 999px; display: grid; place-items: center;
  background: var(--accent-grad); color: var(--on-accent); font: 750 12.5px/1 var(--font); font-variant-numeric: tabular-nums; box-shadow: 0 0 0 2.5px var(--surface), 0 4px 10px -2px rgba(168, 100, 47, .5);
  transform: scale(0); opacity: 0; transition: transform .4s var(--spring), opacity .2s;
}
.item-count.on { transform: none; opacity: 1; }
.item-count.on.bump { animation: bump .5s var(--spring); }
.flash { animation: flash 1.2s ease; }
.pop-in { animation: popIn .4s cubic-bezier(.2, .8, .2, 1); }

/* Badges d'étiquette */
.badge.tag { height: 20px; padding: 0 7px; font-size: 11px; letter-spacing: .01em; gap: 3px; }
.tag-new { background: var(--ok-soft); color: var(--ok-ink); }
.menu-page .badge-ok { color: var(--ok-ink); }
.menu-page .badge-warn { color: #855610; }
.menu-page .toast-wood { background: #7b4d26; }
.tag-sig { background: var(--espresso); color: var(--crema); }
.tag-home { background: var(--wood-soft); color: var(--wood-ink); }
.tag-pop { background: #fdf1de; color: #8a5a10; }
.ico-fill { fill: currentColor; }
.item-icon .emo { display: inline-block; }

/* Épuisé */
.is-out .item-icon .emo { filter: grayscale(1); opacity: .45; }
.is-out h3, .is-out .item-desc, .is-out .js-price { opacity: .5; }
.is-out .js-price { text-decoration: line-through; text-decoration-thickness: 1px; }
.item.is-out, .fav.is-out { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.is-out .item-count { box-shadow: 0 0 0 2.5px var(--surface-2); }
.soldout { height: 28px; padding: 0 10px; }

.menu-foot { text-align: center; padding: 30px 18px 10px; color: var(--muted); font-size: 12.5px; }
.menu-foot .logo { font-size: 18px; color: var(--ink-2); margin-bottom: 8px; }
.menu-foot .foot-allergy { max-width: 340px; margin: 6px auto 0; font-size: 12px; text-wrap: pretty; }

/* États vides */
.empty { text-align: center; padding: 30px 14px; color: var(--muted); display: grid; justify-items: center; gap: 6px; }
.empty .big { font-size: 44px; line-height: 1.1; }
.empty strong { color: var(--ink); font-size: 16px; font-family: var(--font-display); }
.empty .btn { margin-top: 10px; }
.search-empty .empty { padding-top: 40px; }
.sugg-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 4px; }
.chip-s {
  min-height: 44px; padding: 0 14px; border-radius: 999px; background: var(--surface); color: var(--ink-2); font-weight: 600; font-size: 14px;
  box-shadow: inset 0 0 0 1px var(--line-strong); transition: background .15s, color .15s, transform .12s;
}
.chip-s:active { transform: scale(.95); }
.chip-s:focus-visible { box-shadow: var(--focus); }
.chip-s[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }

/* ---------- Bandeau du bas : suivi + barre panier ---------- */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 14px calc(14px + env(safe-area-inset-bottom)); pointer-events: none; display: grid; gap: 8px; justify-items: center; }
.dock > * { pointer-events: auto; width: min(532px, 100%); }
.cartbar, .live-pill { opacity: 0; transform: translateY(28px) scale(.94); transition: transform .62s var(--spring), opacity .25s ease, background-color .2s; }
.cartbar.show, .live-pill.show { opacity: 1; transform: none; }
.cartbar {
  position: relative; display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 22px 0 10px; border-radius: 999px;
  background: rgba(22, 19, 17, .86); color: var(--milk); font-weight: 650; letter-spacing: -.01em; text-align: left;
  -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px);
  box-shadow: 0 18px 40px -10px rgba(14, 12, 11, .55), 0 2px 6px rgba(14, 12, 11, .2), inset 0 0 0 1px rgba(255, 255, 255, .09), inset 0 1px 0 rgba(255, 255, 255, .12);
}
.cartbar.show:active { transform: scale(.97); transition-duration: .14s; }
.cartbar:focus-visible { box-shadow: var(--focus), 0 18px 40px -10px rgba(14, 12, 11, .55); }
.cb-count {
  position: relative; min-width: 44px; height: 44px; padding: 0 9px; border-radius: 999px; display: grid; place-items: center;
  background: var(--accent-grad); color: var(--on-accent); font-weight: 750; font-size: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 4px 12px -2px rgba(200, 129, 74, .55);
}
.cb-count.bump { animation: cbBump .62s var(--spring); }
.cb-count.bump::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(200, 129, 74, .7); animation: addRing .7s var(--ease-out) forwards; }
@keyframes cbBump { 0% { transform: scale(1); } 30% { transform: scale(1.3) rotate(-6deg); } 60% { transform: scale(.92) rotate(3deg); } 100% { transform: none; } }
.cb-label { flex: 1; min-width: 0; display: grid; line-height: 1.2; font-size: 15.5px; }
.cb-label small { font-size: 12px; font-weight: 600; color: #F29B85; }
.cb-label small:empty { display: none; }
#cb-total { font-size: 17px; font-weight: 750; letter-spacing: -.02em; }
.cartbar.warn .cb-count { background: #B5412A; color: #fff; box-shadow: none; }
.live-pill {
  display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 8px 16px 8px 18px; border-radius: 999px; text-align: left;
  background: var(--glass-thick); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  box-shadow: 0 12px 30px -10px rgba(26, 21, 18, .3), inset 0 0 0 1px var(--glass-line), inset 0 1px 0 var(--glass-edge);
}
.live-pill.show:active { transform: scale(.97); transition-duration: .14s; }
.live-pill:focus-visible { box-shadow: var(--focus), 0 12px 30px -10px rgba(26, 21, 18, .3); }
.live-pill.bump { animation: cbBump .6s var(--spring); }
.lp-dot { position: relative; flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--copper); }
.lp-dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: ping 1.6s cubic-bezier(0, 0, .2, 1) infinite; }
@keyframes ping { 75%, 100% { transform: scale(2.4); opacity: 0; } }
.live-pill.s-new .lp-dot { background: var(--muted); }
.live-pill.s-ready { background: linear-gradient(180deg, #379160, #23643F); color: #fff; box-shadow: 0 14px 32px -8px rgba(35, 100, 63, .55), inset 0 1px 0 rgba(255, 255, 255, .2); }
.live-pill.s-ready .lp-dot { background: #fff; }
.live-pill.s-ready small { color: #fff; }
.lp-text { flex: 1; min-width: 0; display: grid; line-height: 1.25; }
.lp-text strong { font-size: 14.5px; }
.lp-text small { font-size: 12.5px; color: var(--muted); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Effets (envol, confettis) ---------- */
.fx { position: fixed; inset: 0; z-index: 150; pointer-events: none; overflow: hidden; }
.fly { position: absolute; width: 0; height: 0; will-change: transform; }
.fly-y { position: absolute; will-change: transform; }
.fly-e { position: absolute; left: -20px; top: -20px; width: 40px; height: 40px; display: grid; place-items: center; font-size: 30px; line-height: 1; will-change: transform, opacity; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .25)); }
.confetti { position: absolute; border-radius: 2px; will-change: transform, opacity; }
.spark { position: absolute; font-size: 18px; line-height: 1; will-change: transform, opacity; }

/* ---------- Feuilles (ouverture fluide, glisser pour fermer) ---------- */
.layer-sheet .layer-panel { transition: transform .42s cubic-bezier(.22, 1, .36, 1); }
.layer-sheet:not(.open) .layer-panel { transition: transform .24s cubic-bezier(.4, 0, .9, .55); }
.layer-sheet .layer-panel.dragging { transition: none; }
.layer-sheet .layer-backdrop { transition: opacity .28s ease; }
.layer-panel:focus { outline: none; }
.layer-panel:focus-visible { box-shadow: var(--shadow-lg); }
.layer-sheet .sheet-grip { width: 44px; height: 5px; margin-top: 8px; }
.layer-head { padding-right: 14px; }
.layer-head h2 { text-wrap: balance; }
.layer-sheet .sheet-grip, .layer-sheet .layer-head, .ps-hero, .track-hero, .rate-hero { -webkit-user-select: none; user-select: none; }
.sheet-x { position: absolute; top: 10px; right: 10px; z-index: 2; background: var(--surface-2); }
.foot-col { flex-direction: column; gap: 8px; }
.send-hint { display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--danger); }
.link-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 4px; font-size: 14px; font-weight: 600; color: var(--muted); border-radius: 8px; }
.link-btn:focus-visible { box-shadow: var(--focus); }
.link-btn.center { margin: 4px auto 0; display: flex; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; flex: none; }
.menu-page .stepper button { width: 44px; height: 44px; border-radius: 10px; transition: background .12s, transform .12s; }
.menu-page .stepper button:active:not(:disabled) { transform: scale(.88); background: var(--surface-3); }
.menu-page .stepper button:disabled { opacity: .35; }
.menu-page .stepper button:focus-visible { box-shadow: var(--focus); }

/* ---------- Feuille produit ---------- */
.ps-hero {
  position: relative; height: 236px; display: grid; place-items: center; margin: 8px 8px 0; border-radius: 24px; cursor: grab; overflow: hidden; isolation: isolate;
  background: radial-gradient(60% 70% at 50% 42%, rgba(255, 255, 255, .7), rgba(255, 255, 255, 0) 70%), linear-gradient(160deg, rgba(255, 255, 255, .35), rgba(255, 255, 255, 0) 50%), var(--tile);
  box-shadow: inset 0 0 0 1px rgba(26, 21, 18, .04);
}
.ps-hero::after { content: ''; position: absolute; z-index: -1; left: 50%; bottom: 34px; width: 120px; height: 18px; margin-left: -60px; border-radius: 50%; background: rgba(26, 21, 18, .14); filter: blur(10px); }
.ps-hero .sheet-grip { position: absolute; top: 0; left: 50%; transform: translateX(-50%); background: rgba(26, 21, 18, .2); }
.ps-emo { font-size: 116px; line-height: 1; filter: drop-shadow(0 14px 18px rgba(26, 21, 18, .2)); }
.layer-sheet.open .ps-emo { animation: psPop .8s .06s var(--spring) both; }
@keyframes psPop { 0% { opacity: 0; transform: translateY(26px) scale(.6) rotate(-10deg); } 100% { opacity: 1; transform: none; } }
.ps-close { position: absolute; top: 12px; right: 12px; background: var(--glass); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); box-shadow: inset 0 0 0 1px var(--glass-line), inset 0 1px 0 var(--glass-edge); color: var(--ink); }
.sheet-product .layer-body { padding-top: 18px; }
.sheet-product .layer-body > * { animation: springUp .55s var(--ease-out) both; }
.sheet-product .layer-body > :nth-child(2) { animation-delay: 40ms; } .sheet-product .layer-body > :nth-child(3) { animation-delay: 80ms; }
.sheet-product .layer-body > :nth-child(4) { animation-delay: 120ms; } .sheet-product .layer-body > :nth-child(n+5) { animation-delay: 160ms; }
.ps-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.ps-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ps-title h2 { font-size: 28px; font-weight: 750; letter-spacing: -.032em; line-height: 1.08; }
.ps-title strong { font-size: 22px; white-space: nowrap; border-radius: 6px; padding: 0 3px; }
.ps-desc { color: var(--ink-2); margin-top: 8px; font-size: 15.5px; line-height: 1.45; }
.ps-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ps-meta:empty { display: none; }
.meta { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--surface-3); color: var(--ink-2); }
.meta-wood { background: var(--accent-soft); color: var(--accent-ink); }
.ps-allergy { margin-top: 16px; padding: 14px 16px; border-radius: 20px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 7px; }
.ps-diets { display: flex; flex-wrap: wrap; gap: 6px; }
.diet-badge { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: var(--ok-soft); color: var(--ok-ink); }
.diet-badge .dm-ico { width: 13px; height: 13px; }
.ps-allergens { font-size: 14px; color: var(--ink-2); }
.ps-allergens strong { color: var(--ink); font-weight: 700; }
.ps-hint { font-size: 13px; color: var(--ink-2); }
.ps-warn { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--danger); }
.ps-allergy-note { font-size: 12.5px; color: var(--muted); }
.ps-out { display: flex; align-items: center; gap: 8px; margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: var(--danger-soft); color: var(--danger); font-weight: 600; font-size: 14px; }
.opt-group { border: 0; margin: 22px 0 0; padding: 0; min-width: 0; }
.opt-group legend { font-weight: 700; font-size: 17px; letter-spacing: -.015em; margin-bottom: 10px; padding: 0; }
.opt-group legend small { font-weight: 500; font-size: 14px; color: var(--muted); }
.opt-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opt span {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--surface);
  box-shadow: var(--shadow-xs), inset 0 0 0 1px var(--line-strong); font-weight: 600; font-size: 14px; letter-spacing: -.01em;
  transition: background-color .18s, color .18s, box-shadow .18s, transform .4s var(--spring);
}
.opt:active span { transform: scale(.94); }
.opt span em { font-style: normal; color: var(--muted); font-size: 13px; font-weight: 600; }
.opt-ico { transition: transform .4s var(--spring); }
.opt input:checked + span { background: var(--espresso); color: var(--milk); box-shadow: 0 6px 14px -6px rgba(14, 12, 11, .5); }
.opt input:checked + span .opt-ico { transform: rotate(45deg); }
.opt input:checked + span em { color: var(--crema); }
.opt input:focus-visible + span { box-shadow: var(--focus); }
.layer-sheet .layer-foot {
  background: var(--glass-thick); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  box-shadow: inset 0 1px 0 var(--glass-line); padding-top: 12px; padding-bottom: calc(14px + env(safe-area-inset-bottom));
}
.sheet-product .layer-foot { margin-top: 18px; }
.sheet-product .layer-foot .stepper { flex: none; }
.sheet-product .layer-foot .btn { padding: 0 14px; }
.menu-page .layer-foot .stepper { background: var(--surface); box-shadow: var(--shadow-xs), inset 0 0 0 1px var(--line); border-radius: 999px; }
.menu-page .layer-foot .stepper button { border-radius: 50%; }
#ps-qty { font-size: 17px; }

/* ---------- Suggestions (upsell) ---------- */
.ups-title { margin-top: 10px; font-size: 24px; font-weight: 750; letter-spacing: -.03em; }
.ups-list { display: grid; gap: 10px; }
.ups-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 10px; border-radius: 22px; background: var(--surface); box-shadow: var(--card-shadow); }
.layer-sheet.open .ups-item { animation: springIn .6s var(--spring) both; animation-delay: calc(.14s + var(--i) * 60ms); }
.ups-item .item-icon { width: 64px; height: 64px; font-size: 34px; }
.sheet-upsell .layer-panel { background: var(--bg); }
.sheet-upsell .layer-foot { background: linear-gradient(to bottom, transparent, var(--bg) 26%); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.ups-txt { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.ups-txt small { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ups-txt .num { font-size: 13.5px; font-weight: 600; margin-top: 2px; }
.ups-add { flex: none; }
.ups-ok { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: 10px; font-weight: 700; font-size: 14px; color: var(--ok); background: var(--ok-soft); animation: popIn .35s ease; }

/* ---------- Panier ---------- */
#cart-lines { display: grid; gap: 8px; margin-top: 6px; }
.cart-line { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 10px; border-radius: 22px; background: var(--surface); box-shadow: var(--card-shadow); }
.cart-line.leaving { animation: leave .26s var(--ease-out) forwards; }
@keyframes leave { to { opacity: 0; transform: translateX(-40px) scale(.96); } }
.cart-line.is-out .item-icon { filter: grayscale(1); opacity: .55; }
.cart-line .item-icon { width: 56px; height: 56px; font-size: 30px; }
.cl-main { flex: 1; min-width: 0; display: grid; gap: 1px; justify-items: start; }
.cl-main > strong { font-size: 15px; letter-spacing: -.012em; }
.cl-main > small { color: var(--muted); font-size: 13px; }
.cl-main > small.cl-warn { color: var(--danger); font-weight: 600; font-size: 12.5px; }
.cl-price { font-weight: 600; font-size: 14px; }
.cl-price small { color: var(--muted); font-weight: 500; font-size: 12.5px; }
.cart-line .stepper { flex: none; padding: 0; gap: 0; }
.cart-line .stepper output { min-width: 22px; }
.note-field { display: grid; gap: 8px; margin-top: 14px; }
.note-field label { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.note-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.note-chips .chip-s { min-height: 44px; font-size: 13px; padding: 0 12px; }
.sheet-cart .layer-panel, .sheet-table .layer-panel { background: var(--bg); }
.sheet-cart .layer-head h2, .sheet-table .layer-head h2 { font-size: 28px; font-weight: 750; letter-spacing: -.032em; }
.sheet-cart .note-field textarea { background: var(--surface); border-radius: 18px; }
.note-chips .chip-s { background: var(--surface); box-shadow: var(--shadow-xs), inset 0 0 0 1px var(--line); }
.note-chips .chip-s[aria-pressed="true"] { background: var(--espresso); color: var(--milk); box-shadow: none; }
.cart-sum { display: flex; justify-content: space-between; align-items: baseline; margin-top: 18px; padding: 18px 2px 4px; font-weight: 650; border-top: 1px solid var(--line); }
.cart-sum > span { font-size: 13px; letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--muted); }
.cart-sum strong { font-size: 34px; font-weight: 750; letter-spacing: -.035em; font-family: var(--font-display); }
.cart-info { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.cart-info:empty { display: none; }
.cart-info.pad { padding: 12px 20px 0; }

/* ---------- Suivi de commande ---------- */
/* Le héros du suivi est une carte pleine largeur dont la matière change avec le statut :
   neutre (envoyée) → espresso + lueur cuivre (en préparation) → vert profond (prête, servie). */
.sheet-track .layer-panel { background: var(--bg); }
.sheet-track > .layer-panel > .sheet-grip { position: absolute; left: 50%; margin-left: -22px; z-index: 2; background: rgba(26, 21, 18, .2); }
.track-hero {
  position: relative; isolation: isolate; overflow: hidden; text-align: center; margin: 8px 8px 0; padding: 34px 20px 26px; border-radius: 28px; cursor: grab;
  background: var(--surface); box-shadow: var(--card-shadow); transition: background-color .5s ease, color .5s ease;
}
.track-hero::before {
  content: ''; position: absolute; z-index: -1; inset: -30%; opacity: 0; pointer-events: none; transition: opacity .6s ease;
  background: radial-gradient(40% 40% at 70% 20%, rgba(200, 129, 74, .5), transparent 70%), radial-gradient(40% 40% at 20% 90%, rgba(233, 201, 163, .16), transparent 70%);
  animation: glowDrift 12s ease-in-out infinite;
}
.track-hero.s-preparing, .track-hero.s-ready, .track-hero.s-served { color: var(--milk); }
.track-hero.s-preparing { background: var(--espresso); box-shadow: 0 20px 40px -20px rgba(14, 12, 11, .6); }
.track-hero.s-preparing::before { opacity: 1; }
.track-hero.s-ready, .track-hero.s-served { background: linear-gradient(165deg, #3A9765 0%, #22603E 70%, #1B4E32 100%); box-shadow: 0 20px 40px -18px rgba(27, 78, 50, .65); }
.track-hero.s-ready::before, .track-hero.s-served::before { opacity: .9; background: radial-gradient(40% 40% at 75% 15%, rgba(255, 255, 255, .22), transparent 70%), radial-gradient(45% 45% at 15% 95%, rgba(233, 201, 163, .25), transparent 70%); }
.track-hero.s-rejected { background: var(--danger-soft); }
.sheet-track:has(.track-hero.s-preparing, .track-hero.s-ready, .track-hero.s-served) > .layer-panel > .sheet-grip { background: rgba(255, 255, 255, .3); }
.sheet-track:has(.track-hero.s-preparing, .track-hero.s-ready, .track-hero.s-served) .sheet-x { background: rgba(255, 255, 255, .14); color: var(--milk); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.tk-no { margin-bottom: 16px; }
.s-preparing .tk-no { color: var(--crema); }
.s-ready .tk-no, .s-served .tk-no { color: rgba(255, 255, 255, .8); }
.ring { position: relative; width: 156px; height: 156px; margin: 0 auto 18px; display: grid; place-items: center; }
.ring-svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.ring-bg { fill: var(--accent-soft); stroke: var(--line); stroke-width: 7; transition: fill .4s, stroke .4s; }
.ring-fg { fill: none; stroke: var(--accent); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset .9s cubic-bezier(.65, 0, .35, 1), stroke .4s; transform-box: fill-box; transform-origin: center; }
.s-new .ring-fg { stroke-dasharray: 22 78; animation: spin 1.2s linear infinite; }
.s-preparing .ring-bg { fill: rgba(255, 255, 255, .05); stroke: rgba(255, 255, 255, .1); }
.s-preparing .ring-fg { stroke: var(--copper); filter: drop-shadow(0 0 6px rgba(200, 129, 74, .6)); }
.s-ready .ring-bg, .s-served .ring-bg { fill: rgba(255, 255, 255, .12); stroke: rgba(255, 255, 255, .18); }
.s-ready .ring-fg, .s-served .ring-fg { stroke: #fff; }
.s-rejected .ring-bg { fill: var(--surface); }
.s-rejected .ring-fg { stroke: var(--danger); }
.ring-emo { position: relative; font-size: 68px; line-height: 1; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .25)); }
.s-preparing .ring-emo { animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-4px) rotate(-4deg); } }
.ring-emo.swap { animation: emoIn .55s cubic-bezier(.3, 1.5, .5, 1); }
.s-preparing .ring-emo.swap { animation: emoIn .55s cubic-bezier(.3, 1.5, .5, 1), bob 2.4s .55s ease-in-out infinite; }
@keyframes emoIn { from { transform: scale(.3) rotate(-25deg); opacity: 0; } }
.ring-emo.sent { animation: sent .7s cubic-bezier(.2, .8, .2, 1); }
@keyframes sent { from { transform: translate(-40px, 30px) rotate(-20deg) scale(.6); opacity: 0; } }
.ring.celebrate { animation: ringPop .7s cubic-bezier(.3, 1.5, .5, 1); }
.ring.celebrate::after { content: ''; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(255, 255, 255, .55); animation: ripple 1s ease-out 2; }
@keyframes ringPop { 40% { transform: scale(1.12); } }
@keyframes ripple { to { box-shadow: 0 0 0 34px rgba(255, 255, 255, 0); } }
.s-ready .ring-emo, .s-ready .ring-emo.swap { animation: emoIn .5s cubic-bezier(.3, 1.5, .5, 1), ringBell 1.2s .45s ease-in-out 2; transform-origin: 50% 20%; }
@keyframes ringBell { 10%, 30% { transform: rotate(-12deg); } 20%, 40% { transform: rotate(12deg); } 50% { transform: none; } }
.track-hero h2 { font-size: 34px; font-weight: 800; letter-spacing: -.04em; line-height: 1.02; }
.track-hero p { color: var(--ink-2); margin-top: 8px; font-size: 15.5px; }
.s-preparing p, .s-ready p, .s-served p { color: rgba(246, 241, 234, .78); }
#tk-text.swap-text { animation: springUp .55s var(--ease-out); }
.tk-eta { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; min-height: 38px; padding: 0 16px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 750; font-size: 15px; letter-spacing: -.01em; }
.s-preparing .tk-eta { background: rgba(200, 129, 74, .22); color: var(--crema); box-shadow: inset 0 0 0 1px rgba(233, 201, 163, .2); }
.s-ready .tk-eta, .s-served .tk-eta { background: rgba(255, 255, 255, .16); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.tk-eta.tick { animation: popIn .5s var(--spring); }

.steps { --p: 0; position: relative; list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); padding: 18px 0 12px; margin: 10px 8px 0; border-radius: 24px; background: var(--surface); box-shadow: var(--card-shadow); }
.steps::before, .steps::after { content: ''; position: absolute; top: 31px; left: 12.5%; width: 75%; height: 4px; border-radius: 2px; background: var(--surface-3); }
.steps::after { background: var(--accent-grad); transform-origin: left center; transform: scaleX(var(--p)); transition: transform .8s cubic-bezier(.65, 0, .35, 1); }
.steps li { position: relative; z-index: 1; display: grid; justify-items: center; gap: 4px; text-align: center; }
.st-dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); box-shadow: inset 0 0 0 2px var(--line-strong), 0 0 0 4px var(--surface); color: transparent; transition: background .3s, box-shadow .3s, color .3s; }
.steps li.done .st-dot { background: var(--accent); box-shadow: 0 0 0 4px var(--surface), 0 4px 10px -2px rgba(168, 100, 47, .5); color: #fff; }
.steps li.current .st-dot { box-shadow: inset 0 0 0 2px var(--accent), 0 0 0 4px var(--surface); }
.steps li.current .st-dot::after { content: ''; position: absolute; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--accent); animation: ping 1.8s cubic-bezier(0, 0, .2, 1) infinite; }
.steps li.pop .st-dot { animation: dotPop .55s .45s cubic-bezier(.3, 1.6, .5, 1) both; transition-delay: .45s; }
@keyframes dotPop { 0% { transform: scale(.6); } 60% { transform: scale(1.2); } 100% { transform: none; } }
.st-label { font-size: 12px; font-weight: 600; color: var(--muted); transition: color .3s; }
.steps li.done .st-label { color: var(--ink); }
.st-time { font-size: 11px; color: var(--muted); min-height: 14px; }

.order-card { margin: 10px 8px 0; padding: 16px 18px; border-radius: 24px; background: var(--surface); box-shadow: var(--card-shadow); }
.order-card header { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; font-weight: 700; }
.order-card header .muted { font-weight: 500; font-size: 13.5px; }
.ol { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; font-size: 14px; }
.ol small { display: block; color: var(--muted); font-size: 12.5px; }
.ol .num { white-space: nowrap; }
.ol-note { color: var(--muted); }
.ol-total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; font-weight: 700; }
.tk-rate:empty { display: none; }
.tk-rate { margin: 10px 8px 0; }
.tk-rate.pop-in { animation: fadeUp .45s ease; }

/* ---------- Avis ---------- */
.rate { padding: 20px 16px; border-radius: 24px; background: var(--surface); box-shadow: var(--card-shadow); text-align: center; }
.rate-q { font-weight: 750; font-family: var(--font-display); font-size: 19px; letter-spacing: -.022em; }
.stars { display: flex; justify-content: center; gap: 2px; margin-top: 8px; }
.star { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; color: #ebe3d9; transition: color .2s, transform .12s; }
.star .ico { stroke: #8f8274; stroke-width: 1.6; }   /* contour ≥ 3:1 : l'étoile reste visible avant d'être choisie */
.star:active { transform: scale(.88); }
.star:focus-visible { box-shadow: var(--focus); }
.star.on { color: var(--wood); }
.star.on .ico { stroke: var(--wood-strong); }
.star.pop .ico { animation: starPop .42s var(--d, 0ms) cubic-bezier(.3, 1.7, .5, 1) both; }
@keyframes starPop { 0% { transform: scale(.5); } 60% { transform: scale(1.25); } 100% { transform: none; } }
.rate-word { min-height: 20px; margin-top: 4px; font-weight: 600; font-size: 14px; color: var(--wood-ink); }
.rate-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s cubic-bezier(.22, 1, .36, 1); }
.rate-more.open { grid-template-rows: 1fr; }
.rate-more-inner { overflow: hidden; display: grid; gap: 10px; visibility: hidden; transition: visibility 0s .35s; }
.rate-more.open .rate-more-inner { visibility: visible; transition-delay: 0s; padding-top: 12px; }
.rate-more textarea { min-height: 64px; }
.rate.thanks { display: grid; justify-items: center; gap: 8px; padding: 22px 16px; background: var(--ok-soft); animation: popIn .45s ease; }
.rate.thanks .btn { margin-top: 8px; }
.thanks-badge { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: #fff; animation: popIn .5s .05s cubic-bezier(.3, 1.6, .5, 1) both; }
.thanks-title { font-family: var(--font-display); font-size: 18px; }
.mini-stars { display: inline-flex; gap: 1px; vertical-align: middle; }
.mini-stars span { color: #d8cfc4; display: inline-flex; }
.mini-stars .on { color: var(--wood); }
.rated { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); padding: 8px 0 2px; }
.tk-rate .rated { justify-content: center; padding: 12px; border-radius: 14px; background: var(--ok-soft); }
.rate-hero { text-align: center; padding: 30px 20px 4px; cursor: grab; }
.rate-emo { font-size: 54px; line-height: 1; margin-bottom: 8px; }
.layer-sheet.open .rate-emo { animation: popIn .5s .1s cubic-bezier(.3, 1.6, .5, 1) both; }
.rate-hero h2 { font-size: 22px; }
.rate-hero p { margin-top: 4px; font-size: 14px; }
.sheet-rate .rate { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.sheet-rate .rate.thanks { background: var(--ok-soft); box-shadow: none; }

/* ---------- Ma table ---------- */
.bill {
  position: relative; isolation: isolate; overflow: hidden; padding: 20px 18px 18px; border-radius: 28px; background: var(--espresso); color: var(--milk); margin-bottom: 14px;
  box-shadow: 0 22px 44px -22px rgba(14, 12, 11, .7), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.bill::before {
  content: ''; position: absolute; z-index: -1; inset: -40% -20% auto auto; width: 90%; aspect-ratio: 1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(200, 129, 74, .42), transparent 72%); animation: glowDrift 14s ease-in-out infinite;
}
.bill-top { display: grid; gap: 4px; font-weight: 650; }
.bill-top > span { font-size: 11.5px; font-weight: 650; letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--crema); opacity: .85; }
.bill-top strong { font-family: var(--font-display); font-size: 46px; font-weight: 800; letter-spacing: -.045em; line-height: 1; }
.bill-sub { color: rgba(246, 241, 234, .65); font-size: 13.5px; margin-top: 8px; }
.bill .cart-info { color: rgba(246, 241, 234, .7); margin-top: 12px; }
.split {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 16px; padding: 6px 6px 6px 14px; border-radius: 22px; font-size: 13.5px;
  background: rgba(255, 255, 255, .08); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.split .stepper { border-radius: 999px; }
.menu-page .split .stepper button { border-radius: 50%; }
.split-l { display: inline-flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, .8); }
.split .stepper { background: rgba(255, 255, 255, .1); box-shadow: none; padding: 0; gap: 0; }
.split .stepper button { color: #fff; }
.menu-page .split .stepper button:active:not(:disabled) { background: rgba(255, 255, 255, .15); }
.split .stepper output { color: #fff; min-width: 22px; }
.split-r { margin-left: auto; padding-right: 6px; white-space: nowrap; }
.split-r strong { display: inline-block; font-size: 15px; }
.split-r strong.bump { animation: bump .4s ease; }
.mt-order { padding: 16px; border-radius: 24px; background: var(--surface); box-shadow: var(--card-shadow); margin-bottom: 10px; animation: springUp .55s var(--ease-out) both; }
.mt-order:nth-of-type(3) { animation-delay: 50ms; } .mt-order:nth-of-type(n+4) { animation-delay: 100ms; }
.mt-order.s-ready { box-shadow: var(--card-shadow), inset 0 0 0 2px var(--ok); }
.mt-head strong { font-size: 17px; letter-spacing: -.02em; }
.mt-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.mt-hint { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--wood-ink); margin-bottom: 4px; }
.mt-line { display: flex; align-items: center; gap: 10px; padding: 4px 0; border-top: 1px dashed var(--line); font-size: 14px; }
.mt-head + .mt-line, .mt-hint + .mt-line { border-top: 0; }
.mt-line small { display: block; color: var(--muted); font-size: 12.5px; }
.mt-line .num { white-space: nowrap; }
.again {
  flex: none; min-height: 40px; padding: 0 12px; border-radius: 999px; display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 650;
  background: var(--accent-soft); color: var(--accent-ink); position: relative; transition: transform .4s var(--spring), background-color .2s, color .2s;
}
.again::after { content: ''; position: absolute; inset: -2px 0; }
.again:active:not(:disabled) { transform: scale(.94); }
.again:disabled { opacity: .5; }
.again:focus-visible { box-shadow: var(--focus); }
.again.ok, .mt-actions .btn.ok { background: var(--ok-soft); color: var(--ok); box-shadow: none; }
.mt-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

/* ---------- Choix de la table / erreur ---------- */
.picker, .state-page { min-height: 100dvh; display: grid; align-content: start; }
.picker .awning, .state-page .awning { border-radius: 0 0 32px 32px; overflow: hidden; }
.picker .awning-inner, .state-page .awning-inner { justify-content: center; padding: 34px 18px 30px; }
.picker .awning .logo, .state-page .awning .logo { font-size: 40px; }
.picker-body { max-width: 560px; width: 100%; margin: 0 auto; padding: 26px 18px; text-align: center; animation: fadeUp .35s ease both; }
.picker-ico { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 16px; display: grid; place-items: center; background: var(--wood-soft); color: var(--wood-ink); }
.picker-body h1 { font-size: 22px; }
.picker-body p { color: var(--muted); margin-top: 6px; }
.table-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 22px; }
.table-grid button { aspect-ratio: 1; min-height: 56px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-weight: 700; font-size: 20px; font-family: var(--font-display); transition: transform .12s, background .15s, color .15s; }
.table-grid button { border-radius: 22px; box-shadow: var(--card-shadow); }
.table-grid button:active { background: var(--espresso); color: var(--milk); transform: scale(.95); }
.table-grid button:focus-visible { box-shadow: var(--focus); }
.state-body { padding: 50px 22px; }
.state-body h1 { font-size: 22px; color: var(--ink); }

/* ---------- Connexion ---------- */
.conn {
  position: fixed; top: calc(10px + env(safe-area-inset-top)); left: 0; right: 0; margin: 0 auto; width: max-content; max-width: calc(100vw - 28px); z-index: 120;
  display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 14px; min-height: 40px; border-radius: 999px; background: #9c2f1f; color: #fff;
  font-size: 13.5px; font-weight: 600; box-shadow: var(--shadow); transform: translateY(calc(-100% - 20px)); transition: transform .35s cubic-bezier(.22, 1, .36, 1), background .3s;
}
.conn.show { transform: none; }
.conn.ok { background: #1f6b43; }
.conn .spinner { width: 15px; height: 15px; border-width: 2px; }
.conn-btn { min-height: 44px; margin: -8px -6px -8px 0; padding: 0 6px; border-radius: 999px; font-weight: 700; font-size: 13px; }
.conn-btn span { display: block; padding: 6px 10px; border-radius: 999px; background: rgba(255, 255, 255, .2); }
.conn-btn:focus-visible { box-shadow: 0 0 0 3px rgba(255, 255, 255, .6); }
#toasts { left: 14px; right: 14px; transform: none; width: auto; max-width: none; justify-items: center; top: calc(8px + env(safe-area-inset-top)); }

@media (max-width: 380px) {
  .awning .logo { font-size: 26px; }
  .item .item-icon { width: 68px; height: 68px; font-size: 32px; }
  .item { gap: 12px; }
  .stars { gap: 0; }
  .star { width: 48px; height: 48px; }
}

/* Téléphones modestes (classe posée par menu.js) : pas de flou derrière la barre collante, pas de cascade d'entrée. */
.lite body.cats-stuck .cats, .lite .topbar, .lite .cartbar, .lite .live-pill, .lite .layer-sheet .layer-foot { -webkit-backdrop-filter: none; backdrop-filter: none; }
.lite body.cats-stuck .cats, .lite .topbar { background: rgba(250, 247, 243, .985); }
.lite .cartbar { background: #1A1613; }
.lite .live-pill:not(.s-ready) { background: var(--surface); }
.lite .layer-sheet .layer-foot { background: var(--surface); }
.lite .sheet-cart .layer-foot, .lite .sheet-table .layer-foot, .lite .sheet-track .layer-foot { background: var(--bg); }
.lite #list .item, .lite .fav, .lite .hb-glow, .lite .track-hero::before, .lite .bill::before { animation: none; }
.lite .fly-e { filter: none; }

@media (prefers-reduced-motion: reduce) {
  .sk { animation: none; }
  #list .item, .fav, .hero > *, .mt-order, .ag-box, .ag-check, .hb-glow, .track-hero::before, .bill::before, .tc-dot::after,
  .sheet-product .layer-body > *, .layer-sheet.open .ups-item, .layer-sheet.open .ps-emo { animation: none; }
  .cartbar, .live-pill, .conn, .dc-ico { transition: none; }
  .lp-dot::after, .steps li.current .st-dot::after { display: none; }
  .s-new .ring-fg, .s-preparing .ring-emo, .s-ready .ring-emo { animation: none; }
}
