:root {
  --brand: #e2001a;
  --brand-dark: #b30015;
  --green: #2e9e44;
  --ink: #1f2933;
  --muted: #6b7680;
  --panel: rgba(255, 255, 255, 0.94);
  --line: rgba(15, 23, 42, 0.1);
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
  --radius: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #dfe6ea;
  color: var(--ink);
  font-family: var(--font);
  -webkit-user-select: none;
  user-select: none;
}

#scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  cursor: grab;
}
#scene.dragging { cursor: grabbing; }
#scene.can-pick { cursor: pointer; }

/* ---------- Barre du haut ---------- */
.hud-top {
  position: fixed;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
  pointer-events: none;
  z-index: 5;
}
.hud-top > * { pointer-events: auto; }

.brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  background: var(--brand);
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  box-shadow: var(--shadow);
}
.brand-name { font-weight: 900; font-size: 18px; letter-spacing: 0.02em; }
.brand-tag { font-size: 12px; opacity: 0.9; }

.zone {
  background: var(--panel);
  padding: 9px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: var(--shadow);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 40vw;
}

.goto {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--panel);
  padding: 4px 6px 4px 14px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-size: 13px;
  color: var(--muted);
}
.goto select {
  border: 0;
  background: #f1f3f5;
  border-radius: 999px;
  padding: 6px 10px;
  font: inherit;
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
}

/* ---------- Mini-carte ---------- */
.minimap {
  position: fixed;
  left: 12px;
  bottom: 12px;
  background: var(--panel);
  padding: 8px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 5;
}
.minimap canvas { display: block; width: 190px; height: 200px; cursor: crosshair; border-radius: 8px; }
.minimap small { display: block; text-align: center; color: var(--muted); font-size: 11px; margin-top: 4px; }
.minimap-close {
  position: absolute; top: -10px; right: -10px;
  width: 28px; height: 28px; border-radius: 50%;
  border: 0; background: var(--panel); color: var(--ink); box-shadow: var(--shadow);
  font: 700 13px/1 inherit; cursor: pointer;
}
.map-toggle {
  position: fixed; left: 12px; bottom: 12px; z-index: 5;
  border: 0; border-radius: 999px; padding: 10px 14px;
  background: var(--panel); color: var(--ink); box-shadow: var(--shadow);
  font: 700 14px inherit; font-family: inherit; cursor: pointer;
}
.map-toggle[aria-expanded="true"] { display: none; }

/* ---------- Panier ---------- */
.cart {
  position: fixed;
  top: 68px;
  right: 12px;
  width: 320px;
  max-height: calc(100% - 140px);
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  z-index: 6;
}
.cart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  border: 0;
  background: var(--brand);
  color: #fff;
  font: 700 16px var(--font);
  padding: 12px 16px;
  cursor: pointer;
}
.badge {
  background: #fff;
  color: var(--brand);
  min-width: 26px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 13px;
  text-align: center;
  transition: transform 0.2s;
}
.badge.bump { transform: scale(1.35); }
.cart-body { display: flex; flex-direction: column; min-height: 0; }
.cart.collapsed .cart-body { display: none; }

