/* ==========================================================
   APP DE COMMANDE — plein écran, rail de catégories, cartes « ticket », fiche de personnalisation,
   panier latéral, tunnel de validation. Même univers que le site (néon, crème, or).
   ========================================================== */
.order { position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; background: var(--ink); color: var(--cream); opacity: 0; transform: translateY(24px); visibility: hidden; transition: opacity .45s var(--ease), transform .6s var(--ease), visibility 0s .6s; }
.order[hidden], .sheet[hidden], .checkout[hidden] { display: none !important; }
.cart__back { display: none; font-size: .8rem !important; opacity: 1 !important; text-decoration: none !important; padding: .4rem .8rem; border-radius: 999px; border: 1px solid var(--line); }
.order.is-open { opacity: 1; transform: none; visibility: visible; transition: opacity .45s var(--ease), transform .6s var(--ease), visibility 0s; }
.order::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 40% at 85% -10%, rgba(255, 45, 143, .22), transparent 70%), radial-gradient(50% 40% at 0% 100%, rgba(255, 185, 59, .14), transparent 70%); pointer-events: none; }

/* barre du haut */
.order__top { display: flex; align-items: center; gap: 1rem; padding: .8rem clamp(.9rem, 2.4vw, 2rem); border-bottom: 1px solid var(--line); background: rgba(10, 9, 12, .85); backdrop-filter: blur(12px); flex: none; }
.order__brand { display: flex; align-items: center; gap: .8rem; }
.order__brand svg { width: 2.6rem; height: 2.6rem; color: var(--pink); filter: drop-shadow(0 0 6px var(--pink)); flex: none; }
.order__brand h2 { font: 400 1.7rem/1 var(--f-display); text-transform: uppercase; letter-spacing: .05em; }
.order__brand .status-chip { margin-top: .25rem; padding: .22rem .65rem; font-size: .7rem; }
.order__search { flex: 1; max-width: 30rem; margin-left: auto; }
.order__search input { width: 100%; padding: .8rem 1.1rem .8rem 2.8rem; border-radius: 999px; border: 2px solid var(--line); background: rgba(255, 243, 223, .06) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23fff3df' stroke-width='2.4' stroke-linecap='round'><circle cx='11' cy='11' r='7'/><path d='m20 20-3.5-3.5'/></svg>") 1rem 50% no-repeat; color: var(--cream); font: inherit; font-size: .95rem; transition: border-color .3s, background-color .3s; }
.order__search input::placeholder { color: rgba(255, 243, 223, .5); }
.order__search input:focus { outline: none; border-color: var(--gold-2); background-color: rgba(255, 243, 223, .1); }
.order__cartbtn { display: none; position: relative; width: 3rem; height: 3rem; border-radius: 50%; border: 2px solid var(--line); place-items: center; }
.order__cartbtn svg { width: 1.4rem; height: 1.4rem; fill: none; stroke: var(--cream); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.order__cartbtn .cart-count { position: absolute; right: -.3rem; top: -.3rem; margin: 0; background: var(--gold-2); color: var(--ink); }
.order__close { width: 3rem; height: 3rem; border-radius: 50%; border: 2px solid var(--line); font-size: 1.1rem; display: grid; place-items: center; transition: background .3s, color .3s, transform .4s var(--ease); flex: none; }
.order__close:hover { background: var(--pink); border-color: var(--pink); transform: rotate(90deg); }

/* corps : rail | liste | panier */
.order__body { flex: 1; min-height: 0; display: grid; grid-template-columns: 210px minmax(0, 1fr) clamp(320px, 28vw, 410px); }
.order__rail { padding: 1.4rem 1rem 1.4rem clamp(.9rem, 2.4vw, 2rem); display: flex; flex-direction: column; gap: .3rem; overflow-y: auto; border-right: 1px solid var(--line); }
.rail__btn { display: flex; align-items: center; justify-content: space-between; gap: .6rem; width: 100%; text-align: left; padding: .8rem 1rem; border-radius: 16px; font-weight: 700; font-size: .95rem; color: rgba(255, 243, 223, .78); transition: background .3s, color .3s, transform .35s var(--ease); }
.rail__btn small { font-size: .72rem; opacity: .6; font-weight: 600; }
.rail__btn:hover { background: rgba(255, 243, 223, .08); color: var(--cream); transform: translateX(4px); }
.rail__btn.is-active { background: var(--gold-2); color: var(--ink); }
.rail__btn.is-active small { opacity: .75; }
.order__main { overflow-y: auto; padding: 1.4rem clamp(1rem, 2.6vw, 2.4rem) 6rem; scroll-behavior: smooth; outline: none; overscroll-behavior: contain; }
.order__main::-webkit-scrollbar, .order__rail::-webkit-scrollbar, .order__cart .cart__lines::-webkit-scrollbar, .sheet__body::-webkit-scrollbar { width: 8px; }
.order__main::-webkit-scrollbar-thumb, .order__rail::-webkit-scrollbar-thumb, .cart__lines::-webkit-scrollbar-thumb, .sheet__body::-webkit-scrollbar-thumb { background: rgba(255, 243, 223, .2); border-radius: 8px; }

.mode-banner { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1.4rem; padding: 1rem 1.3rem; margin-bottom: 1.6rem; border-radius: 20px; background: linear-gradient(100deg, rgba(255, 45, 143, .22), rgba(255, 185, 59, .16)); border: 1px solid var(--line); font-size: .92rem; }
.mode-banner b { color: var(--gold-2); }
.mode-banner span { display: inline-flex; align-items: center; gap: .5rem; }

.cat { margin-bottom: 3rem; scroll-margin-top: 1rem; }
.cat__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1.2rem; margin-bottom: 1.2rem; }
.cat__head h3 { font: 400 clamp(2.2rem, 4.4vw, 3.6rem)/.95 var(--f-display); text-transform: uppercase; }
.cat__head p { color: var(--gold-2); font-family: var(--f-marker); font-size: 1.1rem; transform: rotate(-1.5deg); }
.cat__note { flex-basis: 100%; font-size: .88rem; opacity: .7; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: clamp(.8rem, 1.4vw, 1.2rem); }

/* carte plat */
.dish { position: relative; display: flex; flex-direction: column; border-radius: 24px; background: var(--cream); color: var(--ink); overflow: hidden; text-align: left; cursor: pointer; transition: transform .45s var(--ease), box-shadow .4s; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); animation: dishIn .6s var(--ease) both; }
@keyframes dishIn { from { opacity: 0; transform: translateY(20px) scale(.97); } }
.dish:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: 0 22px 50px rgba(0, 0, 0, .5), 0 0 0 2px var(--gold-2); }
.dish__img { position: relative; aspect-ratio: 4 / 3; background: var(--cream); overflow: hidden; }
.dish__img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .8s var(--ease); }
.dish__img--cover img { object-fit: cover; mix-blend-mode: normal; }
.dish:hover .dish__img img { transform: scale(1.08); }
.dish__badge { position: absolute; left: .7rem; top: .7rem; padding: .3rem .7rem; border-radius: 999px; background: var(--ink); color: var(--gold-2); font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.dish__body { padding: .1rem 1.1rem 1.1rem; display: flex; flex-direction: column; gap: .15rem; flex: 1; position: relative; }
.dish__body::before { content: ""; height: 0; border-top: 2px dashed rgba(10, 9, 12, .25); margin: 0 -1.1rem .8rem; }
.dish__name { font: 400 1.45rem/1.02 var(--f-display); text-transform: uppercase; letter-spacing: .02em; padding-right: 2.8rem; }
.dish__tag { font-size: .82rem; color: rgba(10, 9, 12, .62); min-height: 1.2em; }
.dish__prices { margin-top: auto; padding-top: .7rem; display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.dish__price { font: 400 1.5rem/1 var(--f-display); }
.dish__menu { font-size: .75rem; font-weight: 700; padding: .22rem .6rem; border-radius: 999px; background: var(--gold-2); }
.dish__add { position: absolute; right: .9rem; top: -1.4rem; width: 2.8rem; height: 2.8rem; border-radius: 50%; background: var(--pink); color: #fff; display: grid; place-items: center; font-size: 1.6rem; line-height: 1; font-weight: 400; box-shadow: 0 8px 20px rgba(255, 45, 143, .5); transition: transform .4s var(--ease), background .3s; }
.dish:hover .dish__add { transform: rotate(90deg) scale(1.1); background: var(--ink); }
.dish__count { position: absolute; right: .9rem; top: .9rem; min-width: 1.9rem; height: 1.9rem; padding: 0 .5rem; border-radius: 999px; background: var(--ink); color: var(--gold-2); font-weight: 800; font-size: .85rem; display: grid; place-items: center; }
.empty-search { padding: 3rem 1rem; text-align: center; opacity: .8; }
.dish__count[hidden] { display: none; }

/* panier (colonne droite) */
.order__cart { border-left: 1px solid var(--line); background: rgba(18, 16, 22, .86); display: flex; flex-direction: column; min-height: 0; }
.cart__head { padding: 1.2rem 1.3rem .9rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px dashed var(--line); }
.cart__head h3 { font: 400 1.6rem/1 var(--f-display); text-transform: uppercase; letter-spacing: .04em; }
.cart__head button { font-size: .78rem; opacity: .7; text-decoration: underline; text-underline-offset: 3px; }
.cart__head button:hover { opacity: 1; color: var(--pink-2); }
.cart__lines { flex: 1; overflow-y: auto; padding: .6rem 1.3rem; overscroll-behavior: contain; }
.cart__empty { height: 100%; display: grid; place-content: center; justify-items: center; gap: .8rem; text-align: center; padding: 2rem 1rem; opacity: .85; }
.cart__empty svg { width: 5.5rem; color: var(--pink); filter: drop-shadow(0 0 8px var(--pink)); }
.cart__empty p { font-size: .92rem; }
.cart__empty b { font: 400 1.5rem/1 var(--f-display); text-transform: uppercase; display: block; margin-bottom: .2rem; }
.line { display: grid; grid-template-columns: 3.6rem 1fr auto; gap: .8rem; padding: .9rem 0; border-bottom: 1px solid var(--line); animation: dishIn .45s var(--ease) both; }
.line__img { width: 3.6rem; height: 3.6rem; border-radius: 14px; background: var(--cream); overflow: hidden; }
.line__img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.line__img--cover img { object-fit: cover; mix-blend-mode: normal; }
.line__name { font: 400 1.1rem/1.1 var(--f-display); text-transform: uppercase; letter-spacing: .02em; }
.line__fmt { display: inline-block; margin-left: .4rem; padding: .08rem .5rem; border-radius: 999px; background: var(--gold-2); color: var(--ink); font: 800 .62rem/1.5 var(--f-body); letter-spacing: .08em; vertical-align: middle; }
.line__opts { font-size: .78rem; opacity: .7; margin-top: .25rem; line-height: 1.35; }
.line__price { font: 400 1.1rem/1 var(--f-display); text-align: right; white-space: nowrap; }
.line__qty { grid-column: 2 / -1; display: flex; align-items: center; justify-content: space-between; margin-top: .1rem; }
.stepper { display: inline-flex; align-items: center; gap: .15rem; background: rgba(255, 243, 223, .08); border-radius: 999px; padding: .15rem; }
.stepper button { width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; font-size: 1.15rem; line-height: 1; transition: background .25s, color .25s; }
.stepper button:hover:not(:disabled) { background: var(--gold-2); color: var(--ink); }
.stepper button:disabled { opacity: .3; cursor: not-allowed; }
.stepper output { min-width: 1.9rem; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.line__rm { font-size: .75rem; opacity: .6; text-decoration: underline; text-underline-offset: 3px; }
.line__rm:hover { opacity: 1; color: var(--pink-2); }
.upsell { padding: .9rem 1.3rem; border-top: 1px dashed var(--line); }
.upsell > p { font: 400 .95rem/1 var(--f-marker); color: var(--gold-2); margin-bottom: .6rem; }
.upsell__row { display: flex; flex-wrap: wrap; gap: .5rem; }
.up { flex: 0 1 auto; min-width: 0; text-align: left; display: flex; align-items: center; gap: .55rem; padding: .35rem .8rem .35rem .35rem; border-radius: 999px; background: rgba(255, 243, 223, .08); border: 1px solid var(--line); font-size: .78rem; font-weight: 700; transition: background .25s, color .25s, transform .3s var(--ease); }
.up:hover { background: var(--gold-2); color: var(--ink); transform: translateY(-2px); }
.up img { width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--cream); object-fit: contain; mix-blend-mode: normal; }
.up small { display: block; font-weight: 600; opacity: .7; }
.cart__foot { padding: 1rem 1.3rem 1.2rem; border-top: 1px solid var(--line); background: rgba(10, 9, 12, .6); }
.sum { display: flex; justify-content: space-between; font-size: .9rem; opacity: .8; margin-bottom: .3rem; }
.sum--total { opacity: 1; font: 400 1.7rem/1 var(--f-display); text-transform: uppercase; margin: .5rem 0 .9rem; letter-spacing: .02em; }
.sum--total span:last-child { color: var(--gold-2); }
.cart__foot .btn { width: 100%; }
.cart__foot .btn:disabled { opacity: .35; pointer-events: none; }
.cart__hint { font-size: .74rem; opacity: .6; text-align: center; margin-top: .6rem; }

/* barre mobile */
.order__bar { position: absolute; left: .8rem; right: .8rem; bottom: calc(.8rem + env(safe-area-inset-bottom)); z-index: 6; }
.order__bar button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.3rem; border-radius: 999px; background: var(--gold-2); color: var(--ink); font-weight: 800; font-size: .92rem; box-shadow: 0 14px 40px rgba(0, 0, 0, .6), 0 0 0 2px rgba(10, 9, 12, .5); }
.order__bar strong { font-weight: 800; letter-spacing: .02em; }
.order__bar[hidden] { display: none; }

/* feuille de personnalisation */
.sheet, .checkout { position: absolute; inset: 0; z-index: 20; display: flex; justify-content: flex-end; background: rgba(5, 4, 7, 0); visibility: hidden; transition: background .45s, visibility 0s .5s; }
.sheet.is-open, .checkout.is-open { background: rgba(5, 4, 7, .72); visibility: visible; transition: background .45s, visibility 0s; backdrop-filter: blur(6px); }
.sheet__panel { width: min(560px, 100%); height: 100%; background: var(--ink-2); border-left: 2px solid var(--line); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .6s var(--ease); box-shadow: -30px 0 80px rgba(0, 0, 0, .5); }
.sheet.is-open .sheet__panel, .checkout.is-open .checkout__panel { transform: none; }
.sheet__hero { position: relative; flex: none; aspect-ratio: 16 / 9; background: var(--cream); overflow: hidden; }
.sheet__hero img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: opacity .35s; }
.sheet__hero--cover img { object-fit: cover; mix-blend-mode: normal; }
.sheet__x { position: absolute; right: .9rem; top: .9rem; width: 2.8rem; height: 2.8rem; border-radius: 50%; background: var(--ink); color: var(--cream); display: grid; place-items: center; font-size: 1rem; transition: transform .4s var(--ease), background .3s; z-index: 2; }
.sheet__x:hover { background: var(--pink); transform: rotate(90deg); }
.sheet__body { flex: 1; overflow-y: auto; padding: 1.2rem 1.4rem 1.2rem; overscroll-behavior: contain; }
.sheet__title { font: 400 clamp(2rem, 4vw, 2.8rem)/.95 var(--f-display); text-transform: uppercase; }
.sheet__tag { opacity: .72; margin: .35rem 0 1rem; font-size: .95rem; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; padding: .35rem; border-radius: 20px; background: rgba(255, 243, 223, .07); margin-bottom: 1.2rem; }
.seg button { padding: .75rem .6rem; border-radius: 15px; display: grid; gap: .1rem; text-align: center; transition: background .3s, color .3s; }
.seg button b { font: 400 1.15rem/1 var(--f-display); text-transform: uppercase; letter-spacing: .04em; }
.seg button span { font-size: .74rem; opacity: .75; }
.seg button[aria-pressed="true"] { background: var(--gold-2); color: var(--ink); }
.group { margin-bottom: 1.3rem; padding: 1rem 1rem 1.1rem; border-radius: 22px; background: rgba(255, 243, 223, .05); border: 1px solid var(--line); }
.group.is-error { border-color: var(--red); box-shadow: 0 0 0 3px rgba(255, 77, 61, .25); animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.group__head { display: flex; align-items: baseline; justify-content: space-between; gap: .8rem; margin-bottom: .7rem; }
.group__head h4 { margin: 0; font: 400 1.2rem/1 var(--f-display); text-transform: uppercase; letter-spacing: .05em; }
.group__head small { font-size: .74rem; font-weight: 700; padding: .22rem .65rem; border-radius: 999px; background: rgba(255, 243, 223, .1); white-space: nowrap; }
.group__head small.req { background: var(--pink); color: #fff; }
.group__head small.ok { background: var(--green); color: var(--ink); }
.opts { display: flex; flex-wrap: wrap; gap: .45rem; }
.opt { display: inline-flex; align-items: center; gap: .5rem; padding: .6rem .95rem; border-radius: 999px; border: 2px solid var(--line); font-weight: 600; font-size: .9rem; transition: background .25s, color .25s, border-color .25s, transform .3s var(--ease); }
.opt:hover { border-color: var(--gold-2); transform: translateY(-2px); }
.opt[aria-pressed="true"] { background: var(--gold-2); border-color: var(--gold-2); color: var(--ink); }
.opt[aria-pressed="true"]::before { content: "✓"; font-weight: 900; }
.opt em { font-style: normal; font-size: .78rem; font-weight: 800; opacity: .8; }
.opt:disabled { opacity: .35; cursor: not-allowed; transform: none; }
.rows { display: grid; gap: .45rem; }
.row { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .5rem .5rem .5rem 1rem; border-radius: 16px; background: rgba(255, 243, 223, .06); font-weight: 600; font-size: .92rem; }
.row small { opacity: .7; font-weight: 700; margin-left: .4rem; }
.sheet__note { font-size: .8rem; opacity: .65; margin-top: .5rem; }
.sheet__foot { flex: none; display: flex; align-items: center; gap: .9rem; padding: .9rem 1.4rem calc(.9rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--ink); }
.sheet__foot .btn { flex: 1; justify-content: space-between; }
.sheet__foot .btn b { font: 400 1.25rem/1 var(--f-display); letter-spacing: .03em; }

/* tunnel de validation */
.checkout { justify-content: center; align-items: center; padding: 1.2rem; }
.checkout__panel { width: min(760px, 100%); max-height: 100%; background: var(--ink-2); border: 2px solid var(--line); border-radius: 32px; display: flex; flex-direction: column; overflow: hidden; transform: translateY(40px) scale(.98); opacity: 0; transition: transform .6s var(--ease), opacity .4s; box-shadow: 0 40px 120px rgba(0, 0, 0, .6); }
.checkout.is-open .checkout__panel { opacity: 1; }
.checkout__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.2rem 1.5rem; border-bottom: 1px dashed var(--line); flex: none; }
.checkout__head h3 { font: 400 clamp(1.7rem, 3.4vw, 2.3rem)/1 var(--f-display); text-transform: uppercase; }
.checkout__body { overflow-y: auto; padding: 1.3rem 1.5rem; display: grid; gap: 1.4rem; overscroll-behavior: contain; }
.step-n { display: flex; align-items: center; gap: .7rem; margin-bottom: .7rem; }
.step-n i { width: 2rem; height: 2rem; border-radius: 50%; background: var(--pink); color: #fff; display: grid; place-items: center; font: 400 1rem/1 var(--f-display); font-style: normal; flex: none; }
.step-n h4 { margin: 0; font: 400 1.25rem/1 var(--f-display); text-transform: uppercase; letter-spacing: .05em; }
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.mode { display: grid; gap: .25rem; padding: 1rem .9rem; border-radius: 20px; border: 2px solid var(--line); text-align: left; transition: background .3s, border-color .3s, color .3s, transform .35s var(--ease); }
.mode b { font: 400 1.2rem/1 var(--f-display); text-transform: uppercase; letter-spacing: .04em; }
.mode span { font-size: .78rem; opacity: .75; }
.mode:hover { border-color: var(--gold-2); transform: translateY(-3px); }
.mode[aria-pressed="true"] { background: var(--gold-2); color: var(--ink); border-color: var(--gold-2); }
.slots { display: flex; flex-wrap: wrap; gap: .4rem; max-height: 12rem; overflow-y: auto; padding: .2rem; }
.slot { padding: .55rem .9rem; border-radius: 999px; border: 2px solid var(--line); font-weight: 700; font-size: .88rem; font-variant-numeric: tabular-nums; transition: background .25s, color .25s, border-color .25s; }
.slot:hover { border-color: var(--gold-2); }
.slot[aria-pressed="true"] { background: var(--gold-2); border-color: var(--gold-2); color: var(--ink); }
.slot--asap { background: rgba(53, 224, 140, .12); border-color: rgba(53, 224, 140, .5); }
.slot--asap[aria-pressed="true"] { background: var(--green); border-color: var(--green); }
.slot-day { flex-basis: 100%; font: 400 .9rem/1 var(--f-marker); color: var(--gold-2); margin: .5rem 0 .1rem; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.field { display: grid; gap: .3rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .8; }
.field input, .field textarea, .field select { width: 100%; padding: .85rem 1rem; border-radius: 14px; border: 2px solid var(--line); background: rgba(255, 243, 223, .06); color: var(--cream); font: inherit; transition: border-color .25s, background .25s; }
.field select option { color: #111; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--gold-2); background: rgba(255, 243, 223, .1); }
.field.is-error input, .field.is-error select { border-color: var(--red); }
.field .err { font-size: .76rem; color: #ff8f84; min-height: 0; }
.recap { padding: 1rem 1.1rem; border-radius: 20px; background: var(--cream); color: var(--ink); }
.recap ul { display: grid; gap: .5rem; margin-bottom: .8rem; padding-bottom: .8rem; border-bottom: 2px dashed rgba(10, 9, 12, .3); }
.recap li { display: flex; justify-content: space-between; gap: 1rem; font-size: .92rem; }
.recap li span:first-child { font-weight: 600; }
.recap li small { display: block; opacity: .65; font-weight: 500; }
.recap .sum { opacity: 1; font-size: .92rem; }
.recap .sum--total span:last-child { color: var(--pink); }
.pay-note { font-size: .82rem; opacity: .75; margin-top: .3rem; }
.checkout__foot { padding: 1rem 1.5rem calc(1rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: flex; gap: .8rem; flex: none; }
.checkout__foot .btn { flex: 1; }
.alert { padding: .8rem 1rem; border-radius: 14px; background: rgba(255, 77, 61, .15); border: 1px solid var(--red); font-size: .88rem; }

/* écran final */
.done { display: grid; gap: 1.1rem; text-align: center; justify-items: center; }
.done__badge { width: 5.5rem; height: 5.5rem; border-radius: 50%; background: var(--gold-2); color: var(--ink); display: grid; place-items: center; font: 400 2.4rem/1 var(--f-display); box-shadow: 0 0 0 6px rgba(255, 185, 59, .25), 0 0 40px rgba(255, 185, 59, .5); animation: pop .7s var(--ease); }
.done__badge.ok { background: var(--green); box-shadow: 0 0 0 6px rgba(53, 224, 140, .25), 0 0 40px rgba(53, 224, 140, .5); }
@keyframes pop { from { transform: scale(0) rotate(-40deg); } }
.done h3 { font: 400 clamp(2rem, 5vw, 3rem)/1 var(--f-display); text-transform: uppercase; }
.done p { max-width: 34rem; opacity: .85; }
.done__code { font: 400 1.4rem/1 var(--f-display); letter-spacing: .12em; padding: .5rem 1rem; border: 2px dashed var(--gold-2); border-radius: 12px; color: var(--gold-2); }
.done__actions { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; width: 100%; }
.done__actions .btn { width: 100%; }
.done__actions .btn--full { grid-column: 1 / -1; }
.done pre { width: 100%; text-align: left; max-height: 11rem; overflow: auto; padding: .9rem 1rem; border-radius: 16px; background: rgba(255, 243, 223, .06); border: 1px solid var(--line); font: .78rem/1.5 ui-monospace, Consolas, monospace; white-space: pre-wrap; margin: 0; }

.toast { position: absolute; left: 50%; bottom: 5.4rem; z-index: 40; transform: translate(-50%, 30px); padding: .8rem 1.3rem; border-radius: 999px; background: var(--ink); border: 2px solid var(--gold-2); color: var(--cream); font-weight: 700; font-size: .9rem; opacity: 0; pointer-events: none; transition: transform .5s var(--ease), opacity .4s; white-space: nowrap; box-shadow: 0 14px 40px rgba(0, 0, 0, .6); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* mobile / tablette */
@media (max-width: 1100px) {
  .order__body { grid-template-columns: 180px minmax(0, 1fr); }
  .order__cart { position: absolute; inset: 0; z-index: 10; border: 0; background: var(--ink-2); transform: translateY(100%); visibility: hidden; transition: transform .6s var(--ease), visibility 0s .6s; }
  .order__cart.is-open { transform: none; visibility: visible; transition: transform .6s var(--ease), visibility 0s; }
  .order__cartbtn { display: grid; }
  .cart__back { display: inline-block; }
  .order__bar:not([hidden]) { display: block; }
}
@media (min-width: 1101px) { .order__bar { display: none !important; } }
@media (max-width: 820px) {
  .order__top { flex-wrap: wrap; gap: .6rem; padding: .7rem .9rem; }
  .order__brand h2 { font-size: 1.35rem; }
  .order__brand svg { width: 2.2rem; height: 2.2rem; }
  .order__search { order: 5; flex-basis: 100%; max-width: none; margin: 0; }
  .order__brand { flex: 1 1 0; min-width: 0; margin-right: auto; }
  .order__brand > div { min-width: 0; }
  .order__brand .status-chip { max-width: 100%; font-size: .66rem; padding: .2rem .55rem; }
  .order__brand .status-chip b { overflow: hidden; text-overflow: ellipsis; }
  .order__cartbtn, .order__close { flex: none; width: 2.8rem; height: 2.8rem; }
  .order__body { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .order__rail { flex-direction: row; overflow-x: auto; overflow-y: hidden; border: 0; border-bottom: 1px solid var(--line); padding: .6rem .9rem; gap: .4rem; scrollbar-width: none; }
  .order__rail::-webkit-scrollbar { display: none; }
  .rail__btn { width: auto; flex: none; padding: .6rem 1rem; border: 1.5px solid var(--line); border-radius: 999px; white-space: nowrap; }
  .rail__btn small { display: none; }
  .rail__btn:hover { transform: none; }
  .order__main { padding: 1rem .9rem 7rem; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
  .dish { border-radius: 18px; }
  .dish__name { font-size: 1.1rem; padding-right: 0; }
  .dish__body { padding: .1rem .8rem .85rem; }
  .dish__body::before { margin: 0 -.8rem .6rem; }
  .dish__add { width: 2.3rem; height: 2.3rem; top: -1.15rem; font-size: 1.3rem; right: .6rem; }
  .dish__price { font-size: 1.25rem; }
  .sheet__panel { width: 100%; border-left: 0; border-radius: 28px 28px 0 0; height: 94%; align-self: flex-end; transform: translateY(100%); }
  .sheet { align-items: flex-end; }
  .sheet__hero { aspect-ratio: 16 / 8; }
  .modes { grid-template-columns: 1fr; }
  .mode { grid-template-columns: 1fr auto; align-items: center; }
  .fields { grid-template-columns: 1fr; }
  .checkout { padding: 0; align-items: flex-end; }
  .checkout__panel { border-radius: 28px 28px 0 0; height: 96%; max-height: 96%; width: 100%; }
  .done__actions { grid-template-columns: 1fr; }
  .toast { bottom: 6rem; }
  .m-hide { display: none; }
  .checkout__head, .checkout__body, .checkout__foot { padding-left: 1.1rem; padding-right: 1.1rem; }
  .checkout__foot { gap: .6rem; }
  .checkout__foot .btn--ghost { flex: 0 0 auto; padding: .95em 1.3em; }
  .checkout__foot .btn--gold { flex: 1 1 0; min-width: 0; padding-inline: .8em; font-size: .9rem; }
  .slots { max-height: 14rem; }
}
@media (prefers-reduced-motion: reduce) {
  .dish, .line { animation: none; }
  .order, .sheet__panel, .checkout__panel { transition-duration: .01ms !important; }
}
