/* ════════════════════════════════════════════
   CHAP CHAP — style.css
   T3 + T4 : refonte Auth + Dashboard passager
   ════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --dark:   #0d0d1a;
  --yellow: #f5c518;
  --yellow2:#e0b310;
  --green:  #1D9E75;
  --red:    #e24b4a;
  --sur:    #fff;
  --sur2:   #f7f7f5;
  --sur3:   #efefed;
  --t1:     #0d0d1a;
  --t2:     #5a5a6e;
  --t3:     #9898a8;
  --bd:     rgba(0,0,0,.09);
  --bdm:    rgba(0,0,0,.16);
  --r:      14px;
  --rsm:    10px;
  --rxs:    6px;
  --sh:     0 4px 24px rgba(0,0,0,.12);
  --shlg:   0 8px 40px rgba(0,0,0,.18);
}

html, body { height: 100%; }
body {
  font-family: 'DM Sans', sans-serif;
  background: #0d0d1a;
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; padding: 12px;
}

/* ════════════════════════
   SPLASH
   ════════════════════════ */
#splash {
  position: fixed; inset: 0; background: #0d0d1a;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  z-index: 999; transition: opacity .5s, visibility .5s;
}
#splash.out { opacity: 0; visibility: hidden; }
.sp-logo {
  font-family: 'Syne', sans-serif; font-size: 52px; font-weight: 800;
  color: #fff; letter-spacing: 4px;
  animation: fup .7s cubic-bezier(.22,1,.36,1) both;
}
.sp-logo span { color: var(--yellow); }
.sp-sub {
  color: rgba(255,255,255,.4); font-size: 13px; letter-spacing: 2px; margin-top: 10px;
  animation: fup .7s .12s cubic-bezier(.22,1,.36,1) both;
}
.sp-dots { display: flex; gap: 7px; margin-top: 52px; animation: fup .7s .25s both; }
.sp-dots span {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--yellow); opacity: .3;
  animation: dotb 1.2s ease-in-out infinite;
}
.sp-dots span:nth-child(2) { animation-delay: .2s; }
.sp-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes dotb { 0%,100%{opacity:.3;transform:scale(1)} 50%{opacity:1;transform:scale(1.4)} }
@keyframes fup  { from{opacity:0;transform:translateY(18px)} to{opacity:1;transform:none} }
@keyframes shake {
  0%,100%{transform:translateX(0)}
  20%{transform:translateX(-6px)}
  40%{transform:translateX(6px)}
  60%{transform:translateX(-4px)}
  80%{transform:translateX(4px)}
}
.shake { animation: shake .45s cubic-bezier(.36,.07,.19,.97) both; }

/* ════════════════════════
   APP SHELL
   ════════════════════════ */
#root {
  width: 100%; max-width: 430px;
  background: var(--sur); border-radius: 24px;
  overflow: hidden; box-shadow: var(--shlg);
  min-height: 700px; display: flex; flex-direction: column;
  animation: appin .6s 1.9s cubic-bezier(.22,1,.36,1) both;
}
@keyframes appin { from{opacity:0;transform:translateY(28px)} to{opacity:1;transform:none} }
.screen { display: none; flex-direction: column; flex: 1; }
.screen.active { display: flex; }

/* ════════════════════════
   AUTH — T3 REFONTE
   ════════════════════════ */
.auth-wrap {
  flex: 1; padding: 32px 24px 28px;
  display: flex; flex-direction: column; overflow-y: auto;
}
.auth-wrap::-webkit-scrollbar { width: 0; }

/* Hero */
.auth-hero { text-align: center; margin-bottom: 28px; }
.auth-logo-wrap {
  display: inline-flex; align-items: center; gap: 10px;
  justify-content: center; margin-bottom: 8px;
}
.auth-logo-icon { font-size: 30px; line-height: 1; }
.auth-logo-text {
  font-family: 'Syne', sans-serif; font-size: 30px; font-weight: 800;
  color: var(--t1); letter-spacing: 3px;
}
.auth-logo-text span { color: var(--yellow); }
.auth-tagline { font-size: 13px; color: var(--t2); }

/* Mode cards — redesignées */
.mode-wrap { display: flex; gap: 10px; margin-bottom: 22px; }
.mode-card {
  flex: 1; padding: 12px; border: 2px solid var(--bd);
  border-radius: var(--r); cursor: pointer; background: var(--sur);
  transition: border-color .2s, background .2s, box-shadow .2s;
  display: flex; align-items: center; gap: 10px;
}
.mode-card:hover  { border-color: var(--bdm); box-shadow: 0 2px 10px rgba(0,0,0,.07); }
.mode-card.active { border-color: var(--yellow); background: #fffce8; box-shadow: 0 2px 14px rgba(245,197,24,.18); }
.mode-icon-wrap {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--sur2); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background .2s;
}
.mode-card.active .mode-icon-wrap { background: rgba(245,197,24,.22); }
.mode-icon { font-size: 20px; line-height: 1; }
.mode-body { flex: 1; min-width: 0; }
.mode-title { font-size: 13px; font-weight: 600; color: var(--t1); }
.mode-sub   { font-size: 11px; color: var(--t3); margin-top: 2px; }
.mode-check {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--bd); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all .2s; opacity: 0;
}
.mode-check svg { width: 10px; height: 10px; stroke: var(--dark); opacity: 0; transition: opacity .2s; }
.mode-card.active .mode-check { background: var(--yellow); border-color: var(--yellow); opacity: 1; }
.mode-card.active .mode-check svg { opacity: 1; }

/* Tabs auth */
.auth-tabs {
  position: relative; display: flex; background: var(--sur2);
  border-radius: var(--rxs); padding: 3px; margin-bottom: 20px;
}
.auth-tab {
  flex: 1; padding: 8px; border: none; background: none;
  font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 500;
  border-radius: 5px; cursor: pointer; color: var(--t2);
  transition: color .2s; position: relative; z-index: 1;
}
.auth-tab.active { color: var(--t1); }
.auth-tab-bar {
  position: absolute; top: 3px; bottom: 3px;
  background: var(--sur); border-radius: 5px;
  box-shadow: 0 1px 4px rgba(0,0,0,.09);
  transition: left .25s cubic-bezier(.22,1,.36,1);
  z-index: 0;
}

/* Champs de formulaire — T3 */
.fgroup { margin-bottom: 14px; }
.fgroup-label { font-size: 12px; font-weight: 500; color: var(--t2); margin-bottom: 8px; }
.finput-wrap {
  display: flex; align-items: center; gap: 0;
  border: 1.5px solid var(--bd); border-radius: var(--rxs);
  background: var(--sur); transition: border-color .2s, box-shadow .2s;
  overflow: hidden;
}
.finput-wrap:focus-within {
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(245,197,24,.12);
}
.finput-icon { padding: 0 10px 0 12px; font-size: 15px; flex-shrink: 0; line-height: 1; color: var(--t3); }
.finput {
  flex: 1; padding: 12px 8px; border: none; background: none;
  font-size: 14px; font-family: 'DM Sans', sans-serif;
  color: var(--t1); outline: none;
}
.finput::placeholder { color: var(--t3); }
.finput-wrap.has-error { border-color: var(--red); }
.finput-wrap.has-error:focus-within { box-shadow: 0 0 0 3px rgba(226,75,74,.1); }
.feye {
  padding: 0 12px; background: none; border: none;
  cursor: pointer; font-size: 14px; color: var(--t3);
  transition: color .15s; flex-shrink: 0;
}
.feye:hover { color: var(--t2); }

/* Erreur inline */
.ferr {
  font-size: 11px; color: var(--red); margin-top: 5px;
  display: none; padding-left: 4px;
}

/* Force de mot de passe */
.pass-strength { margin-top: 6px; display: flex; align-items: center; gap: 8px; }
.strength-bar  { flex: 1; height: 3px; background: var(--sur3); border-radius: 2px; overflow: hidden; }
.strength-fill { height: 100%; border-radius: 2px; transition: width .3s, background .3s; }

