@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Work+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@500;600&display=swap');

:root {
  --noir: #0b0b0c;
  --panel: #17171a;
  --panel-2: #1e1e22;
  --blanc: #f7f6f3;
  --argent: #9a9a9e;
  --argent-clair: #c7c7cc;
  --ligne: #2b2b2f;
  --succes: #7fd88f;
  --danger: #e0716b;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Work Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--noir);
  color: var(--blanc);
  font-family: var(--font-body);
  -webkit-tap-highlight-color: transparent;
}

body {
  min-height: 100vh;
  padding-bottom: env(safe-area-inset-bottom);
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0px, rgba(255, 255, 255, 0.02) 1px, transparent 1px, transparent 26px),
    radial-gradient(ellipse 900px 700px at 12% -10%, rgba(127, 216, 143, 0.16), transparent 55%),
    radial-gradient(ellipse 800px 600px at 108% 22%, rgba(232, 184, 75, 0.13), transparent 55%),
    radial-gradient(ellipse 1000px 800px at 50% 112%, rgba(224, 113, 107, 0.11), transparent 55%),
    radial-gradient(ellipse 1400px 1100px at 50% 45%, #16161a 0%, #0a0a0b 72%);
  background-attachment: fixed;
  position: relative;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

#app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

a { color: inherit; }

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

/* ---------------- LAYOUT / SCREENS ---------------- */
.screen {
  padding: 24px 20px calc(24px + env(safe-area-inset-bottom));
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
  flex: 1;
}

.hero-auth {
  text-align: center;
  padding-top: 30px;
}
.hero-logo {
  height: 64px;
  width: auto;
  object-fit: contain;
  border-radius: 12px;
  margin-bottom: 12px;
}
.hero-auth p {
  color: var(--argent);
  font-size: 14px;
  margin: 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--ligne);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
  border-radius: 6px;
}
.tag {
  font-size: 12px;
  color: var(--argent);
}

.icon-btn {
  background: var(--panel);
  border: 1px solid var(--ligne);
  color: var(--blanc);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
}

/* ---------------- FORMS ---------------- */
.field {
  margin-bottom: 16px;
}
.field label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--argent);
  margin-bottom: 6px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--ligne);
  color: var(--blanc);
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 15px;
  font-family: var(--font-body);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--argent-clair);
}
.field textarea {
  resize: vertical;
}

/* ---------------- BUTTONS ---------------- */
.btn {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  border: none;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  transition: opacity 0.12s ease, transform 0.1s ease;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
  background: var(--blanc);
  color: var(--noir);
}
.btn-primary:hover { opacity: 0.9; }

.btn-outline {
  background: transparent;
  border: 1px solid var(--ligne);
  color: var(--blanc);
}
.btn-outline:hover { border-color: var(--argent-clair); }

.btn-ghost {
  background: transparent;
  border: none;
  color: var(--argent);
}

.btn-danger {
  background: transparent;
  border: 1px solid #4a2c28;
  color: var(--danger);
}

/* ---------------- MESSAGES ---------------- */
.error-msg {
  background: #2a1615;
  border: 1px solid #4a2c28;
  color: #f0a29c;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 14px;
}
.success-msg {
  background: #14261a;
  border: 1px solid #2c4a34;
  color: #a8d9b6;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 14px;
}

.switch-mode {
  text-align: center;
  margin-top: 20px;
  font-size: 13.5px;
  color: var(--argent);
}
.switch-mode button {
  background: none;
  border: none;
  color: var(--blanc);
  text-decoration: underline;
  cursor: pointer;
  font-size: 13.5px;
  padding: 0;
}

/* ---------------- SECTION TITLES ---------------- */
.section-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--argent);
  margin: 28px 0 12px;
}

.empty-state {
  text-align: center;
  color: var(--argent);
  font-size: 13.5px;
  padding: 24px 12px;
  line-height: 1.6;
}

.loading-spin {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--ligne);
  border-top-color: var(--blanc);
  animation: spin 0.8s linear infinite;
  margin: 30px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------- LOYALTY CARD (style gaming) ---------------- */
