/* ============================================================
   LAVEC PWA — Feuille de styles principale
   Police : Montserrat | Couleurs : #0d2878 / #58b518 / blanc
   ============================================================ */

/* ── VARIABLES ── */
:root {
  --navy:       #0d2878;
  --navy-light: #1a3faa;
  --green:      #58b518;
  --dkgreen:    #2d7a10;
  --white:      #ffffff;
  --bg:         #f4f6fc;
  --surface:    #ffffff;
  --border:     #e2e8f0;
  --text:       #1a1a2e;
  --text-2:     #5a6580;
  --text-3:     #9aa5bf;
  --danger:     #e53e3e;
  --warn:       #f6ad55;

  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  22px;
  --radius-xl:  32px;

  --shadow-sm:  0 2px 8px rgba(13,40,120,.10);
  --shadow-md:  0 4px 20px rgba(13,40,120,.14);
  --shadow-lg:  0 8px 40px rgba(13,40,120,.20);

  --nav-h:      68px;
  --header-h:   60px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; touch-action: manipulation; }
body {
  font-family: 'Montserrat', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
input, textarea { user-select: text; }
button { cursor: pointer; border: none; outline: none; font-family: inherit; background: none; }
a { text-decoration: none; }
img { max-width: 100%; }

/* ── SCREENS ── */
.screen {
  position: fixed; inset: 0;
  display: none; flex-direction: column;
  background: var(--bg);
  overflow: hidden;
  transition: opacity .25s;
}
.screen.active { display: flex; }

/* ════════════════════════════════════════════
   ONBOARDING
════════════════════════════════════════════ */
#screen-onboarding {
  background: var(--white);
}
.onboarding-wrap {
  display: flex; flex-direction: column;
  height: 100%; padding: 0 0 calc(var(--safe-bottom) + 20px);
}
.ob-slides { flex: 1; position: relative; overflow: hidden; }
.ob-slide {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding: 0 32px 32px;
  opacity: 0; transform: translateX(40px);
  transition: opacity .4s, transform .4s;
  pointer-events: none;
}
.ob-slide.active {
  opacity: 1; transform: translateX(0);
  pointer-events: auto;
}
.ob-visual {
  position: absolute; top: 0; left: 0; right: 0;
  height: 55%; display: flex; align-items: center; justify-content: center;
}
.ob-circle {
  position: absolute; border-radius: 50%;
}
.ob-c1 {
  width: 280px; height: 280px; top: -60px; left: -60px;
  background: radial-gradient(circle at center, #0d287820, transparent 70%);
}
.ob-c2 {
  width: 200px; height: 200px; bottom: 0; right: -40px;
  background: radial-gradient(circle at center, #58b51820, transparent 70%);
}
.ob-icon-wrap {
  width: 120px; height: 120px;
  background: var(--bg);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 1;
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.ob-icon { width: 70px; height: 70px; }
.ob-text { z-index: 1; text-align: center; }
.ob-text h2 {
  font-size: 24px; font-weight: 800;
  color: var(--navy); line-height: 1.25; margin-bottom: 14px;
}
.ob-text h2 span { color: var(--green); }
.ob-text p {
  font-size: 13.5px; color: var(--text-2);
  line-height: 1.65; font-weight: 400;
}
.ob-dots {
  display: flex; justify-content: center; gap: 8px;
  padding: 20px 0 10px;
}
.ob-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border); transition: all .3s;
}
.ob-dot.active {
  background: var(--navy); width: 24px; border-radius: 4px;
}
.ob-actions {
  padding: 0 24px;
  display: flex; flex-direction: column; gap: 10px;
}

/* ════════════════════════════════════════════
   BOUTONS GLOBAUX
════════════════════════════════════════════ */
.btn-primary {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--navy); color: var(--white);
  border-radius: var(--radius-md);
  padding: 15px 24px;
  font-size: 14px; font-weight: 700;
  transition: background .2s, transform .1s, box-shadow .2s;
  box-shadow: 0 4px 16px rgba(13,40,120,.3);
  min-height: 50px;
}
.btn-primary:active { transform: scale(.97); background: var(--navy-light); }
.btn-primary.full { width: 100%; }
.btn-primary:disabled { opacity: .5; pointer-events: none; }

.btn-ghost {
  display: flex; align-items: center; justify-content: center;
  background: transparent; color: var(--text-2);
  border-radius: var(--radius-md);
  padding: 13px 24px;
  font-size: 14px; font-weight: 600;
  transition: color .2s;
}
.btn-ghost:active { color: var(--navy); }

