/* Page de commande à emporter (maquette) — v2 */
.proto-banner { background: #fff3d6; color: #6b4a00; text-align: center; font-size: .82rem; padding: .45rem 1rem; border-bottom: 1px solid #f0d9a0; }
.page-hero--compact .page-hero__inner { padding: 1.6rem 0 1.8rem; }
.page-hero--compact h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); }
.page-hero--compact .crumbs { margin-bottom: .5rem; }

/* comment ça marche */
.howto { background: var(--paper); border-bottom: 1px solid var(--line); }
.howto__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding: 1rem 0; }
.howto__step { display: flex; align-items: center; gap: .7rem; font-size: .9rem; line-height: 1.3; color: var(--ink-soft); }
.howto__step i { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--gold-1); font-style: normal; font-weight: 800; font-family: var(--font-display); }
.howto__step b { color: var(--ink); }
@media (max-width: 640px) { .howto__row { grid-template-columns: 1fr; gap: .5rem; padding: .8rem 0; } .howto__step i { width: 26px; height: 26px; font-size: .8rem; } }

.order { padding: 1.4rem 0 6rem; }
.order__grid { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 2rem; align-items: start; }

/* ---------- menu ---------- */
.order__tabs { position: sticky; top: 64px; z-index: 15; display: flex; gap: .45rem; overflow-x: auto; padding: .7rem 0; margin-inline: -.2rem; padding-inline: .2rem;
  background: linear-gradient(var(--cream) 78%, transparent); scrollbar-width: none; }