.card-stage {
  perspective: 1200px;
  margin: 10px 0 14px;
}
.loyalty-card {
  position: relative;
  width: 100%;
  height: 282px;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
}
.loyalty-card.flipped {
  transform: rotateY(180deg);
}
.card-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}
.card-face.front {
  background: linear-gradient(160deg, #0d1018 0%, #060709 70%);
  border: 1px solid rgba(0, 229, 255, 0.28);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
}
.card-face.front::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: linear-gradient(rgba(0, 229, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 229, 255, 0.035) 1px, transparent 1px);
  background-size: 22px 22px;
}
.card-face.front::after {
  content: '';
  position: absolute;
  left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, #00e5ff, transparent);
  opacity: 0.6;
  animation: scan-move 3.5s linear infinite;
}
@keyframes scan-move { 0% { top: 0%; } 100% { top: 100%; } }
.card-corner-tag {
  position: absolute;
  top: 12px; right: -30px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, #ff2ec4, #9d4dff);
  font-family: 'Orbitron', sans-serif;
  font-size: 7px;
  letter-spacing: 1.5px;
  padding: 2px 38px;
  color: #fff;
  font-weight: 700;
  z-index: 3;
}
.card-face.back {
  background: var(--blanc);
  color: var(--noir);
  transform: rotateY(180deg);
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 18px;
}
.card-face.back img {
  width: 140px;
  height: 140px;
  border-radius: 10px;
}
.back-label {
  font-size: 11px;
  color: #555;
  text-align: center;
}
.card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}
.brand-group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-header-icon {
  width: 22px;
  height: 22px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: brightness(0) invert(1) drop-shadow(0 0 5px rgba(0, 229, 255, 0.7));
  flex-shrink: 0;
}
.card-logo {
  font-family: 'Orbitron', sans-serif;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 2px;
  color: #fff;
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.6);
}
.card-chip {
  width: 28px;
  height: 28px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.35);
  clip-path: polygon(5px 0, 100% 0, 100% 100%, 0 100%, 0 5px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--argent-clair);
}
.card-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #c7d0e0;
  margin-top: 2px;
  position: relative;
  z-index: 2;
}
.card-bottom-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}
.card-points-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--argent);
}
.card-points-value {
  font-family: 'Orbitron', sans-serif;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  color: #fff;
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}
.card-hint {
  font-size: 10px;
  color: var(--argent);
  text-align: right;
  line-height: 1.3;
}
.card-flip-note {
  text-align: center;
  font-size: 11px;
  color: var(--argent);
  font-family: var(--font-mono);
  margin-bottom: 18px;
  letter-spacing: 1px;
}