/* Bouton principal auth */
.btn-auth {
  width: 100%; padding: 13px 16px;
  background: var(--yellow); color: var(--dark);
  font-family: 'Syne', sans-serif; font-size: 14px; font-weight: 700;
  border: none; border-radius: var(--rxs); cursor: pointer; letter-spacing: .4px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .15s, transform .1s, opacity .2s; margin-top: 4px;
}
.btn-auth:hover  { background: var(--yellow2); }
.btn-auth:active { transform: scale(.98); }
.btn-auth:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn-auth-arrow { transition: transform .2s; }
.btn-auth:hover .btn-auth-arrow { transform: translateX(4px); }

/* Bouton outline */
.btn-outline {
  width: 100%; padding: 11px 16px; background: none;
  border: 1.5px solid var(--bd); border-radius: var(--rxs);
  font-size: 13px; font-family: 'DM Sans', sans-serif; font-weight: 500;
  color: var(--t2); cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: border-color .2s, background .2s, color .2s;
}
.btn-outline:hover { border-color: var(--yellow); background: #fffce8; color: var(--t1); }

/* Bouton Google */
.btn-google {
  width: 100%; padding: 11px 16px; background: var(--sur);
  border: 1.5px solid var(--bd); border-radius: var(--rxs);
  font-size: 13px; font-family: 'DM Sans', sans-serif; font-weight: 500;
  color: var(--t1); cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.btn-google:hover { border-color: #ddd; box-shadow: 0 2px 8px rgba(0,0,0,.08); }

/* Divider */
.auth-divider {
  text-align: center; margin: 16px 0;
  font-size: 12px; color: var(--t3); position: relative;
}
.auth-divider::before, .auth-divider::after {
  content: ''; position: absolute; top: 50%;
  height: 1px; width: 40%; background: var(--bd);
}
.auth-divider::before { left: 0; } .auth-divider::after { right: 0; }
.auth-divider span { background: var(--sur); padding: 0 8px; position: relative; z-index: 1; }

/* Conducteur header form */
.drv-form-header {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; background: rgba(245,197,24,.08);
  border: 1px solid rgba(245,197,24,.2); border-radius: var(--rsm);
  margin-bottom: 20px;
}
.drv-form-badge { font-size: 26px; flex-shrink: 0; }
.drv-form-title { font-family: 'Syne', sans-serif; font-size: 15px; font-weight: 700; color: var(--t1); }
.drv-form-sub   { font-size: 12px; color: var(--t2); margin-top: 2px; }

/* Grille véhicules */
.vg  { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; }
.vgb {
  padding: 11px 6px; border: 1.5px solid var(--bd); border-radius: var(--rxs);
  background: var(--sur); cursor: pointer; text-align: center;
  transition: border-color .15s, background .15s; user-select: none;
}
.vgb.active             { border-color: var(--yellow); background: #fffce8; }
.vgb:hover:not(.active) { border-color: var(--bdm); }
.vgi { font-size: 22px; margin-bottom: 3px; }
.vgl { font-size: 11px; font-weight: 500; color: var(--t2); }
.vgb.active .vgl { color: var(--dark); font-weight: 600; }

/* ════════════════════════
   HEADER APP
   ════════════════════════ */
.app-hdr {
  background: var(--dark); padding: 13px 18px;
  display: flex; align-items: center; justify-content: space-between; flex-shrink: 0;
}
.hdr-logo {
  font-family: 'Syne', sans-serif; font-size: 19px;
  font-weight: 800; color: var(--yellow); letter-spacing: 2px;
}
.hdr-right { display: flex; align-items: center; gap: 9px; }
.icon-btn {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.08); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.7); position: relative; transition: background .2s;
}
.icon-btn:hover { background: rgba(255,255,255,.14); }
.ndot {
  width: 7px; height: 7px; background: var(--red); border-radius: 50%;
  border: 2px solid var(--dark); position: absolute; top: 5px; right: 5px;
}
.ava {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--yellow); display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: var(--dark);
  cursor: pointer; flex-shrink: 0; transition: opacity .15s;
}
.ava:hover { opacity: .85; }

/* ════════════════════════
   CARTE
   ════════════════════════ */
#map, #driver-map { z-index: 1; }
.map-ov { position: relative; flex-shrink: 0; }
.map-badges {
  position: absolute; bottom: 10px; left: 10px; right: 10px;
  display: flex; justify-content: space-between; align-items: center;
  z-index: 10; pointer-events: none;
}
.mbadge {
  background: rgba(13,13,26,.78); color: #fff;
  font-size: 11px; padding: 5px 11px; border-radius: 20px;
  backdrop-filter: blur(6px);
}
.dbadge {
  background: var(--green); color: #fff;
  font-size: 11px; font-weight: 600; padding: 5px 11px;
  border-radius: 20px; display: flex; align-items: center; gap: 5px;
}
.ldot {
  width: 6px; height: 6px; border-radius: 50%; background: #fff;
  animation: blink 1s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }

/* ════════════════════════
   SCROLL + GREET
   ════════════════════════ */
.scroll { flex: 1; overflow-y: auto; padding: 16px 16px 0; }
.scroll::-webkit-scrollbar { width: 0; }

.greet-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.greet-name {
  font-family: 'Syne', sans-serif; font-size: 18px; font-weight: 700; color: var(--t1);
}
.greet-sub  { font-size: 13px; color: var(--t2); margin-top: 2px; margin-bottom: 16px; }

.sec-lbl {
  font-size: 11px; font-weight: 600; color: var(--t3);
  letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 9px;
}

/* ════════════════════════
   VÉHICULES — T4
   ════════════════════════ */
.vehicles { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 16px; }
.vehicles::-webkit-scrollbar { display: none; }
.vchip {
  flex-shrink: 0; min-width: 68px;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 10px 12px; border: 1.5px solid var(--bd); border-radius: 11px;
  cursor: pointer; background: var(--sur); transition: all .15s; user-select: none;
}
.vchip.active             { border-color: var(--yellow); background: #fffce8; }
.vchip:hover:not(.active) { border-color: var(--bdm); }
.vi { font-size: 21px; }
.vl { font-size: 11px; font-weight: 500; color: var(--t2); }
.vchip.active .vl { color: var(--dark); font-weight: 600; }

/* ════════════════════════
   CARTE RECHERCHE — T4
   ════════════════════════ */
.search-card {
  background: var(--sur2); border-radius: var(--r);
  padding: 4px 13px; margin-bottom: 13px;
  border: 1.5px solid var(--bd);
}
.loc-row { display: flex; align-items: center; gap: 11px; padding: 11px 0; }
.loc-sep { height: 1px; background: var(--bd); margin: 0 13px; }
.loc-dot {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.loc-o { background: rgba(29,158,117,.12); color: var(--green); }
.loc-d { background: rgba(226,75,74,.12);  color: var(--red);   }
.autocomplete-wrap { flex: 1; position: relative; }
.loc-inp {
  width: 100%; border: none; background: none;
  font-size: 14px; font-family: 'DM Sans', sans-serif;
  color: var(--t1); outline: none;
}
.loc-inp::placeholder { color: var(--t3); }
.loc-inp.inp-error { color: var(--red); }

/* Autocomplétion */
.autocomplete-list {
  position: absolute; top: calc(100% + 4px); left: -40px; right: 0;
  background: var(--sur); border: 1.5px solid var(--yellow);
  border-radius: var(--rxs); z-index: 100;
  max-height: 200px; overflow-y: auto;
  box-shadow: 0 4px 20px rgba(0,0,0,.13);
  animation: fup .15s cubic-bezier(.22,1,.36,1) both;
}
.autocomplete-item {
  padding: 10px 14px; font-size: 13px; color: var(--t1);
  cursor: pointer; border-bottom: 1px solid var(--bd);
  display: flex; align-items: center; gap: 8px; transition: background .1s;
}
.autocomplete-item:last-child { border-bottom: none; }
.autocomplete-item:hover { background: var(--sur2); }
.ac-icon { color: var(--t3); font-size: 13px; flex-shrink: 0; }

/* ════════════════════════
   OPTIONS PRIX + PASSAGERS — T4
   ════════════════════════ */
.opts-row {
  display: flex; align-items: stretch; gap: 0;
  background: var(--sur2); border: 1.5px solid var(--bd);
  border-radius: var(--r); margin-bottom: 14px; overflow: hidden;
}
.opt-group { flex: 1; min-width: 0; padding: 11px 13px; }
.opt-group-sm { flex: 0 0 auto; min-width: 110px; padding: 11px 13px; }
.opt-sep { width: 1px; background: var(--bd); flex-shrink: 0; }
.opt-label { font-size: 11px; font-weight: 600; color: var(--t3); letter-spacing: .5px; margin-bottom: 6px; display: block; }
.opt-input-wrap { display: flex; align-items: center; gap: 4px; }
.oinp {
  flex: 1; min-width: 0; border: none; background: none;
  font-size: 16px; font-weight: 600; font-family: 'Syne', sans-serif;
  color: var(--t1); outline: none; padding: 0;
}
.oinp::placeholder { color: var(--t3); font-weight: 400; font-size: 14px; font-family: 'DM Sans', sans-serif; }
.oinp.inp-error { color: var(--red); }
.opt-unit { font-size: 11px; color: var(--t3); white-space: nowrap; }

/* Compteur passagers */
.pax-counter { display: flex; align-items: center; gap: 10px; }
.pax-btn {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--sur3); border: none; cursor: pointer;
  font-size: 16px; font-weight: 600; color: var(--t1);
  display: flex; align-items: center; justify-content: center;
  transition: background .15s; line-height: 1;
}
.pax-btn:hover { background: var(--bdm); }
#pax-val { font-size: 16px; font-weight: 700; font-family: 'Syne', sans-serif; color: var(--t1); min-width: 18px; text-align: center; }

/* ════════════════════════
   BOUTON RECHERCHE — T4
   ════════════════════════ */
.search-btn {
  width: 100%; padding: 14px 20px;
  background: var(--dark); color: var(--yellow);
  font-family: 'Syne', sans-serif; font-size: 14px; font-weight: 700;
  border: none; border-radius: var(--rxs); cursor: pointer; letter-spacing: .6px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: background .15s, transform .1s; margin-bottom: 18px;
}
.search-btn:hover  { background: #1a1a2e; }
.search-btn:active { transform: scale(.98); }
.search-btn-icon   { font-size: 16px; }

/* Loading recherche */
.search-loading { text-align: center; padding: 28px 16px; }
.search-loading-dots { display: flex; justify-content: center; gap: 8px; margin-bottom: 14px; }
.search-loading-dots span {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--yellow); opacity: .4;
  animation: dotb 1.2s ease-in-out infinite;
}
.search-loading-dots span:nth-child(2) { animation-delay: .2s; }
.search-loading-dots span:nth-child(3) { animation-delay: .4s; }
.search-loading-text { font-size: 13px; color: var(--t3); }

/* ════════════════════════
   RÉSULTATS — T4
   ════════════════════════ */
.res-head {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px;
}
.res-title { font-family: 'Syne', sans-serif; font-size: 14px; font-weight: 700; color: var(--t1); }
.res-sub   { font-size: 11px; color: var(--t3); margin-top: 2px; }
.res-sub-demo { font-size: 11px; color: var(--yellow2); margin-top: 2px; background: rgba(245,197,24,.1); padding: 2px 8px; border-radius: 10px; display: inline-block; }
.sort-btn {
  font-size: 12px; color: var(--t2); background: var(--sur2);
  border: none; padding: 5px 11px; border-radius: 20px;
  cursor: pointer; transition: background .15s;
}
.sort-btn:hover { background: var(--sur3); }

/* Carte conducteur */
.dcard {
  background: var(--sur); border: 1.5px solid var(--bd);
  border-radius: var(--r); padding: 13px; margin-bottom: 9px;
  cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .1s;
  animation: cin .4s cubic-bezier(.22,1,.36,1) both;
}
.dcard:nth-child(2) { animation-delay: .06s; }
.dcard:nth-child(3) { animation-delay: .12s; }
.dcard:nth-child(4) { animation-delay: .18s; }
@keyframes cin { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:none} }
.dcard:hover  { border-color: var(--yellow); box-shadow: 0 4px 18px rgba(245,197,24,.12); }
.dcard:active { transform: scale(.99); }

.card-top  { display: flex; align-items: center; gap: 11px; margin-bottom: 8px; }
.dava {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; flex-shrink: 0;
}
.dinfo { flex: 1; min-width: 0; }
.dname  { font-size: 14px; font-weight: 600; color: var(--t1); }
.dmeta  { font-size: 12px; color: var(--t2); margin-top: 2px; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.dmeta-dot   { color: var(--t3); }
.dvehicule   { color: var(--t3); }
.stars       { color: var(--yellow); }
.dprice      { text-align: right; white-space: nowrap; }
.dprice-val  { font-family: 'Syne', sans-serif; font-size: 16px; font-weight: 800; color: var(--green); }
.dprice-wait { color: var(--t3); font-size: 14px; }
.dprice-lbl  { font-size: 10px; color: var(--t3); margin-top: 2px; }
.ctags  { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 10px; }
.tag    { font-size: 11px; font-weight: 500; padding: 3px 9px; border-radius: 20px; }
.tg     { background: rgba(29,158,117,.1);  color: #0f6e56; }
.tb     { background: #e6f1fb;              color: #185fa5; }
.ta     { background: #faeeda;              color: #854f0b; }
.cacts  { display: flex; gap: 7px; padding-top: 10px; border-top: 1px solid var(--bd); }
.abtn   {
  flex: 1; padding: 9px; border-radius: var(--rxs);
  font-size: 13px; font-weight: 600; font-family: 'DM Sans', sans-serif;
  cursor: pointer; transition: all .15s; border: none;
}
.acall  { background: var(--sur2); border: 1.5px solid var(--bd) !important; color: var(--t1); }
.acall:hover { background: var(--sur3); }
.abook  { background: var(--yellow); color: var(--dark); }
.abook:hover { background: var(--yellow2); }

/* États vides / statuts */
.empty-results { text-align: center; padding: 32px 16px; }
.empty-results-icon  { font-size: 40px; margin-bottom: 12px; }
.empty-results-title { font-family:'Syne',sans-serif; font-size:15px; font-weight:700; color:var(--t1); margin-bottom:6px; }
.empty-results-sub   { font-size:13px; color:var(--t3); margin-bottom:16px; line-height:1.6; }
.btn-retry-sm {
  background: var(--sur2); border: 1.5px solid var(--bd); border-radius: 20px;
  padding: 8px 20px; font-size: 13px; font-weight: 500; cursor: pointer;
  color: var(--t1); transition: background .15s;
}
.btn-retry-sm:hover { background: var(--sur3); }

.status-card { text-align: center; padding: 28px 16px; border-radius: var(--r); margin-bottom: 12px; border: 1.5px solid; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.status-card-err  { background: rgba(226,75,74,.06);  border-color: rgba(226,75,74,.2); }
.status-card-warn { background: rgba(245,197,24,.07); border-color: rgba(245,197,24,.25); }
.status-card-icon  { font-size: 36px; }
.status-card-title { font-family:'Syne',sans-serif; font-size:15px; font-weight:700; color:var(--t1); }
.status-card-sub   { font-size:13px; color:var(--t3); line-height:1.5; }

/* ════════════════════════
   NÉGOCIATION — T4
   ════════════════════════ */
.nego-card {
  background: var(--sur); border: 1.5px solid rgba(245,197,24,.35);
  border-radius: var(--r); padding: 16px; margin-bottom: 12px;
  animation: cin .3s cubic-bezier(.22,1,.36,1) both;
}
.nego-status {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; margin-bottom: 6px;
}
.nego-status-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
  animation: blink 1.2s ease-in-out infinite;
}
.nego-status-wait .nego-status-dot { background: var(--t3); }
.nego-status-nego .nego-status-dot { background: var(--yellow); }
.nego-sub { font-size: 12px; color: var(--t2); margin-bottom: 16px; line-height: 1.5; }
.nego-prices {
  display: flex; align-items: center; gap: 8px;
  background: var(--sur2); border-radius: var(--rxs); padding: 12px;
  margin-bottom: 14px;
}
.nego-price { flex: 1; text-align: center; }
.nego-price-val { font-family:'Syne',sans-serif; font-size:18px; font-weight:800; color:var(--t3); }
.nego-price-val.nego-price-active { color: var(--green); }
.nego-price-lbl { font-size: 11px; color: var(--t3); margin-top: 3px; }
.nego-arrow { font-size: 20px; color: var(--t3); flex-shrink: 0; }
.nego-actions { display: flex; gap: 8px; }
.nego-btn-accept    { flex: 2; font-size: 13px; padding: 10px; }
.nego-btn-renegocier{ flex: 1; font-size: 13px; padding: 10px; }

/* ════════════════════════
   MODAL
   ════════════════════════ */
.modal-ov {
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  display: flex; align-items: flex-end; justify-content: center;
  z-index: 500; opacity: 0; visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.modal-ov.open { opacity: 1; visibility: visible; }
.modal {
  width: 100%; max-width: 430px; background: var(--sur);
  border-radius: 22px 22px 0 0; padding: 18px 22px 40px;
  transform: translateY(100%);
  transition: transform .4s cubic-bezier(.22,1,.36,1);
}
.modal-ov.open .modal { transform: none; }
.mhandle { width: 34px; height: 4px; background: var(--bdm); border-radius: 2px; margin: 0 auto 18px; }
.mtitle  { font-family: 'Syne', sans-serif; font-size: 18px; font-weight: 700; color: var(--t1); margin-bottom: 16px; }
.mrow    { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--bd); font-size: 14px; }
.mrow:last-of-type { border-bottom: none; }
.mrow .lbl { color: var(--t2); }
.mrow .val { font-weight: 600; color: var(--t1); text-align: right; max-width: 60%; }
.mdrv-row  { display: flex; align-items: center; gap: 12px; padding: 11px; background: var(--sur2); border-radius: var(--rxs); margin-bottom: 16px; }

.modal-price-box {
  background: rgba(245,197,24,.08); border: 1px solid rgba(245,197,24,.2);
  border-radius: var(--rxs); padding: 14px; margin: 14px 0; text-align: center;
}
.modal-price-label { font-size: 12px; color: var(--t2); margin-bottom: 6px; }
.modal-price-val   { font-family: 'Syne', sans-serif; font-size: 26px; font-weight: 800; color: var(--t1); }
.modal-price-hint  { font-size: 11px; color: var(--t3); margin-top: 5px; line-height: 1.5; }

/* ════════════════════════
   BARRE DE NAVIGATION
   ════════════════════════ */
.bnav {
  display: flex; border-top: 1px solid var(--bd);
  background: var(--sur); flex-shrink: 0; padding: 5px 0 7px;
}
.ni {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 4px; cursor: pointer; color: var(--t3); font-size: 10px;
  transition: color .15s; user-select: none;
}
.ni.active { color: var(--dark); }
.ni svg    { width: 21px; height: 21px; stroke: currentColor; fill: none; }
.npip      { width: 4px; height: 4px; border-radius: 50%; background: var(--yellow); display: none; }
.ni.active .npip { display: block; }

/* ════════════════════════
   PROFIL PASSAGER
   ════════════════════════ */
.profile-hero { text-align: center; margin-bottom: 18px; }
.pava {
  width: 68px; height: 68px; border-radius: 50%;
  background: var(--yellow); display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif; font-size: 24px; font-weight: 800;
  color: var(--dark); margin: 0 auto 12px;
}
.profile-name  { font-family:'Syne',sans-serif; font-size:17px; font-weight:700; color:var(--t1); }
.profile-phone { font-size:13px; color:var(--t2); margin-top:3px; }
.pstat-row { display: flex; gap: 9px; margin-bottom: 18px; }
.pstat     { flex: 1; background: var(--sur2); border-radius: var(--rxs); padding: 13px; text-align: center; }
.pstv      { font-family: 'Syne', sans-serif; font-size: 21px; font-weight: 800; color: var(--t1); }
.pstl      { font-size: 11px; color: var(--t3); margin-top: 2px; }

.srow {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 0; border-bottom: 1px solid var(--bd);
  font-size: 14px; color: var(--t1); cursor: pointer; transition: color .15s;
}
.srow:hover { color: var(--dark); }
.srow svg   { flex-shrink: 0; }
.logout-btn {
  width: 100%; padding: 12px; margin-top: 20px;
  background: rgba(226,75,74,.08); color: var(--red); border: none;
  border-radius: var(--rxs); font-size: 14px; font-weight: 600;
  font-family: 'DM Sans', sans-serif; cursor: pointer; transition: background .15s;
}
.logout-btn:hover { background: rgba(226,75,74,.16); }

/* ════════════════════════
   TRAJET / HISTORIQUE
   ════════════════════════ */
.trajet-item {
  background: var(--sur2); border-radius: var(--rxs);
  padding: 12px 13px; margin-bottom: 8px;
  display: flex; align-items: flex-start; gap: 8px;
  animation: cin .3s cubic-bezier(.22,1,.36,1) both;
}
.tj-route { font-weight: 600; font-size: 14px; margin-bottom: 4px; color: var(--t1); }
.tj-meta  { font-size: 12px; color: var(--t2); display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.del-ride-btn {
  background: none; border: none; color: var(--t3); cursor: pointer;
  padding: 4px 6px; border-radius: var(--rxs); font-size: 14px;
  transition: color .15s, background .15s; flex-shrink: 0;
}
.del-ride-btn:hover { color: var(--red); background: rgba(226,75,74,.08); }

/* ════════════════════════
   SUIVI TEMPS RÉEL
   ════════════════════════ */
.ride-tracker {
  background: var(--sur); border: 1.5px solid var(--yellow);
  border-radius: var(--r); padding: 16px; margin-bottom: 14px;
  animation: cin .3s cubic-bezier(.22,1,.36,1) both;
}
.ride-tracker-hdr { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.ride-tracker-title { font-family: 'Syne', sans-serif; font-size: 15px; font-weight: 700; color: var(--t1); }
.ride-eta {
  font-size: 12px; color: var(--green); font-weight: 600;
  background: rgba(29,158,117,.1); padding: 4px 10px; border-radius: 20px;
}
.ride-step    { display: flex; align-items: flex-start; gap: 12px; padding: 7px 0; position: relative; }
.ride-step + .ride-step::before {
  content: ''; position: absolute; left: 11px; top: -7px;
  width: 2px; height: 7px; background: var(--bd);
}
.step-dot     { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; flex-shrink: 0; }
.step-dot.active  { background: var(--yellow); color: var(--dark); }
.step-dot.done    { background: var(--green);  color: #fff; }
.step-dot.pending { background: var(--sur2);   color: var(--t3); }
.step-text    { font-size: 13px; font-weight: 500; color: var(--t1); margin-top: 4px; }
.step-sub     { font-size: 11px; color: var(--t2); margin-top: 2px; }
.driver-moving { display: flex; align-items: center; gap: 8px; padding: 10px; background: var(--sur2); border-radius: var(--rxs); margin-top: 10px; }
.driver-moving-dot  { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: blink 1s ease-in-out infinite; flex-shrink: 0; }
.driver-moving-text { font-size: 12px; color: var(--t2); }

/* ════════════════════════
   NOTATION
   ════════════════════════ */
.rating-wrap  { padding: 10px 0 6px; text-align: center; }
.rating-title { font-family: 'Syne', sans-serif; font-size: 17px; font-weight: 700; color: var(--t1); margin-bottom: 6px; }
.rating-sub   { font-size: 13px; color: var(--t2); margin-bottom: 20px; }
.stars-row    { display: flex; justify-content: center; gap: 6px; margin-bottom: 16px; }
.star-btn     { font-size: 34px; cursor: pointer; transition: transform .15s, opacity .15s; background: none; border: none; line-height: 1; opacity: .25; }
.star-btn.active { opacity: 1; transform: scale(1.15); }
.rating-comment {
  width: 100%; padding: 10px 14px; border: 1.5px solid var(--bd);
  border-radius: var(--rxs); font-size: 13px; font-family: 'DM Sans', sans-serif;
  color: var(--t1); background: var(--sur); outline: none; resize: none;
  margin-bottom: 14px; transition: border-color .2s;
}
.rating-comment:focus { border-color: var(--yellow); }

/* ════════════════════════
   CONDUCTEUR
   ════════════════════════ */
.drv-hdr {
  background: var(--dark); padding: 13px 18px;
  display: flex; align-items: center; justify-content: space-between; flex-shrink: 0;
}
.drv-logo {
  font-family: 'Syne', sans-serif; font-size: 17px;
  font-weight: 800; color: var(--yellow); letter-spacing: 2px;
}
.drv-logo small {
  display: block; font-size: 10px; font-weight: 400;
  color: rgba(255,255,255,.4); letter-spacing: 1px; margin-top: 1px;
}
.tog-wrap   { display: flex; align-items: center; gap: 8px; }
.tog-lbl    { font-size: 12px; color: rgba(255,255,255,.6); }
.tog        { position: relative; width: 44px; height: 24px; cursor: pointer; display: inline-block; }
.tog input  { opacity: 0; width: 0; height: 0; position: absolute; }
.tog-track  { position: absolute; inset: 0; background: #333; border-radius: 12px; transition: background .3s; }
.tog input:checked ~ .tog-track { background: var(--green); }
.tog-thumb  {
  position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px; background: #fff; border-radius: 50%;
  transition: transform .3s; pointer-events: none;
}
.tog input:checked ~ .tog-thumb { transform: translateX(20px); }

.drv-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; padding: 14px; flex-shrink: 0; }
.dst  { background: var(--sur2); border-radius: var(--rxs); padding: 11px; text-align: center; }
.dstv { font-family: 'Syne', sans-serif; font-size: 19px; font-weight: 800; color: var(--t1); }
.dstl { font-size: 11px; color: var(--t3); margin-top: 2px; }

.drv-map-ov  { position: relative; flex-shrink: 0; }
.status-bar  { position: absolute; bottom: 10px; left: 10px; right: 10px; display: flex; gap: 7px; z-index: 10; pointer-events: none; }
.spill      { padding: 5px 11px; border-radius: 20px; font-size: 11px; font-weight: 600; backdrop-filter: blur(6px); }
.spill-off  { background: rgba(226,75,74,.85);  color: #fff; }
.spill-on   { background: rgba(29,158,117,.85); color: #fff; }
.spill-info { background: rgba(13,13,26,.78);   color: #fff; }

.drv-scroll { flex: 1; overflow-y: auto; padding: 14px; }
.drv-scroll::-webkit-scrollbar { width: 0; }

.req-card {
  background: var(--sur); border: 1.5px solid var(--bd); border-radius: var(--r);
  padding: 13px; margin-bottom: 9px;
  animation: cin .4s cubic-bezier(.22,1,.36,1) both;
}
.req-card.urgent { border-color: var(--yellow); }
.req-hdr { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.req-pass{ display: flex; align-items: center; gap: 9px; }
.req-ava {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; flex-shrink: 0;
}
.req-name { font-size: 14px; font-weight: 600; color: var(--t1); }
.req-meta { font-size: 12px; color: var(--t2); margin-top: 1px; }
.req-pr   { font-family: 'Syne', sans-serif; font-size: 19px; font-weight: 800; color: var(--green); text-align: right; }
.req-pr small { font-size: 10px; font-weight: 400; color: var(--t3); display: block; }
.req-det  {
  background: var(--sur2); border-radius: var(--rxs);
  padding: 9px 11px; margin-bottom: 11px;
  display: flex; flex-direction: column; gap: 6px;
}
.req-row  { display: flex; align-items: flex-start; gap: 7px; font-size: 13px; color: var(--t2); }
.req-row svg { width: 13px; height: 13px; flex-shrink: 0; color: var(--t3); margin-top: 2px; }
.req-acts { display: flex; gap: 7px; }
.btn-ref  {
  flex: 1; padding: 10px; background: var(--sur2); border: 1.5px solid var(--bd);
  border-radius: var(--rxs); font-size: 13px; font-weight: 600; color: var(--t2);
  cursor: pointer; transition: all .15s; font-family: 'DM Sans', sans-serif;
}
.btn-ref:hover { border-color: var(--red); color: var(--red); }
.btn-acc  {
  flex: 2; padding: 10px; background: var(--green); border: none;
  border-radius: var(--rxs); font-size: 13px; font-weight: 600; color: #fff;
  cursor: pointer; transition: background .15s; font-family: 'DM Sans', sans-serif;
}
.btn-acc:hover { background: #178a64; }

.drv-price-input {
  background: var(--sur2); border: 1.5px solid var(--yellow);
  border-radius: var(--rxs); padding: 9px 12px;
  font-size: 14px; font-family: 'DM Sans', sans-serif;
  color: var(--t1); outline: none; width: 100%; margin-bottom: 10px;
}
.drv-price-input:focus { border-color: var(--yellow2); }

.empty-st { text-align: center; padding: 40px 16px; color: var(--t3); }
.empty-st div { font-size: 38px; margin-bottom: 10px; }
.empty-st p   { font-size: 13px; line-height: 1.7; }

/* Position passager */
.pass-location-row {
  display: flex; align-items: flex-start; gap: 8px;
  background: rgba(226,75,74,.05); border: 1px solid rgba(226,75,74,.18);
  border-radius: var(--rxs); padding: 9px 11px; margin-bottom: 8px;
}
.pass-location-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.pass-location-text { flex: 1; font-size: 12px; color: var(--t2); line-height: 1.5; }
.pass-location-text strong { color: var(--t1); }

/* Route info */
.route-info    { background: var(--sur2); border-radius: var(--rxs); padding: 12px; margin: 10px 0; display: flex; gap: 12px; align-items: flex-start; }
.route-icon    { font-size: 24px; flex-shrink: 0; }
.route-details { flex: 1; }
.route-dist    { font-family: 'Syne', sans-serif; font-size: 15px; font-weight: 700; color: var(--t1); }
.route-time    { font-size: 12px; color: var(--t2); margin-top: 2px; }
.route-steps   { margin-top: 8px; display: flex; flex-direction: column; gap: 4px; }
.route-step    { font-size: 12px; color: var(--t2); display: flex; align-items: flex-start; gap: 6px; }
.route-step-icon { color: var(--yellow); flex-shrink: 0; }

/* Négociation conducteur */
.nego-input-wrap { background: var(--sur); border: 1.5px solid rgba(245,197,24,.35); border-radius: var(--rxs); padding: 12px; margin-top: 12px; }
.nego-input-lbl  { font-size: 11px; color: var(--t3); margin-bottom: 7px; }
.nego-btns       { display: flex; gap: 8px; margin-top: 10px; }

/* Bannière Firebase */
.fb-banner {
  background: rgba(29,158,117,.1); border: 1px solid rgba(29,158,117,.25);
  border-radius: var(--rxs); padding: 8px 12px; margin-bottom: 14px;
  font-size: 12px; color: var(--green);
  display: flex; align-items: center; gap: 8px;
}
.fb-banner.err { background: rgba(226,75,74,.1); border-color: rgba(226,75,74,.25); color: var(--red); }

/* Bannière réseau */
.offline-banner {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  background: var(--red); color: #fff; font-size: 12px; font-weight: 600;
  padding: 8px 20px; border-radius: 0 0 12px 12px; z-index: 9998;
  display: none; align-items: center; gap: 6px;
}
.offline-banner.show { display: flex; }
.online-banner { background: var(--green); }

/* Toast */
.toast {
  position: fixed; bottom: 22px; left: 50%;
  transform: translateX(-50%) translateY(70px);
  background: var(--dark); color: #fff;
  padding: 10px 18px; border-radius: 22px;
  font-size: 13px; font-weight: 500; box-shadow: var(--shlg);
  transition: transform .4s cubic-bezier(.22,1,.36,1);
  z-index: 9999; white-space: nowrap; pointer-events: none;
  max-width: calc(100vw - 32px); text-overflow: ellipsis; overflow: hidden;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* Session banner */
.session-banner {
  background: rgba(245,197,24,.1); border: 1px solid rgba(245,197,24,.25);
  border-radius: var(--rxs); padding: 9px 13px; margin-bottom: 12px;
  font-size: 12px; color: #854f0b; display: flex; align-items: center; gap: 7px;
}

/* Responsive */
@media (max-width: 480px) {
  body { align-items: flex-start; padding: 0; }
  #root { border-radius: 0; min-height: 100vh; max-width: 100%; }
}

/* ════════════════════════════════════════════
   T5 — DRIVER DASHBOARD
   ════════════════════════════════════════════ */

/* Header conducteur */
.drv-logo-sub {
  font-size: 9px; font-weight: 600; color: rgba(255,255,255,.35);
  letter-spacing: 2px; text-transform: uppercase; margin-top: 1px;
}
.drv-hdr-right { display: flex; align-items: center; gap: 10px; }
.drv-ava {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--yellow); display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: var(--dark);
  cursor: pointer; flex-shrink: 0; transition: opacity .15s;
}
.drv-ava:hover { opacity: .85; }

/* Stats conducteur */
.drv-stats {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 0;
  background: var(--sur); flex-shrink: 0;
  border-bottom: 1px solid var(--bd);
}
.dst {
  padding: 12px 8px; text-align: center;
  border-right: 1px solid var(--bd); position: relative;
}
.dst:last-child { border-right: none; }
.dst-center { background: rgba(245,197,24,.04); }
.dst-icon { font-size: 16px; margin-bottom: 4px; }
.dstv { font-family: 'Syne', sans-serif; font-size: 17px; font-weight: 800; color: var(--t1); }
.dstv-gains { font-size: 13px; }
.dstl { font-size: 10px; color: var(--t3); margin-top: 2px; }

/* Spill dot */
.spill-dot {
  width: 6px; height: 6px; border-radius: 50%; background: currentColor;
  flex-shrink: 0; display: inline-block;
  animation: blink 1.2s ease-in-out infinite;
}
.spill { display: flex; align-items: center; gap: 5px; }

/* Toolbar conducteur */
.drv-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.drv-toolbar-title {
  font-family: 'Syne', sans-serif; font-size: 14px; font-weight: 700; color: var(--t1);
}
.drv-toolbar-actions { display: flex; gap: 6px; }
.drv-action-btn {
  display: flex; align-items: center; gap: 5px;
  background: var(--sur2); border: 1.5px solid var(--bd);
  border-radius: 20px; padding: 6px 11px;
  font-size: 12px; font-weight: 500; color: var(--t2);
  cursor: pointer; transition: all .15s; white-space: nowrap;
}
.drv-action-btn:hover { border-color: var(--yellow); background: #fffce8; color: var(--t1); }

/* États hors-ligne / attente */
.drv-offline {
  text-align: center; padding: 36px 20px;
}
.drv-offline-icon  { font-size: 40px; margin-bottom: 12px; }
.drv-offline-title { font-family:'Syne',sans-serif; font-size:15px; font-weight:700; color:var(--t1); margin-bottom:6px; }
.drv-offline-sub   { font-size:13px; color:var(--t3); line-height:1.6; }

.drv-waiting {
  text-align: center; padding: 36px 20px;
}
.drv-waiting-pulse {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(29,158,117,.12); border: 2px solid rgba(29,158,117,.3);
  margin: 0 auto 14px;
  animation: waitPulse 2s ease-in-out infinite;
}
@keyframes waitPulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50%     { transform: scale(1.15); opacity: .6; }
}
.drv-waiting-title { font-family:'Syne',sans-serif; font-size:15px; font-weight:700; color:var(--t1); margin-bottom:6px; }
.drv-waiting-sub   { font-size:13px; color:var(--t3); line-height:1.6; }

/* Loading conducteur */
.drv-loading {
  text-align: center; padding: 36px 20px;
}
.drv-loading-dots { display: flex; justify-content: center; gap: 8px; margin-bottom: 14px; }
.drv-loading-dots span {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--yellow); opacity: .4;
  animation: dotb 1.2s ease-in-out infinite;
}
.drv-loading-dots span:nth-child(2) { animation-delay: .2s; }
.drv-loading-dots span:nth-child(3) { animation-delay: .4s; }
.drv-loading-text { font-size: 13px; color: var(--t3); }

/* Section label demandes */
.req-section-label {
  display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
  font-size: 11px; font-weight: 600; color: var(--t3);
  letter-spacing: 1.5px; text-transform: uppercase;
}
.req-count-badge {
  background: var(--yellow); color: var(--dark);
  font-size: 11px; font-weight: 700; padding: 1px 7px;
  border-radius: 10px; letter-spacing: 0;
}

/* Demo banner */
.demo-banner {
  display: flex; align-items: center; gap: 7px;
  background: rgba(226,75,74,.08); border: 1px solid rgba(226,75,74,.2);
  border-radius: var(--rxs); padding: 8px 11px; margin-bottom: 12px;
  font-size: 12px; color: var(--red);
}

/* Carte de demande — T5 redesign */
.req-card {
  background: var(--sur); border: 1.5px solid var(--bd);
  border-radius: var(--r); margin-bottom: 10px;
  animation: cin .35s cubic-bezier(.22,1,.36,1) both;
  overflow: hidden; transition: border-color .15s, box-shadow .15s;
}
.req-card:hover     { border-color: var(--bdm); box-shadow: 0 2px 12px rgba(0,0,0,.08); }
.req-card-urgent    { border-color: rgba(245,197,24,.5); }
.req-card-urgent:hover { border-color: var(--yellow); }
.req-card-inner     { padding: 13px; }
.req-hdr            { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 10px; gap: 8px; }
.req-pass           { display: flex; align-items: center; gap: 10px; min-width: 0; }
.req-ava            { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; flex-shrink: 0; }
.req-info           { min-width: 0; }
.req-name           { font-size: 14px; font-weight: 600; color: var(--t1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.req-meta           { font-size: 12px; color: var(--t2); margin-top: 2px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.req-meta-dot       { color: var(--t3); }
.req-dist           { color: var(--green); font-weight: 500; }
.req-price-block    { text-align: right; flex-shrink: 0; }
.req-pr             { font-family: 'Syne', sans-serif; font-size: 18px; font-weight: 800; color: var(--green); white-space: nowrap; }
.req-pr-lbl         { font-size: 10px; color: var(--t3); margin-top: 1px; }

.req-dest {
  display: flex; align-items: flex-start; gap: 8px;
  background: var(--sur2); border-radius: var(--rxs);
  padding: 9px 11px; margin-bottom: 10px;
}
.req-dest-icon { color: var(--t3); flex-shrink: 0; margin-top: 2px; }
.req-dest-text { flex: 1; font-size: 13px; color: var(--t1); font-weight: 500; line-height: 1.4; }
.req-tel {
  font-size: 16px; flex-shrink: 0; text-decoration: none;
  background: rgba(29,158,117,.1); width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.req-tel:hover { background: rgba(29,158,117,.2); }

.req-price-row {
  margin-bottom: 10px;
}
.req-price-label {
  display: flex; align-items: center; gap: 5px;
  font-size: 11px; color: var(--t3); margin-bottom: 7px;
}
.req-price-input-wrap {
  display: flex; align-items: center; gap: 8px;
  background: var(--sur2); border: 1.5px solid var(--bd);
  border-radius: var(--rxs); padding: 8px 12px;
  transition: border-color .2s;
}
.req-price-input-wrap:focus-within { border-color: var(--yellow); }
.req-price-input {
  flex: 1; border: none; background: none;
  font-size: 15px; font-weight: 700; font-family: 'Syne', sans-serif;
  color: var(--t1); outline: none; min-width: 0;
}
.req-price-input::placeholder { font-weight: 400; font-family: 'DM Sans', sans-serif; color: var(--t3); font-size: 13px; }
.req-price-unit { font-size: 12px; color: var(--t3); white-space: nowrap; }

.req-acts { display: flex; gap: 8px; }
.btn-ref {
  flex: 1; padding: 10px 8px; background: var(--sur2);
  border: 1.5px solid var(--bd); border-radius: var(--rxs);
  font-size: 13px; font-weight: 600; color: var(--t2);
  cursor: pointer; transition: all .15s; font-family: 'DM Sans', sans-serif;
  display: flex; align-items: center; justify-content: center; gap: 5px;
}
.btn-ref:hover { border-color: var(--red); color: var(--red); background: rgba(226,75,74,.05); }
.btn-acc {
  flex: 2; padding: 10px 8px; background: var(--green); border: none;
  border-radius: var(--rxs); font-size: 13px; font-weight: 600; color: #fff;
  cursor: pointer; transition: background .15s; font-family: 'DM Sans', sans-serif;
  display: flex; align-items: center; justify-content: center; gap: 5px;
}
.btn-acc:hover { background: #178a64; }

/* ── Négociation conducteur — T5 ── */
.nego-drv-card {
  background: var(--sur); border: 1.5px solid rgba(245,197,24,.4);
  border-radius: var(--r); padding: 16px; margin-bottom: 10px;
  animation: cin .3s cubic-bezier(.22,1,.36,1) both;
}
.nego-drv-header {
  display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px;
}
.nego-drv-status-dot {
  width: 10px; height: 10px; border-radius: 50%; background: var(--yellow);
  flex-shrink: 0; margin-top: 4px;
  animation: blink 1.2s ease-in-out infinite;
}
.nego-drv-title { font-family:'Syne',sans-serif; font-size:15px; font-weight:700; color:var(--t1); }
.nego-drv-sub   { font-size:12px; color:var(--t2); margin-top:2px; }
.nego-drv-dest  {
  display: flex; align-items: center; gap: 6px;
  background: var(--sur2); border-radius: var(--rxs);
  padding: 8px 11px; margin-bottom: 12px;
  font-size: 13px; color: var(--t1); font-weight: 500;
}
.nego-drv-prices {
  display: flex; align-items: center; gap: 10px;
  background: var(--sur2); border-radius: var(--rxs);
  padding: 12px; margin-bottom: 14px;
}
.nego-drv-price     { flex: 1; text-align: center; }
.nego-drv-price-val { font-family:'Syne',sans-serif; font-size:18px; font-weight:800; }
.nego-drv-price-lbl { font-size:11px; color:var(--t3); margin-top:3px; }
.nego-drv-arrow     { font-size:20px; color:var(--t3); flex-shrink:0; }
.nego-drv-form-label{ font-size:11px; color:var(--t3); margin-bottom:7px; }
.nego-drv-btns      { display:flex; gap:8px; margin-bottom:8px; }
.btn-contre {
  flex: 1; padding: 10px; background: rgba(245,197,24,.12);
  border: 1.5px solid rgba(245,197,24,.3); border-radius: var(--rxs);
  font-size: 13px; font-weight: 600; color: var(--dark);
  cursor: pointer; transition: all .15s; font-family: 'DM Sans', sans-serif;
}
.btn-contre:hover { background: rgba(245,197,24,.22); border-color: var(--yellow); }
.btn-annuler-nego {
  width: 100%; padding: 10px; background: none;
  border: 1.5px solid rgba(226,75,74,.25); border-radius: var(--rxs);
  font-size: 12px; color: var(--red); cursor: pointer;
  transition: all .15s; font-family: 'DM Sans', sans-serif;
}
.btn-annuler-nego:hover { background: rgba(226,75,74,.08); border-color: var(--red); }

/* ── Course en cours — T5 ── */
.cours-card {
  background: var(--sur); border: 1.5px solid rgba(29,158,117,.35);
  border-radius: var(--r); padding: 16px; margin-bottom: 10px;
  animation: cin .3s cubic-bezier(.22,1,.36,1) both;
}
.cours-header {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
  padding-bottom: 13px; border-bottom: 1px solid var(--bd);
}
.cours-status-dot {
  width: 10px; height: 10px; border-radius: 50%; background: var(--green);
  flex-shrink: 0; animation: blink 1s ease-in-out infinite;
}
.cours-header-text { flex: 1; min-width: 0; }
.cours-title { font-family:'Syne',sans-serif; font-size:14px; font-weight:700; color:var(--t1); }
.cours-sub   { font-size:12px; color:var(--t2); margin-top:1px; }
.cours-prix  { font-family:'Syne',sans-serif; font-size:18px; font-weight:800; color:var(--green); white-space:nowrap; }

.cours-details { margin-bottom: 12px; }
.cours-row {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 9px 0; border-bottom: 1px solid var(--bd);
}
.cours-row:last-child { border-bottom: none; }
.cours-row-icon    { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.cours-row-content { flex: 1; min-width: 0; }
.cours-row-label   { font-size: 11px; color: var(--t3); }
.cours-row-val     { font-size: 13px; font-weight: 500; color: var(--t1); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cours-call-btn {
  font-size: 16px; flex-shrink: 0; text-decoration: none;
  background: rgba(29,158,117,.1); width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; transition: background .15s;
}
.cours-call-btn:hover { background: rgba(29,158,117,.2); }

.cours-etapes {
  display: flex; gap: 8px; margin-bottom: 10px; margin-top: 12px;
}
.cours-etape-btn {
  flex: 1; padding: 10px 8px; border-radius: var(--rxs);
  font-size: 13px; font-weight: 600; font-family: 'DM Sans', sans-serif;
  cursor: pointer; transition: all .2s; border: 1.5px solid var(--bd);
  display: flex; align-items: center; justify-content: center; gap: 5px;
  background: var(--sur2); color: var(--t1);
}
.cours-etape-btn:hover:not(:disabled) { border-color: var(--bdm); background: var(--sur3); }
.cours-etape-btn:disabled { opacity: .5; cursor: not-allowed; }
.cours-etape-active { background: rgba(29,158,117,.1) !important; border-color: rgba(29,158,117,.3) !important; color: var(--green) !important; }
.cours-etape-route:not(:disabled):hover  { border-color: var(--yellow); }
.cours-etape-arrive:not(:disabled):hover { border-color: var(--green); }

.cours-terminer-btn {
  width: 100%; padding: 12px; background: var(--dark); color: var(--yellow);
  border: none; border-radius: var(--rxs);
  font-family: 'Syne', sans-serif; font-size: 14px; font-weight: 700;
  cursor: pointer; letter-spacing: .4px; transition: background .15s, transform .1s;
}
.cours-terminer-btn:hover  { background: #1a1a2e; }
.cours-terminer-btn:active { transform: scale(.98); }

/* Succès course */
.cours-success {
  text-align: center; padding: 28px 20px;
  background: rgba(29,158,117,.07); border: 1.5px solid rgba(29,158,117,.25);
  border-radius: var(--r); animation: cin .4s cubic-bezier(.22,1,.36,1) both;
}
.cours-success-icon  { font-size: 44px; margin-bottom: 12px; }
.cours-success-title { font-family:'Syne',sans-serif; font-size:17px; font-weight:700; color:var(--green); margin-bottom:8px; }
.cours-success-prix  { font-family:'Syne',sans-serif; font-size:28px; font-weight:800; color:var(--t1); }
.cours-success-dest  { font-size:13px; color:var(--t2); margin-top:4px; margin-bottom:12px; }
.cours-success-total { font-size:13px; color:var(--t2); }
.cours-success-total strong { color:var(--t1); }

/* Historique conducteur */
.histo-header {
  display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px;
}
.histo-title { font-family:'Syne',sans-serif; font-size:14px; font-weight:700; color:var(--t1); }
.histo-total { font-size:12px; color:var(--t2); }
.histo-total strong { color:var(--green); }

/* ════════════════════════════════════════════
   T6 — TRACKING PASSAGER
   ════════════════════════════════════════════ */

/* Carte tracker — T6 redesign */
.tracker-card {
  background: var(--sur); border: 1.5px solid var(--yellow);
  border-radius: var(--r); padding: 16px; margin-bottom: 14px;
  animation: cin .35s cubic-bezier(.22,1,.36,1) both;
}
.tracker-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; padding-bottom: 13px; border-bottom: 1px solid var(--bd);
}
.tracker-header-left { display: flex; align-items: center; gap: 10px; }
.tracker-pulse {
  width: 10px; height: 10px; border-radius: 50%; background: var(--yellow);
  flex-shrink: 0; animation: blink 1s ease-in-out infinite;
}
.tracker-title  { font-family:'Syne',sans-serif; font-size:14px; font-weight:700; color:var(--t1); }
.tracker-driver { font-size:12px; color:var(--t2); margin-top:1px; }
.tracker-eta-badge {
  background: rgba(29,158,117,.12); color: var(--green);
  font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 20px;
  white-space: nowrap;
}

/* Étapes tracker */
.tracker-steps { display: flex; flex-direction: column; margin-bottom: 4px; }
.tracker-step  { display: flex; align-items: flex-start; gap: 12px; padding: 4px 0; }
.tracker-step-left { display: flex; flex-direction: column; align-items: center; }

.tracker-dot {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 12px;
  transition: all .3s;
}
.tdot-active  { background: var(--yellow); color: var(--dark); box-shadow: 0 0 0 4px rgba(245,197,24,.2); }
.tdot-done    { background: var(--green);  color: #fff; }
.tdot-pending { background: var(--sur2);   color: var(--t3); }

.tracker-line {
  width: 2px; flex: 1; min-height: 12px; background: var(--bd); margin: 3px 0;
  transition: background .4s;
}
.tline-done { background: var(--green); }

.tracker-step-body  { flex: 1; padding-top: 4px; padding-bottom: 8px; }
.tracker-step-label { font-size: 13px; font-weight: 500; }
.tracker-step-active .tracker-step-label { color: var(--t1); font-weight: 600; }
.tracker-step-done .tracker-step-label   { color: var(--t3); }
.tracker-step-pending .tracker-step-label{ color: var(--t3); }
.tracker-step-sub   { font-size: 11px; color: var(--t2); margin-top: 2px; }
.tracker-step-eta   { font-size: 12px; color: var(--green); font-weight: 600; padding-top: 5px; white-space: nowrap; }

/* Bande position en direct */
.tracker-live {
  display: flex; align-items: center; gap: 8px;
  background: var(--sur2); border-radius: var(--rxs);
  padding: 9px 11px; margin-top: 10px;
}
.tracker-live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  flex-shrink: 0; animation: blink 1s ease-in-out infinite;
}
.tracker-live-text { flex: 1; font-size: 12px; color: var(--t2); }
.driver-moving-text { font-size: 12px; color: var(--t2); }
.tracker-live-map-hint { font-size: 11px; color: var(--t3); white-space: nowrap; }

/* Animation pulse conducteur sur la carte */
@keyframes driverPulse {
  0%,100% { box-shadow: 0 2px 14px rgba(245,197,24,.3); }
  50%     { box-shadow: 0 2px 24px rgba(245,197,24,.7); }
}

/* ════════════════════════════════════════════
   T7 — HISTORIQUE SYNCHRONISÉ
   ════════════════════════════════════════════ */

.history-loading {
  display: flex; flex-direction: column; align-items: center;
  gap: 12px; padding: 28px 16px;
}

.ride-hist-icon { font-size: 18px; flex-shrink: 0; margin-top: 2px; }
.ride-hist-body { flex: 1; min-width: 0; }
.tj-prix   { color: var(--green); font-weight: 600; }
.tj-dot    { color: var(--t3); }

/* ════════════════════════════════════════════
   T8 — POLISH & SÉCURITÉ
   ════════════════════════════════════════════ */

/* Focus visible accessible */
*:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}
button:focus-visible, input:focus-visible, [role="button"]:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}

/* Smooth scroll sur le contenu principal */
.scroll, .drv-scroll, .auth-wrap {
  scroll-behavior: smooth;
}

/* Éviter le tap highlight sur mobile */
* { -webkit-tap-highlight-color: transparent; }

/* Input number — masquer les flèches natives */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; appearance: textfield; }

/* Sélection de texte */
::selection { background: rgba(245,197,24,.3); }
/* ════════════════════════════════════════════
   CHAP CHAP LIGNES — styles additionnels
   ════════════════════════════════════════════ */

/* ── Cartes choix mode ── */
.choix-card {
  background: var(--sur);
  border: 1.5px solid var(--bd);
  border-radius: var(--r);
  padding: 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s, transform .1s;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.choix-card:hover  { border-color: var(--bdm); box-shadow: 0 4px 18px rgba(0,0,0,.08); }
.choix-card:active { transform: scale(.99); }
.choix-card-featured {
  border-color: rgba(245,197,24,.4);
  background: linear-gradient(135deg,#fffef5 0%,#fffadc 100%);
}
.choix-card-featured:hover {
  border-color: var(--yellow);
  box-shadow: 0 4px 18px rgba(245,197,24,.15);
}
.choix-card-icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; flex-shrink: 0;
}
.choix-card-body { flex: 1; min-width: 0; }
.choix-card-title {
  font-family: 'Syne', sans-serif;
  font-size: 15px; font-weight: 700; color: var(--t1);
  margin-bottom: 4px;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.choix-card-sub  { font-size: 12px; color: var(--t2); line-height: 1.5; }
.choix-card-arrow {
  font-size: 22px; color: var(--t3); flex-shrink: 0;
  font-weight: 300; transition: transform .2s;
}
.choix-card:hover .choix-card-arrow { transform: translateX(3px); }

/* ── Badge NOUVEAU ── */
.choix-badge {
  font-size: 9px; font-weight: 700; letter-spacing: .5px;
  background: var(--yellow); color: var(--dark);
  padding: 2px 7px; border-radius: 20px; vertical-align: middle;
}

/* ── Ligne complète ── */
.lg-card-plein { opacity: .6; pointer-events: none; }

/* ── Filtres ── */
.lg-filtre {
  flex-shrink: 0;
  background: var(--sur2); border: 1.5px solid var(--bd);
  border-radius: 20px; padding: 6px 14px;
  font-size: 12px; font-weight: 600; color: var(--t2);
  cursor: pointer; white-space: nowrap;
  transition: all .15s; font-family: 'DM Sans', sans-serif;
}
.lg-filtre:hover  { border-color: var(--bdm); }
.lg-filtre-active { background: var(--dark); color: var(--yellow); border-color: var(--dark); }

/* ── Mini carte réservation ── */
.mini-resa-card {
  background: var(--sur2); border: 1.5px solid var(--bd);
  border-radius: var(--rxs); padding: 12px;
  display: flex; align-items: center;
  justify-content: space-between; gap: 10px;
  margin-bottom: 8px;
  animation: cin .3s cubic-bezier(.22,1,.36,1) both;
}

/* ── Empty state lignes ── */
.empty-results {
  text-align: center; padding: 32px 16px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.empty-results-icon  { font-size: 40px; }
.empty-results-title { font-family: 'Syne', sans-serif; font-size: 16px; font-weight: 700; color: var(--t1); }
.empty-results-sub   { font-size: 13px; color: var(--t2); line-height: 1.6; }

/* ── Responsive ── */
@media (max-width: 380px) {
  .choix-card        { padding: 13px; gap: 11px; }
  .choix-card-icon   { width: 42px; height: 42px; font-size: 20px; }
  .choix-card-title  { font-size: 14px; }
}

/* ════════════════════════════════════════════
   LIGNES.JS — classes manquantes
   ════════════════════════════════════════════ */

/* Bouton "Voir carte" sur les mini-cartes de réservation */
.btn-voir-carte {
  flex-shrink: 0;
  font-size: 11px; font-weight: 700;
  padding: 6px 12px;
  background: var(--yellow); color: var(--dark);
  border: none; border-radius: var(--rxs);
  cursor: pointer; transition: background .15s, transform .1s;
  white-space: nowrap;
}
.btn-voir-carte:hover  { background: var(--yellow2); }
.btn-voir-carte:active { transform: scale(.97); }

/* ════════════════════════════════════════════
   NOUVELLES CLASSES — v7
   ════════════════════════════════════════════ */

/* Distance conducteur sur la carte résultat */
.driver-dist {
  color: var(--green);
  font-weight: 600;
  font-size: 11px;
}

/* Profil : section langue — checkmark animé */
.langue-row { transition: background .15s; border-radius: var(--rxs); }
.langue-row:hover { background: var(--sur3); }
