/* =====================================================================
   GUSTO KREYOL — styles de la version C (« les couleurs des Box »)
   Toutes les valeurs viennent de tokens.css. Mobile d'abord (375 px).
   Élément signature : la pile des cinq Box, une bande de couleur chacune.
   Le reste de l'interface est crème et encre, sans effet.
   ===================================================================== */

/* =========================== Base =========================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--space-24); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  font-optical-sizing: auto;
  line-height: var(--lh-body);
  background: var(--bg);
  color: var(--text);
}
h1, h2, h3, h4 {
  margin: 0; color: inherit;
  font-weight: var(--fw-title); font-stretch: var(--wdth-title);
  letter-spacing: var(--tr-title); line-height: var(--lh-title);
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); }
p { margin: 0 0 var(--space-4); }
a { color: var(--link); text-underline-offset: var(--underline-offset); text-decoration-thickness: var(--bw); }
a:hover { text-decoration-thickness: var(--bw-strong); }
img, svg { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
strong, b { font-weight: var(--fw-bold); }
.num, .price, .tot, time { font-variant-numeric: tabular-nums; }

:focus-visible { outline: var(--bw-strong) solid var(--focus); outline-offset: var(--bw-strong); }
.on-dark :focus-visible, .kitchen :focus-visible { outline-color: var(--focus-on-dark); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: var(--space-3); top: calc(-1 * var(--space-24)); z-index: 100;
  background: var(--primary); color: var(--on-primary); font-weight: var(--fw-bold);
  padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); text-decoration: none;
}
.skip:focus { top: var(--space-3); }

.wrap { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: calc(640px + 2 * var(--gutter)); }
.wrap-full { max-width: none; }
@media (min-width: 640px) { :root { --gutter: var(--space-6); } }
.after { margin-top: var(--space-4); margin-bottom: 0; }
.center { text-align: center; }

/* ---------- La couleur d'une Box : fond et texte lisible dessus ---------- */
[data-box="1"] { --box-bg: var(--box-1-bg); --box-fg: var(--box-1-fg); }
[data-box="2"] { --box-bg: var(--box-2-bg); --box-fg: var(--box-2-fg); }
[data-box="3"] { --box-bg: var(--box-3-bg); --box-fg: var(--box-3-fg); }
[data-box="4"] { --box-bg: var(--box-4-bg); --box-fg: var(--box-4-fg); }
[data-box="5"] { --box-bg: var(--box-5-bg); --box-fg: var(--box-5-fg); }
/* Sur un fond de Box, le focus prend la couleur du texte de cette Box */
.band :focus-visible, .box-hero :focus-visible, .on-box :focus-visible,
.order-card :focus-visible, .tk-head :focus-visible { outline-color: var(--box-fg); }

/* =========================== Boutons ===========================
   Principal : encre pleine. Secondaire : contour. Tertiaire : lien.
   Jamais une couleur de Box sur un bouton. */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: var(--control); padding: var(--space-3) var(--space-6);
  border: var(--bw-strong) solid var(--primary); border-radius: var(--radius-md);
  background: var(--primary); color: var(--on-primary);
  font-weight: var(--fw-bold); font-size: var(--fs-body); line-height: var(--lh-ui);
  text-decoration: none; text-align: center;
  transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.btn:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--primary); }
.btn-ghost:hover { background: var(--surface-sunken); border-color: var(--primary); }
.btn-sun { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.btn-sun:hover { background: var(--cream); border-color: var(--cream); }
.btn-block { width: 100%; }
.btn-sm { min-height: var(--tap); padding: var(--space-2) var(--space-4); font-size: var(--fs-sm); }
.btn[disabled], .btn[aria-disabled="true"] {
  background: var(--surface-sunken); color: var(--text-muted); border-color: var(--surface-sunken);
  cursor: not-allowed; transform: none;
}
.btn.is-loading { color: transparent; pointer-events: none; background: var(--primary); border-color: var(--primary); }
.btn.is-loading::after {
  content: ""; position: absolute; width: 1.25em; height: 1.25em; border-radius: var(--radius-full);
  border: var(--bw-strong) solid var(--on-primary); border-right-color: transparent;
  animation: spin 700ms linear infinite;
}
@keyframes spin { to { transform: rotate(1turn); } }
.link-btn {
  background: none; border: 0; padding: var(--space-2) var(--space-1); min-height: var(--tap);
  font-weight: var(--fw-bold); color: var(--link); text-decoration: underline; text-underline-offset: var(--underline-offset);
}
.link-btn:hover { text-decoration-thickness: var(--bw-strong); }

/* =========================== En-tête =========================== */
.site-head { position: sticky; top: 0; z-index: 30; background: var(--bg); border-bottom: var(--bw) solid var(--border); }
.site-head .wrap { display: flex; align-items: center; gap: var(--space-3); min-height: var(--space-16); }
.brand {
  font-weight: var(--fw-title); font-stretch: var(--wdth-title); letter-spacing: var(--tr-title);
  font-size: var(--fs-h3); line-height: 1; color: var(--text); text-decoration: none;
  margin-right: auto; padding: var(--space-2) 0; white-space: nowrap;
}
/* Le menu n'apparaît que lorsqu'il tient sur une ligne ; en dessous, la page se parcourt au pouce */
.site-nav { display: none; gap: var(--space-1); }
@media (min-width: 1024px) { .site-nav { display: flex; } }
.site-nav a {
  display: inline-flex; align-items: center; min-height: var(--tap); padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md); color: var(--text); font-weight: var(--fw-semibold); text-decoration: none; white-space: nowrap;
  transition: background-color var(--dur-fast) var(--ease-out);
}
.site-nav a:hover { background: var(--surface-sunken); }
.cart-btn {
  display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--tap);
  padding: var(--space-2) var(--space-4); border: var(--bw-strong) solid var(--primary); border-radius: var(--radius-md);
  background: transparent; color: var(--text); font-weight: var(--fw-bold); text-decoration: none;
  transition: background-color var(--dur-fast) var(--ease-out);
}
.cart-btn:hover { background: var(--surface-sunken); }
.cart-btn .count {
  min-width: var(--space-6); padding: 0 var(--space-2); border-radius: var(--radius-full);
  background: var(--sun); color: var(--ink); text-align: center; font-size: var(--fs-sm);
}

