/* Thom & Giu — direction « Frais & gourmand » : clair, jaune pâtes fraîches, rouge tomate, vert sauge, formes arrondies. */
:root {
  --bg: #f6f4ef;
  --surface: #ffffff;
  --ink: #1d1b19;
  --muted: #6e6a63;
  --line: #ebe7de;
  --yellow: #ffd25a;
  --yellow-50: #fff8e1;
  --yellow-100: #fff3cc;
  --yellow-300: #ffe08d;
  --tomato: #f0533a;
  --tomato-50: #fff0ec;
  --tomato-100: #ffe1da;
  --tomato-600: #d8432b;
  --tomato-700: #b63a24;
  --sage: #2e7d4f;
  --sage-50: #eaf5ee;
  --sage-100: #dceee2;
  --sage-700: #22603c;
  --cold: #2b5c8a;
  --cold-50: #e6f0fa;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r-sm: 12px; --r-md: 18px; --r-lg: 24px; --r-xl: 32px; --pill: 999px;
  --shadow: 0 10px 30px rgba(29, 27, 25, .08);
  --shadow-lg: 0 20px 50px rgba(29, 27, 25, .14);
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px; --space-6: 32px; --space-7: 48px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 500 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--tomato-700); text-decoration: none; font-weight: 700; }
a:hover { color: var(--tomato); }
::selection { background: var(--yellow-300); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
img { max-width: 100%; }
code { font-size: 13px; background: var(--yellow-50); padding: 2px 6px; border-radius: 6px; }

h1, h2, h3 { font-weight: 800; line-height: 1.08; letter-spacing: -0.03em; margin: 0 0 var(--space-3); text-wrap: balance; }
h1 { font-size: clamp(32px, 6vw, 52px); }
h2 { font-size: 22px; letter-spacing: -0.02em; }
p { text-wrap: pretty; }
.kicker { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 var(--space-3); padding: 6px 12px; border-radius: var(--pill); background: var(--surface); font-size: 13px; font-weight: 700; color: var(--ink); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mb { margin-bottom: var(--space-5); }
.mt0 { margin-top: 0; }
.stack-sm { display: flex; flex-direction: column; gap: var(--space-3); }

/* Barre de navigation */
.nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap;
  padding: 14px var(--space-5); background: rgba(246, 244, 239, .88); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); }
.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-brand img { height: 44px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; padding: 5px; border-radius: var(--pill); background: var(--surface); box-shadow: var(--shadow); font-size: 14px; font-weight: 700; }
.nav-links a { padding: 8px 14px; border-radius: var(--pill); color: var(--ink); }
.nav-links a:hover { background: var(--bg); color: var(--ink); }
.nav-links a.is-active { background: var(--ink); color: #fff; }
.nav-user { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: var(--pill); background: var(--yellow); font-weight: 800; }
.nav-user::before { content: attr(data-initial); display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--yellow); font-size: 13px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: var(--space-5) var(--space-5) var(--space-7); }
.wrap-wide { max-width: none; }

/* Boutons pilules */
.btn { display: inline-flex; align-items: center; justify-content: flex-start; gap: var(--space-2); min-height: 46px; padding: 10px 20px;
  border: 2px solid transparent; border-radius: var(--pill); background: transparent; color: var(--ink);
  font: 800 15px/1.2 var(--font); text-align: left; cursor: pointer; text-decoration: none; transition: transform .12s, background .15s, box-shadow .15s, color .15s; }
