/* ================================================================
   Moto Pro — charte « Bleu saphir + Or » v3
   Primaire : saphir profond (headers, titres, icônes actives,
   anneaux timer, barres d'état course). Accent / CTA : or.
   Surfaces claires, texte saphir foncé, secondaire gris doux.
   Seul vert conservé : statut « En ligne · GPS actif ».
   Chargé en DERNIER — remappe TOUS les tokens de marque.
   ================================================================ */

:root {
  /* —— Tokens de marque remappés —— */
  --moto-coral: #d4af37; /* or riche (accent chaud) */
  --moto-olive: #c9a227;
  --moto-magenta: #2b62d9; /* saphir moyen */
  --moto-teal: #2b62d9;
  --moto-lime: #ffd76b;
  --moto-mint: #7fa3f0; /* bleu clair (décor) */
  --moto-violet: #163a8a; /* saphir profond */
  --moto-forest: #101f45; /* encre saphir */
  --moto-gold: #d4af37;
  --accent: #c9a227;

  /* —— Encre & surfaces claires —— */
  --ink: #101f45;
  --ink-soft: #53607c;
  --gray-bg: #f6f8ff;
  --gray-border: rgba(16, 31, 69, 0.14);
  --gray-text: #53607c;
  --uber-gray-700: #33415e;

  /* —— Dégradés officiels : saphir → or —— */
  --moto-gradient: linear-gradient(100deg, #123878 0%, #2b62d9 52%, #c9a227 100%);
  --moto-gradient-hover: linear-gradient(100deg, #17418c 0%, #3b72e8 52%, #d4af37 100%);
  --moto-gradient-soft: linear-gradient(165deg, #f7f9ff 0%, #eef2fb 48%, #faf4dd 100%);
  --moto-gradient-vertical: linear-gradient(180deg, #2b62d9 0%, #163a8a 55%, #0d2a6b 100%);
  --moto-shadow-glow:
    0 12px 34px rgba(18, 56, 120, 0.28),
    0 2px 10px rgba(212, 175, 55, 0.14);
  --moto-shadow-soft: 0 4px 24px rgba(16, 31, 69, 0.08);
  --moto-shadow-card: 0 2px 16px rgba(16, 31, 69, 0.06);
  --moto-warn-soft: rgba(212, 175, 55, 0.16);

  /* —— Carte : itinéraire & épingles —— */
  --route-color: #163a8a;
  --route-glow: rgba(22, 58, 138, 0.30);
  --moto-pin-pickup: linear-gradient(135deg, #2b62d9 0%, #123878 100%);
  --moto-pin-dropoff: linear-gradient(135deg, #e0c04a 0%, #c9a227 100%);
  --moto-pin-self: linear-gradient(155deg, #3d72e0 0%, #123878 100%);

  /* —— Logo (le mark officiel n'est pas recoloré : halos seulement) —— */
  --moto-logo-filter: saturate(1.06) contrast(1.03) brightness(1.02);
  --moto-logo-glow:
    drop-shadow(0 10px 24px rgba(18, 56, 120, 0.38))
    drop-shadow(0 3px 12px rgba(212, 175, 55, 0.22));
  --moto-logo-glow-soft:
    drop-shadow(0 6px 16px rgba(18, 56, 120, 0.28))
    drop-shadow(0 2px 8px rgba(212, 175, 55, 0.16));

  /* —— Compat uber-* —— */
  --uber-blue: #2b62d9;
  --uber-blue-dark: #163a8a;
}

/* —— Mode sombre : nuit saphir —— */
html[data-theme="dark"] {
  --ink: #eef2fb;
  --ink-soft: #a9bee2;
  --gray-bg: #0b1120;
  --gray-border: rgba(255, 255, 255, 0.15);
  --gray-text: #a9bee2;
  --uber-gray-50: #0b1120;
  --uber-gray-500: #9db3d9;
  --uber-gray-700: #cdd8ef;
  --moto-gradient-soft: linear-gradient(165deg, #0b1120 0%, #101a30 55%, #131c33 100%);
  --moto-shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.4);
  --moto-shadow-card: 0 2px 16px rgba(0, 0, 0, 0.35);
}

/* —— Titre du dock : encre saphir pleine (pas de texte dégradé) —— */
.uber-dock-title {
  background: none;
  -webkit-text-fill-color: var(--ink, #101f45);
  color: var(--ink, #101f45);
}

/* —— Badge gains top bar : saphir → or —— */
.app-uber-driver .chrome-earnings {
  background: linear-gradient(105deg, #123878 0%, #2b62d9 55%, #c9a227 130%);
  box-shadow:
    0 6px 18px rgba(18, 56, 120, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.app-uber-driver .chrome-earnings-value {
  text-shadow: 0 1px 2px rgba(8, 18, 36, 0.4);
}

/* —— Splash : nuit saphir, lampe or discrète —— */
.moto-brand-splash {
  background:
    radial-gradient(110% 70% at 16% 102%, rgba(212, 175, 55, 0.36) 0%, rgba(212, 175, 55, 0) 50%),
    linear-gradient(170deg, #1a4fc4 0%, #0a1840 52%, #081224 100%) !important;
}

/* —— Épingle moto générique (fallback) : saphir —— */
.moto-3d-pin--moto .moto-3d-pin__body:not(.moto-3d-pin__body--bare) {
  background: linear-gradient(155deg, #3d72e0 0%, #2b62d9 38%, #163a8a 100%);
  box-shadow: 0 8px 18px rgba(22, 58, 138, 0.24);
}

/* —— Épingles d'itinéraire (A / B) : anneau saphir → or, encre saphir —— */
.moto-route-pin__core {
  background-image:
    linear-gradient(#fff, #fff),
    linear-gradient(135deg, #123878 0%, #2b62d9 55%, #c9a227 100%) !important;
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.95),
    0 6px 18px rgba(16, 31, 69, 0.14),
    inset 0 0 0 2px transparent !important;
}

.moto-route-pin__letter,
.moto-route-pin__label,
.moto-route-pin--pickup .moto-route-pin__pulse {
  color: #101f45 !important;
}

/* —— Icône véhicule (currentColor) : saphir —— */
.moto-map-vehicle,
.moto-3d-pin--driver,
.moto-3d-pin--moto {
  --moto-fill: #2b62d9;
  color: #2b62d9;
}

/* —— Loader : anneau saphir → or —— */
.app-loader-spinner,
.app-loader-inner .status-spinner,
.app-loader-inner .spinner,
.app-loader-card .status-spinner,
.app-loader-card .spinner {
  background: conic-gradient(from 0deg, #123878 0%, #2b62d9 35%, #c9a227 70%, #123878 100%);
}

/* —— Gate localisation : pastille saphir/or —— */
.moto-location-gate__icon {
  background:
    linear-gradient(150deg, rgba(212, 175, 55, 0.16) 0%, rgba(43, 98, 217, 0.12) 100%);
}

/* —— Menu type de carte : sélection saphir —— */
.moto-maptype-option:active {
  background: rgba(22, 58, 138, 0.08);
}

.moto-maptype-option__dot {
  border-color: rgba(16, 31, 69, 0.22);
}

.moto-maptype-option.is-active .moto-maptype-option__dot {
  border-color: #2b62d9;
}

/* —— Boussole : nord saphir, sud acier bleuté —— */
.moto-map-compass__north-l {
  fill: #2b62d9;
}

.moto-map-compass__north-r {
  fill: #163a8a;
}

.moto-map-compass__south-l {
  fill: #dbe3f2;
}

.moto-map-compass__south-r {
  fill: #a9bad9;
}

/* —— Drawer : bordures et fonds saphir/or —— */
.drawer-nav--menu .drawer-nav-item {
  border-color: rgba(22, 58, 138, 0.1);
}

.drawer-nav--menu .drawer-nav-item:last-child {
  border-bottom-color: rgba(22, 58, 138, 0.1);
}

.drawer-nav-item .drawer-nav-icon {
  background: rgba(43, 98, 217, 0.1);
}

.drawer-nav-item--danger .drawer-nav-icon {
  background: rgba(212, 175, 55, 0.16);
}

.drawer-profile-avatar {
  background: rgba(255, 255, 255, 0.22);
}

/* —— Déconnexion drawer : or discret (pas de rouge marque) —— */
.app-uber-driver .drawer-nav-item--danger {
  color: #8a6a1a;
  border-color: rgba(212, 175, 55, 0.24);
  background: rgba(251, 246, 232, 0.95);
}

.app-uber-driver .drawer-nav-item--danger .drawer-nav-icon {
  background: rgba(212, 175, 55, 0.16);
}

.app-uber-driver .drawer-nav-item--danger .drawer-nav-icon svg {
  stroke: #b8912a;
  color: #b8912a;
}