.btn-danger {
  display: flex; align-items: center; justify-content: center;
  background: var(--danger); color: var(--white);
  border-radius: var(--radius-md);
  padding: 13px 24px;
  font-size: 14px; font-weight: 700;
}

/* ════════════════════════════════════════════
   AUTH
════════════════════════════════════════════ */
#screen-auth {
  background: var(--white);
  overflow-y: auto;
}
.auth-wrap {
  padding: 48px 24px calc(var(--safe-bottom) + 32px);
  max-width: 420px; margin: 0 auto;
}
.auth-header { text-align: center; margin-bottom: 32px; }
.logo-svg { width: 120px; height: auto; }
.auth-tagline {
  font-size: 12px; color: var(--text-3);
  font-weight: 500; margin-top: 4px;
  letter-spacing: .5px;
}
.auth-tabs {
  display: flex; background: var(--bg);
  border-radius: var(--radius-md); padding: 4px;
  margin-bottom: 28px;
}
.auth-tab {
  flex: 1; padding: 10px;
  border-radius: calc(var(--radius-md) - 4px);
  font-size: 13px; font-weight: 700;
  color: var(--text-3);
  transition: all .25s;
}
.auth-tab.active {
  background: var(--white); color: var(--navy);
  box-shadow: var(--shadow-sm);
}
.auth-form { display: none; flex-direction: column; gap: 16px; }
.auth-form.active { display: flex; }

/* ── Champs ── */
.field-wrap { display: flex; flex-direction: column; gap: 6px; }
.field-wrap label { font-size: 12px; font-weight: 700; color: var(--text-2); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.input-group {
  display: flex; align-items: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  overflow: hidden;
  transition: border-color .2s;
}
.input-group:focus-within { border-color: var(--navy); }

.input-prefix {
  padding: 0 10px; font-size: 12px; font-weight: 600;
  color: var(--text-2); white-space: nowrap;
  background: var(--bg); border-right: 1.5px solid var(--border);
  align-self: stretch; display: flex; align-items: center;
}
.input-group input,
.field-wrap input[type="text"],
.field-wrap input[type="password"],
.field-wrap input[type="tel"],
.field-wrap input[type="date"],
.field-wrap input[type="time"] {
  flex: 1; border: none; outline: none;
  padding: 13px 12px; font-size: 14px;
  font-family: inherit; color: var(--text); background: var(--white);
}
.field-wrap > input {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 12px;
  transition: border-color .2s;
}
.field-wrap > input:focus { border-color: var(--navy); outline: none; }

.toggle-pw {
  padding: 0 12px; font-size: 16px;
  background: none; border: none;
}
.name-badge {
  background: var(--bg); border-radius: var(--radius-sm);
  padding: 12px 14px; font-size: 14px; font-weight: 600; color: var(--navy);
}
.form-error {
  font-size: 12px; color: var(--danger); font-weight: 600;
  min-height: 16px;
}

/* ════════════════════════════════════════════
   APP SHELL — Carte + Tabs
════════════════════════════════════════════ */
#screen-app {
  background: var(--bg);
  padding-bottom: calc(var(--nav-h) + var(--safe-bottom));
}
.tab-content {
  display: none;
  flex-direction: column;
  height: calc(100vh - var(--nav-h) - var(--safe-bottom));
  overflow-y: auto;
}
.tab-content.active { display: flex; }

/* ── Carte Leaflet ── */
#tab-accueil { position: relative; overflow: hidden; height: calc(100vh - var(--nav-h) - var(--safe-bottom)); }
#map { position: absolute; inset: 0; z-index: 0; }

/* Override Leaflet */
.leaflet-control-zoom a { font-family: 'Montserrat', sans-serif !important; }