/* En-tête des pages du parcours */
.page-head { background: var(--bg); border-bottom: var(--bw) solid var(--border); }
.page-head .wrap { display: flex; align-items: center; gap: var(--space-2); min-height: var(--space-16); }
.page-head .cart-btn { margin-left: auto; }
.back {
  display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--tap);
  padding: var(--space-2) var(--space-3) var(--space-2) 0; font-weight: var(--fw-bold); color: var(--text); text-decoration: none;
}
.back:hover { text-decoration: underline; }
.page-head .step { margin-left: auto; color: var(--text-muted); font-size: var(--fs-sm); font-weight: var(--fw-semibold); }
/* Sur la page d'une Box, l'en-tête prend sa couleur */
.page-head.on-box { background: var(--box-bg); color: var(--box-fg); border-bottom: 0; }
.on-box .back { color: inherit; }
.on-box .cart-btn { color: inherit; border-color: currentColor; }
.on-box .cart-btn:hover { background: transparent; text-decoration: underline; }
.on-box .cart-btn .count { background: var(--box-fg); color: var(--box-bg); }

/* =========================== Offre de la semaine =========================== */
.promo { background: var(--ink); color: var(--cream); padding: var(--space-3) 0; }
.promo .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
.promo-txt { margin: 0; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--space-3); line-height: var(--lh-ui); }
.promo-k { flex-basis: 100%; }
.promo .btn { flex: none; }
/* Téléphone : libellé court à l'écran, libellé complet pour les lecteurs d'écran */
.promo-more { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (min-width: 768px) {
  .promo-k { flex-basis: auto; }
  .promo-more { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
}
.promo-k { color: var(--sun); font-weight: var(--fw-bold); }
.promo-txt s { color: var(--line); }
.promo :focus-visible { outline-color: var(--focus-on-dark); }

/* =========================== Accueil : introduction =========================== */
.intro { padding: var(--space-6) 0; }
.intro .wrap { display: grid; gap: var(--space-4); }
@media (min-width: 1024px) {
  .intro { padding: var(--space-16) 0 var(--space-12); }
  .intro .wrap { grid-template-columns: 1.4fr 1fr; gap: var(--space-16); align-items: end; }
}
.intro h1 { font-size: var(--fs-hero); max-width: 11ch; }
.lead { max-width: var(--measure); margin: var(--space-3) 0 0; }
@media (min-width: 640px) { .lead { font-size: var(--fs-lg); margin-top: var(--space-4); } }
/* Les faits utiles avant de commander : horaires, premier retrait, délai */
.today { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--space-6); border-top: var(--bw-strong) solid var(--ink); }
.today > div { padding: var(--space-2) 0; border-bottom: var(--bw) solid var(--border); }
@media (min-width: 1024px) { .today > div { padding: var(--space-3) 0; } }
.today dt { font-size: var(--fs-sm); color: var(--text-muted); }
.today dd { margin: 0; font-weight: var(--fw-bold); font-size: var(--fs-lg); line-height: var(--lh-ui); }
.today .is-off dd { color: var(--danger); }

/* =========================== La pile des Box ===========================
   Mobile : cinq bandes pleine largeur, empilées. Ordinateur : cinq
   colonnes côte à côte. Toute la bande est cliquable. */
.boxes-head { padding-bottom: var(--space-3); }
.boxes-note { color: var(--text-muted); max-width: var(--measure); margin: var(--space-4) 0 0; }
.sub { color: var(--text-muted); max-width: var(--measure); margin: var(--space-2) 0 0; }
.sub-tight { margin: 0 0 var(--space-4); }
.stack { list-style: none; margin: 0; padding: 0; }
.band {
  position: relative; display: grid; grid-template-columns: var(--space-16) 1fr;
  grid-template-areas: "photo name" "photo plat" "foot foot";
  gap: 0 var(--space-4); align-items: start;
  padding: var(--space-4) var(--gutter);
  background: var(--box-bg); color: var(--box-fg);
}
.band .photo-slot { grid-area: photo; }
.band h3 { grid-area: name; font-size: var(--fs-band); line-height: var(--lh-title); }
.band .plat { grid-area: plat; margin: var(--space-1) 0 0; font-weight: var(--fw-semibold); }
.band-foot { grid-area: foot; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); margin-top: var(--space-3); }
.band .price { font-size: var(--fs-h3); font-weight: var(--fw-title); font-stretch: var(--wdth-title); letter-spacing: var(--tr-title); line-height: 1; margin: 0; }
.band-go {
  display: inline-flex; align-items: center; justify-content: center; min-height: var(--tap);
  padding: var(--space-2) var(--space-6); border: var(--bw-strong) solid var(--box-fg); border-radius: var(--radius-full);
  background: var(--box-fg); color: var(--box-bg); font-weight: var(--fw-bold); text-decoration: none;
}
.band-go::after { content: ""; position: absolute; inset: 0; }  /* étend le lien à toute la bande */
.band-go:hover { text-decoration: underline; }
.band-go[aria-disabled="true"] { background: transparent; color: var(--box-fg); border-style: dashed; }
.band-go[aria-disabled="true"]::after { display: none; }
@media (min-width: 640px) {
  .band { grid-template-columns: var(--space-24) 1fr; padding-top: var(--space-6); padding-bottom: var(--space-6); }
}
@media (min-width: 1024px) {
  .stack { display: grid; grid-template-columns: repeat(5, 1fr); }
  .band { display: flex; flex-direction: column; gap: 0; min-height: 34rem; padding: var(--space-6); }
  .band .photo-slot { width: 100%; margin-bottom: var(--space-6); }
  .band-foot { flex-direction: column; align-items: flex-start; gap: var(--space-4); margin-top: auto; padding-top: var(--space-8); }
  .band .price { font-size: var(--fs-h1); }
}
/* Survol (souris, grand écran) : la Box sort du rang */
@media (hover: hover) and (min-width: 1024px) {
  .band { transition: transform var(--dur-base) var(--ease-out); }
  .band:hover { transform: translateY(calc(-1 * var(--space-3))); }
}
/* Le seul mouvement de la page : les Box s'empilent au chargement */
.band { animation: band-in var(--dur-layout) var(--ease-out) backwards; }
.band:nth-child(2) { animation-delay: 70ms; }
.band:nth-child(3) { animation-delay: 140ms; }
.band:nth-child(4) { animation-delay: 210ms; }
.band:nth-child(5) { animation-delay: 280ms; }
@keyframes band-in { from { opacity: 0; transform: translateY(var(--space-8)); } }

