/* =====================================================================
   MONDO PIZZA — application mobile, design épuré
   Animations : écran d'ouverture + micro-interactions des boutons.
   ===================================================================== */

:root {
  --red: #C22E38;
  --red-dark: #A3222B;
  --red-50: #FDF1F2;
  --green: #1F9D3A;
  --green-50: #EAF7EC;
  --yellow: #FFC845;
  --ink: #151515;
  --ink-2: #4A4A4A;
  --muted: #8E8E93;
  --line: #ECECEC;
  --surface: #F5F5F4;
  --bg: #FFFFFF;

  --font: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Anton', 'Impact', sans-serif;

  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px rgba(0, 0, 0, .06);

  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --out: cubic-bezier(.22, 1, .36, 1);
  --tabbar-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
}
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* Icônes (Lucide) */
.i {
  width: 22px;
  height: 22px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* =====================================================================
   SPLASH — fond blanc, logo au ralenti, puis le logo rejoint sa place
   ===================================================================== */
.splash {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: #fff;
  transition: background-color 1s ease;
}
.splash-mark { position: relative; width: 168px; height: 168px; }
.splash-logo {
  position: absolute;
  inset: 14px;
  width: 140px;
  height: 140px;
  transform-origin: center;
  animation: logoIn 2s var(--out) .2s backwards;
}
@keyframes logoIn {
  0% { opacity: 0; transform: scale(.55); filter: blur(10px); }
  60% { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: scale(1); filter: blur(0); }
}
.splash-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.splash-ring circle {
  fill: none;
  stroke: var(--red);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 604;
  stroke-dashoffset: 604;
  animation: ringDraw 1.8s cubic-bezier(.65, 0, .35, 1) .7s forwards;
}
@keyframes ringDraw { to { stroke-dashoffset: 0; } }
.splash-title {
  display: flex;
  overflow: hidden;
  font-family: var(--display);
  font-size: 30px;
  letter-spacing: .14em;
  color: var(--red);
  padding: 2px 0 0 .14em;
}
.splash-title span { display: inline-block; opacity: 0; transform: translateY(100%); animation: letterUp .9s var(--out) forwards; }
.splash-title .sp { width: .4em; }
@keyframes letterUp { to { opacity: 1; transform: none; } }
.splash-tagline {
  margin-top: -8px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--muted);
  opacity: 0;
  animation: fadeIn 1s ease 1.9s forwards;
}
@keyframes fadeIn { to { opacity: 1; } }

/* Sortie : le texte s'efface, le logo vole vers sa place (géré en JS), l'app apparaît */
body.is-leaving .splash-title,
body.is-leaving .splash-tagline,
body.is-leaving .splash-ring { animation: none; opacity: 0; transition: opacity .5s ease; }
body.is-splashing .app.has-screen .shell { visibility: hidden; }
body.is-leaving .splash { background-color: rgba(255, 255, 255, 0); transition-delay: .9s; }
body.is-leaving .splash-logo {
  animation: none;
  transition: transform 1.6s cubic-bezier(.65, 0, .25, 1);
}
body.is-splashing .app > :not(.toast) { opacity: 0; }
body.is-leaving .app > :not(.toast) {
  opacity: 1;
  transition: opacity 1.2s ease .6s;
}
body.is-splashing [data-splash-target] { visibility: hidden; }

/* =====================================================================
   STRUCTURE
   ===================================================================== */
.app {
  position: relative;
  height: 100vh;
  height: 100dvh;
  max-width: 560px;
  margin: 0 auto;
  background: var(--bg);
  overflow: hidden;
}
.shell { position: absolute; inset: 0; display: flex; flex-direction: column; }
.desk-intro { display: none; }

@media (min-width: 960px) {
  body {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 96px;
    background: #F3F1EE;
  }
  .desk-intro { display: block; max-width: 360px; }
  .desk-intro img { width: 96px; height: 96px; }
  .desk-intro h2 { font-family: var(--display); font-weight: 400; font-size: 60px; line-height: 1; margin: 24px 0 14px; letter-spacing: .02em; color: var(--ink); }
  .desk-intro h2 span { color: var(--red); }
  .desk-intro p { font-size: 17px; line-height: 1.6; color: var(--ink-2); }
  .app {
    width: 400px;
    height: min(860px, 94vh);
    margin: 0;
    border-radius: 44px;
    border: 9px solid #111;
    box-shadow: 0 40px 80px rgba(0, 0, 0, .18);
  }
}

/* Barre du haut */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 18px 10px;
  background: var(--bg);
  z-index: 5;
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand img { width: 38px; height: 38px; }
.brand-text { display: grid; line-height: 1.15; }
.brand-text small { color: var(--muted); font-size: 12px; font-weight: 500; }
.brand-text strong { font-family: var(--display); font-weight: 400; font-size: 18px; letter-spacing: .05em; color: var(--red); }
.topbar-actions { display: flex; gap: 8px; }

.views {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.view { padding: 6px 18px 110px; }
.view-title { font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.view-sub { margin: 6px 0 18px; color: var(--muted); font-size: 15px; line-height: 1.45; }
[data-view="cart"] .view-title, [data-view="track"] .view-title { margin: 6px 0 14px; }
[data-view="track"] .view-title { margin-bottom: 0; }
.title-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sticky-head {
  position: sticky;
  top: -6px;
  z-index: 4;
  margin: -6px -18px 0;
  padding: 6px 18px 10px;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(12px);
}

/* Onglets */
.tabbar {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: calc(var(--tabbar-h) + var(--safe-b));
  padding-bottom: var(--safe-b);
  background: var(--bg);
  border-top: 1px solid var(--line);
  z-index: 6;
}
.tab-indicator {
  position: absolute;
  top: -1px;
  left: 0;
  width: 20%;
  height: 2px;
  pointer-events: none;
  transform: translateX(calc(var(--i, 0) * 100%));
  transition: transform .5s var(--spring);
}
.tab-indicator::before { content: ''; position: absolute; left: 50%; width: 28px; height: 2px; margin-left: -14px; border-radius: 2px; background: var(--red); }
.tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding-top: 11px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  transition: color .25s;
}
.tab .i { width: 24px; height: 24px; transition: transform .45s var(--spring); }
.tab:active .i { transform: scale(.82); }
.tab.active { color: var(--red); }
.tab.active .i { animation: tabJump .55s var(--spring); }
@keyframes tabJump { 35% { transform: translateY(-4px) scale(1.1); } }
.tab-badge {
  position: absolute;
  top: 6px;
  left: calc(50% + 5px);
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 10.5px;
  font-style: normal;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
  box-shadow: 0 0 0 2px #fff;
}

/* Barre panier */
.cart-bar {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: calc(var(--tabbar-h) + var(--safe-b) + 10px);
  z-index: 7;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 18px 8px 8px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  box-shadow: 0 12px 28px rgba(194, 46, 56, .35);
  animation: barIn .55s var(--spring);
  transition: transform .35s var(--spring);
}
.cart-bar:active { transform: scale(.97); }
@keyframes barIn { from { transform: translateY(140%); } }
.cart-bar-count { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--red); font-weight: 800; }
.cart-bar-label { flex: 1; font-weight: 600; }
.cart-bar-total { font-weight: 800; }

