/* BeeFun — interface tablette. Couleurs et polices relevées sur beefunplay.be et dans le logo officiel. */
@font-face { font-family: 'Tilt Warp'; src: url('/assets/fonts/TiltWarp-latin.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Tilt Warp'; src: url('/assets/fonts/TiltWarp-latin-ext.woff2') format('woff2'); unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20CF; font-display: swap; }
@font-face { font-family: 'Inter Tight'; src: url('/assets/fonts/InterTight-latin.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
	--night: #18051F;
	--deep: #22092E;
	--panel: #2A0F3A;
	--card: #311445;
	--card-2: #3B1952;
	--line: rgba(255, 250, 245, .1);
	--violet: #6F25C8;
	--violet-light: #9D4CFF;
	--yellow: #FFD426;
	--yellow-soft: #FFE95C;
	--gold: #E6A800;
	--orange: #F2662B;
	--pink: #E0309A;
	--magenta: #FF1493;
	--text: #FFFAF5;
	--muted: #CBBFD8;
	--ink: #0B0310;
	--danger: #FF4D6A;
	--ok: #2BD66B;
	--brand-gradient: linear-gradient(90deg, var(--yellow) 0%, var(--orange) 35%, var(--pink) 65%, var(--violet) 100%);
	--radius: 22px;
	--radius-sm: 14px;
	--shadow: 0 18px 50px -18px rgba(0, 0, 0, .65);
	--ease: cubic-bezier(.2, .8, .2, 1);
	--display: 'Tilt Warp', 'Arial Black', system-ui, sans-serif;
	--body: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--cats-w: 210px;
	--cart-w: 330px;
	--topbar-h: 76px;
	color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; margin: 0; }
body {
	background: var(--night);
	color: var(--text);
	font: 500 17px/1.4 var(--body);
	overflow: hidden;
	user-select: none;
	-webkit-user-select: none;
	overscroll-behavior: none;
	touch-action: manipulation;
}
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; touch-action: manipulation; }
input { font: inherit; user-select: text; -webkit-user-select: text; }
[hidden] { display: none !important; }
.display { font-family: var(--display); font-weight: 400; letter-spacing: .01em; margin: 0; line-height: 1.05; }
.muted { color: var(--muted); }
.error { color: var(--danger); min-height: 1.4em; margin: .5em 0 0; font-weight: 600; }

/* Fond : alvéoles discrètes + halos de couleur */
#bg {
	position: fixed; inset: 0; z-index: -1; pointer-events: none;
	background:
		radial-gradient(60vw 50vh at 85% -10%, rgba(111, 37, 200, .45), transparent 70%),
		radial-gradient(50vw 45vh at -10% 110%, rgba(224, 48, 154, .28), transparent 70%),
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 0 56 16v32L28 64 0 48V16zM28 64v33M0 16-0 0M56 16V0' fill='none' stroke='%23FFFAF5' stroke-opacity='.035' stroke-width='1.5'/%3E%3C/svg%3E"),
		var(--night);
}

/* ---------- Boutons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	min-height: 56px; padding: 0 28px; border-radius: 999px;
	font-family: var(--display); font-size: 19px; letter-spacing: .03em; text-transform: uppercase;
	transition: transform .15s var(--ease), box-shadow .2s var(--ease), background .2s, opacity .2s;
}
.btn:active:not(:disabled) { transform: scale(.96); }
.btn:disabled { opacity: .38; cursor: not-allowed; }
.btn--primary {
	background: linear-gradient(180deg, var(--yellow-soft), var(--yellow) 45%, var(--gold));
	color: var(--ink);
	box-shadow: 0 10px 30px -10px rgba(255, 212, 38, .65), inset 0 -3px 0 rgba(0, 0, 0, .15);
}
.btn--ghost { background: rgba(255, 250, 245, .08); border: 2px solid rgba(255, 250, 245, .18); }
.btn--danger { background: var(--danger); color: #fff; }
.btn--lg { min-height: 64px; font-size: 21px; padding: 0 34px; }
.btn--xl { min-height: 84px; font-size: 28px; padding: 0 56px; }
.btn--block { width: 100%; }
.btn.is-loading { pointer-events: none; }
.btn.is-loading::after {
	content: ''; width: 22px; height: 22px; border-radius: 50%;
	border: 3px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Bandeaux ---------- */