/* Emplacement photo : jamais de fausse photo */
.photo-slot {
  display: grid; place-items: center; text-align: center; aspect-ratio: 1;
  border: var(--bw-strong) dashed currentColor; border-radius: var(--radius-md);
  font-size: var(--fs-sm); font-weight: var(--fw-semibold); line-height: var(--lh-ui); padding: var(--space-1);
}
.photo-slot.wide { aspect-ratio: 16 / 9; border-radius: var(--radius-lg); }
.photo-inline { aspect-ratio: auto; min-height: var(--control); color: var(--text-muted); border-color: var(--border-strong); }

/* =========================== Sections =========================== */
section.block { padding: var(--space-12) 0; }
@media (min-width: 1024px) { section.block { padding: var(--space-24) 0; } }
section.block .sub { margin-bottom: var(--space-6); }
.tinted { background: var(--surface-sunken); }

/* ---------- À la carte ---------- */
.tabs { display: flex; gap: var(--space-2); overflow-x: auto; padding: var(--space-1) var(--space-1) var(--space-2); margin: 0 calc(-1 * var(--space-1)) var(--space-4); scrollbar-width: thin; }
.tab {
  flex: none; min-height: var(--tap); padding: var(--space-2) var(--space-4);
  border: var(--bw-strong) solid var(--border-strong); border-radius: var(--radius-full);
  background: var(--surface); color: var(--text); font-weight: var(--fw-semibold); white-space: nowrap;
  transition: background-color var(--dur-fast) var(--ease-out);
}
.tab:hover { background: var(--surface-sunken); }
.tab[aria-selected="true"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.tabpanel { max-width: 720px; }
.tabpanel[hidden] { display: none; }
.rows { list-style: none; margin: 0; padding: 0; border-top: var(--bw-strong) solid var(--ink); }
.row {
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-3);
  padding: var(--space-2) 0; border-bottom: var(--bw) solid var(--border);
}
.row .name { font-weight: var(--fw-semibold); }
.row .meta { display: block; color: var(--text-muted); font-size: var(--fs-sm); font-weight: var(--fw-regular); }
.row .right { display: flex; align-items: center; gap: var(--space-3); flex: none; }
.plus {
  width: var(--tap); height: var(--tap); border-radius: var(--radius-full); border: 0;
  background: var(--primary); color: var(--on-primary); font-size: var(--fs-h3); font-weight: var(--fw-bold); line-height: 1;
  transition: background-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.plus:hover { background: var(--primary-hover); }
.plus:active { transform: scale(.94); }
.plus[disabled] { background: var(--surface-sunken); color: var(--text-muted); cursor: not-allowed; transform: none; }
.out { color: var(--danger); font-weight: var(--fw-bold); font-size: var(--fs-sm); }
.is-out .name { color: var(--text-muted); }
.legal { font-size: var(--fs-sm); color: var(--text-muted); margin: var(--space-4) 0 0; max-width: var(--measure); }
.todo { color: var(--danger); font-weight: var(--fw-bold); }

/* ---------- Passeport Kréyol : la carte à tampons ---------- */
.passport { display: grid; gap: var(--space-8); }
@media (min-width: 768px) { .passport { grid-template-columns: 1fr 1fr; gap: var(--space-12); align-items: center; } }
.passport-single { grid-template-columns: 1fr !important; }
.pts { background: var(--ocean); color: var(--cream); border-radius: var(--radius-lg); padding: var(--space-6); }
.pts-line { margin: 0 0 var(--space-4); font-weight: var(--fw-semibold); }
.pts .big {
  display: block; font-size: var(--fs-h1); font-weight: var(--fw-title); font-stretch: var(--wdth-title);
  letter-spacing: var(--tr-title); line-height: 1; color: var(--sun);
}
.pts-lg .big { font-size: var(--fs-hero); }
.bar { height: var(--space-3); border-radius: var(--radius-full); background: var(--track-on-dark); margin: 0 0 var(--space-3); overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--sun); border-radius: var(--radius-full); }
.pts .next { margin: 0; font-weight: var(--fw-semibold); }
.stamps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.stamp { display: grid; justify-items: center; align-content: start; gap: var(--space-2); text-align: center; }
.stamp-mark {
  display: grid; place-content: center; width: 5.5rem; aspect-ratio: 1; margin: var(--space-2);
  border: var(--bw-strong) dashed var(--border-strong); border-radius: var(--radius-full);
  font-weight: var(--fw-title); font-stretch: var(--wdth-title); line-height: 1;
  transform: rotate(-7deg);
}
.stamp:nth-child(2) .stamp-mark { transform: rotate(5deg); }
.stamp:nth-child(3) .stamp-mark { transform: rotate(-3deg); }
.stamp-mark .num { display: block; font-size: var(--fs-h2); letter-spacing: var(--tr-title); }
/* Tampon posé : plein, double cercle, comme un coup de tampon encreur */
.stamp.ok .stamp-mark {
  background: var(--sun); border-style: solid; border-color: var(--ink);
  box-shadow: 0 0 0 var(--space-1) var(--sun), 0 0 0 calc(var(--space-1) + var(--bw-strong)) var(--ink);
}
.stamp-what { font-weight: var(--fw-semibold); line-height: var(--lh-ui); }
.stamp .state { font-size: var(--fs-sm); color: var(--text-muted); }
.stamp.ok .state { color: var(--text); font-weight: var(--fw-bold); }
.stamps + .live-note { margin-top: var(--space-4); }

