/* =====================================================================
   GUSTO KREYOL — styles de la maquette de direction artistique
   Structure et noms repris de la maquette du client ; voir ECARTS.md.
   Aucun framework CSS. Mobile d'abord (375 px), puis tablette et ordinateur.
   ===================================================================== */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font-text);
  font-size: var(--fs-text);
  line-height: 1.5;
  background: var(--bg);
  color: var(--ink);
}
h1, h2, h3, h4 { font-family: var(--font-title); line-height: 1.15; margin: 0; font-weight: 800; }
p { margin: 0 0 1em; }
a { color: var(--ocean); text-underline-offset: 3px; }
img, svg { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.num, .price, .tot, time { font-variant-numeric: tabular-nums; }

/* Focus visible : --ocean sur fond clair (le --sun de la maquette n'y atteint
   que 1,49:1), --sun conservé sur les fonds foncés. */
:focus-visible { outline: 3px solid var(--ocean); outline-offset: 2px; }
.on-dark :focus-visible, .on-dark:focus-visible { outline-color: var(--sun); }

.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: 12px; top: -100px; z-index: 100;
  background: var(--sun); color: var(--ocean); font-weight: 800;
  padding: 12px 18px; border-radius: var(--r-field); text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
@media (max-width: 400px) { :root { --gutter: 16px; } }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 12px 24px;
  border: 2px solid transparent; border-radius: var(--r-btn);
  background: var(--sun); color: var(--ocean);
  font-weight: 800; font-size: 1rem; text-decoration: none; text-align: center;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:active { transform: scale(.98); }
.btn-dark { background: var(--ocean); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--ocean); color: var(--ocean); }
.btn-block { width: 100%; }
.btn-sm { min-height: var(--tap); padding: 8px 18px; font-size: .9375rem; }
.btn[disabled], .btn[aria-disabled="true"] { background: var(--line); color: var(--soft); border-color: transparent; cursor: not-allowed; }
.link-btn {
  background: none; border: 0; padding: 10px 4px; min-height: var(--tap);
  font-weight: 700; color: var(--ocean); text-decoration: underline; text-underline-offset: 3px;
}

/* ---------- En-tête ---------- */
.site-head { position: sticky; top: 0; z-index: 30; background: var(--ocean); color: var(--cream); }
.site-head .wrap { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.brand {
  font-family: var(--font-title); font-weight: 800; font-size: 1.375rem;
  color: var(--cream); text-decoration: none; margin-right: auto; padding: 8px 0;
}
.brand i { font-style: normal; color: var(--sun); }
.site-nav { display: flex; gap: 4px; }
.site-nav a {
  color: var(--cream); text-decoration: none; font-weight: 600; font-size: .9375rem;
  padding: 10px 12px; border-radius: 20px; min-height: var(--tap); display: inline-flex; align-items: center;
}
.site-nav a:hover { background: rgba(255,255,255,.14); }
@media (max-width: 760px) { .site-nav { display: none; } }
.cart-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap);
  padding: 8px 16px; border: 0; border-radius: var(--r-btn);
  background: var(--sun); color: var(--ocean); font-weight: 800; text-decoration: none;
}
.cart-btn .count {
  background: var(--ocean); color: var(--cream); border-radius: 12px;
  min-width: 24px; padding: 0 6px; text-align: center; font-size: .875rem;
}

/* En-tête des pages du parcours (retour + titre) */
.page-head { background: var(--card); border-bottom: 1px solid var(--line); }
.page-head .wrap { display: flex; align-items: center; gap: 8px; min-height: 60px; }
.back {
  display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap);
  padding: 8px 10px 8px 0; font-weight: 700; color: var(--ocean); text-decoration: none;
}
.page-head .step { margin-left: auto; color: var(--soft); font-size: var(--fs-small); font-weight: 600; }