.banner {
	position: fixed; left: 50%; transform: translateX(-50%); z-index: 60;
	padding: 10px 22px; border-radius: 999px; font-size: 15px; font-weight: 600; text-align: center;
	max-width: calc(100vw - 32px); box-shadow: var(--shadow);
}
.banner--demo { bottom: 12px; left: 12px; transform: none; padding: 6px 14px; font-size: 12px; max-width: 212px; text-align: left; background: rgba(24, 5, 31, .85); color: var(--yellow-soft); border: 1px dashed rgba(255, 212, 38, .5); backdrop-filter: blur(8px); pointer-events: none; }
.banner--offline { top: 14px; background: #3a0d1c; color: #ffd7df; border: 1px solid var(--danger); display: flex; align-items: center; gap: 10px; }
.banner__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--danger); animation: pulse 1.4s infinite; flex: none; }
@keyframes pulse { 50% { opacity: .3; } }

/* ---------- Vues ---------- */
.view { position: fixed; inset: 0; }
.view.is-entering { animation: fadeUp .45s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } }

/* Appairage */
.view--pair { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; padding: 24px; }
.pair__logo { width: 120px; }
.view--pair h1 { font-size: 34px; }
.view--pair p { max-width: 520px; margin: 0; }
.pin { display: flex; gap: 12px; margin: 12px 0 6px; }
.pin span { width: 54px; height: 66px; border-radius: 14px; background: var(--card); border: 2px solid var(--line); display: grid; place-items: center; font: 32px var(--display); }
.pin span.is-filled { border-color: var(--yellow); }
.keypad { display: grid; grid-template-columns: repeat(3, 92px); gap: 12px; }
.keypad button { height: 74px; border-radius: 18px; background: var(--card); font: 30px var(--display); }
.keypad button:active { background: var(--card-2); transform: scale(.96); }

/* Accueil */
.view--welcome { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 32px; gap: 22px; overflow: hidden; }
.welcome__logo { width: min(300px, 38vh); filter: drop-shadow(0 22px 40px rgba(0, 0, 0, .5)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px) rotate(-1.5deg); } }
.welcome__title { font-size: clamp(42px, 6.4vw, 76px); text-shadow: 0 6px 0 rgba(0, 0, 0, .35); }
.welcome__title::after { content: ''; display: block; height: 8px; width: 62%; margin: 14px auto 0; border-radius: 99px; background: var(--brand-gradient); transform: skewX(-20deg); }
.welcome__subtitle { font-size: clamp(20px, 2.4vw, 27px); color: var(--muted); margin: 0 0 8px; max-width: 760px; }
.welcome__room { position: absolute; bottom: 30px; margin: 0; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 17px; letter-spacing: .04em; }
.room-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(43, 214, 107, .2); }
.welcome__hexes span {
	position: absolute; width: 180px; aspect-ratio: 1 / 1.1547; opacity: .5;
	clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
	animation: drift 14s ease-in-out infinite alternate;
}
.welcome__hexes span:nth-child(1) { left: 6%; top: 10%; background: linear-gradient(140deg, var(--violet), transparent); }
.welcome__hexes span:nth-child(2) { right: 7%; top: 18%; width: 120px; background: linear-gradient(140deg, var(--yellow), transparent); opacity: .25; animation-delay: -4s; }
.welcome__hexes span:nth-child(3) { left: 12%; bottom: 12%; width: 110px; background: linear-gradient(140deg, var(--pink), transparent); opacity: .3; animation-delay: -8s; }
.welcome__hexes span:nth-child(4) { right: 10%; bottom: 8%; width: 220px; background: linear-gradient(140deg, var(--violet-light), transparent); opacity: .25; animation-delay: -2s; }
.welcome__hexes span:nth-child(5) { left: 40%; top: -60px; width: 90px; background: var(--yellow); opacity: .12; animation-delay: -6s; }
.welcome__hexes span:nth-child(6) { right: 32%; bottom: -50px; width: 140px; background: var(--orange); opacity: .14; animation-delay: -10s; }
@keyframes drift { to { transform: translate(16px, -22px) rotate(8deg); } }