/* ── Header flottant ── */
.map-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  background: linear-gradient(to bottom, rgba(255,255,255,.95), transparent);
}
.map-greeting {
  font-size: 15px; color: var(--navy);
  font-weight: 500;
}
.map-greeting strong { font-weight: 800; }
.notif-btn {
  position: relative; width: 40px; height: 40px;
  background: var(--white); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
.notif-btn svg { width: 20px; height: 20px; color: var(--navy); }
.notif-badge {
  position: absolute; top: 4px; right: 4px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--danger); color: white;
  font-size: 9px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.zone-banner {
  position: absolute; top: 68px; left: 16px; right: 16px; z-index: 10;
  background: #fff8e0; border: 1px solid var(--warn);
  border-radius: var(--radius-sm); padding: 10px 14px;
  font-size: 12px; font-weight: 600; color: #7a5000;
}

/* ── Boutons action carte ── */
.map-actions {
  position: absolute; bottom: 20px; left: 16px; right: 16px; z-index: 10;
  display: flex; gap: 12px;
}
.btn-commander {
  flex: 1.4;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--navy); color: var(--white);
  border-radius: var(--radius-md);
  padding: 16px;
  font-size: 15px; font-weight: 800;
  box-shadow: var(--shadow-lg);
  transition: transform .15s;
}
.btn-commander:active { transform: scale(.97); }
.btn-commander svg { width: 20px; height: 20px; }
.btn-planifier {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--white); color: var(--navy);
  border-radius: var(--radius-md);
  padding: 16px;
  font-size: 14px; font-weight: 700;
  box-shadow: var(--shadow-md);
  transition: transform .15s;
}
.btn-planifier:active { transform: scale(.97); }
.btn-planifier svg { width: 18px; height: 18px; }

