/* MEVQR — menu client (téléphone d'abord) */

#app { max-width: 640px; margin: 0 auto; min-height: 100vh; padding-bottom: 120px; }

.hero {
  background: var(--terra); color: var(--white);
  padding: 22px 20px 54px; display: flex; flex-direction: column; gap: 16px;
}
@media (min-width: 640px) { .hero { border-radius: 0 0 28px 28px; } }
.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.logo {
  flex: none; width: 48px; height: 48px; border-radius: 16px; background: var(--cream); color: var(--terra);
  display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: 18px;
}
.brand h1 { font-size: 20px; font-weight: 700; overflow-wrap: anywhere; }
.brand p { font-size: 13px; opacity: .92; }
.chip-table {
  flex: none; background: rgba(255,255,255,.18); border-radius: 999px; padding: 8px 12px; font-weight: 800; font-size: 13px;
}
.hero-q { font-family: var(--font-display); font-weight: 700; font-size: 28px; line-height: 1.1; }

.search-wrap { margin: -28px 16px 0; position: relative; }
.search-wrap svg { position: absolute; left: 18px; top: 18px; pointer-events: none; }
.search-wrap input {
  width: 100%; height: 56px; border-radius: 18px; border: 1px solid var(--line); background: var(--white);
  padding: 0 18px 0 48px; font-size: 16px; box-shadow: 0 8px 24px rgba(120, 60, 30, .12);
}

.cats { display: flex; gap: 8px; overflow-x: auto; padding: 18px 16px 6px; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cat {
  flex: none; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--white); font-weight: 600; font-size: 14px; cursor: pointer;
}
.cat[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); font-weight: 700; }

.section { padding: 18px 16px 0; display: flex; flex-direction: column; gap: 12px; }
.section h2 { font-size: 20px; font-weight: 700; }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 560px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.card {
  background: var(--white); border-radius: 20px; padding: 10px; display: flex; flex-direction: column; gap: 8px;
  box-shadow: var(--shadow); position: relative;
}
.card .media { height: 118px; border-radius: 14px; }
.open-dish {
  all: unset; cursor: pointer; display: flex; flex-direction: column; gap: 8px; border-radius: 14px;
}
.open-dish:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; }
.dish-name { font-weight: 700; font-size: 15px; line-height: 1.25; overflow-wrap: anywhere; }
.dish-desc { font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row-price { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dish-price { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--terra); }
.add {
  flex: none; width: 44px; height: 44px; border-radius: 14px; border: none; background: var(--terra); color: var(--white);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; position: relative;
}
.add:active { transform: scale(.94); }
.add .count {
  position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; border-radius: 10px; padding: 0 5px;
  background: var(--ink); color: var(--white); font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}

.row {
  background: var(--white); border-radius: 18px; padding: 10px; display: flex; gap: 12px; align-items: center; box-shadow: var(--shadow);
}
.row .open-dish { flex-direction: row; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.row .media { width: 84px; height: 84px; border-radius: 14px; flex: none; }
.row .info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }

.soldout { opacity: .55; }
.soldout-tag { font-size: 12px; font-weight: 800; color: var(--muted); background: var(--sand); border-radius: 999px; padding: 4px 10px; }

.empty { text-align: center; color: var(--muted); padding: 40px 20px; }

.cartbar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(16px + env(safe-area-inset-bottom));
  width: min(calc(100% - 32px), 608px); z-index: 10;
}
.cartbar .btn {
  width: 100%; min-height: 60px; border-radius: 20px; justify-content: space-between; padding: 0 20px;
  font-size: 16px; box-shadow: 0 10px 30px rgba(42, 26, 18, .3);
}
.cartbar .qty-pill {
  background: var(--terra); border-radius: 10px; min-width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; padding: 0 6px;
}
.cartbar .btn.bump { animation: bump .35s ease; }
@keyframes bump { 50% { transform: scale(1.03); } }

.powered { text-align: center; font-size: 12px; color: var(--muted); padding: 28px 16px 8px; }
.powered strong { color: var(--terra); }

/* Fiche plat */
.dish-hero { height: 280px; }
.dish-hero .media { height: 100%; }
.sheet-body { padding: 22px 20px 20px; display: flex; flex-direction: column; gap: 18px; }
.sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.sheet-head h2 { font-size: 26px; font-weight: 700; }
.big-price { font-family: var(--font-display); font-size: 22px; font-weight: 800; color: var(--terra); white-space: nowrap; }
.suggest { display: flex; flex-direction: column; gap: 10px; }
.suggest-title { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.pill { font-size: 12px; font-weight: 800; color: var(--terra-dark); background: var(--terra-soft); border-radius: 999px; padding: 3px 10px; }
.mini { display: flex; align-items: center; gap: 12px; background: var(--white); border-radius: 16px; padding: 8px 10px; }
.mini .media { width: 48px; height: 48px; border-radius: 12px; flex: none; }
.mini .grow { flex: 1; min-width: 0; }
.mini .sub { font-size: 13px; color: var(--muted); }
.mini .add { background: var(--cream); border: 1px solid var(--line); color: var(--terra); }

.sheet-foot {
  position: sticky; bottom: 0; background: var(--white); border-top: 1px solid #F0E2D7;
  padding: 14px 16px calc(18px + env(safe-area-inset-bottom)); display: flex; gap: 12px; align-items: center;
}
.stepper { display: flex; align-items: center; gap: 4px; background: var(--cream); border-radius: 16px; padding: 4px; }
.stepper button {
  width: 44px; height: 44px; border-radius: 12px; border: none; background: var(--white); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.stepper output { min-width: 28px; text-align: center; font-weight: 800; }
.sheet-foot .btn { flex: 1; min-height: 56px; border-radius: 18px; font-size: 16px; }

/* Panier */
.cart-line { display: flex; align-items: center; gap: 12px; background: var(--white); border-radius: 16px; padding: 10px 12px; }
.cart-line .grow { flex: 1; min-width: 0; font-weight: 700; }
.cart-line .sub { font-size: 13px; color: var(--muted); font-weight: 500; }
.cart-line .stepper { background: var(--cream); }
.cart-line .stepper button { width: 40px; height: 40px; }
.pay { border: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pay legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.pay label {
  display: flex; align-items: center; gap: 12px; background: var(--white); border: 1px solid var(--line);
  border-radius: 16px; padding: 0 14px; min-height: 56px; font-weight: 600; cursor: pointer;
}
.pay label:has(input:checked) { border: 2px solid var(--terra); font-weight: 800; }
.pay input { width: 20px; height: 20px; accent-color: var(--terra); margin: 0; }
.pay .logo-pay { width: 32px; height: 32px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; }
.totals { display: flex; justify-content: space-between; align-items: baseline; }
.totals .big-price { font-size: 26px; }
.notice { background: var(--amber-soft); color: #6A4100; border-radius: 14px; padding: 12px 14px; font-size: 14px; font-weight: 600; }

/* Commande envoyée */
.done { text-align: center; align-items: center; }
.done-check {
  width: 84px; height: 84px; border-radius: 50%; background: var(--green-soft); color: var(--green);
  display: flex; align-items: center; justify-content: center; animation: pop .45s ease;
}
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.1); } 100% { transform: none; opacity: 1; } }
.pay-box { width: 100%; background: var(--white); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 10px; text-align: left; }
.pay-number { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-family: var(--font-display); font-size: 22px; font-weight: 800; }

.fatal { padding: 72px 24px; text-align: center; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.fatal h1 { font-size: 26px; }
.fatal p { color: var(--muted); max-width: 360px; }
.mini .badge-video, .row .badge-video { display: none; }