/* ---------- Accueil ---------- */
/* Fond uni --ocean : le dégradé de la maquette faisait tomber les pastilles à 3,11:1. */
.hero { background: var(--ocean); color: var(--cream); padding: 40px 0 48px; }
.hero .wrap { display: grid; gap: 28px; align-items: center; }
@media (min-width: 860px) { .hero { padding: 64px 0 72px; } .hero .wrap { grid-template-columns: 1.2fr 1fr; gap: 40px; } }
.hero h1 { font-size: var(--fs-h1); }
.hero .lead { font-size: 1.125rem; max-width: 30em; margin: 14px 0 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 24px; padding: 0; list-style: none; }
.chip {
  border: 1px solid rgba(255,251,244,.45); border-radius: 20px;
  padding: 6px 14px; font-size: .9375rem; font-weight: 600;
}
.chip-off { background: var(--red); border-color: var(--red); color: #fff; }

.promo {
  background: var(--card); color: var(--ink); border: 3px solid var(--sun);
  border-radius: 22px; padding: 22px;
}
.promo .kicker { font-weight: 700; font-size: .9375rem; margin: 0; }
.promo h2 { font-size: 1.625rem; margin: 6px 0 4px; }
.promo .price-line { margin: 0 0 16px; font-size: 1.125rem; }
.promo .old { text-decoration: line-through; color: var(--soft); margin-left: 6px; }
.promo .until { color: var(--soft); font-size: var(--fs-small); margin: -8px 0 14px; }

section.block { padding: 44px 0; }
section.block > .wrap > h2 { font-size: var(--fs-h2); }
.sub { color: var(--soft); margin: 6px 0 22px; }
.tinted { background: var(--tint); }

/* Liste des Box */
.box-list { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); list-style: none; margin: 0; padding: 0; }
@media (max-width: 400px) { .box-list { grid-template-columns: 1fr; } }
.box-card {
  display: grid; grid-template-columns: 92px 1fr; gap: 14px;
  background: var(--card); border: 1px solid var(--line); border-top: 6px solid var(--box-color, var(--line));
  border-radius: var(--r-card); padding: 16px;
}
.box-card h3 { font-size: var(--fs-h3); }
.box-card p { color: var(--soft); margin: 4px 0 10px; font-size: .9375rem; }
.box-card .foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; grid-column: 1 / -1; }
.price { font-weight: 800; font-size: 1.25rem; }
[data-box="1"] { --box-color: var(--box-1); }
[data-box="2"] { --box-color: var(--box-2); }
[data-box="3"] { --box-color: var(--box-3); }
[data-box="4"] { --box-color: var(--box-4); }
[data-box="5"] { --box-color: var(--box-5); }

/* Emplacement photo : pas de fausse photo, le nom du produit sur un fond de la palette */
.photo-slot {
  display: grid; place-items: center; text-align: center; aspect-ratio: 1;
  background: var(--tint); border: 2px dashed var(--line); border-radius: 14px;
  color: var(--soft); font-size: .8125rem; font-weight: 700; line-height: 1.2; padding: 6px;
}
.photo-slot.wide { aspect-ratio: 16 / 9; font-size: .9375rem; border-radius: var(--r-card); }

/* Onglets « À la carte » */
.tabs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; margin: 0 -2px 10px; scrollbar-width: thin; }
.tab {
  flex: none; min-height: var(--tap); padding: 8px 16px; border: 2px solid transparent; border-radius: 22px;
  background: var(--card); font-weight: 700; font-size: .9375rem; white-space: nowrap;
}
.tab[aria-selected="true"] { background: var(--ocean); color: #fff; }
.tabpanel[hidden] { display: none; }
.rows { list-style: none; margin: 0; padding: 0; }
.row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--line);
}
.row .name { font-weight: 600; }
.row .meta { display: block; color: var(--soft); font-size: var(--fs-small); font-weight: 500; }
.row .right { display: flex; align-items: center; gap: 12px; flex: none; }
.plus {
  width: var(--tap); height: var(--tap); border-radius: 50%; border: 0;
  background: var(--lagon); color: #fff; font-size: 1.5rem; font-weight: 800; line-height: 1;
}
.plus[disabled] { background: var(--line); color: var(--soft); cursor: not-allowed; }
.out { color: var(--red); font-weight: 800; font-size: var(--fs-small); }
.is-out .name { color: var(--soft); }
.legal { font-size: var(--fs-small); color: var(--soft); margin: 14px 0 0; }