/* ---------- Carte ---------- */
.view--menu {
	display: grid;
	grid-template-columns: var(--cats-w) 1fr var(--cart-w);
	grid-template-rows: var(--topbar-h) 1fr;
	grid-template-areas: "top top top" "cats products cart";
}
.topbar { grid-area: top; display: flex; align-items: center; gap: 16px; padding: 0 22px; border-bottom: 1px solid var(--line); background: rgba(24, 5, 31, .7); backdrop-filter: blur(14px); z-index: 5; }
.topbar__brand img { height: 54px; display: block; }
.topbar__room { margin-left: auto; display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 18px; padding: 10px 18px; border-radius: 999px; background: rgba(255, 250, 245, .06); white-space: nowrap; }
.search { flex: 1; max-width: 460px; display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 16px; border-radius: 999px; background: rgba(255, 250, 245, .07); border: 2px solid transparent; transition: border-color .2s; }
.search:focus-within { border-color: var(--violet-light); }
.search svg { width: 22px; height: 22px; fill: none; stroke: var(--muted); stroke-width: 2.4; stroke-linecap: round; flex: none; }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text); font-size: 18px; }
.search input::-webkit-search-cancel-button { display: none; }
.search__clear { font-size: 28px; line-height: 1; color: var(--muted); width: 36px; height: 36px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 18px; border-radius: 999px; background: rgba(157, 76, 255, .18); border: 1px solid rgba(157, 76, 255, .5); font-weight: 700; white-space: nowrap; }
.chip svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.chip__badge { background: var(--violet-light); color: #fff; border-radius: 99px; min-width: 24px; height: 24px; display: grid; place-items: center; font-size: 13px; padding: 0 6px; }

/* Catégories */
.cats { grid-area: cats; overflow-y: auto; padding: 18px 12px 120px 16px; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cats__group { font: 13px var(--display); letter-spacing: .18em; color: var(--muted); margin: 22px 10px 8px; opacity: .8; }
.cats__group:first-child { margin-top: 4px; }
.cat {
	display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; padding: 6px 12px; margin-bottom: 4px;
	border-radius: 16px; text-align: left; font-weight: 700; font-size: 16px; color: var(--muted);
	transition: background .25s var(--ease), color .2s;
}
.cat__icon { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; background: rgba(255, 250, 245, .06); flex: none; transition: background .25s; }
.cat.is-active { background: var(--card-2); color: var(--text); box-shadow: inset 4px 0 0 var(--yellow); }
.cat.is-active .cat__icon { background: var(--yellow); }

/* Produits */
.products { grid-area: products; overflow-y: auto; padding: 6px 20px 140px; scroll-behavior: smooth; outline: 0; scrollbar-width: thin; scrollbar-color: var(--card-2) transparent; }
.section { padding-top: 18px; scroll-margin-top: 0; }
.section__title { display: flex; align-items: center; gap: 14px; font-size: 25px; margin: 4px 0 12px; }
.section__title small { font: 600 15px var(--body); color: var(--muted); }
.section--featured .section__title { background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(186px, 1fr)); gap: 14px; }
.card {
	position: relative; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
	background: linear-gradient(180deg, var(--card), var(--deep)); border: 1px solid var(--line);
	box-shadow: var(--shadow); transition: transform .2s var(--ease), border-color .2s;
	animation: cardIn .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 30ms);
}
@keyframes cardIn { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.card:active { transform: scale(.985); }
.card.in-cart { border-color: rgba(255, 212, 38, .55); }
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; display: grid; place-items: center; }
.card__media img, .sheet__media img { display: block; }
.media-bg { position: absolute; inset: -12%; width: 124%; height: 124%; object-fit: cover; filter: blur(18px) saturate(1.2) brightness(.7); }
.media-fg { position: absolute; inset: 6px; z-index: 1; height: calc(100% - 12px); width: calc(100% - 12px); object-fit: contain; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .35)); }
.media-art { position: absolute; inset: 0; display: grid; place-items: center; background: var(--art, linear-gradient(135deg, #5b1fa8, #2a0f3a)); }
.media-art::before {
	content: ''; position: absolute; width: 62%; aspect-ratio: 1 / 1.1547; background: rgba(255, 250, 245, .1);
	clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.media-art::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .22), transparent 55%); }
.media-art span { position: relative; font-size: clamp(44px, 4.5vw, 64px); filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .35)); z-index: 1; }
.card__badge { position: absolute; top: 8px; left: 8px; z-index: 2; padding: 4px 10px; font-size: 10px !important; border-radius: 99px; background: var(--yellow); color: var(--ink); font: 12px var(--display); letter-spacing: .08em; }
.card__qty { position: absolute; top: 8px; right: 8px; z-index: 2; min-width: 32px; height: 32px; padding: 0 8px; border-radius: 99px; background: var(--yellow); color: var(--ink); font: 18px var(--display); display: grid; place-items: center; animation: pop .35s var(--ease); }
@keyframes pop { 0% { transform: scale(.4); } 60% { transform: scale(1.15); } }
.card__body { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px 12px; flex: 1; }
.card__name { font: 17px/1.15 var(--display); margin: 0; }
.card__desc { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 0; }
.card__desc:empty { display: none; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 8px; }
.price { font: 18px var(--display); color: var(--yellow); white-space: nowrap; }
.price--lg { font-size: 32px; }
.add {
	height: 44px; padding: 0 14px; border-radius: 999px; background: var(--yellow); color: var(--ink);
	font: 13px var(--display); letter-spacing: .05em; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
	box-shadow: 0 8px 20px -8px rgba(255, 212, 38, .7); transition: transform .12s;
}
.add:active { transform: scale(.92); }
.add b { font-size: 22px; line-height: 0; }
.stepper { display: inline-flex; align-items: center; background: rgba(255, 250, 245, .08); border-radius: 999px; padding: 4px; }
.stepper button { width: 40px; height: 40px; border-radius: 50%; background: var(--card-2); font: 24px var(--display); display: grid; place-items: center; }
.stepper button[data-step="1"] { background: var(--yellow); color: var(--ink); }
.stepper button:active { transform: scale(.9); }
.stepper button:disabled { opacity: .35; }
.stepper output { min-width: 30px; text-align: center; font: 17px var(--display); }
.stepper--lg button { width: 58px; height: 58px; font-size: 30px; }
.stepper--lg output { min-width: 56px; font-size: 26px; }
.card.is-unavailable .card__media { filter: grayscale(1) brightness(.55); }
.card.is-unavailable .card__name, .card.is-unavailable .price { opacity: .55; }
.unavailable { font: 11px var(--display); letter-spacing: .08em; color: var(--muted); padding: 9px 10px; border: 2px dashed rgba(255, 250, 245, .2); border-radius: 999px; }
.ribbon { position: absolute; inset: auto 0 0 0; z-index: 2; padding: 8px; text-align: center; font: 15px var(--display); letter-spacing: .14em; background: rgba(11, 3, 16, .78); }
.empty-search { text-align: center; padding: 80px 20px; color: var(--muted); font-size: 19px; }
.empty-search b { display: block; font: 30px var(--display); color: var(--text); margin-bottom: 8px; }