/* =========================== Pied de page =========================== */
.site-foot { background: var(--ocean); color: var(--cream); padding: var(--space-12) 0 var(--space-32); font-size: var(--fs-sm); }
@media (min-width: 768px) { .site-foot { padding-bottom: var(--space-12); } }
.site-foot .wrap { display: grid; gap: var(--space-6); grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.site-foot h2 { font-size: var(--fs-lg); margin: 0 0 var(--space-2); }
.site-foot p { margin: 0; }
.site-foot a { color: var(--cream); }
.site-foot .fine { grid-column: 1 / -1; border-top: var(--bw) solid var(--edge-on-dark); padding-top: var(--space-4); }
.legal-links { list-style: none; margin: 0; padding-left: 0; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); }

/* =========================== Barres d'action =========================== */
.cartbar {
  position: fixed; inset: auto 0 0 0; z-index: 25;
  padding: var(--space-3) var(--gutter) calc(var(--space-3) + env(safe-area-inset-bottom, 0px));
  background: var(--bg); box-shadow: var(--shadow-up);
}
.cartbar .btn { width: 100%; justify-content: space-between; }
@media (min-width: 768px) { .cartbar { display: none; } }
.is-closed .cartbar { display: none; }

.actionbar {
  position: sticky; bottom: 0; z-index: 20; background: var(--bg); box-shadow: var(--shadow-up);
  padding: var(--space-3) 0 calc(var(--space-3) + env(safe-area-inset-bottom, 0px));
}
.actionbar .wrap { display: grid; gap: var(--space-2); max-width: calc(640px + 2 * var(--gutter)); }
.actionbar .tot, .actionbar-tot { display: flex; justify-content: space-between; font-weight: var(--fw-bold); font-size: var(--fs-lg); }
.actionbar .live-note { margin: 0; }
.actionbar-span { grid-column: 1 / -1; margin: 0 calc(-1 * var(--gutter)); }

/* =========================== Tiroir et fenêtres =========================== */
dialog { border: 0; padding: 0; color: var(--text); background: var(--bg); }
dialog::backdrop { background: var(--scrim); }
.drawer {
  margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: min(440px, 100%);
  display: none; flex-direction: column; box-shadow: var(--shadow-lg);
}
.drawer[open], .modal[open] { display: flex; }
.modal { width: min(480px, calc(100% - 2 * var(--space-4))); border-radius: var(--radius-lg); flex-direction: column; max-height: 90dvh; box-shadow: var(--shadow-lg); }
.dlg-head { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-6); border-bottom: var(--bw) solid var(--border); }
.dlg-head h2 { font-size: var(--fs-h3); }
.dlg-body { padding: var(--space-2) var(--space-6) var(--space-4); overflow-y: auto; flex: 1; }
.dlg-foot { padding: var(--space-4) var(--space-6) calc(var(--space-4) + env(safe-area-inset-bottom, 0px)); border-top: var(--bw) solid var(--border); display: grid; gap: var(--space-2); }
.close {
  min-height: var(--tap); padding: var(--space-2) var(--space-4); border: 0; border-radius: var(--radius-md);
  background: var(--surface-sunken); font-weight: var(--fw-bold);
  transition: background-color var(--dur-fast) var(--ease-out);
}
.close:hover { background: var(--border); }

/* =========================== Panier =========================== */
.page-pad { padding-top: var(--space-6); padding-bottom: var(--space-6); }
/* Chaque ligne garde la couleur de sa Box sur le côté */
.cart-item { padding: var(--space-4) 0 var(--space-4) var(--space-4); border-bottom: var(--bw) solid var(--border); border-left: var(--bar) solid var(--box-bg, transparent); margin-top: var(--space-2); }
.cart-item .top { display: flex; justify-content: space-between; gap: var(--space-3); font-weight: var(--fw-bold); }
.cart-item .tag { display: none; }
.cart-item .det { color: var(--text-muted); font-size: var(--fs-sm); margin: var(--space-1) 0 var(--space-2); }
.cart-item .controls { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-top: var(--space-2); }
.qty { display: inline-flex; align-items: center; gap: var(--space-2); }
.qty button {
  width: var(--tap); height: var(--tap); border-radius: var(--radius-full); border: var(--bw-strong) solid var(--border-strong);
  background: var(--surface); font-weight: var(--fw-bold); font-size: var(--fs-lg); line-height: 1;
  transition: background-color var(--dur-fast) var(--ease-out);
}
.qty button:hover { background: var(--surface-sunken); }
.qty output { min-width: 2ch; text-align: center; font-weight: var(--fw-bold); font-variant-numeric: tabular-nums; }
.qty-label { font-weight: var(--fw-bold); margin: 0 0 var(--space-2); }
.sum { list-style: none; padding: 0; margin: 0; }
.sum li { display: flex; justify-content: space-between; padding: var(--space-1) 0; color: var(--text-muted); }
.sum li.total { color: var(--text); font-weight: var(--fw-bold); font-size: var(--fs-lg); border-top: var(--bw) solid var(--border); margin-top: var(--space-2); padding-top: var(--space-3); }
.empty { margin-top: var(--space-6); }
.add-more { margin: var(--space-4) 0 0; font-weight: var(--fw-semibold); }
.add-more + .live-note { margin-top: var(--space-3); }
.live-note { color: var(--text-muted); font-size: var(--fs-sm); margin: 0; }