/* ---------------- CAMIONNETTE HAIRSPRIT (progression fidélité, style gaming) ---------------- */
.path-wrap {
  position: relative;
  height: 38px;
  margin: 4px 0 2px;
  z-index: 2;
}
.path-line {
  position: absolute;
  top: 22px;
  left: 4px;
  right: 4px;
  height: 2px;
  background-image: linear-gradient(to right, rgba(0, 229, 255, 0.3) 50%, transparent 0%);
  background-size: 8px 2px;
  background-repeat: repeat-x;
}
.path-progress {
  position: absolute;
  top: 22px;
  left: 4px;
  height: 2px;
  background: linear-gradient(90deg, #9d4dff, #00e5ff);
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.8);
  transition: width 0.8s cubic-bezier(0.34, 1.2, 0.64, 1);
}
.milestone {
  position: absolute;
  top: 18px;
  width: 9px;
  height: 9px;
  background: #050609;
  border: 2px solid rgba(0, 229, 255, 0.3);
  transform: translateX(-50%) rotate(45deg);
  transition: border-color 0.4s ease, background 0.4s ease;
}
.milestone.reached {
  background: #00e5ff;
  border-color: #00e5ff;
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.9);
}
.house {
  position: absolute;
  top: 0px;
  right: -6px;
  font-size: 18px;
  filter: drop-shadow(0 0 6px rgba(157, 77, 255, 0.8));
}
.puff {
  position: absolute;
  top: 18px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #00e5ff;
  opacity: 0;
}
.puff1 { animation: puff-pop 0.7s ease-out infinite; }
.puff2 { width: 4px; height: 4px; animation: puff-pop 0.7s ease-out infinite 0.25s; }
@keyframes puff-pop {
  0% { opacity: 0.5; transform: translate(0, 0) scale(1); }
  100% { opacity: 0; transform: translate(-14px, -8px) scale(0.4); }
}
.van {
  position: absolute;
  top: 0;
  width: 28px;
  height: 20px;
  transform: translateX(-50%);
  filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.7));
}
.van.driving { animation: shake 0.25s linear infinite; }
@keyframes shake {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-1.5px); }
}
.van svg { width: 100%; height: 100%; overflow: visible; }
.wheel { transform-origin: center; animation: spin 0.4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.van.happy { animation: van-bounce 0.45s ease-in-out infinite; }
@keyframes van-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0) rotate(0deg); }
  50% { transform: translateX(-50%) translateY(-6px) rotate(-3deg); }
}
.van-body { fill: #ff2ec4; }
.happy .van-body { animation: van-color 0.9s ease-in-out infinite; }
@keyframes van-color { 0%, 100% { fill: #00e5ff; } 50% { fill: #9d4dff; } }
.sparkle {
  position: absolute;
  font-size: 12px;
  animation: sparkle-fly 1s ease-out infinite;
  opacity: 0;
}
@keyframes sparkle-fly {
  0% { opacity: 1; transform: translate(0, 0) scale(0.6) rotate(0deg); }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1.1) rotate(90deg); }
}
.honk {
  position: absolute;
  font-size: 11px;
  color: #00e5ff;
  font-weight: 700;
  animation: honk-float 1s ease-out infinite;
  opacity: 0;
}
@keyframes honk-float {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-16px); }
}
.pole-row {
  display: flex;
  align-items: center;
  margin: 0 0 2px;
  position: relative;
  z-index: 2;
}
.pole-info {
  flex: 1;
}
.pole-pts {
  font-family: 'Orbitron', sans-serif;
  font-size: 19px;
  font-weight: 800;
  line-height: 1;
  color: #fff;
}
.pole-total {
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  color: var(--argent);
  font-weight: 600;
}
.pole-caption {
  font-family: 'Rajdhani', sans-serif;
  font-size: 11.5px;
  color: #00e5ff;
  margin-top: 4px;
  font-weight: 600;
}
.pole-sub {
  font-size: 10px;
  color: var(--argent);
  margin-top: 1px;
}
.verse-caption {
  font-size: 10px;
  font-style: italic;
  color: var(--argent);
  margin: 4px 0 0;
  line-height: 1.35;
  max-height: 28px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  position: relative;
  z-index: 2;
}
.verse-caption::-webkit-scrollbar {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  .van.driving, .van.happy, .wheel, .happy .van-body, .puff, .sparkle, .honk {
    animation: none;
  }
  .card-face.front::after { animation: none; }
}

/* ---------------- REWARDS ---------------- */
.rewards-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.reward-card {
  background: var(--panel);
  border: 1px solid var(--ligne);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  position: relative;
  transition: transform 0.15s ease;
}
.reward-card:active {
  transform: scale(0.97);
}
.reward-card.reward-shake {
  animation: reward-shake-anim 0.4s ease;
}
@keyframes reward-shake-anim {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}
.reward-hint {
  position: absolute;
  bottom: -22px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 11px;
  color: var(--succes);
  animation: fade-in 0.15s ease;
}
.reward-card.unlocked {
  border-color: #2c4a34;
}
.reward-name {
  font-weight: 600;
  font-size: 14.5px;
}
.reward-desc {
  color: var(--argent);
  font-size: 12.5px;
  margin-top: 3px;
}
.reward-points {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--argent-clair);
  white-space: nowrap;
}
.badge-unlocked {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #14261a;
  color: var(--succes);
  padding: 4px 9px;
  border-radius: 20px;
  white-space: nowrap;
}

.rewards-admin-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.reward-admin-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--panel);
  border: 1px solid var(--ligne);
  border-radius: 12px;
  padding: 14px;
  flex-wrap: wrap;
}
.reward-admin-row .grow {
  flex: 1;
  min-width: 160px;
}
.reward-admin-row input[type="text"],
.reward-admin-row input:not([type]),
.reward-admin-row .edit-name,
.reward-admin-row .edit-desc,
.reward-admin-row .edit-choices,
.reward-admin-row .edit-group-price,
.reward-admin-row .edit-image {
  background: var(--panel-2);
  border: 1px solid var(--ligne);
  color: var(--blanc);
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13px;
}
.reward-admin-row input[type="number"] {
  background: var(--panel-2);
  border: 1px solid var(--ligne);
  color: var(--blanc);
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13px;
}