/* =====================================================================
   BOUTONS & MICRO-ANIMATIONS
   ===================================================================== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 16px;
  overflow: hidden;
  isolation: isolate;
  user-select: none;
  transition: transform .4s var(--spring), background-color .25s, color .25s, box-shadow .25s;
}
.btn .i { width: 18px; height: 18px; stroke-width: 2.2; transition: transform .35s var(--spring); }
.btn:active { transform: scale(.96); transition-duration: .1s; }
@media (hover: hover) {
  .btn:hover .i:last-child:not(:first-child) { transform: translateX(3px); }
}
.btn-red { background: var(--red); color: #fff; }
@media (hover: hover) { .btn-red:hover { background: var(--red-dark); } .btn-ghost:hover { background: #ECEBEA; } }
.btn-dark { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-ghost { background: var(--surface); color: var(--ink); }
.btn-outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; border-radius: 12px; }
.btn-xs { min-height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; gap: 6px; }
.btn-xs .i { width: 16px; height: 16px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .45; pointer-events: none; }

.ripple {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  background: currentColor;
  opacity: .2;
  transform: scale(0);
  pointer-events: none;
  animation: ripple .6s ease-out forwards;
}
@keyframes ripple { to { transform: scale(1); opacity: 0; } }

.btn.is-loading { pointer-events: none; color: transparent !important; }
.btn.is-loading > * { opacity: 0; }
.btn.is-loading::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  animation: spin .7s linear infinite;
}
.btn-ghost.is-loading::before, .btn-outline.is-loading::before, .btn-light.is-loading::before { border-color: rgba(0, 0, 0, .12); border-top-color: var(--ink); }
.btn.is-success { background: var(--green) !important; color: #fff !important; animation: pop .45s var(--spring); }
@keyframes pop { 0% { transform: scale(.94); } 60% { transform: scale(1.03); } }
.is-error { animation: shakeX .4s ease; }
@keyframes shakeX { 20% { transform: translateX(-7px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(2px); } }
@keyframes spin { to { transform: rotate(360deg); } }

.icon-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  transition: transform .4s var(--spring), background .2s, color .2s;
}
.icon-btn .i { width: 20px; height: 20px; }
.icon-btn:hover { background: #ECEBEA; }
.icon-btn:active { transform: scale(.86); transition-duration: .1s; }
.icon-btn--dark { background: rgba(255, 255, 255, .14); color: #fff; }
.icon-btn--dark:hover { background: rgba(255, 255, 255, .24); }
.icon-btn.spin .i { animation: spin .7s var(--out); }

.badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 0 0 2px #fff;
}
.bump { animation: bump .5s var(--spring); }
@keyframes bump { 40% { transform: scale(1.5); } }
.wiggle .i { animation: wiggle .6s ease; }
@keyframes wiggle { 20% { transform: rotate(-14deg); } 40% { transform: rotate(10deg); } 60% { transform: rotate(-6deg); } 80% { transform: rotate(3deg); } }

/* Bouton + : se change en ✓ */
.add-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  transition: transform .45s var(--spring), background .3s;
}
.add-btn .i { position: absolute; width: 18px; height: 18px; stroke-width: 2.4; transition: transform .45s var(--spring), opacity .2s; }
.add-btn .ico-check { opacity: 0; transform: scale(.3) rotate(-45deg); }
.add-btn:hover { transform: rotate(90deg); background: var(--red); }
.add-btn:active { transform: scale(.82); transition-duration: .1s; }
.add-btn::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--green); opacity: 0; }
.add-btn.is-added { background: var(--green); transform: none; }
.add-btn.is-added .ico-plus { opacity: 0; transform: rotate(180deg) scale(.3); }
.add-btn.is-added .ico-check { opacity: 1; transform: none; }
.add-btn.is-added::after { animation: ringOut .65s ease-out; }
@keyframes ringOut { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(1.8); } }

/* Favori */
.fav-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: #B9B9BE;
  transition: transform .4s var(--spring), color .2s;
}
.fav-btn .i { width: 17px; height: 17px; stroke-width: 2; transition: transform .4s var(--spring); }
.fav-btn:active { transform: scale(.8); }
.fav-btn.is-fav { color: var(--red); }
.fav-btn.is-fav .i { fill: currentColor; }
.fav-btn.pop .i { animation: heartPop .55s var(--spring); }
@keyframes heartPop { 0% { transform: scale(.4); } 50% { transform: scale(1.3); } }
.fav-btn.pop::before {
  content: '';
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  animation: burst .55s ease-out forwards;
}
@keyframes burst {
  0% { box-shadow: 0 0 0 0 var(--red), 0 0 0 0 var(--red), 0 0 0 0 var(--red), 0 0 0 0 var(--red), 0 0 0 0 var(--red), 0 0 0 0 var(--red); opacity: 1; }
  100% { box-shadow: 0 -20px 0 -1px var(--red), 17px -10px 0 -1px var(--yellow), 17px 10px 0 -1px var(--red), 0 20px 0 -1px var(--yellow), -17px 10px 0 -1px var(--red), -17px -10px 0 -1px var(--yellow); opacity: 0; }
}

.link-btn { display: inline-flex; align-items: center; gap: 2px; color: var(--red); font-weight: 600; font-size: 14px; transition: transform .35s var(--spring); }
.link-btn .i { width: 16px; height: 16px; transition: transform .35s var(--spring); }
.link-btn:hover .i { transform: translateX(3px); }
.link-btn:active { transform: scale(.93); }
.text-btn { display: block; margin: 4px auto 0; padding: 10px; color: var(--ink-2); font-weight: 600; font-size: 15px; transition: transform .35s var(--spring), color .2s; }
.text-btn:hover { color: var(--red); }
.text-btn:active { transform: scale(.94); }
.text-btn--right { margin: -4px 0 4px auto; padding: 4px 0; font-size: 14px; color: var(--red); }

/* Sélecteurs segmentés */
[data-segment] { position: relative; isolation: isolate; }
.seg-thumb {
  position: absolute;
  z-index: -1;
  top: 4px;
  left: 0;
  width: 0;
  height: calc(100% - 8px);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
  transition: transform .5s var(--spring), width .5s var(--spring);
}
.seg {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  padding: 4px;
  border-radius: 14px;
  background: var(--surface);
}
.seg button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  transition: color .3s, transform .35s var(--spring);
}
.seg .i { width: 17px; height: 17px; transition: transform .45s var(--spring); }
.seg button:active, .chips button:active { transform: scale(.93); }
.seg button[aria-checked="true"] { color: var(--ink); }
.seg--mode button[aria-checked="true"] { color: var(--red); }
.seg--mode button[aria-checked="true"] .i { transform: scale(1.12); }