/* =========================== Composer une Box =========================== */
.box-hero { background: var(--box-bg); color: var(--box-fg); padding: var(--space-2) 0 var(--space-8); }
.box-hero .wrap { display: grid; gap: var(--space-6); }
@media (min-width: 768px) { .box-hero .wrap { grid-template-columns: 1fr 1fr; align-items: end; gap: var(--space-12); } .box-hero { padding-bottom: var(--space-12); } }
.box-hero h1 { font-size: var(--fs-hero); }
.box-hero .base { margin: var(--space-2) 0 0; font-size: var(--fs-lg); font-weight: var(--fw-semibold); }
/* padding vertical seulement : les marges latérales viennent de .wrap */
.composer { display: grid; gap: var(--space-6); padding-top: var(--space-6); padding-bottom: var(--space-8); }
@media (min-width: 1024px) {
  .composer { grid-template-columns: 1.3fr 1fr; align-items: start; gap: var(--space-12); }
  .recap { position: sticky; top: var(--space-6); }
}
.steps { display: grid; gap: var(--space-6); }
fieldset.step { border: 0; margin: 0; padding: 0 0 var(--space-6); border-bottom: var(--bw) solid var(--border); }
fieldset.step legend {
  padding: 0; margin-bottom: var(--space-1);
  font-size: var(--fs-h3); font-weight: var(--fw-title); font-stretch: var(--wdth-title); letter-spacing: var(--tr-title); line-height: var(--lh-h3);
}
.step-plain { border-bottom: 0 !important; padding-bottom: 0 !important; }
.hint { color: var(--text-muted); font-size: var(--fs-sm); margin: 0 0 var(--space-3); }
.steps > .hint { margin: 0; font-size: var(--fs-body); }
.pills { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pill > span {
  display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--tap);
  padding: var(--space-2) var(--space-4); border: var(--bw-strong) solid var(--border-strong); border-radius: var(--radius-md);
  background: var(--surface); font-weight: var(--fw-semibold); cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.pill:hover > input:not(:disabled):not(:checked) + span { background: var(--surface-sunken); }
/* Choix retenu : encre pleine + coche (ne dépend pas de la couleur de la Box) */
.pill > input:checked + span { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.pill > input:checked + span::before { content: "✓"; font-weight: var(--fw-bold); }
.pill input:focus-visible + span { outline: var(--bw-strong) solid var(--focus); outline-offset: var(--bw-strong); }
.pill input:disabled + span { color: var(--text-muted); background: var(--surface-sunken); border-style: dashed; cursor: not-allowed; }
.pill .sup { color: var(--text-muted); font-weight: var(--fw-bold); }
.pill > input:checked + span .sup { color: inherit; }
.slot-full .slot-time { text-decoration: line-through; text-decoration-thickness: var(--bw-strong); }

details.allergens { margin-top: var(--space-3); }
details.allergens summary {
  display: inline-flex; align-items: center; min-height: var(--tap); cursor: pointer;
  font-weight: var(--fw-bold); color: var(--link); text-decoration: underline; text-underline-offset: var(--underline-offset);
}
details.allergens .panel { background: var(--surface-sunken); border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); font-size: var(--fs-sm); }
details.allergens .panel p { margin: 0 0 var(--space-2); }
.steps > details.allergens { margin-top: 0; }

/* Récapitulatif : l'étiquette de la Box, coiffée de sa couleur */
.recap { background: var(--surface); border: var(--bw) solid var(--border); border-top: var(--bar) solid var(--box-bg, var(--ink)); border-radius: var(--radius-lg); padding: var(--space-6); }
.recap-plain { border-top: var(--bw) solid var(--border); }
.recap h2 { font-size: var(--fs-h3); line-height: var(--lh-h3); margin-bottom: var(--space-3); }
.recap dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: var(--space-2) var(--space-4); }
.recap dt { color: var(--text-muted); }
.recap dd { margin: 0; font-weight: var(--fw-semibold); text-align: right; }
.recap .line { display: flex; justify-content: space-between; margin: var(--space-3) 0 0; padding-top: var(--space-3); border-top: var(--bw) solid var(--border); font-weight: var(--fw-bold); }

/* =========================== Retrait et paiement =========================== */
.form { display: grid; gap: var(--space-8); padding: var(--space-6) var(--gutter) var(--space-8); max-width: calc(640px + 2 * var(--gutter)); }
.form h2 { font-size: var(--fs-h3); line-height: var(--lh-h3); margin-bottom: var(--space-1); }
.form section > * + * { margin-top: var(--space-4); }
.form section > h2 + .live-note { margin-top: 0; }
.field { display: grid; gap: var(--space-2); }
.field label, .field-label { font-weight: var(--fw-bold); }
.field .opt, .check .opt { color: var(--text-muted); font-weight: var(--fw-regular); }
.field input, .field select, .field textarea {
  min-height: var(--control); padding: var(--space-2) var(--space-4); border: var(--bw-strong) solid var(--border-strong);
  border-radius: var(--radius-md); background: var(--surface); font-size: var(--fs-body);
  transition: border-color var(--dur-fast) var(--ease-out);
}
.field input:hover, .field select:hover { border-color: var(--ink); }
.field input:focus-visible, .field select:focus-visible { border-color: var(--ink); outline-offset: var(--bw); }
.field .help { color: var(--text-muted); font-size: var(--fs-sm); margin: 0; }
.field .error { color: var(--danger); font-weight: var(--fw-bold); font-size: var(--fs-sm); margin: 0; }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.grid-2 { display: grid; gap: var(--space-4); }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.check { display: flex; gap: var(--space-3); align-items: flex-start; min-height: var(--tap); padding: var(--space-2) 0; }
.check input { width: var(--space-6); height: var(--space-6); margin: 0; flex: none; accent-color: var(--ink); }
.pay-list { display: grid; gap: var(--space-2); margin-top: var(--space-3); }
.pay-opt > span { width: 100%; justify-content: flex-start; }
.secure { color: var(--text-muted); font-size: var(--fs-sm); margin: var(--space-3) 0 0; }