/* Panier */
.cart { grid-area: cart; display: flex; flex-direction: column; background: rgba(34, 9, 46, .85); border-left: 1px solid var(--line); backdrop-filter: blur(14px); min-height: 0; }
.cart__head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px 12px; }
.cart__head h2 { font-size: 26px; }
.cart__close { display: none; font-size: 34px; width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 250, 245, .08); }
.cart__lines { flex: 1; overflow-y: auto; padding: 4px 18px; min-height: 0; }
.cart__empty { text-align: center; color: var(--muted); padding: 50px 18px; }
.cart__empty span { display: block; font-size: 54px; margin-bottom: 12px; animation: float 5s ease-in-out infinite; }
.line { display: grid; grid-template-columns: 1fr auto; gap: 8px 10px; padding: 14px 8px; border-bottom: 1px solid var(--line); animation: fadeUp .3s var(--ease); }
.line__name { font-weight: 700; font-size: 17px; }
.line__unit { color: var(--muted); font-size: 14px; }
.line__sum { font: 19px var(--display); text-align: right; align-self: center; }
.line .stepper button { width: 40px; height: 40px; font-size: 22px; }
.line .stepper output { min-width: 34px; font-size: 18px; }
.line.is-problem .line__name { color: var(--danger); }
.line__warn { grid-column: 1 / -1; color: var(--danger); font-size: 14px; font-weight: 600; }
.cart__foot { padding: 16px 24px 24px; border-top: 1px solid var(--line); background: rgba(24, 5, 31, .4); }
.cart__total { display: flex; justify-content: space-between; align-items: baseline; font: 22px var(--display); margin-bottom: 6px; }
.cart__total strong { font-size: 34px; color: var(--yellow); font-weight: 400; }
.cart__hint { margin: 0 0 14px; color: var(--muted); font-size: 13.5px; }
.cart .btn--lg { font-size: 19px; padding: 0 18px; white-space: nowrap; }
.cart.bump { animation: bump .4s var(--ease); }
@keyframes bump { 40% { box-shadow: inset 0 0 0 3px var(--yellow); } }