/* ---------------- HISTORY / LISTS ---------------- */
.history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--panel);
  border: 1px solid var(--ligne);
  border-radius: 10px;
  padding: 12px 14px;
  gap: 10px;
}
.history-item .date {
  color: var(--argent);
  font-size: 12px;
  margin-top: 2px;
}
.history-item .pts {
  font-family: var(--font-mono);
  color: var(--succes);
  font-size: 13.5px;
  white-space: nowrap;
}

/* ---------------- PILLS / STATUS ---------------- */
.pill {
  display: inline-block;
  font-size: 10.5px;
  text-transform: capitalize;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid var(--ligne);
  color: var(--argent-clair);
  white-space: nowrap;
}
.pill.status-en_attente { color: #e0c46b; border-color: #4a4128; }
.pill.status-confirme { color: var(--succes); border-color: #2c4a34; }
.pill.status-annule { color: var(--danger); border-color: #4a2c28; }
.pill.status-livre { color: var(--succes); border-color: #2c4a34; }

/* ---------------- BOOKING CTA / SHEETS ---------------- */
.book-cta {
  position: sticky;
  bottom: 0;
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--noir) 60%, transparent);
}
.book-cta .btn svg {
  vertical-align: middle;
  margin-right: 6px;
}

.sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 100;
  animation: fade-in 0.15s ease;
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.sheet {
  background: var(--noir);
  border: 1px solid var(--ligne);
  border-radius: 20px 20px 0 0;
  padding: 24px 20px calc(24px + env(safe-area-inset-bottom));
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
}
.sheet * {
  min-width: 0;
}
.sheet h3 {
  font-family: var(--font-display);
  font-size: 22px;
  margin: 0 0 4px;
  letter-spacing: 0.5px;
}
.sheet .sub {
  color: var(--argent);
  font-size: 13px;
  margin-bottom: 18px;
}

/* ---------------- ADMIN NAV / LAYOUT ---------------- */
.admin-layout {
  display: flex;
  flex: 1;
  min-height: 0;
}
.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 12px;
  border-right: 1px solid var(--ligne);
  min-width: 150px;
}
.admin-nav button {
  background: transparent;
  border: none;
  color: var(--argent);
  text-align: left;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  cursor: pointer;
  font-family: var(--font-body);
}
.admin-nav button.active {
  background: var(--panel);
  color: var(--blanc);
}
.admin-main {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  min-width: 0;
}

@media (max-width: 760px) {
  .admin-layout { flex-direction: column; }
  .admin-nav {
    flex-direction: row;
    width: 100%;
    overflow-x: auto;
    border-right: none;
    border-bottom: 1px solid var(--ligne);
    padding: 10px 12px;
  }
  .admin-nav button { white-space: nowrap; }
}

/* ---------------- SCANNER / RESULT ---------------- */
.scanner-box {
  background: var(--panel);
  border: 1px solid var(--ligne);
  border-radius: 14px;
  padding: 18px;
  max-width: 420px;
  margin: 0 auto;
}
#qr-reader {
  border-radius: 10px;
  overflow: hidden;
}
.client-result {
  margin-top: 18px;
  text-align: center;
}
.client-result .name {
  font-size: 18px;
  font-weight: 600;
}
.client-result .phone {
  color: var(--argent);
  font-size: 13px;
  margin-top: 2px;
}
.client-result .points-line {
  font-family: var(--font-mono);
  color: var(--succes);
  font-size: 20px;
  margin: 10px 0 16px;
}

/* ---------------- SEARCH / TABLE ---------------- */
.search-row input {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--ligne);
  color: var(--blanc);
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 14px;
}
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--ligne);
  border-radius: 12px;
}
table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
th {
  text-align: left;
  color: var(--argent);
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--ligne);
  white-space: nowrap;
}
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--ligne);
  white-space: nowrap;
}
tr:last-child td { border-bottom: none; }
.pts-cell {
  font-family: var(--font-mono);
  color: var(--succes);
}