/* =========================== Confirmation et suivi =========================== */
.done { padding: var(--space-8) 0 var(--space-12); display: grid; gap: var(--space-6); max-width: 560px; }
/* La carte de commande prend la couleur de la Box commandée :
   la même que sur le ticket de la cuisine. */
.order-card { background: var(--box-bg, var(--ink)); color: var(--box-fg, var(--cream)); border-radius: var(--radius-lg); padding: var(--space-6); }
.order-k { margin: 0; font-weight: var(--fw-semibold); }
.order-num {
  font-size: var(--fs-num); font-weight: var(--fw-title); font-stretch: var(--wdth-title);
  letter-spacing: var(--tr-title); line-height: .9; margin: 0 0 var(--space-4);
}
.when { font-size: var(--fs-h3); font-weight: var(--fw-title); font-stretch: var(--wdth-title); letter-spacing: var(--tr-title); line-height: var(--lh-h3); margin: 0; }
.order-meta { margin: var(--space-1) 0 0; }
.track-title, .items-title { font-size: var(--fs-h3); line-height: var(--lh-h3); margin-bottom: var(--space-3); }
.track { list-style: none; margin: 0 0 var(--space-3); padding: 0; display: grid; }
.track li { display: grid; grid-template-columns: var(--space-8) 1fr; gap: var(--space-3); align-items: start; padding: var(--space-2) 0; position: relative; }
.track li::before {
  content: ""; width: var(--space-6); height: var(--space-6); margin: 0 var(--space-1); border-radius: var(--radius-full);
  border: var(--bw-strong) solid var(--border-strong); background: var(--surface);
}
.track li:not(:last-child)::after {
  content: ""; position: absolute; left: calc(var(--space-4) - var(--bw)); top: calc(var(--space-8) + var(--space-1)); bottom: calc(-1 * var(--space-2));
  width: var(--bw-strong); background: var(--border);
}
.track li.done-step::before { background: var(--ink); border-color: var(--ink); }
.track li.done-step::after { background: var(--ink); }
.track li.current::before { border-color: var(--ink); background: var(--sun); }
.track .st { font-weight: var(--fw-bold); }
.track .st small { display: block; color: var(--text-muted); font-weight: var(--fw-regular); font-size: var(--fs-sm); }
.ready-banner {
  display: none; background: var(--success); color: var(--cream); border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-6); font-weight: var(--fw-bold); font-size: var(--fs-lg);
}
.is-ready .ready-banner { display: block; animation: pop var(--dur-layout) var(--ease-out); }
@keyframes pop { from { transform: scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
.order-items { list-style: none; margin: 0; padding: 0; border-top: var(--bw-strong) solid var(--ink); }
.order-items li { display: flex; align-items: baseline; gap: var(--space-3); padding: var(--space-2) 0 var(--space-2) var(--space-3); border-bottom: var(--bw) solid var(--border); border-left: var(--bar) solid var(--box-bg, transparent); }
.order-items .what { font-weight: var(--fw-semibold); }
.order-items small { display: block; color: var(--text-muted); font-size: var(--fs-sm); font-weight: var(--fw-regular); }
.order-items .num { margin-left: auto; white-space: nowrap; }
/* Points gagnés : le soleil, couleur de la fidélité dans la maquette du client */
.earned { background: var(--sun); color: var(--ink); border-radius: var(--radius-lg); padding: var(--space-4) var(--space-6); }
.earned p { margin: 0; }
.earned strong { display: block; font-size: var(--fs-h2); font-weight: var(--fw-title); font-stretch: var(--wdth-title); letter-spacing: var(--tr-title); line-height: var(--lh-h3); }
.earned a { color: var(--ink); font-weight: var(--fw-bold); }
.earned .earned-link { margin-top: var(--space-2); }
.earned :focus-visible { outline-color: var(--ink); }
.map-link { margin: 0; }

/* =========================== Fermeture momentanée =========================== */
.closed-banner { background: var(--danger); color: var(--cream); padding: var(--space-4) 0; }
.closed-banner h2 { font-size: var(--fs-h3); margin: 0 0 var(--space-1); }
.closed-banner p { margin: 0; max-width: var(--measure); }
.closed-banner .reopen { margin-top: var(--space-2); font-weight: var(--fw-bold); }

/* =========================== Page Passeport =========================== */
.how { border-top: var(--bw-strong) solid var(--ink); padding-top: var(--space-4); }
.how h2 { font-size: var(--fs-h3); line-height: var(--lh-h3); margin-bottom: var(--space-3); }
.how ul { margin: 0; padding-left: var(--space-6); display: grid; gap: var(--space-2); max-width: var(--measure); }
.stamps-title { font-size: var(--fs-h3); line-height: var(--lh-h3); margin-bottom: var(--space-4); }

/* =========================== Mouvement réduit =========================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .btn.is-loading::after { border-right-color: var(--on-primary); opacity: .6; }
  .band:hover { transform: none; }
}

/* =========================== Message annoncé =========================== */
.toast {
  position: fixed; left: 50%; bottom: var(--space-24); transform: translateX(-50%); z-index: 60;
  background: var(--ink); color: var(--cream); padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full); font-weight: var(--fw-bold); box-shadow: var(--shadow-lg);
  max-width: calc(100% - 2 * var(--space-4)); text-align: center;
}
.toast:empty { display: none; }

/* =========================== Bandeau de démonstration =========================== */
.demo-bar { border-top: var(--bw-strong) dashed var(--border-strong); background: var(--surface-sunken); padding: var(--space-3) 0; font-size: var(--fs-sm); }
.demo-bar .wrap { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.demo-bar strong { margin-right: var(--space-1); }
.demo-bar button {
  min-height: var(--tap); padding: var(--space-2) var(--space-4); border: var(--bw-strong) solid var(--border-strong);
  border-radius: var(--radius-full); background: var(--surface); font-weight: var(--fw-bold);
}
.demo-bar button:hover { background: var(--bg); border-color: var(--ink); }
.demo-bar button[disabled] { opacity: .6; cursor: not-allowed; }

/* =====================================================================
   ESPACE PRO (tablette en paysage)
   ===================================================================== */
.pro-head { background: var(--ink); color: var(--cream); }
.pro-head .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); min-height: var(--space-16); max-width: none; }
.pro-head h1 { font-size: var(--fs-h3); margin-right: auto; }
.who-acct { font-weight: var(--fw-semibold); }
.conn { display: inline-flex; align-items: center; gap: var(--space-2); font-weight: var(--fw-bold); }
.conn::before { content: ""; width: var(--space-3); height: var(--space-3); border-radius: var(--radius-full); background: var(--turquoise); }
.conn small { font-weight: var(--fw-regular); }
.conn.lost { background: var(--danger); color: var(--cream); padding: var(--space-2) var(--space-4); border-radius: var(--radius-full); }
.conn.lost::before { background: var(--cream); }
.new-alert { background: var(--sun); color: var(--ink); font-weight: var(--fw-bold); padding: var(--space-2) var(--space-4); border-radius: var(--radius-full); }
.new-alert[hidden] { display: none; }
.pro-tabs { display: flex; gap: var(--space-2); padding: var(--space-4) 0 var(--space-1); flex-wrap: wrap; }
.pro-tabs a {
  min-height: var(--tap); display: inline-flex; align-items: center; padding: var(--space-2) var(--space-4); border-radius: var(--radius-full);
  border: var(--bw-strong) solid var(--border-strong); background: var(--surface); color: var(--text); text-decoration: none; font-weight: var(--fw-bold);
}
.pro-tabs a:hover { background: var(--surface-sunken); }
.pro-tabs a[aria-current="page"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.pro-main { max-width: none; padding-bottom: var(--space-6); }

/* ---------- Tickets cuisine : l'en-tête porte la couleur de la Box ---------- */
.tickets { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); list-style: none; margin: var(--space-4) 0 0; padding: 0; }
.tk { background: var(--surface); color: var(--text); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; border: var(--bw-strong) solid var(--cream); }
.tk.is-new { box-shadow: 0 0 0 var(--space-2) var(--sun); }
.tk-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-3);
  background: var(--box-bg, var(--ink)); color: var(--box-fg, var(--cream)); padding: var(--space-3) var(--space-4);
}
.tk-num { font-size: var(--fs-hero); font-weight: var(--fw-title); font-stretch: var(--wdth-title); letter-spacing: var(--tr-title); line-height: .9; }
.tk-who { font-weight: var(--fw-bold); font-size: var(--fs-h3); }
.tk-time { text-align: right; font-weight: var(--fw-bold); line-height: var(--lh-ui); }
.tk-time small { display: block; font-weight: var(--fw-semibold); font-size: var(--fs-sm); }
.tk-body { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-4); flex: 1; }
.tk-status { font-weight: var(--fw-bold); padding: var(--space-1) var(--space-3); border-radius: var(--radius-sm); align-self: flex-start; }
.s-attente { background: var(--sun); color: var(--ink); }
.s-prep { background: var(--lagon); color: var(--cream); }
.s-prete { background: var(--success); color: var(--cream); }
.s-fin { background: var(--surface-sunken); color: var(--text); }
.tk-items { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); font-size: var(--fs-lg); }
.tk-items li { padding-left: var(--space-3); border-left: var(--bar) solid var(--box-bg, var(--border)); }
/* Seules les Box portent une couleur ; les à-côtés restent neutres */
.tk-items li:not([data-box]) { border-left-color: var(--border); }
.tk-items small { display: block; color: var(--text-muted); font-size: var(--fs-sm); }
.tk-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-2); margin-top: auto; }
.tk-actions button {
  min-height: calc(var(--control) + var(--space-2)); border: var(--bw-strong) solid var(--border-strong); border-radius: var(--radius-md);
  background: var(--surface); font-weight: var(--fw-bold); font-size: var(--fs-body); line-height: var(--lh-ui); padding: var(--space-2) var(--space-1);
  transition: background-color var(--dur-fast) var(--ease-out);
}
.tk-actions button:hover { background: var(--surface-sunken); }
.tk-actions button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--cream); }
/* Récompense au retrait : très visible avant « Terminée » */
.reward { background: var(--sun); color: var(--ink); border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); }
.reward h3 { font-size: var(--fs-lg); margin: 0 0 var(--space-1); }
.reward p { margin: 0 0 var(--space-3); }
.reward .acts { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.reward .btn-ghost:hover { background: var(--cream); }
.reward .reward-log { margin: var(--space-2) 0 0; color: var(--ink); }
.reward.seen { background: var(--surface-sunken); }
.reward :focus-visible { outline-color: var(--ink); }

/* Écran cuisine : fond encre, pour que les couleurs des Box ressortent */
body.kitchen { background: var(--ink); color: var(--cream); }
.kitchen .pro-head { border-bottom: var(--bw) solid var(--edge-on-dark); }
.kitchen .pro-tabs a { background: transparent; color: var(--cream); border-color: var(--edge-on-dark); }
.kitchen .pro-tabs a:hover { border-color: var(--cream); }
.kitchen .pro-tabs a[aria-current="page"] { background: var(--cream); border-color: var(--cream); color: var(--ink); }
.kitchen .tk :focus-visible { outline-color: var(--ink); }
.kitchen .tk-head :focus-visible { outline-color: var(--box-fg); }
.kitchen .demo-bar { background: transparent; color: var(--cream); border-top-color: var(--edge-on-dark); }
.kitchen .demo-bar button { background: transparent; color: var(--cream); border-color: var(--edge-on-dark); }
.kitchen .demo-bar button:hover { background: transparent; border-color: var(--cream); }

/* ---------- Gestion d'une Box ---------- */
.admin-grid { display: grid; gap: var(--space-6); padding-top: var(--space-4); align-items: start; }
@media (min-width: 1024px) { .admin-grid { grid-template-columns: 260px 1fr; } }
.admin-side { background: var(--surface); border: var(--bw) solid var(--border); border-radius: var(--radius-lg); padding: var(--space-2); }
.admin-side h2 { font-size: var(--fs-lg); padding: var(--space-3) var(--space-3) var(--space-2); }
.admin-side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-1); }
.admin-side a {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); min-height: var(--tap);
  padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); color: var(--text); text-decoration: none; font-weight: var(--fw-bold);
  border-left: var(--bar) solid var(--box-bg, transparent);
}
.admin-side a:hover { background: var(--surface-sunken); }
.admin-side a[aria-current="page"] { background: var(--surface-sunken); }
.admin-side .add { color: var(--link); }
.panel-card { background: var(--surface); border: var(--bw) solid var(--border); border-radius: var(--radius-lg); padding: var(--space-6); margin-bottom: var(--space-4); }
.panel-card > h2 { font-size: var(--fs-h3); line-height: var(--lh-h3); margin-bottom: var(--space-4); }
.panel-card > .preview-note { margin: calc(-1 * var(--space-2)) 0 var(--space-4); }
.admin-top { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin-bottom: var(--space-4); padding-left: var(--space-4); border-left: var(--bar) solid var(--box-bg, var(--ink)); }
.admin-top h2 { font-size: var(--fs-h1); margin-right: auto; }
.form-row { display: grid; gap: var(--space-4); }
@media (min-width: 768px) { .form-row { grid-template-columns: 2fr 1fr 1fr; } }
.form-row .field.full { grid-column: 1 / -1; }
.switch { display: inline-flex; align-items: center; gap: var(--space-3); min-height: var(--tap); background: none; border: 0; padding: 0; font-weight: var(--fw-bold); }
.switch .track-sw { width: var(--space-12); height: var(--space-6); border-radius: var(--radius-full); background: var(--border-strong); position: relative; flex: none; transition: background-color var(--dur-fast) var(--ease-out); }
.switch .track-sw::after { content: ""; position: absolute; top: var(--space-1); left: var(--space-1); width: var(--space-4); height: var(--space-4); border-radius: var(--radius-full); background: var(--surface); transition: transform var(--dur-fast) var(--ease-in-out); }
.switch[aria-checked="true"] .track-sw { background: var(--lagon); }
.switch[aria-checked="true"] .track-sw::after { transform: translateX(var(--space-6)); }
.steps-admin { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); }
.step-admin { border: var(--bw) solid var(--border); border-radius: var(--radius-md); overflow-x: auto; }
.step-admin header { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); background: var(--surface-sunken); padding: var(--space-2) var(--space-4); }
.step-admin header h3 { font-size: var(--fs-lg); margin-right: auto; }
.step-admin .rule { color: var(--text-muted); font-size: var(--fs-sm); font-weight: var(--fw-semibold); }
.step-admin .icon-btn {
  min-width: var(--tap); min-height: var(--tap); border: var(--bw-strong) solid var(--border-strong); background: var(--surface);
  border-radius: var(--radius-md); font-weight: var(--fw-bold); padding: var(--space-1) var(--space-3);
}
.step-admin .icon-btn:hover { border-color: var(--ink); }
.opt-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.opt-table th, .opt-table td { text-align: left; padding: var(--space-2) var(--space-4); border-top: var(--bw) solid var(--border); vertical-align: middle; }
.opt-table th { font-size: var(--fs-sm); color: var(--text-muted); font-weight: var(--fw-bold); }
.opt-table th:nth-child(2), .opt-table th:nth-child(3) { width: 8rem; }
@media (min-width: 768px) { .opt-table th:nth-child(2), .opt-table th:nth-child(3) { width: 11rem; } }
.opt-table input[type="text"] {
  width: 100%; max-width: 7rem; min-height: var(--tap); padding: var(--space-1) var(--space-2); border: var(--bw-strong) solid var(--border-strong);
  border-radius: var(--radius-md); text-align: right; font-variant-numeric: tabular-nums;
}
.opt-table .is-out td:first-child { color: var(--text-muted); }
.opt-table tr:not(.is-out) .out { display: none; }
.step-admin footer { padding: var(--space-2) var(--space-4); border-top: var(--bw) solid var(--border); }
.preview-note { color: var(--text-muted); font-size: var(--fs-sm); margin: 0; }