.order__tabs::-webkit-scrollbar { display: none; }
.order__tabs button { white-space: nowrap; padding: .55rem 1.05rem; border-radius: 999px; font-weight: 700; font-size: .9rem; color: var(--ink-soft); border: 1px solid var(--line); background: #fff; transition: .25s var(--ease); }
.order__tabs button:hover { border-color: var(--orange); color: var(--ink); }
.order__tabs button.on { background: var(--ink); color: var(--gold-1); border-color: var(--ink); }

.ocat { margin-top: 1.2rem; scroll-margin-top: 130px; }
.ocat__h { display: flex; align-items: baseline; gap: .7rem; margin-bottom: .8rem; }
.ocat__h h2 { font-size: 1.55rem; }
.ocat__h span { font-size: .85rem; color: #8a7663; }
.ocat__h::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }

.odish { position: relative; display: grid; grid-template-columns: 96px 1fr; gap: 1rem; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: .7rem .9rem .7rem .7rem; margin-bottom: .75rem;
  transition: border-color .3s, box-shadow .35s var(--ease), transform .35s var(--ease); }
.odish:hover { border-color: rgba(224,168,46,.65); box-shadow: 0 18px 34px -22px rgba(32,24,19,.45); transform: translateY(-2px); }
.odish.in-cart { border-color: var(--orange); background: linear-gradient(#fff, #fffaf3); }
.odish__img { width: 96px; height: 96px; border-radius: 14px; overflow: hidden; background: var(--cream-2); position: relative; }
.odish__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.odish:hover .odish__img img { transform: scale(1.08); }
.odish__img.tile { display: grid; place-items: center; color: rgba(255,255,255,.92); font-family: var(--font-display); font-size: 2.2rem; font-weight: 700;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.08) 0 10px, transparent 10px 20px), linear-gradient(150deg, var(--orange), var(--terracotta)); }
.odish__main { min-width: 0; }
.odish__name { font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; line-height: 1.2; }
.odish__desc { font-size: .84rem; color: var(--ink-soft); line-height: 1.4; margin-top: .2rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.odish__row { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-top: .55rem; }
.odish__price { font-family: var(--font-display); font-weight: 700; color: var(--orange-deep); font-size: 1.05rem; white-space: nowrap; }
.odish__price small { font-family: var(--font-body); font-weight: 600; color: #8a7663; font-size: .72rem; }
.odish__badge { position: absolute; top: .55rem; left: .55rem; z-index: 2; min-width: 24px; height: 24px; padding: 0 .4rem; border-radius: 999px; background: var(--orange); color: #fff; font-size: .78rem; font-weight: 800; display: grid; place-items: center; box-shadow: 0 4px 10px -2px rgba(232,119,34,.7); }
.odish__badge[hidden] { display: none; }

.add { display: inline-flex; align-items: center; gap: .35rem; background: var(--ink); color: #fff; font-weight: 700; font-size: .85rem; padding: .5rem 1.05rem; border-radius: 999px; transition: background .25s, transform .3s var(--ease); }
.add svg { width: 14px; height: 14px; }
.add:hover { background: var(--orange); transform: scale(1.05); }
.add.pop { animation: pop .4s var(--ease); }
@keyframes pop { 50% { transform: scale(1.18); } }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.qty button { width: 32px; height: 32px; font-weight: 800; font-size: 1.1rem; transition: background .2s, color .2s; }
.qty button:hover { background: var(--ink); color: #fff; }
.qty span { min-width: 28px; text-align: center; font-weight: 800; font-size: .92rem; }
.qty--lg button { width: 40px; height: 44px; font-size: 1.25rem; }
.qty--lg span { min-width: 34px; font-size: 1.05rem; }

/* ---------- panier ---------- */
.cart { position: sticky; top: 84px; display: flex; flex-direction: column; height: min(calc(100dvh - 104px), 780px); background: #fff; border: 1px solid var(--line); border-radius: 26px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(32,24,19,.45); }
.cart__grab { display: none; }
.cart__top { flex: none; display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.2rem; background: var(--ink); color: var(--cream); position: relative; }
.cart__top::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--gold-grad); }
.cart__title { display: flex; align-items: center; gap: .65rem; }
.cart__title svg { width: 22px; height: 22px; color: var(--gold-1); }
.cart__title h2 { font-size: 1.25rem; color: #fff; }
.cart__count { min-width: 26px; height: 26px; padding: 0 .45rem; border-radius: 999px; background: var(--orange); color: #fff; font-weight: 800; font-size: .85rem; display: grid; place-items: center; transition: transform .3s var(--ease); }
.cart__count.bump { animation: pop .4s var(--ease); }
.cart__close { display: none; width: 40px; height: 40px; font-size: 1.7rem; color: var(--cream); border-radius: 50%; }
.cart__body { flex: 1; overflow-y: auto; padding: 1.1rem 1.2rem; scrollbar-width: thin; }

.cart__empty { text-align: center; padding: 2.2rem .5rem; display: grid; justify-items: center; gap: .5rem; }
.cart__empty img { width: 84px; height: 84px; border-radius: 50%; opacity: .95; box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--line); margin-bottom: .4rem; }
.cart__empty h3 { font-size: 1.25rem; }
.cart__empty p { font-size: .9rem; max-width: 24ch; }
.cart__empty .btn { margin-top: .7rem; padding: .7rem 1.4rem; }

.step { margin-bottom: 1.4rem; }
.step__h { display: flex; align-items: center; gap: .6rem; font-family: var(--font-body); font-weight: 800; font-size: .95rem; margin-bottom: .8rem; }
.step__h i { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--cream-2); color: var(--ink-soft); font-size: .78rem; font-style: normal; transition: .3s; }
.step__ok { margin-left: auto; width: 22px; height: 22px; border-radius: 50%; background: var(--green); color: #fff; font-style: normal; font-size: .75rem; display: grid; place-items: center; transform: scale(0); transition: transform .4s var(--ease); }
.step.valid .step__ok { transform: scale(1); }
.step.valid .step__h i { background: var(--green); color: #fff; }

.cart__lines { list-style: none; display: grid; gap: .65rem; }
.line { display: grid; grid-template-columns: 52px 1fr auto; gap: .2rem .8rem; align-items: start; padding: .7rem; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); animation: lineIn .4s var(--ease); }
@keyframes lineIn { from { opacity: 0; transform: translateX(14px); } }
.line__img { width: 52px; height: 52px; border-radius: 12px; overflow: hidden; grid-row: 1 / span 3; }
.line__img img { width: 100%; height: 100%; object-fit: cover; }
.line__img.tile { display: grid; place-items: center; color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; background: linear-gradient(150deg, var(--orange), var(--terracotta)); }
.line__name { font-weight: 700; line-height: 1.25; font-size: .95rem; }
.line__price { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: .98rem; }
.line__chips { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: .3rem; }
.chip { font-size: .72rem; font-weight: 700; padding: .15rem .55rem; border-radius: 999px; background: #fff1e0; color: var(--orange-deep); }
.chip--v { background: var(--cream-2); color: var(--ink-soft); }
.line__act { grid-column: 2 / -1; display: flex; align-items: center; justify-content: space-between; margin-top: .15rem; }
.line .qty button { width: 28px; height: 28px; }
.line__rm { width: 30px; height: 30px; border-radius: 50%; color: #8a7663; transition: .2s; }
.line__rm:hover { background: #fde8e4; color: var(--terracotta); }
.line__rm svg { width: 16px; height: 16px; }

.days { display: flex; gap: .45rem; overflow-x: auto; padding-bottom: .5rem; scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.days button { flex: none; min-width: 66px; padding: .5rem .7rem; border-radius: 14px; border: 1px solid var(--line); font-size: .78rem; font-weight: 700; text-align: center; line-height: 1.25; background: #fff; transition: .25s; }
.days button b { display: block; font-size: 1.05rem; font-family: var(--font-display); }
.days button:hover { border-color: var(--orange); }
.days button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.days button.on b { color: var(--gold-1); }
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; margin: .5rem 0 .7rem; max-height: 176px; overflow-y: auto; padding: 2px; }
.slots button { padding: .55rem 0; border-radius: 11px; border: 1px solid var(--line); font-weight: 700; font-size: .85rem; background: #fff; transition: .2s; }
.slots button:hover:not(:disabled) { border-color: var(--orange); transform: translateY(-1px); }
.slots button.on { background: var(--orange); color: #fff; border-color: var(--orange); box-shadow: 0 8px 16px -8px rgba(232,119,34,.8); }
.slots button:disabled { opacity: .38; text-decoration: line-through; cursor: not-allowed; background: var(--cream); }
.slots .none { grid-column: 1 / -1; color: var(--terracotta); font-size: .88rem; padding: .4rem 0; }
.asap { width: 100%; padding: .6rem; border-radius: 12px; border: 1px dashed var(--orange); color: var(--orange-deep); font-weight: 700; font-size: .88rem; transition: .25s; }
.asap:hover { background: #fff6ec; }

.field { display: block; margin-bottom: .85rem; }
.field > span { display: block; font-weight: 700; font-size: .85rem; margin-bottom: .3rem; }
.field small { font-weight: 500; color: #8a7663; margin-left: .3rem; }
.field input, .field textarea { display: block; width: 100%; padding: .8rem .95rem; border: 1.5px solid var(--line); border-radius: 14px; font: inherit; font-size: 16px; background: var(--paper); transition: border-color .25s, box-shadow .25s; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(232,119,34,.15); background: #fff; }
.field.bad input { border-color: var(--terracotta); }

.cart__foot { flex: none; padding: .9rem 1.2rem 1.1rem; border-top: 1px solid var(--line); background: #fff; box-shadow: 0 -12px 24px -18px rgba(32,24,19,.4); }
.cart__missing { font-size: .8rem; color: var(--terracotta); min-height: 1.1em; margin-bottom: .35rem; font-weight: 600; }
.cart__sum { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .7rem; font-weight: 700; }
.cart__sum small { font-weight: 500; color: #8a7663; font-size: .8rem; margin-left: .2rem; }
.cart__sum b { font-family: var(--font-display); font-size: 1.7rem; line-height: 1; }
.cart__send { width: 100%; justify-content: center; padding: 1rem; font-size: 1.02rem; }
.cart__send.dim { background: #e9ddd0; color: #8a7663; box-shadow: none; }
.cart__send.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.cart__hint { font-size: .78rem; color: #8a7663; margin-top: .6rem; text-align: center; }
.cart__hint a { color: var(--orange-deep); font-weight: 700; }

/* ---------- confirmation : ticket ---------- */
.done { text-align: center; animation: lineIn .6s var(--ease); padding-bottom: .5rem; }
.done__ic { width: 72px; height: 72px; margin: .3rem auto .9rem; }
.done__ic circle { fill: var(--green); }
.done__ic path { fill: none; stroke: #fff; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .6s .25s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done h3 { font-size: 1.45rem; margin-bottom: .2rem; }
.ticket { position: relative; text-align: left; background: var(--cream); border-radius: 16px; padding: 1.1rem 1.2rem; margin: 1.1rem 0; }
.ticket::before, .ticket::after { content: ""; position: absolute; top: 56%; width: 18px; height: 18px; border-radius: 50%; background: #fff; }
.ticket::before { left: -9px; } .ticket::after { right: -9px; }
.ticket__no { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: .8rem; margin-bottom: .8rem; border-bottom: 2px dashed var(--line); }
.ticket__no b { font-family: var(--font-display); font-size: 1.4rem; letter-spacing: .04em; }
.ticket__row { display: flex; justify-content: space-between; gap: 1rem; padding: .22rem 0; font-size: .9rem; }
.ticket__row span { color: var(--ink-soft); }
.ticket__tot { margin-top: .5rem; padding-top: .6rem; border-top: 2px dashed var(--line); }
.ticket__tot b { font-family: var(--font-display); font-size: 1.25rem; }
.timeline { text-align: left; list-style: none; display: grid; gap: .7rem; margin: 1.2rem 0 .4rem; position: relative; padding-left: 1.9rem; font-size: .88rem; color: var(--ink-soft); }
.timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; left: -1.9rem; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid var(--orange); }
.timeline li:first-child::before { background: var(--orange); }

/* ---------- barre mobile + toast ---------- */
.cartbar { display: none; }
.toast { position: fixed; left: 50%; bottom: 1.4rem; z-index: 120; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; background: var(--ink); color: #fff; padding: .7rem 1.2rem; border-radius: 999px; font-weight: 700; font-size: .9rem; box-shadow: 0 16px 30px -10px rgba(0,0,0,.5); transition: .4s var(--ease); white-space: nowrap; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast::before { content: "✓ "; color: var(--gold-1); }

/* ---------- fenêtre de personnalisation ---------- */
.opt { border: 0; border-radius: 26px; padding: 0; width: min(94vw, 500px); max-height: 92dvh; overflow: hidden; box-shadow: 0 40px 90px -20px rgba(0,0,0,.6); background: #fff; }
.opt::backdrop { background: rgba(15,10,7,.62); backdrop-filter: blur(5px); }
.opt[open] { animation: lineIn .35s var(--ease); }
.opt__box { display: flex; flex-direction: column; max-height: 92dvh; position: relative; }
.opt__media { flex: none; height: 150px; background: linear-gradient(150deg, var(--orange), var(--terracotta)); overflow: hidden; }
.opt__media img { width: 100%; height: 100%; object-fit: cover; }
.opt__x { position: absolute; top: .8rem; right: .8rem; width: 38px; height: 38px; border-radius: 50%; background: rgba(32,24,19,.65); color: #fff; font-size: 1.4rem; backdrop-filter: blur(4px); transition: .3s var(--ease); }
.opt__x:hover { background: var(--orange); transform: rotate(90deg); }
.opt__scroll { flex: 1; overflow-y: auto; padding: 1.2rem 1.4rem .6rem; }
.opt h3 { font-size: 1.45rem; }
.opt__desc { font-size: .9rem; margin: .3rem 0 .9rem; }
.opt h4 { font-family: var(--font-body); font-size: .92rem; margin: 1.1rem 0 .5rem; }
.opt h4 small { font-weight: 500; color: #8a7663; }
.choice { display: flex; align-items: center; gap: .7rem; padding: .7rem .85rem; border: 1.5px solid var(--line); border-radius: 14px; margin-bottom: .4rem; cursor: pointer; transition: .2s; font-weight: 600; font-size: .94rem; }
.choice:hover { border-color: var(--orange); }
.choice:has(input:checked) { border-color: var(--orange); background: #fff6ec; box-shadow: 0 0 0 3px rgba(232,119,34,.12); }
.choice input { accent-color: var(--orange); width: 18px; height: 18px; flex: none; }
.choice em { margin-left: auto; font-style: normal; color: var(--orange-deep); font-weight: 700; white-space: nowrap; }
.opt__extras { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; }
.opt__extras .choice { margin: 0; font-size: .84rem; padding: .6rem .65rem; gap: .5rem; }
.opt__foot { flex: none; display: flex; gap: .8rem; align-items: center; padding: .9rem 1.4rem 1.2rem; border-top: 1px solid var(--line); background: #fff; }
.opt__foot .btn { flex: 1; justify-content: center; padding: .9rem 1rem; }

/* ---------- mobile / tablette : le panier devient un volet ---------- */
@media (max-width: 960px) {
  .order__grid { grid-template-columns: minmax(0, 1fr); }
  .cart { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 90; height: 92dvh; border-radius: 26px 26px 0 0; transform: translateY(105%); transition: transform .5s var(--ease); box-shadow: 0 -20px 60px rgba(0,0,0,.4); }
  body.cart-open .cart { transform: none; }
  body.cart-open { overflow: hidden; }
  body.cart-open::after { content: ""; position: fixed; inset: 0; background: rgba(15,10,7,.55); z-index: 80; animation: fade .3s; }
  @keyframes fade { from { opacity: 0; } }
  .cart__grab { display: block; position: absolute; top: 7px; left: 50%; width: 42px; height: 4px; margin-left: -21px; border-radius: 4px; background: rgba(250,243,231,.35); z-index: 2; }
  .cart__top { padding-top: 1.25rem; }
  .cart__close { display: block; }
  .cartbar { position: fixed; left: .8rem; right: .8rem; bottom: .8rem; z-index: 70; display: flex; align-items: center; gap: .8rem;
    background: var(--ink); color: #fff; padding: .55rem .55rem .55rem .6rem; border-radius: 999px; box-shadow: 0 18px 34px -10px rgba(0,0,0,.6); font-weight: 700; font-size: .95rem; border: 1px solid rgba(246,223,164,.35); }
  .cartbar[hidden] { display: none; }
  .cartbar__n { width: 36px; height: 36px; border-radius: 50%; background: var(--orange); display: grid; place-items: center; font-weight: 800; }
  .cartbar__t { flex: 1; text-align: left; }
  .cartbar b { background: var(--gold-grad); color: var(--ink); padding: .55rem 1rem; border-radius: 999px; font-family: var(--font-display); }
  .cartbar.bump { animation: pop .4s var(--ease); }
  .toast { bottom: 5.4rem; }
  .order { padding-bottom: 7rem; }
  .odish { grid-template-columns: 84px 1fr; gap: .8rem; padding: .6rem .75rem .6rem .6rem; }
  .odish__img { width: 84px; height: 84px; }
}
@media (max-width: 420px) {
  .slots { grid-template-columns: repeat(3, 1fr); }
  .odish__desc { -webkit-line-clamp: 2; font-size: .8rem; }
}
@media (prefers-reduced-motion: reduce) { .cart, .toast, .line, .done, .opt[open] { animation: none !important; transition: none !important; } }

/* l'attribut hidden doit toujours gagner */
.order [hidden], .cart [hidden], .done[hidden], .opt [hidden] { display: none !important; }
body.cart-open .toast { display: none; }


/* =====================================================================
   OPTIMISATION APPAREILS — mobile, tablette, paysage, encoche, tactile
   ===================================================================== */
button, .btn, .choice, .days button, .slots button { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.order__menu, .order__grid > * { min-width: 0; }

/* survols : uniquement avec une souris (sinon ils restent « collés » au toucher) */
@media (hover: none) {
  .odish:hover, .slots button:hover:not(:disabled), .add:hover { transform: none; box-shadow: none; }
  .odish:hover .odish__img img { transform: none; }
}

/* zones tactiles confortables (≥ 44 px) */
@media (pointer: coarse) {
  .qty button { width: 42px; height: 42px; font-size: 1.2rem; }
  .line .qty button { width: 38px; height: 38px; }
  .line__rm { width: 42px; height: 42px; }
  .add { min-height: 44px; padding-inline: 1.15rem; }
  .order__tabs button { min-height: 44px; }
  .days button { min-height: 58px; min-width: 72px; }
  .slots button { min-height: 46px; }
  .asap { min-height: 48px; }
  .choice { min-height: 48px; }
  .opt__x { width: 44px; height: 44px; }
  .cart__close { width: 46px; height: 46px; }
}

/* tablette (641–960) : menu sur 2 colonnes, volet centré */
@media (min-width: 641px) and (max-width: 960px) {
  .ocat { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .8rem; align-items: stretch; }
  .ocat__h { grid-column: 1 / -1; }
  .odish { grid-template-columns: 78px 1fr; margin-bottom: .7rem; }
  .odish__img { width: 78px; height: 78px; }
  .odish__row { flex-wrap: wrap; }
  .cart { width: min(100%, 640px); margin-inline: auto; }
  .cartbar { max-width: 560px; margin-inline: auto; }
  .toast { bottom: 6rem; }
}

/* téléphone */
@media (max-width: 640px) {
  .opt { margin: auto auto 0; width: 100vw; max-width: 100vw; border-radius: 26px 26px 0 0; }
  .opt__media { height: 130px; }
  .opt__extras { grid-template-columns: 1fr; }
  .opt__foot { padding-bottom: calc(1.1rem + env(safe-area-inset-bottom)); }
  .odish__row { gap: .4rem; }
  .odish__price { font-size: 1rem; }
  .add { padding-inline: .9rem; font-size: .82rem; }
}

/* encoche / barre d'accueil iPhone */
.cartbar { bottom: calc(.8rem + env(safe-area-inset-bottom)); }
.cart__foot { padding-bottom: calc(1.1rem + env(safe-area-inset-bottom)); }
.toast { bottom: calc(1.4rem + env(safe-area-inset-bottom)); }
@media (max-width: 960px) { .toast { bottom: calc(5.4rem + env(safe-area-inset-bottom)); } .order { padding-bottom: calc(7rem + env(safe-area-inset-bottom)); } }

/* très petits écrans (≤ 360) */
@media (max-width: 360px) {
  .odish { grid-template-columns: 68px 1fr; gap: .6rem; padding: .5rem .6rem .5rem .5rem; }
  .odish__img { width: 68px; height: 68px; }
  .odish__name { font-size: 1rem; }
  .odish__desc { display: none; }
  .cartbar { gap: .5rem; font-size: .88rem; }
  .cartbar b { padding: .5rem .75rem; }
  .cart__top, .cart__body, .cart__foot { padding-inline: .9rem; }
  .line { grid-template-columns: 44px 1fr auto; gap: .2rem .6rem; }
  .line__img { width: 44px; height: 44px; }
  .cart__sum b { font-size: 1.45rem; }
  .slots { grid-template-columns: repeat(3, 1fr); }
}

/* téléphone en paysage / écrans bas */
@media (max-height: 520px) {
  .cart { height: 100dvh; border-radius: 0; }
  .cart__top { padding-block: .6rem; }
  .cart__foot { padding-block: .6rem; }
  .cart__sum { margin-bottom: .4rem; }
  .cart__hint { display: none; }
  .slots { max-height: none; }
  .opt__media { display: none; }
  .opt { max-height: 100dvh; }
  .howto { display: none; }
}

/* grands écrans */
@media (min-width: 1500px) { .order__grid { grid-template-columns: minmax(0, 1fr) 460px; gap: 2.6rem; } }
@media (pointer: coarse) { .slots { max-height: none; overflow: visible; } }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
@media (max-width: 380px) { .field-row { grid-template-columns: 1fr; gap: 0; } }