/* Passeport Kréyol */
.loy { display: grid; gap: 16px; }
@media (min-width: 760px) { .loy { grid-template-columns: 1fr 1fr; gap: 20px; } }
.pts {
  display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center;
  background: var(--ocean); color: var(--cream); border-radius: 22px; padding: 22px;
}
.pts .label { font-weight: 600; margin: 0 0 4px; }
.pts .next { margin: 0; font-weight: 700; font-size: 1.0625rem; line-height: 1.35; }
.bar { height: 10px; border-radius: 5px; background: rgba(255,251,244,.22); margin: 12px 0 0; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--sun); border-radius: 5px; }
/* Avec le script, le soleil remplace la barre (sans script, la barre reste) */
.js .pts .bar { display: none; }

/* Le soleil : seul élément « audacieux » de la maquette (ART-BIBLE §8). */
.sun {
  position: relative; width: 132px; aspect-ratio: 1; flex: none;
  display: grid; place-items: center;
}
.sun svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sun .ray { stroke: rgba(255,251,244,.2); stroke-width: 7; stroke-linecap: round; }
.sun .ray.on { stroke: var(--sun); transition: stroke .3s ease-out; transition-delay: calc(var(--i) * 60ms + 150ms); }
.js .reveal:not(.in) .sun .ray.on { stroke: rgba(255,251,244,.2); }
.sun .core { fill: none; stroke: var(--sun); stroke-width: 3; }
.sun-num {
  position: relative; font-family: var(--font-title); font-weight: 800;
  font-size: 2.125rem; line-height: 1; color: var(--cream);
}
/* Sans script : un simple cercle autour du nombre */
html:not(.js) .sun { border: 3px solid var(--sun); border-radius: 50%; width: 96px; margin: 18px; }
.pts-lg .sun { width: 168px; }
.pts-lg .sun-num { font-size: 2.75rem; }
.sun-sm { width: 104px; }
.sun-sm .sun-num { font-size: 1.625rem; }
@media (max-width: 380px) {
  .pts { grid-template-columns: 1fr; justify-items: start; }
}
.tiers { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tier {
  display: flex; align-items: center; gap: 12px; background: var(--card);
  border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; font-weight: 600;
}
.tier .need { background: var(--tint); border-radius: 8px; padding: 4px 10px; font-weight: 800; flex: none; }
.tier .state { margin-left: auto; white-space: nowrap; text-align: right; font-size: var(--fs-small); font-weight: 800; color: var(--soft); }
.tier.ok { border: 2px solid var(--sun); }
.tier.ok .need { background: var(--sun); color: var(--ocean); }
.tier.ok .state { color: var(--ocean); }

/* Pied de page */
.site-foot { background: var(--ocean); color: var(--cream); padding: 36px 0 120px; font-size: .9375rem; }
@media (min-width: 761px) { .site-foot { padding-bottom: 36px; } }
.site-foot .wrap { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.site-foot h2 { font-family: var(--font-text); font-size: 1rem; font-weight: 800; margin: 0 0 6px; }
.site-foot p { margin: 0; }
.site-foot a { color: var(--cream); }
.site-foot .fine { grid-column: 1 / -1; border-top: 1px solid rgba(255,251,244,.25); padding-top: 16px; }

/* Barre panier fixe (mobile) */
.cartbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--card); border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(7,59,76,.12);
}
.cartbar .btn { width: 100%; justify-content: space-between; }
@media (min-width: 761px) { .cartbar { display: none; } }

/* Barre d'action en bas des pages du parcours (un seul bouton principal) */
.actionbar {
  position: sticky; bottom: 0; z-index: 20; background: var(--card); border-top: 1px solid var(--line);
  padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -6px 20px rgba(7,59,76,.10);
}
.actionbar .wrap { display: grid; gap: 8px; max-width: 640px; }
.actionbar .tot { display: flex; justify-content: space-between; font-weight: 800; font-size: 1.125rem; }

/* ---------- Tiroir panier et fenêtres (dialog natif) ---------- */
dialog { border: 0; padding: 0; color: var(--ink); background: var(--bg); }
dialog::backdrop { background: rgba(5,15,18,.55); }
.drawer {
  margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: min(440px, 100%);
  display: none; flex-direction: column;
}
.drawer[open], .modal[open] { display: flex; }
.modal { width: min(480px, calc(100% - 32px)); border-radius: 22px; flex-direction: column; max-height: 90dvh; }
.dlg-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.dlg-head h2 { font-size: 1.25rem; }
.dlg-body { padding: 8px 20px 16px; overflow-y: auto; flex: 1; }
.dlg-foot { padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); display: grid; gap: 8px; }
.close {
  min-height: var(--tap); padding: 8px 14px; border: 0; border-radius: 22px;
  background: var(--tint); font-weight: 700;
}