.btn:active { transform: scale(.98); }
.btn .arrow { margin-left: auto; padding-left: var(--space-3); }
.btn-primary { background: var(--tomato); color: #fff; box-shadow: 0 10px 24px rgba(240, 83, 58, .32); }
.btn-primary:hover { background: var(--tomato-600); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #3a3632; color: #fff; }
.btn-sage { background: var(--sage); color: #fff; }
.btn-sage:hover { background: var(--sage-700); color: #fff; }
.btn-secondary { background: var(--surface); border-color: var(--ink); color: var(--ink); }
.btn-secondary:hover { background: var(--yellow-50); color: var(--ink); }
.btn-ghost:hover { background: rgba(29, 27, 25, .06); color: var(--ink); }
.btn-ghost.is-danger { color: var(--tomato-700); }
.btn-block { width: 100%; }
.btn-lg { min-height: 58px; padding: 14px 24px; font-size: 17px; }
.btn-sm { min-height: 36px; padding: 6px 12px; font-size: 13px; }
.btn:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; transform: none; }

.tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--pill); font-size: 12px; font-weight: 700; background: var(--bg); color: var(--ink); white-space: nowrap; }
.tag-accent { background: var(--sage-50); color: var(--sage-700); }
.tag-hot { background: var(--tomato-100); color: var(--tomato-700); }
.tag-cold { background: var(--cold-50); color: var(--cold); }
.tag-live { background: var(--sage-50); color: var(--sage-700); }
.tag-live::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--sage); animation: pulse 1.4s infinite; }
.status-attente { background: var(--yellow-100); color: #6b4e00; }
.status-preparation { background: var(--tomato-100); color: var(--tomato-700); }
.status-prete { background: var(--sage-100); color: var(--sage-700); }
.status-retiree { background: var(--bg); color: var(--muted); }
.status-annulee { background: transparent; color: var(--muted); text-decoration: line-through; }

.card { background: var(--surface); border-radius: var(--r-lg); padding: var(--space-5); box-shadow: var(--shadow); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--space-4); }
.field label { font-size: 13px; font-weight: 700; }
.field-error { margin: 0; color: var(--tomato-700); font-weight: 700; font-size: 14px; }
.input { width: 100%; min-height: 48px; padding: 10px 16px; border: 2px solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); font: 600 16px/1.2 var(--font); transition: border-color .15s, box-shadow .15s; }
.input:focus { outline: none; border-color: var(--yellow); box-shadow: 0 0 0 4px var(--yellow-100); }
.input-lg { min-height: 62px; font-size: 22px; font-weight: 700; border-radius: var(--r-md); }
.input-xs { width: 84px; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }

.flash { padding: 14px 18px; border-radius: var(--r-md); background: var(--sage-50); color: var(--sage-700); font-weight: 700; margin-bottom: var(--space-5); }
.flash-error { background: var(--tomato-50); color: var(--tomato-700); }

.table-wrap { overflow-x: auto; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 6px 12px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; font-weight: 700; color: var(--muted); padding: 12px 8px; border-bottom: 2px solid var(--line); white-space: nowrap; }
.table td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .input { min-height: 40px; padding: 6px 10px; font-size: 14px; }
.table tr.is-off td { color: var(--muted); opacity: .75; }
.actions { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.actions form { margin: 0; }

.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-4); flex-wrap: wrap; margin-bottom: var(--space-5); }
.page-head h1 { margin: 0; }
.page-head > p { margin: 0; max-width: 420px; }