/* ── Bottom Nav ── */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  height: calc(var(--nav-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: var(--white);
  border-top: 1px solid var(--border);
  display: flex; align-items: center;
  box-shadow: 0 -4px 20px rgba(13,40,120,.08);
}
.nav-btn {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px;
  padding: 8px 0;
  color: var(--text-3); font-size: 10px; font-weight: 600;
  transition: color .2s;
}
.nav-btn svg { width: 22px; height: 22px; transition: transform .2s; }
.nav-btn.active { color: var(--navy); }
.nav-btn.active svg { transform: scale(1.1); }

/* ── Tab Header ── */
.tab-header {
  padding: 20px 16px 12px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.tab-header h2 {
  font-size: 20px; font-weight: 800; color: var(--navy);
}

/* ════════════════════════════════════════════
   COMMANDES
════════════════════════════════════════════ */
.filter-chips {
  display: flex; gap: 8px;
  padding: 12px 16px;
  overflow-x: auto; flex-shrink: 0;
  background: var(--white); border-bottom: 1px solid var(--border);
  scrollbar-width: none;
}
.filter-chips::-webkit-scrollbar { display: none; }
.chip {
  padding: 7px 14px; border-radius: 20px;
  font-size: 12px; font-weight: 700; white-space: nowrap;
  background: var(--bg); color: var(--text-2);
  transition: all .2s; flex-shrink: 0;
}
.chip.active { background: var(--navy); color: var(--white); }

.commandes-list { flex: 1; overflow-y: auto; padding: 12px 16px; display: flex; flex-direction: column; gap: 10px; }

.commande-card {
  background: var(--white); border-radius: var(--radius-md);
  padding: 14px 16px; box-shadow: var(--shadow-sm);
  cursor: pointer; transition: transform .15s, box-shadow .15s;
  display: flex; gap: 12px; align-items: flex-start;
}
.commande-card:active { transform: scale(.99); }
.commande-icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--bg); display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.commande-info { flex: 1; min-width: 0; }
.commande-title { font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 3px; }
.commande-sub { font-size: 11.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.commande-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.commande-price { font-size: 14px; font-weight: 800; color: var(--navy); }
.status-badge {
  font-size: 10px; font-weight: 700; padding: 3px 8px;
  border-radius: 20px; white-space: nowrap;
}
.status-en_attente  { background: #fff8e0; color: #a06000; }
.status-assignee    { background: #eef3ff; color: var(--navy); }
.status-en_cours    { background: #eefae0; color: var(--dkgreen); }
.status-terminee    { background: #f0fff4; color: #276749; }
.status-annulee     { background: #fff0f0; color: var(--danger); }
.status-planifiee   { background: #f0eeff; color: #5000b0; }

.empty-state {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 60px 24px; gap: 10px;
  text-align: center;
}
.empty-icon { font-size: 48px; }
.empty-state p { font-size: 14px; color: var(--text-3); font-weight: 500; }

/* ════════════════════════════════════════════
   ABONNEMENTS
════════════════════════════════════════════ */
#tab-abonnements { padding: 0; }
#tab-abonnements .tab-header { position: sticky; top: 0; z-index: 5; }
.quota-card {
  margin: 12px 16px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-radius: var(--radius-lg); padding: 18px 20px;
  color: var(--white);
}
.quota-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
.quota-label { font-size: 11px; font-weight: 600; opacity: .7; margin-bottom: 4px; }
.quota-name { font-size: 18px; font-weight: 800; }
.quota-expiry { font-size: 11px; opacity: .6; background: rgba(255,255,255,.1); padding: 4px 10px; border-radius: 20px; }
.quota-bar-item { margin-bottom: 10px; }
.quota-bar-label { display: flex; justify-content: space-between; font-size: 11px; opacity: .8; margin-bottom: 5px; }
.quota-bar-track { height: 6px; background: rgba(255,255,255,.2); border-radius: 3px; overflow: hidden; }
.quota-bar-fill { height: 100%; background: var(--green); border-radius: 3px; transition: width .6s ease; }

.section-label { font-size: 11px; font-weight: 700; color: var(--text-3); letter-spacing: 1px; text-transform: uppercase; padding: 8px 16px 4px; }
.formules-list { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 10px; }

.formule-card {
  background: var(--white); border-radius: var(--radius-md);
  border: 1.5px solid var(--border); padding: 16px;
  cursor: pointer; position: relative; overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.formule-card:active { border-color: var(--navy); }
.formule-card.populaire { border-color: var(--navy); }
.formule-badge {
  position: absolute; top: 12px; right: 12px;
  background: var(--navy); color: white;
  font-size: 9px; font-weight: 800; padding: 3px 8px; border-radius: 20px; text-transform: uppercase;
}
.formule-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.formule-name { font-size: 16px; font-weight: 800; color: var(--navy); }
.formule-price { font-size: 18px; font-weight: 800; color: var(--green); }
.formule-price span { font-size: 11px; color: var(--text-3); font-weight: 500; }
.formule-inclus { display: flex; flex-wrap: wrap; gap: 6px; }
.formule-tag {
  background: var(--bg); border-radius: 20px;
  padding: 4px 10px; font-size: 11px; font-weight: 600; color: var(--text-2);
}
.skeleton-card {
  height: 100px; background: linear-gradient(90deg, var(--bg) 25%, #e2e8f0 50%, var(--bg) 75%);
  background-size: 200% 100%; border-radius: var(--radius-md);
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ════════════════════════════════════════════
   PROFIL
════════════════════════════════════════════ */
.profil-wrap { display: flex; flex-direction: column; align-items: center; padding: 24px 16px; gap: 8px; }
.profil-avatar-wrap { position: relative; margin-bottom: 8px; }
.profil-avatar {
  width: 88px; height: 88px; border-radius: 50%;
  background: var(--navy); display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.profil-avatar span { font-size: 28px; font-weight: 800; color: white; }
.profil-avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-edit-btn {
  position: absolute; bottom: 2px; right: 2px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--green); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
}
.avatar-edit-btn svg { width: 14px; height: 14px; color: white; stroke-width: 2.5; }
.profil-name { font-size: 18px; font-weight: 800; color: var(--navy); }
.profil-phone { font-size: 13px; color: var(--text-2); font-weight: 500; }

.coupon-section {
  width: 100%; background: var(--white); border-radius: var(--radius-md);
  padding: 14px 16px; margin-top: 8px;
}
.coupon-label { font-size: 11px; font-weight: 700; color: var(--text-2); margin-bottom: 8px; }
.coupon-input-wrap { display: flex; gap: 8px; }
.coupon-input-wrap input {
  flex: 1; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px 12px; font-size: 14px; font-weight: 700; letter-spacing: 2px;
  font-family: inherit;
}
.btn-coupon-apply {
  background: var(--navy); color: white; border-radius: var(--radius-sm);
  padding: 10px 14px; font-size: 12px; font-weight: 700;
}
.coupon-result { font-size: 12px; margin-top: 6px; font-weight: 600; }
.coupon-result.valid { color: var(--dkgreen); }
.coupon-result.invalid { color: var(--danger); }

.profil-actions { width: 100%; display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.profil-action-btn {
  display: flex; align-items: center; gap: 12px;
  background: var(--white); border-radius: var(--radius-md);
  padding: 16px; font-size: 14px; font-weight: 600; color: var(--text);
  box-shadow: var(--shadow-sm); transition: transform .15s;
}
.profil-action-btn:active { transform: scale(.98); }
.profil-action-btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.profil-action-btn.danger { color: var(--danger); }

/* ════════════════════════════════════════════
   MODALES
════════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10,20,60,.5);
  display: none; align-items: flex-end; justify-content: center;
  backdrop-filter: blur(3px);
  animation-duration: .25s;
}
.modal-overlay.open { display: flex; animation: fadeIn .25s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-sheet {
  background: var(--white);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  width: 100%; max-width: 540px;
  max-height: 92vh; display: flex; flex-direction: column;
  animation: slideUp .3s cubic-bezier(.32,1.2,.5,1);
}
.modal-sheet.modal-full { max-height: 96vh; }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

.modal-handle {
  width: 36px; height: 4px; border-radius: 2px;
  background: var(--border); margin: 10px auto 0;
  flex-shrink: 0;
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px 12px; flex-shrink: 0;
  border-bottom: 1px solid var(--border);
}
.modal-header h3 { font-size: 17px; font-weight: 800; color: var(--navy); }
.modal-close {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg); display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--text-2); font-weight: 700;
}
.modal-body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.modal-footer {
  display: flex; gap: 10px; padding: 12px 20px calc(var(--safe-bottom) + 12px);
  border-top: 1px solid var(--border); flex-shrink: 0;
}
.modal-footer .btn-primary { flex: 1; }

/* ── Form Steps ── */
.form-step { display: none; flex-direction: column; gap: 12px; }
.form-step.active { display: flex; }
.step-label { font-size: 12px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: 1px; }

.vehicule-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.vehicule-btn {
  background: var(--bg); border-radius: var(--radius-md);
  padding: 14px 8px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
  border: 2px solid transparent; transition: all .2s;
  cursor: pointer;
}
.vehicule-btn.selected { border-color: var(--navy); background: #eef3ff; }
.vehicule-btn span { font-size: 26px; }
.vehicule-btn label { font-size: 11px; font-weight: 700; color: var(--text); text-align: center; }

.services-list { display: flex; flex-direction: column; gap: 8px; }
.service-btn {
  background: var(--bg); border-radius: var(--radius-md);
  padding: 14px 16px; display: flex; align-items: center; justify-content: space-between;
  border: 2px solid transparent; transition: all .2s; cursor: pointer;
}
.service-btn.selected { border-color: var(--navy); background: #eef3ff; }
.service-info { flex: 1; }
.service-info strong { display: block; font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 2px; }
.service-info small { font-size: 11px; color: var(--text-2); }
.service-price { font-size: 16px; font-weight: 800; color: var(--green); }

.options-list { display: flex; flex-direction: column; gap: 8px; }
.option-item {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg); border-radius: var(--radius-sm); padding: 12px 14px;
  cursor: pointer;
}
.option-checkbox {
  width: 20px; height: 20px; border-radius: 5px;
  border: 2px solid var(--border); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.option-item.checked .option-checkbox { background: var(--navy); border-color: var(--navy); }
.option-item.checked .option-checkbox::after { content: '✓'; color: white; font-size: 12px; font-weight: 800; }
.option-info { flex: 1; }
.option-info strong { font-size: 13px; font-weight: 700; color: var(--text); }
.option-price { font-size: 13px; font-weight: 700; color: var(--green); }

.paiement-options { display: flex; flex-direction: column; gap: 8px; }
.pay-opt {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg); border-radius: var(--radius-sm); padding: 14px;
  cursor: pointer; font-size: 14px; font-weight: 600; color: var(--text);
}
.pay-opt input[type="radio"] { accent-color: var(--navy); width: 18px; height: 18px; }

.coupon-cmd-wrap {
  display: flex; gap: 8px;
}
.coupon-cmd-wrap input {
  flex: 1; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px 12px; font-size: 14px; font-weight: 700; letter-spacing: 2px;
  font-family: inherit;
}
.coupon-cmd-wrap button {
  background: var(--green); color: white; border-radius: var(--radius-sm);
  padding: 10px 16px; font-size: 14px; font-weight: 800;
}

.recap-box {
  background: var(--bg); border-radius: var(--radius-md); padding: 14px;
}
.recap-row {
  display: flex; justify-content: space-between;
  font-size: 13px; padding: 4px 0;
  border-bottom: 0.5px solid var(--border);
}
.recap-row:last-child { border: none; padding-top: 8px; }
.recap-row.total { font-size: 15px; font-weight: 800; color: var(--navy); }
.recap-row.discount { color: var(--dkgreen); }

.step-progress {
  display: flex; justify-content: center; gap: 8px; padding: 8px 0 0;
}
.step-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border); transition: all .3s;
}
.step-dot.active { background: var(--navy); width: 20px; border-radius: 4px; }
.step-dot.done { background: var(--green); }

/* ── Radar ── */
.radar-sheet {
  background: var(--navy);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  width: 100%; padding: 40px 24px calc(var(--safe-bottom) + 48px);
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  animation: slideUp .3s cubic-bezier(.32,1.2,.5,1); position: relative;
}
.radar-close {
  position: absolute; top: 16px; right: 20px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.15); color: white;
  font-size: 14px; display: flex; align-items: center; justify-content: center;
}
.radar-wrap { position: relative; width: 160px; height: 160px; }
.radar-rings {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.radar-ring {
  position: absolute; border-radius: 50%;
  border: 1.5px solid rgba(88,181,24,.4);
  animation: radarPulse 2s ease-out infinite;
}
.r1 { width: 160px; height: 160px; animation-delay: 0s; }
.r2 { width: 110px; height: 110px; animation-delay: .5s; }
.r3 { width: 60px; height: 60px; animation-delay: 1s; }
@keyframes radarPulse {
  0% { opacity: 1; transform: scale(.8); }
  100% { opacity: 0; transform: scale(1.2); }
}
.radar-center {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 48px; height: 48px;
  background: rgba(255,255,255,.1); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.radar-center svg { width: 32px; height: 32px; }
.radar-status { font-size: 15px; font-weight: 700; color: white; text-align: center; }
.radar-subtitle { font-size: 12px; color: rgba(255,255,255,.5); text-align: center; }

/* ── Confirm ── */
.confirm-sheet {
  background: var(--white);
  border-radius: var(--radius-xl); margin: 24px;
  padding: 28px 24px;
  text-align: center;
  animation: scaleIn .25s cubic-bezier(.32,1.2,.5,1);
}
@keyframes scaleIn { from { transform: scale(.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
#modal-confirm { align-items: center; }
.confirm-icon { font-size: 36px; margin-bottom: 12px; }
.confirm-sheet h3 { font-size: 17px; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.confirm-sheet p { font-size: 14px; color: var(--text-2); margin-bottom: 20px; }
.confirm-actions { display: flex; gap: 10px; }
.confirm-actions .btn-ghost, .confirm-actions .btn-danger { flex: 1; }

/* ── Toast ── */
#toast-container {
  position: fixed; bottom: calc(var(--nav-h) + var(--safe-bottom) + 12px);
  left: 16px; right: 16px; z-index: 999;
  display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}
.toast {
  background: var(--text); color: white;
  border-radius: var(--radius-md); padding: 12px 16px;
  font-size: 13px; font-weight: 600;
  box-shadow: var(--shadow-lg);
  animation: toastIn .3s cubic-bezier(.32,1.2,.5,1);
  pointer-events: auto;
  display: flex; align-items: center; gap: 10px;
}
.toast.success { background: var(--dkgreen); }
.toast.error { background: var(--danger); }
.toast.info { background: var(--navy); }
@keyframes toastIn { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ── Détail commande ── */
.detail-status-bar {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg); border-radius: var(--radius-md); padding: 14px;
  margin-bottom: 14px;
}
.detail-status-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.detail-section { margin-bottom: 14px; }
.detail-section-title { font-size: 11px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.detail-row { display: flex; justify-content: space-between; font-size: 13px; padding: 6px 0; border-bottom: 0.5px solid var(--border); }
.detail-row:last-child { border: none; }
.detail-row-label { color: var(--text-2); }
.detail-row-value { font-weight: 600; color: var(--text); }
.cancel-btn {
  width: 100%; margin-top: 12px;
  background: #fff0f0; color: var(--danger);
  border-radius: var(--radius-md); padding: 14px;
  font-size: 14px; font-weight: 700;
}

/* Carte laveur dans modal détail */
.laveur-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg); border-radius: var(--radius-md); padding: 14px;
}
.laveur-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); display: flex; align-items: center; justify-content: center;
  color: white; font-size: 14px; font-weight: 800; flex-shrink: 0;
}
.laveur-info { flex: 1; }
.laveur-name { font-size: 14px; font-weight: 700; color: var(--navy); }
.laveur-phone { font-size: 12px; color: var(--text-2); }
.call-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--green); color: white;
  display: flex; align-items: center; justify-content: center;
}
.call-btn svg { width: 18px; height: 18px; }

/* Formule modal */
.formule-modal-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px;
}
.formule-modal-price { font-size: 24px; font-weight: 800; color: var(--green); }
.formule-modal-sub { font-size: 12px; color: var(--text-3); }
.inclus-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.inclus-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; color: var(--text);
}
.inclus-item::before { content: '✓'; color: var(--green); font-weight: 800; }

/* Loader bouton */
.btn-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn-loading::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: white;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: translate(-50%,-50%) rotate(360deg); } }

/* Scrollbar globale discrète */
* { scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