.cart-list { list-style: none; margin: 0; padding: 6px 0; overflow-y: auto; flex: 1; }
.cart-item {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px 14px;
  border-bottom: 1px solid var(--line);
  animation: slidein 0.25s ease-out;
}
@keyframes slidein { from { opacity: 0; transform: translateX(16px); } }
.cart-item .thumb {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: grid; place-items: center;
  font-size: 20px;
}
.cart-item .name { font-size: 13px; font-weight: 600; line-height: 1.25; }
.cart-item .unit { font-size: 11px; color: var(--muted); }
.cart-item .right { text-align: right; }
.cart-item .line { font-weight: 700; font-size: 13px; }
.qty { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; }
.qty button {
  width: 22px; height: 22px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  line-height: 1;
}
.qty button:hover { background: #f1f3f5; }
.qty span { min-width: 20px; text-align: center; font-size: 13px; font-weight: 600; }

.cart-empty { padding: 22px 16px; text-align: center; color: var(--muted); font-size: 13px; line-height: 1.5; }
.cart-foot { padding: 12px 14px 14px; border-top: 1px solid var(--line); background: #fff; }
.total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.total strong { font-size: 22px; color: var(--brand); }

.btn {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  font: 700 14px var(--font);
  cursor: pointer;
  width: 100%;
}
.btn.primary { background: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-dark); }
.btn.secondary { background: #f1f3f5; color: var(--ink); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.big { padding: 15px 22px; font-size: 16px; }

/* ---------- Viseur, infobulle, toast, aide ---------- */
.crosshair {
  position: fixed; left: 50%; top: 50%;
  width: 6px; height: 6px; margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 1.5px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  z-index: 4;
}

.tooltip {
  position: fixed;
  pointer-events: none;
  background: rgba(17, 24, 39, 0.92);
  color: #fff;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.35;
  transform: translate(14px, 14px);
  opacity: 0;
  transition: opacity 0.12s;
  z-index: 8;
  max-width: 240px;
}
.tooltip.show { opacity: 1; }
.tooltip b { font-size: 14px; }
.tooltip .price { color: #ffd43b; font-weight: 800; }
.tooltip .hint { color: #adb5bd; font-size: 11px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 64px;
  transform: translate(-50%, 20px);
  background: var(--green);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: var(--shadow);
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
  z-index: 9;
  white-space: nowrap;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.warn { background: #495057; }

.help {
  position: fixed;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  background: rgba(17, 24, 39, 0.72);
  color: #e9ecef;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12px;
  white-space: nowrap;
  z-index: 4;
  pointer-events: none;
}
.help b { color: #fff; }

/* ---------- Joystick ---------- */
.joystick {
  display: none;
  position: fixed;
  left: 24px;
  bottom: 250px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.7);
  touch-action: none;
  z-index: 7;
}
.joystick .knob {
  position: absolute; left: 50%; top: 50%;
  width: 54px; height: 54px; margin: -27px 0 0 -27px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: var(--shadow);
}
body.touch .joystick { display: block; }
body.touch .help, body.touch .crosshair { display: none; }

/* ---------- Overlays ---------- */
.overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  z-index: 20;
  padding: 16px;
}
.overlay.hidden { display: none; }
.card {
  position: relative;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  padding: 28px;
  width: min(520px, 100%);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  -webkit-user-select: text;
  user-select: text;
}
.intro { text-align: center; }
.intro-logo {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  font-weight: 900;
  font-size: 28px;
  padding: 8px 22px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.intro h1 { font-size: 22px; margin: 0 0 8px; }
.intro p { color: var(--muted); margin: 0 0 16px; line-height: 1.5; }
.controls { text-align: left; margin: 0 0 20px; padding: 14px 18px 14px 34px; background: #f8f9fa; border-radius: 12px; font-size: 14px; line-height: 1.9; }
kbd {
  display: inline-block;
  min-width: 22px;
  padding: 1px 6px;
  border: 1px solid #ced4da;
  border-bottom-width: 2px;
  border-radius: 5px;
  background: #fff;
  font: 600 12px var(--font);
  text-align: center;
}
.loading { margin-top: 10px; font-size: 12px; color: var(--muted); }

.close {
  position: absolute; top: 12px; right: 14px;
  border: 0; background: #f1f3f5;
  width: 32px; height: 32px; border-radius: 50%;
  font-size: 20px; cursor: pointer;
}
.checkout h2 { margin: 0 0 4px; }
.checkout .sub { color: var(--muted); margin: 0 0 16px; font-size: 14px; }
.receipt { list-style: none; margin: 0 0 14px; padding: 0; font-size: 14px; }
.receipt li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.receipt .grand { font-weight: 800; font-size: 18px; border-bottom: 0; padding-top: 12px; }
.receipt .grand span:last-child { color: var(--brand); }
.actions { display: flex; gap: 10px; }
.success { text-align: center; }
.success .big-emoji { font-size: 56px; }

/* ---------- Compte client & commande ---------- */
.card.account, .card.checkout { width: min(620px, 100%); }
.muted { color: var(--muted); }
.auth { display: grid; gap: 10px; text-align: left; margin-bottom: 14px; }
.auth label { display: grid; gap: 4px; font-size: 12px; font-weight: 700; color: #495057; }
.auth label.check { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13px; color: var(--ink); }
.auth label.check input { width: auto; }
.auth input, .auth select {
  border: 1px solid #ced4da;
  border-radius: 10px;
  padding: 9px 12px;
  font: 14px var(--font);
  color: var(--ink);
  background: #fff;
  width: 100%;
  -webkit-user-select: text;
  user-select: text;
}
.auth input:focus, .auth select:focus { outline: 2px solid var(--brand); outline-offset: -1px; }
.auth .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.auth-msg { color: #c92a2a; font-size: 13px; min-height: 0; }
.auth-msg:empty { display: none; }
.auth-tabs, .tabs, .seg-pay { display: flex; gap: 4px; background: #f1f3f5; border-radius: 12px; padding: 4px; margin-bottom: 4px; }
.auth-tabs button, .tabs button, .seg-pay button {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 8px 10px;
  border-radius: 9px;
  font: 700 13px var(--font);
  color: var(--muted);
  cursor: pointer;
}
.auth-tabs button.on, .tabs button.on, .seg-pay button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.tabs { margin: 4px 0 14px; }
.link.danger { color: #c92a2a; }

.co-block { border-top: 1px solid var(--line); padding: 14px 0 6px; }
.co-block h3 { margin: 0 0 10px; font-size: 15px; }
.co-login { font-size: 13px; background: #f8f9fa; border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; }
.addr-pick { display: grid; gap: 8px; margin-bottom: 10px; }
.addr-pick label { display: flex; gap: 10px; align-items: flex-start; border: 2px solid #e9ecef; border-radius: 12px; padding: 10px 12px; cursor: pointer; font-size: 13px; }
.addr-pick label.on { border-color: var(--brand); background: #fff5f5; }
.addr-pick label.off { opacity: 0.5; cursor: not-allowed; }
.addr-pick input { margin-top: 3px; }
.addr-pick small { color: var(--muted); }
.zone-info { background: #f1f8ff; border-radius: 10px; padding: 10px 12px; font-size: 13px; margin-bottom: 8px; }
.zone-info small { color: var(--muted); }
.hint-ok { background: #ebfbee; color: #2b8a3e; border-radius: 10px; padding: 8px 12px; font-size: 13px; margin-bottom: 8px; }
.seg-pay { margin-bottom: 10px; }
.receipt li:not(.grand) span:last-child { white-space: nowrap; }

.empty-state { text-align: center; padding: 26px 0; font-size: 32px; }
.empty-state p { font-size: 14px; color: var(--muted); }
.orders, .addresses { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.orders li { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; display: grid; gap: 4px; }
.orders li:hover { border-color: var(--brand); }
.o-top, .o-bottom, .o-detail-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.o-sum { font-size: 13px; color: var(--muted); }
.o-bottom { font-size: 12px; color: var(--muted); }
.o-bottom b { color: var(--ink); font-size: 14px; }
.o-detail-head { margin-top: 10px; }
.o-detail-head h3 { margin: 0; }
.o-box { background: #f8f9fa; border-radius: 12px; padding: 12px 14px; font-size: 13px; display: grid; gap: 3px; margin: 10px 0 14px; }
.o-box.left { text-align: left; }
.addresses li { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 13px; display: grid; gap: 3px; }
.addr-actions { display: flex; gap: 14px; margin-top: 4px; }
.pill { display: inline-block; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.pill.ok { background: #ebfbee; color: #2b8a3e; }
.pill.run { background: #fff4e6; color: #d9480f; }
.pill.ko { background: #fff5f5; color: #c92a2a; }

.timeline { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 0; margin: 14px 0; }
.timeline li { text-align: center; font-size: 12px; font-weight: 700; color: #adb5bd; position: relative; padding-top: 4px; }
.timeline li span { display: grid; place-items: center; width: 38px; height: 38px; margin: 0 auto 6px; border-radius: 50%; background: #f1f3f5; font-size: 18px; filter: grayscale(1); }
.timeline li.done { color: var(--ink); }
.timeline li.done span { background: #ebfbee; filter: none; }
.timeline li.current span { background: var(--brand); box-shadow: 0 0 0 4px rgba(226, 0, 26, 0.18); }

/* ---------- Zoom & fiche produit ---------- */
.zoom-ind {
  position: fixed;
  left: 50%;
  top: calc(50% + 22px);
  transform: translateX(-50%);
  background: rgba(17, 24, 39, 0.72);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  pointer-events: none;
  z-index: 4;
}

.card.inspect { width: min(920px, 100%); padding: 0; overflow: hidden; }
.card.inspect .close { z-index: 2; }
.inspect-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); min-height: 460px; }
.inspect-view {
  position: relative;
  background: radial-gradient(circle at 50% 45%, #ffffff 0%, #eef1f4 70%);
  min-height: 360px;
}
.inspect-view canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.inspect-view canvas:active { cursor: grabbing; }
.inspect-photo { position: absolute; inset: 0; overflow: hidden; display: grid; place-items: center; background: #fff; cursor: zoom-in; touch-action: none; }
.inspect-photo img { max-width: 88%; max-height: 88%; object-fit: contain; transition: transform 0.12s; }
.inspect-tabs { position: absolute; top: 14px; left: 14px; z-index: 1; display: flex; gap: 4px; background: rgba(255, 255, 255, 0.9); padding: 3px; border-radius: 10px; box-shadow: var(--shadow); }
.inspect-tabs button { border: 0; background: transparent; padding: 6px 10px; border-radius: 8px; font: 600 12px var(--font); cursor: pointer; color: var(--muted); }
.inspect-tabs button.on { background: var(--brand); color: #fff; }
.inspect-hint { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; font-size: 11px; color: var(--muted); pointer-events: none; }
.inspect-info { padding: 30px 26px 24px; display: flex; flex-direction: column; gap: 8px; }
.inspect-info .where { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.inspect-info h2 { margin: 0; font-size: 22px; line-height: 1.25; }
.price-big { font-size: 30px; font-weight: 900; color: var(--ink); }
.price-big.promo { color: var(--brand); }
.price-big s { font-size: 16px; color: var(--muted); font-weight: 600; }
.inspect-info .unit { color: var(--muted); font-size: 13px; margin-top: -6px; }
.inspect-info .stock { font-size: 13px; font-weight: 700; }
.stock.ok { color: #2b8a3e; }
.stock.low { color: #e67700; }
.stock.out { color: #c92a2a; }
.inspect-info .desc { margin: 4px 0; color: var(--ink); font-size: 14px; line-height: 1.5; -webkit-user-select: text; user-select: text; }
.buy { display: flex; gap: 10px; align-items: center; margin-top: auto; padding-top: 12px; }
.buy .btn { flex: 1; }
.qty.big { margin: 0; gap: 8px; }
.qty.big button { width: 34px; height: 34px; font-size: 16px; border-radius: 10px; }
.qty.big span { min-width: 34px; font-size: 15px; }
.inspect-info .added { min-height: 18px; font-size: 13px; color: #2b8a3e; font-weight: 600; }

/* ---------- Recherche ---------- */
.search { position: relative; flex: 0 1 300px; min-width: 180px; }
.search input {
  width: 100%;
  border: 0;
  background: var(--panel);
  padding: 10px 16px;
  border-radius: 999px;
  font: 600 14px var(--font);
  color: var(--ink);
  box-shadow: var(--shadow);
  -webkit-user-select: text;
  user-select: text;
}
.search input:focus { outline: 2px solid var(--brand); }
.search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: max(100%, 360px);
  max-width: calc(100vw - 24px);
  list-style: none;
  margin: 0;
  padding: 6px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 10;
}
.search-results li {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 7px 8px;
  border-radius: 10px;
  cursor: pointer;
}
.search-results li.on, .search-results li[data-i]:hover { background: #f1f3f5; }
.search-results li.none { display: block; color: var(--muted); text-align: center; cursor: default; padding: 14px; }
.search-results img, .search-results .ico { width: 36px; height: 36px; border-radius: 8px; object-fit: contain; display: grid; place-items: center; font-size: 20px; background: #fff; }
.search-results .txt { display: flex; flex-direction: column; min-width: 0; }
.search-results .txt b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-results .txt small { font-size: 11px; color: var(--muted); }
.search-results .pr { font-weight: 800; font-size: 13px; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.search-results .tag { font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 4px; background: #e9ecef; color: var(--muted); }
.search-results .tag.out { background: #fff5f5; color: #c92a2a; }
.search-results .tag.promo { background: var(--brand); color: #fff; }

/* ---------- Fidélité, paiement, promos ---------- */
.who {
  border: 0;
  background: var(--panel);
  padding: 9px 14px;
  border-radius: 999px;
  font: 600 13px var(--font);
  color: var(--ink);
  box-shadow: var(--shadow);
  cursor: pointer;
  white-space: nowrap;
}
.who b { color: var(--brand); }

.loyalty { background: #f8f9fa; border-radius: 12px; padding: 12px 14px; margin: 0 0 14px; text-align: left; }
.loyalty.ok { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; }
.loyalty-title { font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.loyalty-title span { color: var(--muted); font-weight: 500; }
.loyalty .row { display: flex; gap: 8px; margin-bottom: 8px; }
.loyalty .row:last-of-type { margin-bottom: 0; }
.loyalty input {
  flex: 1;
  min-width: 0;
  border: 1px solid #ced4da;
  border-radius: 10px;
  padding: 9px 12px;
  font: 14px var(--font);
}
.loyalty .btn { width: auto; white-space: nowrap; }
.loyalty-msg { color: #c92a2a; font-size: 12px; margin-top: 6px; min-height: 0; }
.link { border: 0; background: none; color: var(--brand); font: 600 13px var(--font); cursor: pointer; text-decoration: underline; }

.points-hint { font-size: 13px; color: var(--muted); margin: -4px 0 12px; }
.pay-methods { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.pay-methods label {
  flex: 1;
  min-width: 120px;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 10px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
}
.pay-methods label.on { border-color: var(--brand); background: #fff5f5; }
.pay-methods input { display: none; }
.error { background: #fff5f5; color: #c92a2a; border-radius: 10px; padding: 10px 12px; font-size: 13px; margin-bottom: 12px; }
.small { font-size: 12px; }

.cart-item .thumb.img { background: #fff; border: 1px solid var(--line); overflow: hidden; }
.cart-item .thumb.img img { width: 100%; height: 100%; object-fit: contain; }
.promo { background: var(--brand); color: #fff; font-size: 10px; font-weight: 800; padding: 1px 5px; border-radius: 4px; }
.tooltip .out { color: #ff8787; font-weight: 700; }
.tooltip .low { color: #ffd43b; font-weight: 700; }
.tooltip s { color: #adb5bd; }
.qty button:disabled { opacity: 0.35; cursor: not-allowed; }

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  .hud-top { flex-wrap: wrap; }
  .brand-tag, .help { display: none; }
  .zone { max-width: none; flex: 1; font-size: 12px; }
  .goto { order: 3; width: 100%; }
  .search { order: 2; flex: 1 1 100%; }
  .inspect-grid { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .inspect-view { min-height: 300px; }
  .inspect-info { padding: 18px 18px 20px; }
  .auth .row2 { grid-template-columns: 1fr; }
  .timeline li { font-size: 10px; }
  .goto select { flex: 1; }
  .cart { top: auto; bottom: 12px; right: 12px; width: min(300px, calc(100% - 24px)); max-height: 55vh; }
  /* plan : replié derrière un bouton, ouvert en grand au centre quand on en a besoin */
  .map-toggle { left: auto; right: 12px; bottom: 84px; padding: 9px 13px; font-size: 13px; }
  .minimap { left: 50%; top: 50%; bottom: auto; transform: translate(-50%, -50%); padding: 10px; z-index: 30; }
  .minimap canvas { width: min(78vw, 320px); height: min(82vw, 336px); }
  .joystick { bottom: 90px; }
}

[hidden] { display: none !important; }

/* Articles rendus à la livraison */
.receipt li.returned { color: var(--brand); font-size: 12px; padding: 2px 0 7px 18px; }
.receipt li.gone > span:first-child { text-decoration: line-through; opacity: 0.6; }