.tabs { display: inline-flex; gap: 4px; padding: 5px; margin-bottom: var(--space-5); border-radius: var(--pill); background: var(--surface); box-shadow: var(--shadow); }
.tabs a { padding: 8px 18px; border-radius: var(--pill); font-weight: 700; color: var(--ink); }
.tabs a:hover { background: var(--bg); }
.tabs a.is-active { background: var(--ink); color: #fff; }

.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: var(--space-3); align-items: end; }
.form-row .field { margin-bottom: 0; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: var(--space-3); }
.stat { padding: var(--space-4) var(--space-5); background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.stat:nth-child(4) { background: var(--sage); color: #fff; }
.stat:nth-child(4) .muted { color: rgba(255, 255, 255, .85); }
.stat strong { display: block; font-size: 34px; font-weight: 800; line-height: 1.05; margin: var(--space-2) 0 2px; letter-spacing: -0.03em; }
.stat > span { display: block; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.bar { position: relative; display: flex; align-items: center; height: 26px; border-radius: var(--pill); background: var(--bg); overflow: hidden; }
.bar span { position: absolute; inset: 0 auto 0 0; border-radius: var(--pill); background: var(--yellow); }
.bar em { position: relative; padding-left: 10px; font-style: normal; font-weight: 800; }
.dish-summary strong { display: block; font-size: 17px; font-weight: 800; line-height: 1.2; }

/* Connexion par prénom */
.login { max-width: 640px; }
.who-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--space-3); margin-bottom: var(--space-5); }
.who { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4); padding: var(--space-5) var(--space-4); background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); color: var(--ink); transition: transform .15s, box-shadow .15s; }
.who:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: var(--ink); }
.who-initial { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 18px; background: var(--yellow); font-size: 26px; font-weight: 800; }
.who:nth-child(3n+2) .who-initial { background: var(--tomato); color: #fff; }
.who:nth-child(3n+3) .who-initial { background: var(--sage); color: #fff; }
.who-name { font-size: 20px; font-weight: 800; }

/* Accueil client */
.hero { max-width: 560px; }
.lead { font-size: 18px; color: var(--muted); margin: 0 0 var(--space-6); }

/* Composeur */
.menu-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: var(--space-6); align-items: start; }
.step { margin-bottom: var(--space-5); }
.step-head { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-3); }
.step-head h2 { margin: 0; }
.step-n { display: flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; padding: 0 8px; border-radius: var(--pill); background: var(--ink); color: var(--yellow); font-size: 13px; font-weight: 800; }
.step-hint { margin-left: auto; padding: 4px 10px; border-radius: var(--pill); background: var(--surface); font-size: 12px; font-weight: 700; color: var(--muted); }
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.choice { position: relative; display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-3); min-height: 72px;
  padding: 14px 16px; background: var(--surface); border: 2px solid transparent; border-radius: var(--r-md); cursor: pointer; user-select: none; transition: transform .12s, background .15s, border-color .15s; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice::after { content: ''; flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; border: 2px solid var(--line); }