/* =========================== Sommaire de la présentation =========================== */
.index-head { padding: var(--space-12) 0 var(--space-8); }
.index-head h1 { font-size: var(--fs-hero); max-width: 14ch; }
.index-head p { margin: var(--space-4) 0 0; font-size: var(--fs-lg); max-width: var(--measure); }
.index-stripes { display: grid; grid-template-columns: repeat(5, 1fr); height: var(--space-4); }
.index-stripes span { background: var(--box-bg); }
.index-note { color: var(--text-muted); max-width: var(--measure); margin: var(--space-8) 0 0; }
.index-group { font-size: var(--fs-h2); margin-top: var(--space-12); }
.screens { list-style: none; margin: var(--space-4) 0 0; padding: 0; border-top: var(--bw-strong) solid var(--ink); max-width: 760px; }
.screens li { border-bottom: var(--bw) solid var(--border); }
.screens a { display: grid; gap: 0 var(--space-4); padding: var(--space-3) 0; min-height: var(--tap); color: var(--text); text-decoration: none; }
@media (min-width: 640px) { .screens a { grid-template-columns: 16rem 1fr; align-items: baseline; } }
.screens a:hover .t { text-decoration: underline; text-decoration-thickness: var(--bw-strong); text-underline-offset: var(--underline-offset); }
.screens .t { font-weight: var(--fw-bold); font-size: var(--fs-lg); }
.screens .d { color: var(--text-muted); }
.index-end { padding-bottom: var(--space-16); }