.cartbar {
	position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 20;
	display: flex; align-items: center; gap: 16px; height: 74px; padding: 0 14px 0 14px; min-width: min(560px, calc(100vw - 32px));
	border-radius: 999px; background: linear-gradient(180deg, var(--yellow-soft), var(--yellow)); color: var(--ink);
	box-shadow: 0 18px 40px -12px rgba(255, 212, 38, .6); font-family: var(--display); font-size: 20px; text-transform: uppercase;
	animation: fadeUp .35s var(--ease);
}
.cartbar__count { width: 50px; height: 50px; border-radius: 50%; background: var(--ink); color: var(--yellow); display: grid; place-items: center; }
.cartbar__label { flex: 1; text-align: left; }
.cartbar__total { padding-right: 14px; font-weight: 400; }

/* ---------- Fenêtres ---------- */
.scrim { position: fixed; inset: 0; z-index: 30; background: rgba(11, 3, 16, .66); backdrop-filter: blur(6px); animation: fade .25s both; }
@keyframes fade { from { opacity: 0; } }
.modal {
	position: fixed; z-index: 40; left: 50%; top: 50%; transform: translate(-50%, -50%);
	width: min(620px, calc(100vw - 32px)); max-height: calc(100vh - 40px); overflow-y: auto;
	padding: 34px 34px 28px; border-radius: 30px; text-align: center;
	background: linear-gradient(180deg, var(--card-2), var(--deep)); border: 1px solid var(--line); box-shadow: var(--shadow);
	animation: modalIn .35s var(--ease) both;
}
@keyframes modalIn { from { opacity: 0; transform: translate(-50%, -46%) scale(.96); } }
.modal h2 { font-size: 36px; margin-bottom: 14px; }
.modal p { font-size: 19px; margin: 12px 0; }
.modal__icon { font-size: 54px; margin-bottom: 4px; }
.modal__actions { display: flex; gap: 14px; justify-content: center; margin-top: 22px; }
.modal__actions .btn { flex: 1; }
.modal__actions--wrap { flex-wrap: wrap; }
.recap { text-align: left; background: rgba(11, 3, 16, .35); border-radius: 18px; padding: 10px 18px; margin: 6px 0 4px; max-height: 38vh; overflow-y: auto; }
.recap__line { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
.recap__line:last-child { border-bottom: 0; }
.recap__total { display: flex; justify-content: space-between; font: 24px var(--display); padding: 12px 0 6px; color: var(--yellow); border-top: 2px solid var(--line); }

.modal--success { padding-top: 26px; }
.success__burst svg { width: 120px; height: 120px; }
.success__burst polygon { fill: var(--yellow); animation: pop .6s var(--ease); transform-origin: center; }
.success__burst path { fill: none; stroke: var(--ink); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 70; stroke-dashoffset: 70; animation: draw .5s .35s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.success__num { font-size: 20px; color: var(--muted); }
.success__num strong { color: var(--yellow); font-family: var(--display); font-weight: 400; font-size: 26px; }
.success__timer { height: 4px; border-radius: 99px; background: rgba(255, 250, 245, .1); margin-top: 22px; overflow: hidden; }
.success__timer span { display: block; height: 100%; width: 100%; background: var(--brand-gradient); transform-origin: left; }

.sheet {
	position: fixed; z-index: 40; left: 50%; bottom: 0; transform: translateX(-50%);
	width: min(720px, 100vw); max-height: 92vh; overflow-y: auto; border-radius: 30px 30px 0 0;
	background: var(--deep); border: 1px solid var(--line); box-shadow: var(--shadow); animation: sheetIn .4s var(--ease) both;
}
@keyframes sheetIn { from { transform: translate(-50%, 40px); opacity: 0; } }
.sheet__close { position: absolute; top: 14px; right: 14px; z-index: 3; width: 54px; height: 54px; border-radius: 50%; background: rgba(11, 3, 16, .6); font-size: 32px; line-height: 1; }
.sheet__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.sheet__media { display: grid; place-items: center; }
.sheet__media .media-art span { font-size: 120px; }
.sheet__body { padding: 24px 30px 30px; display: flex; flex-direction: column; gap: 12px; }
.sheet__body h2 { font-size: 36px; }
.sheet__body p { margin: 0; font-size: 18px; }
.sheet__row { display: flex; align-items: center; justify-content: space-between; margin: 10px 0; }
.sheet--side { left: auto; right: 0; top: 0; bottom: 0; transform: none; width: min(480px, 100vw); max-height: none; border-radius: 30px 0 0 30px; animation: sideIn .4s var(--ease) both; }
@keyframes sideIn { from { transform: translateX(40px); opacity: 0; } }
.track { padding: 16px 0; border-bottom: 1px solid var(--line); }
.track__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.track__head strong { font: 20px var(--display); font-weight: 400; }
.track__items { color: var(--muted); font-size: 15px; }
.status { padding: 6px 12px; border-radius: 99px; font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.status--new { background: rgba(157, 76, 255, .25); color: #dcc3ff; }
.status--preparing { background: rgba(242, 102, 43, .25); color: #ffc7ad; }
.status--ready { background: rgba(255, 212, 38, .25); color: var(--yellow-soft); }
.status--delivered { background: rgba(43, 214, 107, .2); color: #a8f5c4; }
.status--cancelled { background: rgba(255, 77, 106, .2); color: #ffc0cb; }

.staff-info { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; text-align: left; margin: 10px 0; }
.staff-info dt { color: var(--muted); }
.staff-info dd { margin: 0; font-weight: 700; }
.staff-unpair { margin-top: 18px; text-align: left; color: var(--muted); }
.staff-unpair summary { cursor: pointer; padding: 8px 0; }
.staff-unpair input { width: 100%; height: 52px; margin: 8px 0; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--night); color: var(--text); }

.toast {
	position: fixed; left: 50%; bottom: 112px; transform: translate(-50%, 20px); z-index: 50; opacity: 0; pointer-events: none;
	padding: 14px 24px; border-radius: 999px; background: var(--text); color: var(--ink); font-weight: 800; font-size: 17px;
	box-shadow: var(--shadow); transition: opacity .25s, transform .3s var(--ease); white-space: nowrap;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.blocker { position: fixed; inset: 0; z-index: 55; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 18px; padding: 40px; background: rgba(24, 5, 31, .96); }
.blocker img { width: 160px; }
.blocker h2 { font-size: 40px; max-width: 760px; }
.blocker p { font-size: 21px; color: var(--muted); max-width: 640px; margin: 0; }

/* ---------- Écrans plus étroits (tablette en portrait, petites tablettes) ---------- */
@media (max-width: 1180px) {
	:root { --cart-w: 0px; --cats-w: 0px; --topbar-h: 76px; }
	.view--menu { grid-template-columns: 1fr; grid-template-rows: var(--topbar-h) auto 1fr; grid-template-areas: "top" "cats" "products"; }
	.cats { display: flex; gap: 8px; overflow-x: auto; overflow-y: hidden; padding: 12px 18px; border-bottom: 1px solid var(--line); }
	.cats__group { display: none; }
	.cat { width: auto; flex: none; min-height: 52px; margin: 0; padding: 6px 16px 6px 6px; border-radius: 999px; white-space: nowrap; background: rgba(255, 250, 245, .05); }
	.cat.is-active { box-shadow: none; background: var(--yellow); color: var(--ink); }
	.cat.is-active .cat__icon { background: rgba(11, 3, 16, .12); }
	.cat__icon { border-radius: 50%; }
	.cart { position: fixed; z-index: 40; right: 0; top: 0; bottom: 0; width: min(460px, 100vw); transform: translateX(105%); transition: transform .4s var(--ease); border-radius: 30px 0 0 30px; background: var(--deep); }
	.cart.is-open { transform: none; box-shadow: var(--shadow); }
	.cart__close { display: grid; place-items: center; }
	.products { padding-bottom: 130px; }
	.banner--demo { bottom: 106px; }
}
@media (max-width: 720px) {
	.topbar__room { display: none; }
	.chip--track { padding: 0 12px; }
	.topbar__brand img { height: 50px; }
	.grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
	.card__name { font-size: 16px; }
	.add { padding: 0 14px; }
	.products { padding-left: 14px; padding-right: 14px; }
}
@media (min-width: 1181px) {
	.cartbar { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