.choice:hover { border-color: var(--yellow-300); }
.choice:active { transform: scale(.98); }
.choice:has(input:checked) { background: var(--yellow); border-color: var(--yellow); }
.choice:has(input:checked)::after { border-color: var(--ink); background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffd25a' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/14px no-repeat; }
.choice:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 2px; }
.choice-name { display: block; font-weight: 800; }
.choice-desc { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.choice:has(input:checked) .choice-desc { color: #5a4300; }
.qty-row { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.qty-row .input { flex: 1; min-width: 220px; }
.qty { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: var(--pill); background: var(--surface); }
.qty button { width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--bg); font: 800 20px var(--font); cursor: pointer; color: var(--ink); }
.qty button:hover { background: var(--yellow); }
.qty output { min-width: 36px; text-align: center; font-weight: 800; font-size: 18px; }
.composer-foot { position: sticky; bottom: 12px; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: var(--space-4);
  padding: 12px 12px 12px 22px; border-radius: var(--pill); background: var(--ink); color: #fff; box-shadow: var(--shadow-lg); }
.composer-foot .muted { color: rgba(255, 255, 255, .7); }
.composer-foot .btn-primary { box-shadow: none; }

.cart { position: sticky; top: 90px; border-radius: var(--r-xl); }
.cart-line { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-3); padding: var(--space-3) 0; border-bottom: 1px solid var(--line); }
.cart-line-title { font-weight: 800; }
.cart-line-sub { font-size: 13px; color: var(--muted); }
.cart-remove { flex: none; padding: 4px 10px; border: 0; border-radius: var(--pill); background: var(--tomato-50); color: var(--tomato-700); font: 700 12px var(--font); cursor: pointer; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; margin: var(--space-3) 0 var(--space-4); font-weight: 800; font-size: 18px; }
.cart-bar { display: none; }

@media (max-width: 880px) {
  .menu-layout { grid-template-columns: 1fr; }
  .cart { position: static; }
  .choices { grid-template-columns: 1fr 1fr; }
  .cart-bar:not([hidden]) { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 30; display: flex; align-items: center; gap: var(--space-3);
    padding: 16px 22px; border-radius: var(--pill); background: var(--tomato); color: #fff; font-weight: 800; box-shadow: 0 10px 24px rgba(240, 83, 58, .35); }
  .cart-bar .arrow { margin-left: auto; }
  body.has-cart-bar { padding-bottom: 84px; }
  body.has-cart-bar .composer-foot { bottom: 84px; }
}

/* Suivi client */
.track { max-width: 560px; }
.track-number { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: var(--space-5); margin-bottom: var(--space-4); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow); font-weight: 700; }
.track-number::before { content: ''; position: absolute; right: -40px; top: -40px; width: 170px; height: 170px; border-radius: 50%; background: var(--yellow-50); }
.track-number > * { position: relative; }
.track-number strong { font-size: clamp(96px, 26vw, 140px); font-weight: 800; line-height: .9; letter-spacing: -0.06em; }
.track.is-ready .track-number { background: var(--yellow); animation: pop .5s ease-out; }
.track.is-ready .track-number::before { background: var(--yellow-300); }
.stepper { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 0 0 var(--space-4); padding: 0; }
.stepper li { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: var(--r-md); background: var(--surface); color: var(--muted); font-size: 13px; font-weight: 700; line-height: 1.2; }
.stepper .n { display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--bg); color: var(--muted); font-size: 12px; font-weight: 800; }
.stepper li.is-done { background: var(--sage-50); color: var(--sage-700); }
.stepper li.is-done .n { background: var(--sage); color: #fff; font-size: 0; }
.stepper li.is-done .n::after { content: '✓'; font-size: 13px; }
.stepper li.is-current { background: var(--ink); color: #fff; }
.stepper li.is-current .n { background: var(--yellow); color: var(--ink); }
.track.is-ready .stepper li.is-current { background: var(--sage); }
.banner { margin: 0 0 var(--space-4); padding: var(--space-4) var(--space-5); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); font-size: 18px; font-weight: 800; }
.track.is-ready .banner { background: var(--ink); color: #fff; }
.banner:empty { display: none; }

/* Ouverture / fermeture des commandes */
.closed-banner { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 14px 20px; margin-bottom: var(--space-4); border-radius: var(--r, 16px); background: var(--tomato-100); color: var(--tomato-700); }
.closed-banner[hidden] { display: none; }
.closed-card h2 { margin: 0 0 var(--space-2); }

/* Cuisine */
.kitchen-head { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); flex-wrap: wrap; margin-bottom: var(--space-4); }
.kitchen-head h1 { margin: 0; font-size: clamp(30px, 4vw, 42px); }
.kitchen-head .kicker { margin-bottom: 6px; }
.kstats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--space-4); }
.kstat { display: inline-flex; align-items: baseline; gap: 8px; padding: 10px 18px; border-radius: var(--pill); background: var(--surface); box-shadow: var(--shadow); }
.kstat span { font-size: 13px; font-weight: 700; color: var(--muted); }
.kstat strong { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.kstat:last-child { background: var(--sage); }
.kstat:last-child span, .kstat:last-child strong { color: #fff; }
.kanban { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); align-items: start; }
.col { display: flex; flex-direction: column; min-width: 0; padding: 14px; border-radius: 28px; background: var(--surface); box-shadow: var(--shadow); }
.col-head { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); padding: 2px 6px 12px; }
.col-head h2 { margin: 0; font-size: 17px; }
.col[data-col="attente"] .col-head h2::before { content: '⏳ '; }
.col[data-col="preparation"] .col-head h2::before { content: '🍳 '; }
.col[data-col="prete"] .col-head h2::before { content: '✅ '; }
.col-tools { display: inline-flex; align-items: center; gap: 6px; }
.count { min-width: 34px; padding: 2px 12px; border-radius: var(--pill); text-align: center; font-size: 15px; font-weight: 800; background: var(--yellow-100); }
.col[data-col="preparation"] .count { background: var(--tomato-100); }
.col[data-col="prete"] .count { background: var(--sage-100); }
.col-body { display: flex; flex-direction: column; gap: 10px; }
.col-empty { margin: 0; padding: 20px 12px; border-radius: 20px; background: var(--bg); color: var(--muted); font-size: 14px; text-align: center; }
.ticket { border-radius: 22px; background: var(--yellow-50); border: 2px solid transparent; transition: border-color .2s; }
.col[data-col="preparation"] .ticket { background: var(--tomato-50); }
.col[data-col="prete"] .ticket { background: var(--sage-50); }
.ticket.is-mine { border-color: var(--tomato); }
.ticket.is-late { border-color: var(--tomato); box-shadow: 0 0 0 4px var(--tomato-100); }
.ticket.is-new { animation: pop .5s ease-out, glow 1.2s 2; }
.ticket header { display: flex; align-items: center; gap: var(--space-3); padding: 14px 14px 0; }
.ticket-num { display: flex; align-items: center; justify-content: center; flex: none; width: 46px; height: 46px; border-radius: 16px; background: var(--yellow); font-size: 20px; font-weight: 800; letter-spacing: -0.03em; }
.col[data-col="preparation"] .ticket-num { background: var(--tomato); color: #fff; }
.col[data-col="prete"] .ticket-num { background: var(--sage); color: #fff; }
.ticket-name { font-size: 16px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticket-time { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; text-align: right; }
.ticket-time strong { display: block; font-size: 16px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.ticket.is-late .ticket-time strong { color: var(--tomato-700); }
.ticket-items { list-style: none; margin: 0; padding: 10px 14px 4px; }
.ticket-items li { display: flex; gap: var(--space-2); padding: 4px 0; }
.ticket-qty { min-width: 26px; font-weight: 800; }
.ticket-dish { font-weight: 700; }
.ticket-tops { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.ticket-note { display: inline-block; margin-top: 6px; padding: 3px 10px; border-radius: 8px; background: var(--surface); font-size: 13px; font-weight: 700; color: var(--tomato-700); }
.ticket footer { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); padding: 10px 14px 14px; }
.ticket footer .btn:first-of-type { flex: 1; }
.ticket-cook { width: 100%; font-size: 12px; font-weight: 700; color: var(--muted); }

@media (max-width: 960px) {
  .kanban { grid-template-columns: 1fr; }
}

/* Écran d'affichage (TV) */
.area-screen { overflow: hidden; }
.screen { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 16px; height: 100vh; height: 100dvh; padding: 16px; }
.screen-head { display: flex; align-items: center; gap: 16px; }
.screen-brand { display: flex; align-items: center; gap: 12px; padding: 12px 24px; border-radius: var(--pill); background: var(--surface); box-shadow: var(--shadow); }
.screen-brand img { height: 52px; width: auto; }
.screen-stats { flex: 1; display: flex; gap: 10px; }
.sstat { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 10px 22px; border-radius: 26px; background: var(--surface); box-shadow: var(--shadow); }
.sstat span { font-size: clamp(11px, 1vw, 14px); font-weight: 700; color: var(--muted); }
.sstat strong { font-size: clamp(22px, 2.6vw, 40px); font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.sstat.is-key { background: var(--sage); }
.sstat.is-key span, .sstat.is-key strong { color: #fff; }
.screen-clock { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; padding: 0 8px; }
.screen-clock strong { font-size: clamp(28px, 3.2vw, 48px); font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.screen-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; min-height: 0; }
.scol { display: flex; flex-direction: column; min-height: 0; padding: 16px; border-radius: 32px; background: var(--surface); box-shadow: var(--shadow); }
.scol > header { display: flex; justify-content: space-between; align-items: center; padding: 4px 8px 14px; }
.scol > header h2 { margin: 0; font-size: clamp(20px, 1.9vw, 30px); }
.scol[data-col="attente"] > header h2::before { content: '⏳ '; }
.scol[data-col="preparation"] > header h2::before { content: '🍳 '; }
.scol[data-col="prete"] > header h2::before { content: '✅ '; }
.scol > header span { min-width: 1.8em; padding: 2px 14px; border-radius: var(--pill); text-align: center; font-size: clamp(20px, 2vw, 32px); font-weight: 800; background: var(--yellow-100); }
.scol[data-col="preparation"] > header span { background: var(--tomato-100); }
.scol[data-col="prete"] > header span { background: var(--sage-100); }
.scol-body { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 12px; }
.scol-empty { margin: 0; padding: 24px; border-radius: 24px; background: var(--bg); font-size: 18px; color: var(--muted); text-align: center; }
.scard { border-radius: 24px; background: var(--yellow-50); border: 3px solid transparent; }
.scol[data-col="preparation"] .scard { background: var(--tomato-50); }
.scol[data-col="prete"] .scard { background: var(--sage-50); }
.scard.is-late { border-color: var(--tomato); }
.scard-top { display: flex; align-items: center; gap: 16px; padding: 14px 18px; }
.scard-num { display: flex; align-items: center; justify-content: center; flex: none; width: clamp(56px, 4.6vw, 80px); height: clamp(56px, 4.6vw, 80px); border-radius: 22px; background: var(--yellow);
  font-size: clamp(28px, 2.6vw, 44px); font-weight: 800; letter-spacing: -0.04em; }
.scol[data-col="preparation"] .scard-num { background: var(--tomato); color: #fff; }
.scol[data-col="prete"] .scard-num { background: var(--sage); color: #fff; }
.scard-who { display: flex; flex-direction: column; min-width: 0; }
.scard-who strong { font-size: clamp(18px, 1.7vw, 28px); font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scard-who span { font-size: 14px; font-weight: 600; color: var(--muted); }
.scard-time { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.scard-time span { font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.scard-time strong { font-size: clamp(22px, 2vw, 34px); font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.05; }
.scard.is-late .scard-time strong { color: var(--tomato-700); }
.scard-items { list-style: none; margin: 0; padding: 0 18px 14px; font-size: 15px; font-weight: 600; }
.scard-items li { padding: 2px 0; }
.scard-items small { display: block; color: var(--muted); font-size: 13px; }
.scol-body.is-compact .scard-items { display: none; }
.scol-body.is-dense { display: grid; grid-template-columns: 1fr 1fr; align-content: start; gap: 8px; }
.scol-body.is-dense .scard-top { padding: 8px 10px; gap: 8px; }
.scol-body.is-dense .scard-num { width: 44px; height: 44px; font-size: 22px; border-radius: 14px; }
.scol-body.is-dense .scard-who span, .scol-body.is-dense .scard-time span { display: none; }
.scol-body.is-dense .scard-time strong { font-size: 18px; }

/* QR à imprimer */
.qr-sheet { max-width: 520px; padding: var(--space-6); border-radius: var(--r-xl); background: var(--yellow); }
.qr-logo { height: 120px; width: auto; margin-bottom: var(--space-4); }
.qr-title { font-size: 46px; }
.qr-box { display: inline-block; padding: var(--space-5); border-radius: var(--r-lg); background: #fff; margin: var(--space-3) 0; }
.qr-box img, .qr-box canvas { display: block; }
.qr-sheet .muted { color: #5a4300; }

.toast { position: fixed; left: 50%; bottom: 100px; z-index: 100; transform: translateX(-50%); max-width: calc(100% - 32px);
  padding: 14px 20px; border-radius: var(--pill); background: var(--ink); color: #fff; font-weight: 700; box-shadow: var(--shadow-lg); }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@keyframes pop { 0% { transform: scale(.96); } 60% { transform: scale(1.02); } 100% { transform: scale(1); } }
@keyframes glow { 50% { box-shadow: 0 0 0 6px var(--yellow); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

@media print {
  .nav, .no-print, .toast { display: none !important; }
  body { background: #fff; }
  .wrap { padding: 0; }
}