/* ---------- Panier ---------- */
.cart-item { padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-item .top { display: flex; justify-content: space-between; gap: 12px; font-weight: 800; }
.cart-item .tag { display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: var(--box-color); margin-right: 8px; vertical-align: 1px; }
.cart-item .det { color: var(--soft); font-size: var(--fs-small); margin: 2px 0 8px; }
.cart-item .controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.qty { display: inline-flex; align-items: center; gap: 6px; }
.qty button {
  width: var(--tap); height: var(--tap); border-radius: 50%; border: 2px solid var(--line);
  background: var(--card); font-weight: 800; font-size: 1.25rem; line-height: 1;
}
.qty output { min-width: 2ch; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.sum { list-style: none; padding: 0; margin: 16px 0 0; }
.sum li { display: flex; justify-content: space-between; padding: 4px 0; color: var(--soft); }
.sum li.total { color: var(--ink); font-weight: 800; font-size: 1.125rem; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; }

/* ---------- Compositeur de Box ---------- */
.composer { display: grid; gap: 20px; padding: 20px 0 28px; }
@media (min-width: 900px) { .composer { grid-template-columns: 1.3fr 1fr; align-items: start; } .recap { position: sticky; top: 84px; } }
.box-intro { display: grid; gap: 14px; }
.box-intro .title { border-left: 6px solid var(--box-color); padding-left: 12px; }
.box-intro h1 { font-size: 2rem; }
.box-intro .base { color: var(--soft); margin: 4px 0 0; }
fieldset.step { border: 0; margin: 0; padding: 0 0 18px; border-bottom: 1px solid var(--line); }
fieldset.step legend { font-weight: 800; font-size: 1.0625rem; padding: 0; margin-bottom: 4px; }
.step .hint { color: var(--soft); font-size: var(--fs-small); margin: 0 0 10px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pill > span {
  display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap);
  padding: 8px 16px; border: 2px solid var(--line); border-radius: var(--r-pill);
  background: var(--card); font-weight: 600; cursor: pointer;
}
.pill > input:checked + span { border-color: var(--lagon); background: #E3F1EF; color: var(--ink); box-shadow: inset 0 0 0 1px var(--lagon); }
.pill input:checked + span::before { content: "✓"; font-weight: 800; color: var(--lagon); }
.pill input:focus-visible + span { outline: 3px solid var(--ocean); outline-offset: 2px; }
.pill input:disabled + span { color: var(--soft); background: var(--tint); border-style: dashed; cursor: not-allowed; }
.pill .sup { color: var(--soft); font-weight: 700; }
.pill .out { margin-left: 2px; }

details.allergens { margin-top: 10px; }
details.allergens summary {
  display: inline-flex; align-items: center; min-height: var(--tap); cursor: pointer;
  font-weight: 700; color: var(--ocean); text-decoration: underline; text-underline-offset: 3px;
}
details.allergens .panel { background: var(--tint); border-radius: 14px; padding: 12px 14px; font-size: .9375rem; }
details.allergens .panel p { margin: 0 0 6px; }
.todo { color: var(--red); font-weight: 700; }

.recap { background: var(--card); border: 1px solid var(--line); border-top: 6px solid var(--box-color); border-radius: var(--r-card); padding: 18px; }
.recap h2 { font-size: 1.25rem; margin-bottom: 8px; }
.recap dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; }
.recap dt { color: var(--soft); font-weight: 600; }
.recap dd { margin: 0; font-weight: 700; text-align: right; }
.recap .line { display: flex; justify-content: space-between; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-weight: 800; }

/* ---------- Formulaire de retrait ---------- */
.form { display: grid; gap: 22px; padding: 20px var(--gutter) 28px; max-width: 640px; }
.form h1 { font-size: 1.75rem; }
.form h2 { font-size: 1.25rem; margin-bottom: 4px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; }
.field .opt { color: var(--soft); font-weight: 500; }
.field input {
  min-height: 48px; padding: 10px 14px; border: 2px solid #B9AE98; border-radius: var(--r-field);
  background: var(--card); font-size: 1rem;
}
.field input:focus-visible { outline-offset: 1px; border-color: var(--ocean); }
.field .help { color: var(--soft); font-size: var(--fs-small); margin: 0; }
.field .error { color: var(--red); font-weight: 700; font-size: .9375rem; margin: 0; }
.field input[aria-invalid="true"] { border-color: var(--red); }
.grid-2 { display: grid; gap: 14px; }
@media (min-width: 560px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.check { display: flex; gap: 12px; align-items: flex-start; min-height: var(--tap); padding: 6px 0; }
.check input { width: 24px; height: 24px; margin: 2px 0 0; flex: none; accent-color: var(--lagon); }
.slot-full > span { text-decoration: line-through; text-decoration-thickness: 2px; }
.slot-full > span .out { text-decoration: none; display: inline-block; }
.pay-list { display: grid; gap: 8px; }
.pay-opt > span { width: 100%; justify-content: flex-start; border-radius: var(--r-field); }
.secure { color: var(--soft); font-size: var(--fs-small); margin: 0; }

/* ---------- Confirmation et suivi ---------- */
.done { padding: 28px 0 36px; display: grid; gap: 20px; max-width: 560px; }
.done .ticket { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 22px; text-align: center; }
.done .order-num { font-family: var(--font-title); font-weight: 800; font-size: 3.5rem; line-height: 1; color: var(--lagon); margin: 4px 0 8px; }
.done h1 { font-size: 1.75rem; }
.done .when { font-size: 1.25rem; font-weight: 800; margin: 8px 0 0; }
.track { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.track li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; padding: 10px 0; position: relative; }
.track li::before {
  content: ""; width: 20px; height: 20px; margin: 2px 4px; border-radius: 50%;
  border: 3px solid var(--line); background: var(--card); box-sizing: border-box;
}
.track li:not(:last-child)::after { content: ""; position: absolute; left: 13px; top: 32px; bottom: -8px; width: 3px; background: var(--line); }
.track li.done-step::before { background: var(--lagon); border-color: var(--lagon); }
.track li.done-step::after { background: var(--lagon); }
.track li.current::before { border-color: var(--lagon); background: var(--sun); }
.track .st { font-weight: 800; }
.track .st small { display: block; color: var(--soft); font-weight: 500; font-size: var(--fs-small); }
.track li.current .st { color: var(--ocean); }
.ready-banner {
  display: none; background: var(--green); color: #fff; border-radius: 16px; padding: 16px 18px;
  font-weight: 800; font-size: 1.125rem;
}
.is-ready .ready-banner { display: block; animation: pop .4s ease-out; }
@keyframes pop { from { transform: scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
.earned { border-radius: var(--r-card); }
.earned p { margin: 0; }
.earned strong { font-family: var(--font-title); font-size: 1.75rem; color: var(--sun); }
.earned a { color: var(--cream); }
.earned .earned-link { margin-top: 8px; }
.next-slot { margin: 16px 0 0; font-size: 1.0625rem; }
.next-slot strong { color: var(--sun); font-size: 1.25rem; white-space: nowrap; }
.live-note { color: var(--soft); font-size: var(--fs-small); margin: 0; }

/* ---------- Fermeture momentanée ---------- */
.closed-banner { background: var(--red); color: #fff; padding: 18px 0; }
.closed-banner h2 { font-family: var(--font-text); font-size: 1.125rem; font-weight: 800; margin: 0 0 4px; }
.closed-banner p { margin: 0; }
.closed-banner .reopen { margin-top: 8px; font-weight: 800; }

/* ---------- Bloc d'explication (page Passeport) ---------- */
.how { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px; }
.how h2 { font-size: 1.25rem; margin-bottom: 8px; }
.how ol { margin: 0; padding-left: 1.25em; display: grid; gap: 8px; }

/* ---------- Animations au défilement (Box et Passeport seulement) ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Message annoncé (toast) ---------- */
.toast {
  position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 60;
  background: var(--ocean); color: var(--cream); padding: 12px 20px; border-radius: 30px; font-weight: 700;
  max-width: calc(100% - 32px); text-align: center;
}
.toast:empty { display: none; }

/* ---------- Bandeau de démonstration (présentation uniquement) ---------- */
.demo-bar {
  border-top: 2px dashed var(--soft); background: var(--tint); color: var(--ink);
  padding: 10px 0; font-size: var(--fs-small);
}
.demo-bar .wrap { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.demo-bar strong { margin-right: 4px; }
.demo-bar button { min-height: var(--tap); padding: 6px 14px; border: 2px solid var(--soft); border-radius: 22px; background: var(--card); font-weight: 700; }

/* =====================================================================
   ESPACE PRO (tablette en paysage)
   ===================================================================== */
.pro body, body.pro { background: var(--bg); }
.pro-head { background: var(--ocean); color: var(--cream); }
.pro-head .wrap { display: flex; align-items: center; gap: 14px; min-height: 64px; max-width: none; }
.pro-head h1 { font-size: 1.375rem; margin-right: auto; }
.pro-head h1 i { font-style: normal; color: var(--sun); }
.conn { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.conn::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: #5FD39A; }
.conn small { font-weight: 500; opacity: .85; }
.conn.lost { background: var(--red); color: #fff; padding: 8px 14px; border-radius: 20px; }
.conn.lost::before { background: #fff; }
.new-alert {
  background: var(--sun); color: var(--ocean); font-weight: 800; padding: 8px 16px; border-radius: 20px;
}
.new-alert[hidden] { display: none; }
.pro-tabs { display: flex; gap: 8px; padding: 16px 0 4px; flex-wrap: wrap; }
.pro-tabs a {
  min-height: var(--tap); display: inline-flex; align-items: center; padding: 8px 18px; border-radius: 22px;
  background: var(--tint); color: var(--ink); text-decoration: none; font-weight: 700;
}
.pro-tabs a[aria-current="page"] { background: var(--ocean); color: #fff; }
.pro-main { max-width: none; padding-bottom: 24px; }

/* Tickets */
.tickets { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); list-style: none; margin: 16px 0 0; padding: 0; }
.tk {
  background: var(--card); border: 1px solid var(--line); border-left: 10px solid var(--box-color, var(--ocean));
  border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 10px;
}
.tk.is-new { box-shadow: 0 0 0 4px var(--sun); }
.tk-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.tk-num { font-family: var(--font-title); font-weight: 800; font-size: 2.75rem; line-height: 1; }
.tk-who { font-weight: 800; font-size: 1.25rem; }
.tk-time { text-align: right; font-weight: 700; }
.tk-time small { display: block; color: var(--soft); font-weight: 600; }
.tk-status { font-weight: 800; font-size: 1.0625rem; padding: 6px 12px; border-radius: 10px; align-self: flex-start; }
.s-attente { background: var(--sun); color: var(--ocean); }
.s-prep { background: var(--lagon); color: #fff; }
.s-prete { background: var(--green); color: #fff; }
.s-fin { background: var(--tint); color: var(--soft); }
.tk-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 1.0625rem; }
.tk-items b { font-size: 1.125rem; }
.tk-items .box-name::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: var(--box-color); margin-right: 8px; }
.tk-items small { display: block; color: var(--soft); font-size: .9375rem; }
.tk-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: auto; }
.tk-actions button {
  min-height: 56px; border: 2px solid var(--line); border-radius: 12px; background: var(--card);
  font-weight: 800; font-size: 1.0625rem; line-height: 1.15; padding: 6px 4px;
}
.tk-actions button[aria-pressed="true"] { border-color: var(--ocean); background: var(--ocean); color: #fff; }
.reward {
  border: 3px solid var(--sun); background: #FFF6DE; border-radius: 12px; padding: 12px 14px;
}
.reward h3 { font-family: var(--font-text); font-size: 1.0625rem; font-weight: 800; margin: 0 0 4px; }
.reward p { margin: 0 0 10px; }
.reward .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.reward.seen { border-color: var(--line); background: var(--card); }

/* Gestion d'une Box */
.admin-grid { display: grid; grid-template-columns: 260px 1fr; gap: 20px; padding-top: 16px; align-items: start; }
.admin-side { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 8px; }
.admin-side h2 { font-family: var(--font-text); font-size: 1rem; font-weight: 800; padding: 10px 12px 6px; }
.admin-side ul { list-style: none; margin: 0; padding: 0; }
.admin-side a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: var(--tap);
  padding: 8px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 700;
  border-left: 6px solid var(--box-color);
}
.admin-side a[aria-current="page"] { background: var(--tint); }
.admin-side .off { color: var(--soft); font-size: var(--fs-small); }
.admin-side .add { border-left-color: transparent; color: var(--ocean); }
.panel-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; margin-bottom: 16px; }
.panel-card > h2 { font-size: 1.25rem; margin-bottom: 14px; }
.admin-top { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.admin-top h1 { font-size: 1.75rem; margin-right: auto; }
.form-row { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 16px; }
.form-row .field.full { grid-column: 1 / -1; }
.field select, .field textarea {
  min-height: 48px; padding: 10px 14px; border: 2px solid #B9AE98; border-radius: var(--r-field); background: var(--card);
}
.switch { display: inline-flex; align-items: center; gap: 12px; min-height: var(--tap); background: none; border: 0; padding: 0; font-weight: 700; }
.switch .track-sw { width: 52px; height: 30px; border-radius: 15px; background: #B9AE98; position: relative; flex: none; }
.switch .track-sw::after { content: ""; position: absolute; top: 4px; left: 4px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch[aria-checked="true"] .track-sw { background: var(--lagon); }
.switch[aria-checked="true"] .track-sw::after { transform: translateX(22px); }
.steps-admin { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.step-admin { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.step-admin header { display: flex; align-items: center; gap: 12px; background: var(--tint); padding: 10px 14px; }
.step-admin header h3 { font-family: var(--font-text); font-size: 1.0625rem; font-weight: 800; margin-right: auto; }
.step-admin .rule { color: var(--soft); font-size: var(--fs-small); font-weight: 600; }
.step-admin .icon-btn { min-width: var(--tap); min-height: var(--tap); border: 2px solid var(--line); background: var(--card); border-radius: 10px; font-weight: 700; padding: 4px 10px; }
.opt-table { width: 100%; border-collapse: collapse; }
.opt-table th, .opt-table td { text-align: left; padding: 8px 14px; border-top: 1px solid var(--line); vertical-align: middle; }
.opt-table th { font-size: var(--fs-small); color: var(--soft); font-weight: 700; }
.opt-table td.num { width: 140px; }
.opt-table input[type="text"] { width: 110px; min-height: var(--tap); padding: 6px 10px; border: 2px solid #B9AE98; border-radius: 10px; text-align: right; font-variant-numeric: tabular-nums; }
.opt-table .is-out td:first-child { color: var(--soft); }
.step-admin footer { padding: 8px 14px; border-top: 1px solid var(--line); }
.preview-note { color: var(--soft); font-size: var(--fs-small); margin: 0; }

/* ---------- Sommaire de la présentation ---------- */
.index-head { background: var(--ocean); color: var(--cream); padding: 40px 0; }
.index-head img { width: 64px; height: 64px; margin-bottom: 14px; }
.index-head h1 { font-size: clamp(2rem, 5vw, 3rem); }
.index-head p { margin: 8px 0 0; font-size: 1.125rem; }
.screens { list-style: none; margin: 0; padding: 28px 0 40px; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.screens a {
  display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: start; height: 100%;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; color: var(--ink); text-decoration: none;
}
.screens a:hover { border-color: var(--ocean); }
.screens .n { grid-row: span 2; font-family: var(--font-title); font-weight: 800; font-size: 1.5rem; color: var(--ocean); min-width: 1.4em; }
.screens .t { font-weight: 800; font-size: 1.0625rem; }
.screens .d { color: var(--soft); font-size: .9375rem; }
.index-group { font-size: 1.375rem; margin-top: 28px; }
.index-note { color: var(--soft); font-size: .9375rem; max-width: 46em; }
.opt-table tr:not(.is-out) .out { display: none; }
/* Colonnes alignées d'une étape à l'autre */
.opt-table { table-layout: fixed; }
.opt-table th:nth-child(2), .opt-table th:nth-child(3) { width: 170px; }