.chips { display: flex; gap: 6px; margin-top: 10px; padding: 0; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips .seg-thumb { top: 0; height: 100%; border-radius: 999px; background: var(--ink); box-shadow: none; }
.chips button {
  flex: none;
  min-height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: color .3s, box-shadow .3s, transform .35s var(--spring);
}
.chips button[aria-selected="true"] { color: #fff; box-shadow: none; }

/* Quantité */
.stepper { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; background: var(--surface); }
.step-btn {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
  transition: transform .4s var(--spring), background .2s, color .2s;
}
.step-btn .i { width: 16px; height: 16px; stroke-width: 2.4; }
.step-btn:hover { background: var(--ink); color: #fff; }
.step-btn:active { transform: scale(.8); transition-duration: .1s; }
.step-btn--trash { color: var(--red); }
.step-val { display: grid; min-width: 26px; height: 22px; overflow: hidden; text-align: center; font-weight: 700; }
.step-val b.up { animation: rollUp .3s var(--out); }
.step-val b.down { animation: rollDown .3s var(--out); }
@keyframes rollUp { from { transform: translateY(100%); opacity: 0; } }
@keyframes rollDown { from { transform: translateY(-100%); opacity: 0; } }

.social-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  transition: transform .45s var(--spring), background .25s, color .25s;
}
.social-btn .i { width: 19px; height: 19px; }
.social-btn:hover { transform: translateY(-3px); background: var(--red); color: #fff; }
.social-btn:active { transform: scale(.86); }

/* =====================================================================
   ACCUEIL
   ===================================================================== */
.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 0 14px;
  height: 48px;
  border-radius: 14px;
  background: var(--surface);
  color: var(--muted);
  transition: box-shadow .2s, background .2s;
}
.search-field .i { width: 19px; height: 19px; }
.search-field input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--ink); font-size: 15px; }
.search-field:focus-within { background: #fff; box-shadow: inset 0 0 0 1.5px var(--ink); }
.search-field--compact { height: 44px; margin-top: 8px; }

.hero { margin: 16px -18px 0; }
.hero-track { display: flex; gap: 12px; padding: 0 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.hero-track::-webkit-scrollbar { display: none; }
.hero-slide {
  position: relative;
  flex: 0 0 100%;
  min-height: 190px;
  padding: 20px;
  border-radius: var(--r-lg);
  overflow: hidden;
  scroll-snap-align: center;
  display: flex;
  align-items: flex-end;
}
.hero-copy { position: relative; z-index: 1; max-width: 60%; display: grid; gap: 6px; justify-items: start; }
.hero-copy h1, .hero-copy h2 { font-size: 23px; font-weight: 800; line-height: 1.12; letter-spacing: -.015em; }
.hero-copy p { font-size: 13.5px; line-height: 1.4; opacity: .85; margin-bottom: 6px; }
.hero-slide--red { background: var(--red); color: #fff; }
.hero-slide--cream { background: #FBF3EA; color: var(--ink); }
.hero-slide--dark { background: var(--ink); color: #fff; }
.hero-pizza { position: absolute; right: -54px; top: 50%; width: 200px; transform: translateY(-50%); filter: drop-shadow(0 14px 20px rgba(0, 0, 0, .28)); }
.hero-pizza--chef { right: -28px; width: 180px; }
.hero-dots { display: flex; justify-content: center; gap: 5px; margin-top: 10px; }
.hero-dots button { width: 6px; height: 6px; border-radius: 999px; background: #D9D9DC; transition: width .45s var(--spring), background .3s; }
.hero-dots button[aria-current="true"] { width: 20px; background: var(--ink); }

.pill { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; }
.pill .i { width: 13px; height: 13px; stroke-width: 2.2; }
.pill--glass { background: rgba(255, 255, 255, .18); }
.pill--red { background: var(--red-50); color: var(--red); }
.pill--green { background: var(--green-50); color: var(--green); }
.pill--muted { background: var(--surface); color: var(--ink-2); }
.pill--dark { background: var(--ink); color: #fff; }

.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 20px; }
.quick-tile { display: grid; justify-items: center; gap: 8px; font-size: 13px; font-weight: 600; transition: transform .4s var(--spring); }
.quick-ico {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  max-width: 72px;
  border-radius: 20px;
  background: var(--surface);
  color: var(--red);
  transition: background .25s, color .25s, transform .45s var(--spring);
}
.quick-ico .i { width: 28px; height: 28px; stroke-width: 1.6; transition: transform .45s var(--spring); }
.quick-tile:hover .quick-ico { background: var(--red); color: #fff; }
.quick-tile:hover .quick-ico .i { transform: rotate(-10deg) scale(1.08); }
.quick-tile:active { transform: scale(.9); transition-duration: .1s; }

.join-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding: 14px;
  border-radius: var(--r-md);
  background: var(--red-50);
}
.join-card div { flex: 1; display: grid; gap: 2px; }
.join-card strong { font-size: 15px; }
.join-card span { font-size: 13px; color: var(--ink-2); }
.join-ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #fff; color: var(--red); flex: none; }

.section-head { display: flex; align-items: center; justify-content: space-between; margin: 28px 0 12px; }
.section-head h2 { font-size: 19px; font-weight: 800; letter-spacing: -.01em; }

.rail { display: flex; gap: 12px; margin: 0 -18px; padding: 2px 18px 6px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail .p-card { flex: 0 0 164px; scroll-snap-align: start; }

/* Carte produit */
.p-card { position: relative; display: flex; flex-direction: column; text-align: left; cursor: pointer; transition: transform .4s var(--spring); }
.p-card:active { transform: scale(.97); }
.p-card.is-out .p-img img { filter: grayscale(1); opacity: .55; }
.p-card.is-out .price { color: var(--muted); text-decoration: line-through; }
.line.is-out .line-img img { filter: grayscale(1); opacity: .55; }
.line-out { color: var(--red) !important; font-weight: 600; }
#sheet-add:disabled { background: var(--surface); color: var(--muted); cursor: not-allowed; }
.p-img { position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: var(--r-md); background: var(--surface); overflow: hidden; }
.p-img img { width: 88%; height: 88%; object-fit: contain; mix-blend-mode: multiply; transition: transform .6s var(--out); }
.p-card:hover .p-img img { transform: scale(1.04) rotate(-3deg); }
.p-card h3 { margin-top: 10px; font-size: 15.5px; font-weight: 700; line-height: 1.2; }
.p-card p { margin-top: 3px; color: var(--muted); font-size: 12.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.p-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.price { font-weight: 700; font-size: 15px; white-space: nowrap; }
.p-tag { position: absolute; top: 8px; left: 8px; z-index: 1; }

.perks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.perks li { display: grid; gap: 2px; padding: 14px 12px; border-radius: var(--r-md); background: var(--surface); font-size: 13.5px; }
.perks small { color: var(--muted); font-size: 11.5px; line-height: 1.3; }
.perk-ico { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 8px; border-radius: 10px; background: #fff; color: var(--red); }
.perk-ico .i { width: 18px; height: 18px; }

.info-card { margin-top: 12px; border-radius: var(--r-md); border: 1px solid var(--line); }
.info-row { display: flex; align-items: center; gap: 12px; padding: 14px; font-size: 14px; color: var(--ink-2); }
.info-row + .info-row { border-top: 1px solid var(--line); }
.info-row b { color: var(--ink); }
.info-row .i { width: 19px; height: 19px; color: var(--red); }

.footer { margin-top: 28px; text-align: center; color: var(--muted); font-size: 12.5px; }
.socials { display: flex; justify-content: center; gap: 10px; margin-bottom: 12px; }
.footer .credit { margin-top: 6px; font-size: 12px; }
.footer .credit a { color: var(--red); font-weight: 700; }
.footer .credit a:hover { text-decoration: underline; }

/* =====================================================================
   MENU
   ===================================================================== */
.menu-section { margin-top: 18px; }
.menu-section h2 { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; font-size: 19px; font-weight: 800; }
.menu-section h2 small { font-size: 13px; color: var(--muted); font-weight: 600; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 12px; }
.empty { display: grid; justify-items: center; gap: 8px; padding: 48px 20px; text-align: center; color: var(--muted); font-size: 14.5px; }
.empty-ico { display: grid; place-items: center; width: 72px; height: 72px; margin-bottom: 6px; border-radius: 50%; background: var(--surface); color: var(--ink-2); }
.empty-ico .i { width: 30px; height: 30px; stroke-width: 1.5; }
.empty strong { color: var(--ink); font-size: 18px; }
.empty .btn { margin-top: 10px; }

/* =====================================================================
   FEUILLES (bottom sheets)
   ===================================================================== */
.sheet { position: absolute; inset: 0; z-index: 40; display: flex; align-items: flex-end; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .4); opacity: 0; transition: opacity .35s; }
.sheet-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: 92%;
  border-radius: 24px 24px 0 0;
  background: #fff;
  transform: translateY(100%);
  transition: transform .5s cubic-bezier(.32, .72, 0, 1);
}
.sheet.open .sheet-backdrop { opacity: 1; }
.sheet.open .sheet-panel { transform: none; }
.sheet-grip { width: 38px; height: 5px; margin: 8px auto 0; border-radius: 99px; background: #DADADD; flex: none; }
.sheet-scroll { overflow-y: auto; overscroll-behavior: contain; padding: 0 20px 20px; }
.sheet-footer { display: flex; gap: 10px; align-items: center; padding: 12px 20px calc(12px + var(--safe-b)); border-top: 1px solid var(--line); }
.btn-add { flex: 1; justify-content: space-between; }
.btn-add .btn-price { font-weight: 800; }

.sheet-close { position: absolute; top: 12px; right: 14px; z-index: 2; }
.sheet-hero { position: relative; display: grid; place-items: center; margin: 8px -20px 0; padding: 10px 0 0; }
.sheet-hero::before { content: ''; position: absolute; width: 236px; height: 236px; border-radius: 50%; background: var(--surface); }
.sheet-hero img { position: relative; width: 220px; height: 220px; object-fit: contain; mix-blend-mode: multiply; }
.sheet-hero .fav-btn { top: 4px; left: 16px; right: auto; background: var(--surface); }
.sheet-info { margin-top: 12px; }
.sheet-info h2 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.sheet-info p { margin-top: 6px; color: var(--ink-2); font-size: 15px; line-height: 1.45; }
.sheet-info .price { display: inline-block; margin-top: 10px; font-size: 19px; color: var(--red); }

.opt-group { margin-top: 24px; }
.opt-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.opt-head h3 { font-size: 16px; font-weight: 700; }
.opt-group.invalid .seg { box-shadow: inset 0 0 0 1.5px var(--red); animation: shakeX .4s ease; }
.opt-list { display: grid; }
.opt-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  text-align: left;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
  transition: transform .4s var(--spring);
}
.opt-row:last-child { border-bottom: 0; }
.opt-row:active { transform: scale(.98); }
.opt-row .opt-name { flex: 1; }
.opt-row .opt-price { color: var(--muted); font-size: 14px; }
.check {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  box-shadow: inset 0 0 0 1.5px #CFCFD4;
  transition: background .25s, box-shadow .25s, transform .4s var(--spring);
}
.check .i { width: 14px; height: 14px; stroke: #fff; stroke-width: 3; stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .3s ease .05s; }
.opt-row[aria-pressed="true"] .check { background: var(--red); box-shadow: none; transform: scale(1.08); }
.opt-row[aria-pressed="true"] .check .i { stroke-dashoffset: 0; }
.opt-row[aria-pressed="true"] .opt-price { color: var(--ink); }

/* Conditions de commande à emporter : texte dépliable + case à cocher */
.terms { margin-top: 14px; font-size: 13px; color: var(--muted); }
.terms summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.terms ul { margin: 8px 0 0; padding-left: 18px; line-height: 1.45; }
.terms-row { display: flex; gap: 10px; align-items: center; width: 100%; margin-top: 10px; padding: 12px 0; background: none; border: 0; font: inherit; font-size: 14px; text-align: left; color: var(--ink); cursor: pointer; }
.terms-row .check { flex: none; }
.terms-row[aria-pressed="true"] .check { background: var(--red); box-shadow: none; }
.terms-row[aria-pressed="true"] .check .i { stroke-dashoffset: 0; }
.terms-row.shake { animation: shakeX .4s ease; }
.cancel-btn { margin-top: 14px; }
.cancel-btn + .legal { margin-top: 8px; }

.mini-rail { display: flex; gap: 8px; margin: 0 -20px; padding: 2px 20px 4px; overflow-x: auto; scrollbar-width: none; }
.mini-rail::-webkit-scrollbar { display: none; }
.mini-drink {
  position: relative;
  flex: 0 0 92px;
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 10px 6px;
  border-radius: 14px;
  background: var(--surface);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  transition: transform .4s var(--spring), box-shadow .25s;
}
.mini-drink img { width: 50px; height: 50px; object-fit: contain; mix-blend-mode: multiply; transition: transform .45s var(--spring); }
.mini-drink small { color: var(--muted); font-weight: 500; }
.mini-drink:active { transform: scale(.93); }
.mini-drink[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px var(--ink); }
.mini-drink[aria-pressed="true"] img { transform: rotate(-8deg) scale(1.06); }
.mini-tick { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); color: #fff; transform: scale(0); transition: transform .4s var(--spring); }
.mini-tick .i { width: 11px; height: 11px; stroke-width: 3; }
.mini-drink[aria-pressed="true"] .mini-tick { transform: scale(1); }

/* =====================================================================
   FORMULAIRES
   ===================================================================== */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 7px; }
.field > span:first-child { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.field small { font-weight: 500; color: var(--muted); }
.input {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 14px;
  border-radius: 14px;
  background: var(--surface);
  color: var(--muted);
  box-shadow: inset 0 0 0 1.5px transparent;
  transition: box-shadow .2s, background .2s;
}
.input .i { width: 19px; height: 19px; }
.input input, .input textarea { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--ink); font-size: 16px; padding: 14px 0; }
.input textarea { min-height: 70px; resize: vertical; }
.input:focus-within { background: #fff; box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink); }
.field.invalid .input { box-shadow: inset 0 0 0 1.5px var(--red); background: var(--red-50); color: var(--red); }
.prefix { padding-right: 10px; margin-right: 2px; border-right: 1px solid #DDD; font-weight: 600; color: var(--ink-2); }


.legal { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.legal .i { width: 16px; height: 16px; color: var(--green); margin-top: 1px; }
.divider { display: flex; align-items: center; gap: 12px; margin: 22px 0; color: var(--muted); font-size: 13px; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.inline-link { color: var(--red); font-weight: 700; }

/* Connexion Google et code SMS */
.btn-google { gap: 10px; }
.btn-google .g-logo { width: 20px; height: 20px; flex: none; }
.otp-input { letter-spacing: .5em; font-weight: 700; font-variant-numeric: tabular-nums; }
.otp-sent { margin-top: 0; }
.otp-sent b, .screen-sub b { color: var(--ink); white-space: nowrap; }
#recaptcha { position: fixed; bottom: 0; right: 0; z-index: 1000; }

/* =====================================================================
   PANIER
   ===================================================================== */
.block-title { margin: 26px 0 10px; font-size: 16px; font-weight: 800; }
.lines { display: grid; }
.line { display: grid; grid-template-columns: 60px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.line-img { width: 60px; height: 60px; border-radius: 14px; background: var(--surface); display: grid; place-items: center; overflow: hidden; }
.line-img img { width: 88%; height: 88%; object-fit: contain; mix-blend-mode: multiply; }
.line-info { min-width: 0; }
.line-info h3 { font-size: 15px; font-weight: 700; }
.line-info p { color: var(--muted); font-size: 12.5px; line-height: 1.35; margin-top: 2px; }
.line-info .price { display: block; margin-top: 4px; font-size: 14px; }
.line .step-btn { width: 28px; height: 28px; }
.line.removing { animation: lineOut .3s ease forwards; }
@keyframes lineOut { to { opacity: 0; transform: translateX(-24px); } }

.who {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
}
.who-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--surface); color: var(--ink); flex: none; }
.who-ico .i { width: 19px; height: 19px; }
.who div { flex: 1; min-width: 0; display: grid; gap: 2px; font-size: 14px; }
.who div span { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.login-hint { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 14px; border-radius: var(--r-md); background: var(--surface); font-size: 14px; }
.login-hint .i { color: var(--red); }
.login-hint span { flex: 1; color: var(--ink-2); }

.coupon-row { display: flex; gap: 8px; }
.coupon-row .input { flex: 1; min-width: 0; }
.coupon-row .btn { flex: none; min-height: 52px; padding: 0 18px; }

.summary { display: grid; gap: 8px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 15px; }
.summary div { display: flex; justify-content: space-between; }
.summary .muted { color: var(--muted); }
.summary .total { padding-top: 6px; font-size: 19px; font-weight: 800; }
.summary .discount { color: var(--green); font-weight: 700; }
.checkout-btn { margin-top: 16px; min-height: 56px; justify-content: space-between; }

/* Succès */
.done { display: grid; justify-items: center; gap: 8px; text-align: center; }
.done-check { width: 88px; height: 88px; margin-bottom: 8px; }
.done-check circle { fill: var(--green-50); stroke: var(--green); stroke-width: 3; stroke-dasharray: 280; stroke-dashoffset: 280; animation: draw .8s var(--out) .15s forwards; }
.done-check path { fill: none; stroke: var(--green); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .5s var(--out) .75s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.success { padding: 22px 0 6px; }
.success-actions { display: grid; gap: 8px; width: 100%; margin-top: 12px; }

/* =====================================================================
   SUIVI
   ===================================================================== */
.track-card { margin-top: 18px; padding: 16px; border-radius: var(--r-md); border: 1px solid var(--line); }
.track-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.track-top strong { display: block; font-size: 18px; letter-spacing: .06em; }
.track-top small { color: var(--muted); }
.timeline { list-style: none; margin: 18px 0 4px; padding: 0; }
.timeline li { position: relative; display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding-bottom: 18px; color: var(--muted); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ''; position: absolute; left: 16px; top: 34px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline .dot { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--surface); }
.timeline .dot .i { width: 17px; height: 17px; }
.timeline b { display: block; font-size: 15px; margin-top: 6px; }
.timeline small { font-size: 12.5px; }
.timeline li.done, .timeline li.current { color: var(--ink); }
.timeline li.done { justify-items: stretch; gap: 12px; text-align: left; } /* annule .done (écran de succès) */
.timeline li.done .dot { background: var(--green); color: #fff; }
.timeline li.done::before { background: var(--green); }
.timeline li.current .dot { background: var(--red); color: #fff; box-shadow: 0 0 0 5px var(--red-50); }
.order-items { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); display: grid; gap: 4px; }
.order-items div { display: flex; justify-content: space-between; gap: 10px; }
.alert { display: flex; gap: 10px; align-items: center; margin-top: 14px; padding: 14px; border-radius: 14px; background: var(--red-50); color: var(--red-dark); font-weight: 600; font-size: 14px; }
.alert .i { width: 19px; height: 19px; }

/* =====================================================================
   COMMANDE (mode, coordonnées, paiement) et DÉTAIL D'UNE COMMANDE
   ===================================================================== */
.choices, .pay-list { display: grid; gap: 10px; }
.choice {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 18px 16px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--line);
  background: #fff;
  text-align: left;
  transition: transform .35s var(--spring), border-color .2s, background .2s;
}
.choice:hover { border-color: #D6D6D6; }
.choice:active { transform: scale(.97); }
.choice .grow { flex: 1; min-width: 0; display: grid; gap: 3px; }
.choice b { font-size: 17px; font-weight: 800; }
.choice small { color: var(--muted); font-size: 13px; line-height: 1.35; }
.choice > .i { width: 20px; height: 20px; color: #C2C2C7; transition: transform .35s var(--spring); }
.choice:hover > .i { transform: translateX(3px); }
.choice-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--red-50); color: var(--red); flex: none; }
.choice-ico .i { width: 26px; height: 26px; }

.choice--pay { padding: 14px; }
.choice--pay b { font-size: 15.5px; }
.choice--pay[aria-checked="true"] { border-color: var(--red); background: var(--red-50); }
.radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #D1D1D6; flex: none; transition: border .25s var(--spring); }
.choice--pay[aria-checked="true"] .radio { border: 7px solid var(--red); }
.pay-list.shake { animation: shakeX .4s ease; }

.pay-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--surface); color: var(--ink); flex: none; font-size: 11.5px; font-weight: 800; letter-spacing: -.01em; }
.pay-ico .i { width: 19px; height: 19px; }
.pay-ico--mobile_money { background: #1DC8FF; color: #0B1F3A; font-size: 12px; }

.suffix { color: var(--muted); font-size: 14px; font-weight: 600; }
.cash-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: -4px; }
.chip-btn { padding: 8px 12px; border-radius: 10px; background: var(--surface); font-size: 13.5px; font-weight: 700; transition: transform .35s var(--spring), background .2s; }
.chip-btn:hover { background: #ECEBEA; }
.chip-btn:active { transform: scale(.92); }
.change { min-height: 20px; margin: -4px 0 0; font-size: 14px; }
.change-line { color: var(--green); }
.change-line--bad { color: var(--red); font-weight: 600; }

/* Suivi : cartes des commandes en cours */
.order-cards { display: grid; gap: 10px; }
.order-card {
  display: grid;
  gap: 12px;
  width: 100%;
  padding: 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  text-align: left;
  transition: transform .35s var(--spring), background .2s;
}
.order-card:hover { background: #FAFAFA; }
.order-card:active { transform: scale(.98); }
.order-card-top { display: flex; align-items: center; gap: 12px; }
.order-card-top .row-ico { background: var(--red-50); color: var(--red); }
.order-card-top .grow { flex: 1; min-width: 0; display: grid; gap: 2px; }
.order-card-top b { font-size: 15.5px; }
.order-card-top small { color: var(--muted); font-size: 12.5px; }
.order-card-top > .i { width: 18px; height: 18px; color: #C2C2C7; }
.progress { display: block; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.progress i { display: block; height: 100%; width: calc(var(--p) * 100%); border-radius: 4px; background: var(--red); transition: width .6s var(--out); }
.track-history { margin-top: 18px; }

/* Détail d'une commande */
.order-done { padding: 6px 0 18px; }
.order-done .screen-sub { margin: 0; }

.qr-card { display: grid; justify-items: center; gap: 6px; margin-top: 14px; padding: 20px 16px; border-radius: var(--r-md); border: 1.5px dashed var(--line); text-align: center; }
.qr-card.is-ready { border: 1.5px solid var(--red); background: var(--red-50); }
.qr-card img { width: 200px; height: 200px; padding: 10px; margin-bottom: 6px; border-radius: 14px; background: #fff; object-fit: contain; image-rendering: pixelated; }
.qr-card b { font-size: 15.5px; }
.qr-card small { color: var(--muted); font-size: 13px; line-height: 1.4; max-width: 280px; }
.pickup-code { margin: -2px 0 4px; font-family: ui-monospace, Consolas, monospace; font-size: 22px; font-weight: 800; letter-spacing: .18em; }
.qr-text { max-width: 100%; padding: 10px 12px; border-radius: 10px; background: #fff; font-size: 12px; word-break: break-all; }
.qr-wait { display: grid; place-items: center; width: 84px; height: 84px; margin-bottom: 4px; border-radius: 20px; background: var(--surface); color: var(--muted); }
.qr-wait .i { width: 38px; height: 38px; }
.pay-btn { margin-top: 10px; }
.pay-btn .i:last-child { margin-left: auto; }
.timeline time { margin-left: 6px; color: var(--muted); font-size: 12.5px; font-weight: 600; }

/* Bandeau d'annonce de la caisse (accueil, panier) ; « fermé » en rouge */
.announce { position: relative; overflow: hidden; margin: 14px 0 0; padding: 11px 0; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: 14px; line-height: 1.35; }
.announce__track { display: flex; width: max-content; animation: announce-scroll var(--announce-dur, 20s) linear infinite; }
.announce__set { display: flex; flex: none; }
.announce__item { display: inline-flex; gap: 8px; align-items: center; padding: 0 28px; white-space: nowrap; }
.announce .i { width: 18px; height: 18px; flex: none; color: var(--red); }
.announce:hover .announce__track, .announce:active .announce__track { animation-play-state: paused; }
@keyframes announce-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .announce__track { animation: none; width: auto; }
  .announce__set { flex-direction: column; gap: 6px; padding: 0 14px; }
  .announce__set[aria-hidden="true"] { display: none; }
  .announce__item { white-space: normal; padding: 0; }
}
.announce--closed { background: var(--red-50); border-color: transparent; color: var(--red-dark); }
.announce--closed .i { color: var(--red-dark); }

/* Livraison : opérateurs, position du client, carte de suivi, paiement à l'arrivée */
.pay-ico--wave { background: #1DC8FF; color: #0B1F3A; font-size: 12px; }
.pay-ico--orange { background: #FF7900; color: #fff; }
.pay-ico--mtn { background: #FFCC00; color: #1A1A1A; }
.choice:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.loc-card { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: var(--r-md); border: 1.5px dashed var(--line); }
.loc-card.is-ok { border: 1.5px solid var(--green); background: var(--green-50); }
.loc-card.is-ok .who-ico { background: #fff; color: var(--green); }
.loc-card.is-bad { border: 1.5px solid var(--red); background: var(--red-50); }
.loc-card > div { flex: 1; min-width: 0; display: grid; gap: 3px; font-size: 14px; }
.loc-card small { color: var(--muted); font-size: 13px; line-height: 1.4; }
.loc-card.is-bad small { color: var(--red-dark); }
.loc-card .muted { color: var(--muted); font-weight: 600; font-size: 12.5px; }
.loc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.map-card { margin-top: 14px; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.map-card iframe { display: block; width: 100%; height: min(60vh, 340px); border: 0; }
.map-meta { margin: 0; padding: 10px 14px; font-size: 13px; font-weight: 600; color: var(--green); }
.map-meta .is-stale { color: var(--muted); }
.alert--ok { background: var(--green-50); color: var(--green); }
.pay-instr { display: flex; gap: 10px; align-items: center; margin-top: 10px; padding: 12px 14px; border-radius: 14px; background: var(--surface); font-family: ui-monospace, Consolas, monospace; font-size: 16px; font-weight: 800; letter-spacing: .04em; }
.pay-instr span { flex: 1; min-width: 0; overflow-wrap: anywhere; }

/* =====================================================================
   COMPTE
   ===================================================================== */
.profile { display: flex; align-items: center; gap: 14px; padding: 6px 0 20px; }
.avatar { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--red); color: #fff; font-size: 22px; font-weight: 800; flex: none; }
.profile h1 { font-size: 22px; font-weight: 800; }
.profile p { color: var(--muted); font-size: 14px; }
.list { border-radius: var(--r-md); border: 1px solid var(--line); overflow: hidden; }
.list-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px;
  text-align: left;
  font-size: 15px;
  font-weight: 500;
  overflow: hidden;
  isolation: isolate;
  transition: background .2s;
}
.list-row + .list-row { border-top: 1px solid var(--line); }
.list-row:hover { background: #FAFAFA; }
.list-row:active .row-ico { transform: scale(.88); }
.row-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--surface); color: var(--ink); flex: none; transition: transform .35s var(--spring); }
.row-ico .i { width: 18px; height: 18px; }
.list-row .grow { flex: 1; min-width: 0; display: grid; gap: 1px; }
.list-row .grow small { color: var(--muted); font-size: 12.5px; }
.list-row > .i { width: 18px; height: 18px; color: #C2C2C7; transition: transform .35s var(--spring); }
.list-row:hover > .i { transform: translateX(3px); }
.list-row--danger { color: var(--red); }
.list-row--danger .row-ico { background: var(--red-50); color: var(--red); }
.guest-card { display: grid; justify-items: center; gap: 8px; padding: 30px 18px 22px; text-align: center; }
.guest-card .empty-ico { background: var(--red-50); color: var(--red); }
.guest-card h1 { font-size: 22px; font-weight: 800; }
.guest-card p { color: var(--muted); font-size: 14.5px; line-height: 1.45; max-width: 300px; }
.guest-actions { display: grid; gap: 8px; width: 100%; margin-top: 14px; }

/* =====================================================================
   ÉCRANS PLEINE PAGE (bienvenue, connexion, inscription, profil)
   ===================================================================== */
.screen {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  background: #fff;
  overflow-y: auto;
  padding: env(safe-area-inset-top, 0px) 0 var(--safe-b);
  animation: screenIn .45s var(--out);
}
@keyframes screenIn { from { opacity: 0; transform: translateX(28px); } }
.screen-head { display: flex; align-items: center; gap: 14px; padding: 12px 18px; }
.screen-head-title { font-size: 17px; font-weight: 700; }
.screen-body { flex: 1; padding: 10px 22px 20px; }
.screen-title { font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.screen-sub { margin: 8px 0 24px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.screen-foot { padding: 16px 22px 22px; text-align: center; font-size: 14.5px; color: var(--ink-2); }
.screen--center { justify-content: center; padding: 24px; }
.screen--center .welcome-actions { margin-top: 36px; }

.steps { flex: 1; display: grid; grid-template-columns: repeat(var(--n, 2), 1fr); gap: 6px; }
.steps i { height: 4px; border-radius: 4px; background: var(--line); transition: background .4s; }
.steps i.on { background: var(--red); }
.steps-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.reg-step { display: grid; gap: 14px; animation: screenIn .4s var(--out); }
.reg-step .screen-sub { margin: -6px 0 6px; }

.screen--welcome { padding-bottom: calc(18px + var(--safe-b)); animation: fadeIn .6s ease; }
.welcome-top { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px 0; }
.welcome-logo { width: 54px; height: 54px; }
.skip-link { padding: 8px 4px; font-size: 14px; font-weight: 600; color: var(--muted); transition: transform .35s var(--spring); }
.skip-link:active { transform: scale(.92); }
.welcome-visual { position: relative; flex: 1; min-height: 240px; display: grid; place-items: center; }
.welcome-disc { position: absolute; width: 260px; height: 260px; border-radius: 50%; background: var(--red-50); }
.welcome-visual img { position: relative; width: 250px; filter: drop-shadow(0 20px 26px rgba(0, 0, 0, .18)); }
.welcome-copy { padding: 0 24px; }
.welcome-copy h1 { font-size: 29px; font-weight: 800; letter-spacing: -.02em; line-height: 1.12; }
.welcome-copy p { margin-top: 10px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.welcome-actions { display: grid; gap: 10px; padding: 26px 22px 0; }

/* =====================================================================
   VISIONNEUSE + TOAST
   ===================================================================== */
.viewer { position: absolute; inset: 0; z-index: 45; background: rgba(10, 10, 10, .95); display: flex; flex-direction: column; }
.viewer-stage { flex: 1; overflow: auto; display: grid; place-items: center; padding: 16px; }
.viewer-stage img { width: calc(100% * var(--z, 1)); max-width: none; border-radius: 8px; transition: width .35s var(--out); }
.viewer-bar { display: flex; justify-content: center; gap: 14px; padding: 14px 0 calc(14px + var(--safe-b)); }

.toast {
  position: absolute;
  left: 50%;
  bottom: calc(var(--tabbar-h) + var(--safe-b) + 74px);
  z-index: 60;
  max-width: calc(100% - 32px);
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity .3s, transform .45s var(--spring);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: var(--red-dark); }

@media (max-width: 360px) {
  .seg--mode .i { display: none; }
  .hero-copy h1, .hero-copy h2 { font-size: 20px; }
}

/* =====================================================================
   À EMPORTER : parcours au ralenti (étapes de commande, voyage de la pizza)
   ===================================================================== */
:root { --slow: cubic-bezier(.16, 1, .3, 1); }

/* Barres d'étapes : remplissage lent de gauche à droite */
.steps i { position: relative; overflow: hidden; }
.steps i.on { background: var(--line); }
.steps i::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--slow); }
.steps i.on::after { transform: scaleX(1); }

/* Étapes : chaque bloc glisse et apparaît l'un après l'autre, au ralenti */
.co-step { animation: none; }
.co-enter > * { animation: coRise .9s var(--slow) both; animation-delay: calc(var(--k, 0) * 90ms); }
.co-enter--back > * { animation-name: coRiseBack; }
@keyframes coRise { from { opacity: 0; transform: translate(26px, 10px); filter: blur(4px); } }
@keyframes coRiseBack { from { opacity: 0; transform: translate(-26px, 10px); filter: blur(4px); } }
.co-enter .choices > * { animation: coRise .9s var(--slow) both; animation-delay: calc(240ms + var(--c, 0) * 140ms); }
.co-enter .choices > :nth-child(2) { --c: 1; }

/* Choix du mode : la carte choisie s'illumine, l'icône saute, les autres s'effacent */
.choice { transition: transform .5s var(--spring), border-color .5s, background .5s, opacity .6s var(--slow), filter .6s; }
.choices.has-pick .choice:not(.is-picked) { opacity: .3; filter: grayscale(1); transform: scale(.97); }
.choice.is-picked { border-color: var(--red); background: var(--red-50); transform: scale(1.02); }
.choice.is-picked .choice-ico { animation: icoHop .75s var(--spring); background: var(--red); color: #fff; transition: background .4s, color .4s; }
.choice.is-picked > .i { color: var(--red); transform: translateX(8px); }
@keyframes icoHop { 0% { transform: none; } 35% { transform: translateY(-9px) rotate(-8deg) scale(1.08); } 70% { transform: translateY(2px) scale(.97); } }

/* Paiement : la puce choisie fait un petit « pop » */
.choice--pay.is-picked { animation: pop .55s var(--spring); }
.choice--pay.is-picked .radio { animation: radioPop .6s var(--spring); }
@keyframes radioPop { 0% { transform: scale(.4); } 60% { transform: scale(1.18); } }

/* Commande envoyée : coche dessinée au ralenti */
.order-done .done-check circle { animation-duration: 1.4s; }
.order-done .done-check path { animation-duration: .9s; animation-delay: 1.2s; }
.order-done .screen-title, .order-done .screen-sub { animation: coRise 1s var(--slow) both; }
.order-done .screen-title { animation-delay: 1.5s; }
.order-done .screen-sub { animation-delay: 1.7s; }

@keyframes pizzaFloat { 50% { transform: translateY(-5px) rotate(4deg); } }

/* Code de retrait : révélé au ralenti, reflet qui passe */
.qr-fresh .biz-qr img, .qr-fresh .biz-code { animation: qrReveal 1.6s var(--slow) both; }
.qr-fresh .biz-code { animation-delay: .5s; }
@keyframes qrReveal { from { opacity: 0; transform: scale(.82); filter: blur(10px); } }
.qr-card.is-ready { position: relative; overflow: hidden; }
.qr-card.is-ready::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .55) 50%, transparent 60%); transform: translateX(-100%); animation: shine 4s ease-in-out 1s infinite; pointer-events: none; }
@keyframes shine { 0%, 60% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

/* =====================================================================
   RESTAURANT FERMÉ
   ===================================================================== */
.screen--closed { padding: 24px 22px calc(24px + var(--safe-b)); }
.closed { display: grid; gap: 22px; width: 100%; max-width: 420px; margin: 0 auto; text-align: center; }
.closed > * { animation: coRise 1s var(--slow) both; }
.closed > :nth-child(2) { animation-delay: .25s; }
.closed > :nth-child(3) { animation-delay: .4s; }
.closed > :nth-child(4) { animation-delay: .55s; }
.closed-mark { position: relative; display: grid; place-items: center; height: 170px; }
.closed-disc { position: absolute; width: 150px; height: 150px; border-radius: 50%; background: var(--surface); }
.closed-mark img { position: relative; width: 96px; height: 96px; filter: grayscale(.35); animation: pizzaFloat 5s ease-in-out infinite; }
.closed-badge { position: absolute; bottom: 4px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 700; }
.closed-badge .i { width: 16px; height: 16px; }
.closed-msg { font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; }
.closed-info { text-align: left; }
.closed-info .grow { display: grid; gap: 2px; }
.closed-info small { color: var(--muted); font-size: 12.5px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ---- Boutons ronds ---- */

/* ---- Page Historique ---- */
.hist-list { display: grid; gap: 12px; }
.hist-card { display: grid; gap: 6px; width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; text-align: left; font: inherit; color: var(--ink); transition: transform .35s var(--spring); }
.hist-card:active { transform: scale(.98); }
.hist-top, .hist-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hist-top b { font-size: 16px; }
.hist-date { color: var(--muted); font-size: 13px; }
.hist-items { font-size: 14px; color: var(--ink-2); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hist-reason { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--red); }
.hist-reason .i { width: 15px; height: 15px; flex: none; }
.hist-bottom { font-size: 13px; color: var(--muted); }
.hist-bottom b { margin-left: auto; font-size: 15px; color: var(--ink); }
.hist-bottom .i { width: 16px; height: 16px; }

@media (prefers-reduced-motion: reduce) {
  .steps-car li, .side-btn, .hist-card { transition: none; }
}

/* =====================================================================
   COMMANDE — refonte (suivi, détail, carte de retrait, historique)
   Même identité que menu/accueil : Outfit, variables, rayons, ombres.
   ===================================================================== */
.block-title { margin: 28px 0 12px; font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.track-card { margin-top: 0; padding: 16px; border-radius: var(--r-md); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.alert { margin-top: 12px; border-radius: var(--r-md); }
.who { border-radius: var(--r-md); }
.order-items { gap: 8px; font-size: 14.5px; }
.order-items div span:last-child { font-weight: 700; color: var(--ink); white-space: nowrap; }
.summary { margin-top: 14px; padding-top: 14px; font-size: 14.5px; }
.summary .total { font-size: 20px; letter-spacing: -.01em; }
.order-card { border-radius: var(--r-md); background: #fff; box-shadow: var(--shadow); }
.order-card-top b { font-size: 16px; }
.hist-card { padding: 16px; box-shadow: var(--shadow); gap: 8px; }
.hist-top b { font-size: 17px; letter-spacing: .02em; }
.hist-bottom { padding-top: 10px; border-top: 1px solid var(--line); }

/* Carte de retrait : format carte de visite (85 × 55) */
.biz { margin-top: 14px; }
.biz-card {
  position: relative;
  aspect-ratio: 85 / 55;
  min-height: 190px;
  max-width: 440px;
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: clamp(6px, 2.5vw, 12px);
  padding: clamp(10px, 3.5vw, 16px);
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .06), 0 14px 32px rgba(163, 34, 43, .28);
  overflow: hidden;
}
.biz-card::after { content: ''; position: absolute; right: -50px; top: -50px; width: 150px; height: 150px; border-radius: 50%; background: rgba(255, 255, 255, .08); pointer-events: none; }
.biz-brand { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; letter-spacing: .12em; }
.biz-brand img { width: 28px; height: 28px; border-radius: 50%; background: #fff; padding: 2px; object-fit: contain; }
.biz-brand em { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 700; letter-spacing: .06em; padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, .2); }
.biz-main { position: relative; z-index: 1; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: clamp(10px, 3.5vw, 18px); min-height: 0; }
.biz-qr { display: grid; place-items: center; width: clamp(104px, 36vw, 150px); aspect-ratio: 1; padding: 6px; border-radius: 12px; background: #fff; }
.biz-qr img { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; background: #fff; }
.biz-qr .qr-text { color: #000; font-size: 9px; }
.biz-info { display: grid; gap: 5px; min-width: 0; }
.biz-info small { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.biz-code { font-family: ui-monospace, Consolas, monospace; font-size: clamp(22px, 7.4vw, 32px); font-weight: 800; letter-spacing: .14em; line-height: 1.1; word-break: break-all; }
.biz-code--ref { font-size: clamp(18px, 6vw, 24px); }
.biz-hint { font-size: 12.5px; line-height: 1.35; opacity: .92; }
.biz:not(.is-ready) .biz-card { background: linear-gradient(135deg, #3A3A3C 0%, var(--ink) 100%); box-shadow: 0 2px 4px rgba(0, 0, 0, .06), 0 14px 32px rgba(0, 0, 0, .2); }

/* =====================================================================
   COMMANDE — une colonne : carrousel, à faire, carte, boutons, détail (ordre 021)
   ===================================================================== */
.osec .block-title { margin: 26px 0 10px; }
.osec--first .block-title { margin-top: 18px; }

/* Une étape = tout le carrousel */
.car { border-radius: var(--r-lg); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.steps-car { list-style: none; margin: 0; padding: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.steps-car::-webkit-scrollbar { display: none; }
.steps-car li { flex: 0 0 100%; min-width: 0; box-sizing: border-box; scroll-snap-align: start; scroll-snap-stop: always; display: grid; justify-items: center; align-content: center; gap: 10px; min-height: 290px; padding: 22px 22px 16px; text-align: center; color: var(--ink); }
.step-n { color: var(--muted); font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.step-ico { display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%; background: var(--surface); color: var(--muted); }
.step-ico .i { width: 46px; height: 46px; }
.steps-car b { font-size: 23px; line-height: 1.2; letter-spacing: -.01em; }
.step-text { margin: 0; max-width: 300px; color: var(--ink-2); font-size: 15.5px; line-height: 1.4; }
.step-eta { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--red-50); color: var(--red-dark); font-style: normal; font-size: 14px; font-weight: 700; }
.step-eta .i, .step-time .i { width: 15px; height: 15px; }
.step-time { display: inline-flex; align-items: center; gap: 6px; min-height: 1.3em; color: var(--muted); font-size: 14px; font-weight: 700; }
.steps-car li.done .step-ico { background: var(--green); color: #fff; }
.steps-car li.current .step-ico { background: var(--red); color: #fff; animation: stepPulse 2.2s ease-out infinite; }
.steps-car li.future { color: var(--muted); }
.steps-car li.future b, .steps-car li.future .step-text { color: var(--muted); }
.steps-car li.off .step-ico { background: var(--muted); color: #fff; }
@keyframes stepPulse { 0% { box-shadow: 0 0 0 0 rgba(194, 46, 56, .3); } 100% { box-shadow: 0 0 0 20px rgba(194, 46, 56, 0); } }

/* Points de progression : passés / en cours / à venir (anneau = étape affichée) */
.car-dots { display: flex; justify-content: center; align-items: center; gap: 10px; padding: 0 0 18px; }
.car-dot { position: relative; width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: var(--line); transition: width .35s var(--spring), background .25s; }
.car-dot::after { content: ""; position: absolute; inset: -9px; }
.car-dot.done { background: var(--green); }
.car-dot.current { width: 24px; border-radius: 6px; background: var(--red); }
.car-dot.off { background: var(--muted); }
.car-dot.is-view { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink-2); }

/* À faire maintenant */
.todo { display: grid; gap: 12px; padding: 16px; border-radius: var(--r-md); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.todo--act { border-color: var(--red); background: var(--red-50); }
.todo-text { display: flex; gap: 12px; align-items: flex-start; margin: 0; font-size: 15px; font-weight: 600; line-height: 1.4; }
.todo-text .i { width: 22px; height: 22px; flex: none; color: var(--red); }
.todo:not(.todo--act) .todo-text .i { color: var(--muted); }
.todo .pay-btn { margin-top: 0; }
.osec .biz { margin-top: 0; }
.osec .round-actions { margin-top: 0; }

/* Détail repliable */
.detail { border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; box-shadow: var(--shadow); }
.detail > summary { display: flex; align-items: center; gap: 10px; padding: 16px; list-style: none; cursor: pointer; font-weight: 800; font-size: 16px; }
.detail > summary::-webkit-details-marker { display: none; }
.detail > summary > .i { width: 18px; height: 18px; color: var(--muted); transition: transform .3s var(--out); }
.detail[open] > summary > .i { transform: rotate(90deg); }
.detail-body { display: grid; gap: 14px; padding: 0 16px 16px; }
.receipt { display: grid; gap: 6px; margin: 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13.5px; }
.receipt div { display: flex; justify-content: space-between; gap: 12px; }
.receipt dt { color: var(--muted); }
.receipt dd { margin: 0; font-weight: 700; text-align: right; word-break: break-all; }
.osec .cancel-btn { margin-top: 14px; }
.osec .track-history { margin-top: 14px; }

@media (prefers-reduced-motion: reduce) {
  .car-dot, .detail > summary > .i { transition: none; }
  .steps-car li.current .step-ico { animation: none; }
}

/* Scénario de commande : tout dans la diapositive (ordre 022) */
.steps-car li { min-height: 0; align-content: start; gap: 8px; padding: 24px 20px 18px; }
.step-n { font-size: 11.5px; }
.step-act { display: grid; gap: 12px; width: 100%; margin-top: 10px; text-align: left; }
.step-act:empty { display: none; }
.step-act .biz-card { max-width: none; }
.step-act .todo { padding: 0; border: 0; box-shadow: none; background: none; }
.step-act .todo-text { justify-content: center; text-align: center; }
.step-act .todo-text .i { display: none; }
.step-act .who { box-shadow: none; }
.todo-note { margin: 0; color: var(--muted); font-size: 14px; text-align: center; }

/* =====================================================================
   COMMANDE — design resserré : étapes plus petites, logos Wave / Orange Money, carte de retrait (ordre 024)
   ===================================================================== */

/* Logos officiels des moyens de paiement : pastille blanche, logo entier et jamais déformé */
.pay-ico--logo { width: 78px; height: 44px; padding: 6px 9px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.pay-ico--logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.choice--pay { gap: 12px; padding: 12px 14px; }

/* Bouton « Payer » aux couleurs de l'opérateur, avec son logo */
.pay-btn { justify-content: flex-start; gap: 12px; min-height: 56px; padding: 7px 16px 7px 8px; border-radius: 16px; }
.pay-btn .pay-ico--logo { width: 72px; height: 40px; box-shadow: none; }
.pay-btn-txt { display: grid; gap: 1px; text-align: left; line-height: 1.15; }
.pay-btn-txt b { font-size: 16px; font-weight: 800; }
.pay-btn-txt small { font-size: 12.5px; font-weight: 600; opacity: .8; }
.pay-btn--wave { background: #1DC8FF; color: #06233A; }
.pay-btn--orange { background: #FF7900; color: #1A1A1A; }
@media (hover: hover) { .pay-btn--wave:hover { background: #10B9F0; } .pay-btn--orange:hover { background: #EE6E00; } }

/* Étapes du suivi : une diapositive plus compacte */
.steps-car li { gap: 6px; padding: 16px 16px 12px; }
.step-meta { display: flex; align-items: center; justify-content: center; gap: 8px; }
.step-n { font-size: 11px; }
.step-time { min-height: 0; font-size: 12.5px; }
.step-n + .step-time:not(:empty)::before { content: '·'; margin-right: 2px; }
.step-ico { width: 60px; height: 60px; margin-top: 6px; }
.step-ico .i { width: 28px; height: 28px; }
.steps-car b { font-size: 19px; }
.step-text { max-width: 280px; font-size: 14px; line-height: 1.4; }
.step-eta { padding: 3px 10px; font-size: 13px; }
.steps-car li.done .step-ico { background: var(--green-50); color: var(--green); }
.steps-car li.current .step-ico { animation-name: stepPulseSm; }
@keyframes stepPulseSm { 0% { box-shadow: 0 0 0 0 rgba(194, 46, 56, .28); } 100% { box-shadow: 0 0 0 14px rgba(194, 46, 56, 0); } }
.step-act { gap: 10px; margin-top: 8px; }
.step-act .todo-text { font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.todo-note { font-size: 13px; }
.car-dots { gap: 8px; padding: 0 0 12px; }
.car-dot { width: 8px; height: 8px; }
.car-dot.current { width: 20px; }

/* Carte de retrait : plus basse, le code tient sur une ligne, la consigne est dessous */
.biz-card { container-type: inline-size; aspect-ratio: auto; min-height: 0; max-width: none; gap: 10px; padding: 12px 14px 14px; }
.biz-brand { gap: 7px; font-size: 12px; }
.biz-brand img { width: 24px; height: 24px; }
.biz-brand em { padding: 2px 8px; font-size: 11px; }
.biz-main { gap: 14px; }
.biz-qr { width: clamp(92px, 38cqi, 132px); padding: 5px; border-radius: 10px; }
.biz-info { gap: 4px; }
.biz-info small { font-size: 10.5px; }
.biz-code { font-size: clamp(16px, 7.4cqi, 26px); letter-spacing: .08em; white-space: nowrap; word-break: normal; }
.biz-code--ref { font-size: clamp(14px, 6cqi, 20px); letter-spacing: .04em; }
.biz-hint { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 10px 0 0; font-size: 13px; font-weight: 600; line-height: 1.35; color: var(--ink-2); text-align: center; opacity: 1; }
.biz-hint .i { width: 16px; height: 16px; flex: none; color: var(--muted); }
.biz.is-ready .biz-hint .i { color: var(--green); }

/* Actions secondaires : deux pastilles sobres au lieu de gros boutons ronds */
.round-actions { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; margin: 12px 0 4px; }
.side-btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 14px; border-radius: 14px; background: var(--surface); color: var(--ink); font-size: 14.5px; font-weight: 700; transition: transform .35s var(--spring), background .2s; }
.side-btn .i { width: 18px; height: 18px; color: var(--red); }
.side-btn:active { transform: scale(.97); }
@media (hover: hover) { .side-btn:hover { background: #ECEBEA; } }

/* Écrans de la commande (mode, coordonnées, paiement) : titres et choix plus légers */
.co-step .screen-title { font-size: 24px; }
.co-step .screen-sub { margin: 6px 0 18px; font-size: 14px; }
.choices, .pay-list { gap: 8px; }
.choice { gap: 12px; padding: 14px; }
.choice b { font-size: 16px; }
.choice-ico { width: 44px; height: 44px; border-radius: 14px; }
.choice-ico .i { width: 22px; height: 22px; }

/* =====================================================================
   Ordre 026 : choix du paiement en 3 tuiles (logos seuls), bannière d'infos, page Historique
   ===================================================================== */

/* Paiement : Wave · Orange Money · Espèces côte à côte, logo seul */
.pay-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pay-tile { position: relative; display: grid; place-items: center; aspect-ratio: 1 / .9; min-height: 84px; padding: 14px 10px; border: 1.5px solid var(--line); border-radius: var(--r-md); background: #fff; box-shadow: var(--shadow); transition: transform .35s var(--spring), border-color .2s, background .2s, box-shadow .2s; }
.pay-tile img { display: block; width: 100%; max-width: 92px; max-height: 44px; object-fit: contain; }
.pay-tile > .i { width: 34px; height: 34px; color: var(--green); }
.pay-tile:active { transform: scale(.96); }
.pay-tile[aria-checked="true"] { border-color: var(--red); background: var(--red-50); box-shadow: 0 0 0 3px rgba(194, 46, 56, .12); }
.pay-tile-check { position: absolute; top: -8px; right: -8px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--red); color: #fff; border: 2px solid #fff; transform: scale(0); transition: transform .35s var(--spring); }
.pay-tile-check .i { width: 12px; height: 12px; stroke-width: 3; }
.pay-tile[aria-checked="true"] .pay-tile-check { transform: scale(1); }
.pay-tile.is-picked { animation: pop .55s var(--spring); }
.pay-hint { margin: 12px 2px 0; min-height: 20px; font-size: 13.5px; line-height: 1.4; color: var(--muted); }
.pay-hint b { color: var(--ink); }
@media (hover: hover) { .pay-tile:hover { border-color: #D6D6D6; } .pay-tile[aria-checked="true"]:hover { border-color: var(--red); } }
@media (max-width: 360px) { .pay-list { gap: 8px; } .pay-tile { padding: 12px 6px; } }

/* Bannière d'infos : pastille d'icône fixe, message qui défile dans une fenêtre aux bords fondus */
.announce { display: flex; align-items: center; gap: 0; margin: 14px 0 0; padding: 6px; border: 0; border-radius: 999px; background: linear-gradient(100deg, var(--red-dark), var(--red)); color: #fff; font-weight: 600; font-size: 14px; box-shadow: 0 6px 18px rgba(194, 46, 56, .22); }
.announce__badge { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--red); }
.announce .i { width: 18px; height: 18px; color: var(--red); }
.announce__view { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent); mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent); }
.announce__item { padding: 0 22px; }
.announce__item::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: rgba(255, 255, 255, .7); flex: none; }
.announce--closed { background: linear-gradient(100deg, #2A2A2C, #151515); color: #fff; border: 0; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
.announce--closed .i { color: var(--ink); }
@media (prefers-reduced-motion: reduce) {
  .announce { border-radius: 20px; align-items: flex-start; }
  .announce__view { -webkit-mask-image: none; mask-image: none; padding: 6px 12px 6px 10px; }
  .announce__item::before { display: none; }
}

/* Historique : résumé, cartes avec pastille de mode, moyen de paiement en logo */
.hist-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 4px 0 16px; }
.hist-sum > div { display: grid; gap: 2px; padding: 12px 8px; border-radius: var(--r-md); background: var(--surface); text-align: center; }
.hist-sum b { font-size: 16px; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; }
.hist-sum span { font-size: 11.5px; font-weight: 600; color: var(--muted); }
.hist-sum > div:first-child { background: var(--red); }
.hist-sum > div:first-child b { color: #fff; }
.hist-sum > div:first-child span { color: rgba(255, 255, 255, .8); }
.hist-list { gap: 14px; }
.hist-card { position: relative; overflow: hidden; gap: 10px; padding: 16px 16px 14px 20px; border-radius: var(--r-lg); }
.hist-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--red); }
.hist-card--done::before { background: var(--green); }
.hist-card--cancel::before { background: #C7C7CC; }
.hist-top { gap: 12px; justify-content: flex-start; }
.hist-top .pill { margin-left: auto; flex: none; }
.hist-ico { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 14px; background: var(--red-50); color: var(--red); }
.hist-card--done .hist-ico { background: var(--green-50); color: var(--green); }
.hist-card--cancel .hist-ico { background: var(--surface); color: var(--muted); }
.hist-ico .i { width: 21px; height: 21px; }
.hist-id { display: grid; gap: 1px; min-width: 0; }
.hist-id .hist-date { font-size: 12.5px; }
.hist-items { padding-left: 54px; }
.hist-reason { margin-left: 54px; }
.hist-pay { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink-2); }
.hist-pay .pay-ico { width: 44px; height: 26px; padding: 3px 6px; border-radius: 8px; }
.hist-pay .pay-ico .i { width: 16px; height: 16px; }
.hist-pay .pay-ico--logo { width: 52px; height: 26px; box-shadow: inset 0 0 0 1px var(--line); }
.hist-bottom .i { color: #C2C2C7; }
@media (hover: hover) { .hist-card:hover { transform: translateY(-2px); } }
@media (min-width: 700px) { .hist-sum b { font-size: 19px; } }
.hist-state { padding-left: 54px; margin-top: -2px; }
.hist-sum b { font-size: 15px; }
.hist-sum > div { padding: 12px 4px; }
@media (min-width: 700px) { .hist-sum b { font-size: 17px; } }