/* ---------------- STATS ---------------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.stat-card {
  background: var(--panel);
  border: 1px solid var(--ligne);
  border-radius: 12px;
  padding: 16px;
}
.stat-value {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 600;
}
.stat-label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--argent);
  margin-top: 4px;
}
.card-chip-logo {
  width: 22px;
  height: 22px;
  object-fit: cover;
  border-radius: 5px;
}
.stamp-celebration {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.confetti-piece {
  position: absolute;
  top: -10%;
  font-size: 22px;
  animation: confetti-fall 1.8s ease-in forwards;
  opacity: 0;
}
@keyframes confetti-fall {
  0% { transform: translateY(0) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  100% { transform: translateY(110vh) rotate(360deg); opacity: 0.9; }
}
.stamp-celebration-badge {
  background: var(--panel);
  border: 1px solid var(--succes);
  border-radius: 18px;
  padding: 22px 30px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  animation: badge-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes badge-pop {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); }
}
.stamp-celebration-icon {
  font-size: 36px;
  margin-bottom: 6px;
}
.stamp-celebration-text {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.5px;
  color: var(--succes);
}
@media (prefers-reduced-motion: reduce) {
  .confetti-piece { animation: none; opacity: 0; }
  .stamp-celebration-badge { animation: none; }
}

/* ---------------- URGENT BANNER (Disponible maintenant) ---------------- */
/* ---------------- REVIEW BANNER (demande d'avis automatique) ---------------- */
.review-banner {
  background: linear-gradient(135deg, #1a1710, #0b0b0c);
  border: 1px solid #e8c463;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 10px 0;
}
.review-banner-text { flex: 1; min-width: 0; }
.review-banner-title {
  font-weight: 700;
  font-size: 12.5px;
  color: #e8c463;
}
.review-banner-sub {
  font-size: 11px;
  color: var(--argent);
  margin-top: 1px;
}
.review-banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.review-banner-btn {
  background: #e8c463;
  color: #0b0b0c;
  font-weight: 700;
  font-size: 12px;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
}
.review-banner-dismiss {
  background: none;
  border: none;
  color: var(--argent);
  font-size: 14px;
  cursor: pointer;
  padding: 4px;
}

.urgent-banner {
  background: linear-gradient(135deg, #14261a, #0b0b0c);
  border: 1px solid var(--succes);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  animation: urgent-pulse 2s infinite;
}
@keyframes urgent-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(127, 216, 143, 0.3); }
  50% { box-shadow: 0 0 0 6px rgba(127, 216, 143, 0); }
}
.urgent-dot {
  width: 9px;
  height: 9px;
  background: var(--succes);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 8px var(--succes);
}
.urgent-text {
  flex: 1;
  min-width: 0;
}
.urgent-title {
  font-weight: 700;
  font-size: 12.5px;
  color: var(--succes);
}
.urgent-sub {
  font-size: 11px;
  color: var(--argent);
  margin-top: 1px;
}
.urgent-btn {
  background: var(--succes);
  color: #0b0b0c;
  font-weight: 700;
  font-size: 12px;
  padding: 8px 14px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}
@media (prefers-reduced-motion: reduce) {
  .urgent-banner { animation: none; }
}

/* ---------------- LIVE TRIP MAP ---------------- */
.trip-map-card {
  background: var(--panel);
  border: 1px solid var(--succes);
  border-radius: 16px;
  overflow: hidden;
  margin: 10px 0;
}
#trip-leaflet-map {
  height: 180px;
  width: 100%;
  background: #0d1611;
}
.trip-emoji-icon {
  font-size: 24px;
  line-height: 1;
  filter: drop-shadow(0 0 4px rgba(0,0,0,0.6));
}
.trip-info-bar {
  padding: 14px 16px;
}
.trip-eta-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.trip-eta-label {
  font-size: 11px;
  color: var(--argent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.trip-eta-big {
  font-size: 22px;
  font-weight: 700;
  color: var(--succes);
  font-family: var(--font-mono);
}
.trip-dist-sub {
  color: var(--argent);
  font-size: 12.5px;
}
.pill.status-prete { color: var(--succes); border-color: #2c4a34; }
.pill.status-recuperee { color: var(--argent-clair); border-color: var(--ligne); }
