/**
 * Moto — passe d'ergonomie (Taxi + Pro), chargée en dernier.
 * Cibles tactiles ≥ 44 px, textes qui reviennent à la ligne au lieu d'être
 * coupés, contrastes lisibles au soleil, gros boutons de course, écran
 * d'arrivée qui défile. Aucun changement de charte : mêmes couleurs, mêmes
 * formes ; seules les dimensions, l'espace et quelques nuances bougent.
 */

/* ───────────── Cibles tactiles ───────────── */

/* Segments (Clair / Sombre / Auto, La dame / Le monsieur) */
.moto-seg-btn {
  min-height: 44px;
  padding: 0.45rem 0.4rem;
  font-size: 0.82rem;
}

/* Boutons « Retour » et « Fermer » des sous-écrans */
.sub-topbar-back,
.profile-topbar-back,
.search-back {
  width: 44px;
  height: 44px;
  min-width: 44px;
}

/* Champs du profil : hauteur de saisie confortable */
.profile-field-input {
  min-height: 44px;
  padding: 0.55rem 0;
  box-sizing: border-box;
}

/* Puces : filtres de notifications, chips de recherche, ajustement du prix */
.notifs-filter,
.notifs-clear,
.search-chip,
.request-quick-chip {
  min-height: 44px;
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}

.notifs-filter,
.request-quick-chip {
  font-size: 0.82rem;
}

.search-chip {
  font-size: 0.8rem;
}

/* Photo et édition du profil */
.profile-avatar-badge {
  width: 40px;
  height: 40px;
}

.profile-edit-btn {
  width: 44px;
  height: 44px;
}

.profile-photo-link {
  min-height: 44px;
  padding: 0.6rem 0.9rem;
}

/* Interrupteur « en ligne » : la piste reste fine, la zone de toucher grandit. */
.driver-online-toggle {
  min-height: 44px;
  padding: 0.5rem 0.25rem;
  margin: -0.5rem -0.25rem;
}

/* Poignées de panneau : le trait reste discret, la zone tactile fait 44 px. */
.moto-sheet-grip,
.ride-sheet-handle,
#trip-sheet-toggle {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#trip-sheet-toggle {
  width: 100%;
  height: auto;
  padding: 0.55rem 0;
  background: transparent;
}

#trip-sheet-toggle::before {
  content: "";
  width: 34px;
  height: 4px;
  border-radius: 4px;
  background: currentColor;
  opacity: 0.28;
}

/* Étoiles de notation : cibles espacées */
.stars button {
  min-width: 44px;
  min-height: 44px;
}

/* ───────────── Gros boutons de course (Pro) ───────────── */

.btn-trip-action {
  min-height: 58px;
  height: auto;
  padding: 0.9rem 1rem;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0.005em;
  white-space: normal;
  line-height: 1.2;
}

.btn-cancel-pickup {
  min-height: 48px;
  padding: 0.75rem 1rem;
  font-size: 0.92rem;
}

.btn-request-accept {
  min-height: 60px;
}

.btn-request-decline {
  min-width: 52px;
  min-height: 52px;
}

/* ───────────── Textes : retour à la ligne plutôt que coupure ───────────── */

/* Adresses de la feuille de course Pro : deux lignes, jamais coupées à mi-mot */
.trip-timeline-addr {
  -webkit-line-clamp: 2;
  line-clamp: 2;
  font-size: 0.82rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

/* Ligne d'identité du dock « on cherche » : peut passer sur deux lignes */
.dock-search__hello {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.35;
}

/* Nom dans le tiroir : deux lignes max */
.drawer-user-name {
  white-space: normal;
  overflow: hidden;
  text-overflow: clip;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow-wrap: anywhere;
}

/* Nom du chauffeur dans une offre : jamais « … » */
.ride-offer-card__name {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
  line-height: 1.2;
}

/* Statut en direct (pastille du haut) : texte court + place pour respirer */
#moto-live-status-text {
  overflow: visible;
  text-overflow: clip;
}

/* Prix : le chiffre ne se coupe jamais ; l'unité peut passer à la ligne */
.request-fare,
.uber-price-main,
.ride-offer-card__amount,
.earnings-today__value,
#confirm-price {
  overflow-wrap: normal;
  word-break: keep-all;
  hyphens: none;
}

/* Grande taille de texte système : les rangées label + contrôle passent sur deux lignes */
@media (max-width: 380px) {
  .profile-menu-item--control {
    flex-wrap: wrap;
    row-gap: 0.55rem;
  }

  .profile-menu-item--control .moto-seg--inline {
    flex: 1 1 100%;
    margin-left: 0;
  }
}

/* ───────────── Contrastes (lisibles au soleil) ───────────── */

/* Titre « Choisissez votre chauffeur » et badges d'offre */
.ride-offers__title {
  color: var(--moto-forest, #2d1b4e);
  font-size: 0.9rem;
}

.ride-offer-card__badge {
  font-size: 0.75rem;
}

.ride-offer-card__badge--ask {
  color: #5b2a9a;
}

.ride-offer-card__delta {
  font-size: 0.78rem;
}

.ride-offer-card__delta--up {
  color: #9a3412;
}

.ride-offer-card__delta--down {
  color: #166534;
}

/* Pastille « Aucun chauffeur » */
.uber-badge-live--empty {
  color: #9a3412;
}

/* Onglets Pro : libellés lisibles */
.moto-tabbar__label {
  font-size: 0.72rem;
}

.moto-tabbar__tab {
  color: #4b5568;
}

.moto-tabbar__tab.is-active .moto-tabbar__label {
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  color: var(--moto-teal, #2b62d9);
}

/* Actions dangereuses des paramètres */
.profile-menu-item--danger .profile-menu-label,
.profile-menu-item--logout .profile-menu-label,
[data-i18n="settings.logout"],
[data-i18n="settings.delete"] {
  color: #a3271f;
}

html[data-theme="dark"] .profile-menu-item--danger .profile-menu-label,
html[data-theme="dark"] .profile-menu-item--logout .profile-menu-label,
html[data-theme="dark"] [data-i18n="settings.logout"],
html[data-theme="dark"] [data-i18n="settings.delete"] {
  color: #ff8a80;
}

html[data-theme="dark"] .ride-offers__title {
  color: #f1ecf7;
}

html[data-theme="dark"] .moto-tabbar__tab {
  color: #b9bfd0;
}

html[data-theme="dark"] .moto-tabbar__tab.is-active .moto-tabbar__label {
  color: #8db0ff;
}

/* ───────────── Écran d'arrivée : défile, bouton toujours atteignable ───────────── */

#screen-done {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

#screen-done .done-scene {
  justify-content: flex-start;
  min-height: 100%;
  padding-top: calc(2.1rem + env(safe-area-inset-top, 0px));
  padding-bottom: 0;
}

/* Le contenu se centre dans la place disponible ; s'il déborde, il défile
   et le pied collant ne recouvre jamais la notation : à la fin du défilement
   la carte des étoiles est entière au-dessus des boutons. */
#screen-done .done-body {
  margin: auto 0;
}

#screen-done .done-footer {
  position: sticky;
  bottom: 0;
  margin-top: 1rem;
  padding-bottom: calc(0.65rem + var(--safe-bottom));
  background: inherit;
}

/* ───────────── Retour immédiat au toucher ───────────── */

button:not(:disabled):active,
.btn:not(:disabled):active,
[role="button"]:active {
  transition-duration: 0.05s;
}

/* Le focus clavier reste visible, jamais la bordure bleue par défaut */
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--moto-teal, #2b62d9);
  outline-offset: 2px;
}

/* ───────────── Compléments (2e passe d'audit) ───────────── */

/* Segments en ligne des paramètres : même hauteur que partout (44 px). */
.moto-seg--inline .moto-seg-btn {
  min-height: 44px;
  padding: 0.5rem 0.55rem;
  font-size: 0.8rem;
}

/* Rangée « Annonces vocales » du tiroir Pro */
.drawer-prefs-row {
  min-height: 44px;
}

/* Lien « Conditions d'utilisation » : zone de toucher 44 px, rendu inchangé */
.auth-terms-link {
  display: inline-block;
  padding: 0.85rem 0.15rem;
  margin: -0.85rem -0.15rem;
}

.profile-avatar-badge {
  width: 44px;
  height: 44px;
}

/* Pastille de statut Pro : le texte court tient ; sinon la pastille s'élargit
   au lieu de couper. */
#moto-live-status #moto-live-status-text {
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

/* Bouton de course : jamais de hauteur fixe qui coupe le libellé */
.trip-sheet .btn-trip-action,
#btn-ride-action {
  height: auto;
  min-height: 58px;
}

/* Contrastes — mode clair */
.driver-online-toggle__label {
  color: #3f4a63;
}

.request-service {
  color: #2f3a55;
}

.uber-badge-live {
  color: #0f6b33;
}

.btn-uber-black:disabled,
.btn-uber-black[disabled] {
  color: rgba(45, 27, 78, 0.74);
}

/* Contrastes — mode sombre (badges des offres, deltas, pastilles) */
html[data-theme="dark"] .ride-offer-card__badge--ask {
  color: #e2d3ff;
}

html[data-theme="dark"] .ride-offer-card__badge {
  color: #cfc3e8;
}

html[data-theme="dark"] .ride-offer-card__delta--up {
  color: #fdba74;
}

html[data-theme="dark"] .ride-offer-card__delta--down {
  color: #86efac;
}

html[data-theme="dark"] .uber-badge-live {
  color: #7ee2a3;
}

html[data-theme="dark"] .uber-badge-live--empty {
  color: #fdba74;
}

html[data-theme="dark"] .driver-online-toggle__label,
html[data-theme="dark"] .request-service {
  color: #c9d0e0;
}

html[data-theme="dark"] .btn-uber-black:disabled,
html[data-theme="dark"] .btn-uber-black[disabled] {
  color: rgba(244, 239, 251, 0.62);
}

/* ───────────── Contact : Appeler + Message (même bloc dans Taxi et Pro) ───────────── */

.moto-contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin: 0.15rem 0 0.55rem;
}

.moto-contact-row[hidden] {
  display: none;
}

.moto-contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 52px;
  padding: 0.7rem 0.9rem;
  border-radius: 16px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.005em;
  transition: transform 0.14s ease, background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.moto-contact-btn:active {
  transform: scale(0.97);
}

.moto-contact-btn[hidden] {
  display: none;
}

.moto-contact-btn__icon {
  display: inline-flex;
  flex: none;
}

.moto-contact-btn__icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

/* Appeler : action forte (dégradé de l'app) ; Message : action calme. */
.moto-contact-btn--call {
  background: var(--moto-gradient);
  color: #fff;
  box-shadow: var(--moto-shadow-glow, 0 8px 22px rgba(255, 51, 102, 0.28));
}

.moto-contact-btn--sms {
  background: var(--moto-glass-strong, #ffffff);
  color: var(--moto-forest, #2d1b4e);
  box-shadow: inset 0 0 0 1.5px rgba(45, 27, 78, 0.16);
}

html[data-theme="dark"] .moto-contact-btn--sms {
  background: rgba(255, 255, 255, 0.08);
  color: #f4effb;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.18);
}

/* Panneau replié pendant la course (Taxi) : rangée compacte */
#screen-ride .uber-sheet--ride.is-folded .moto-contact-btn {
  min-height: 44px;
  padding: 0.45rem 0.7rem;
  font-size: 0.88rem;
}

/* ═══════════════════ 3e passe (audit automatisé, sept. 2026) ═══════════════════
   Constats : destination rognée sur l'accueil Taxi, barre d'onglets Pro hors
   écran quand le chauffeur est en ligne, « Arrêter ici » coupé en trajet,
   feuille de demande trop haute en grand texte, contrastes < AA. */

/* ───────────── Taxi · accueil : la destination est toujours visible ───────────── */
.home-greeting {
  font-size: 1.3rem;
  line-height: 1.2;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-head {
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}

.home-head .uber-badge-live {
  flex: 0 0 auto;
}

#screen-book .uber-sheet--home {
  max-height: min(max(47vh, 440px), calc(100vh - 260px)); /* fallback dvh */
  max-height: min(max(47dvh, 440px), calc(100dvh - 260px));
}

@media (max-height: 720px) {
  #screen-book .uber-sheet--home {
    max-height: min(66vh, calc(100vh - 150px)); /* fallback dvh */
    max-height: min(66dvh, calc(100dvh - 150px));
  }
}

/* Libellés Départ / Arrivée : lisibles au soleil (AA) */
.uber-field-title {
  font-size: 0.7rem;
  color: rgba(96, 40, 150, 0.92);
}

html[data-theme="dark"] .uber-field-title {
  color: rgba(214, 190, 245, 0.9);
}

/* ───────────── Taxi · trajet : « Arrêter ici » sur la même rangée que l'ETA ───────────── */
#screen-ride .uber-sheet--ride.is-folded {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 0.5rem;
  max-height: calc(126px + var(--safe-bottom));
}

#screen-ride .uber-sheet--ride.is-folded > * {
  flex: 1 1 100%;
}

#screen-ride .uber-sheet--ride.is-folded #ride-eta-bar {
  flex: 1 1 0;
  min-width: 0;
  margin-bottom: 0;
}

#screen-ride .uber-sheet--ride.is-folded #btn-early-stop {
  flex: 0 0 auto;
  width: auto;
  min-height: 44px;
  margin: 0;
  padding: 0.5rem 0.9rem;
  white-space: nowrap;
}

/* ───────────── Taxi · arrivée : mode compact ─────────────
   Appliqué par l'app (classe done--compact) sur les écrans courts (≤ 700 px)
   et dès que le contenu déborderait (grand texte, adresses longues, arrêt
   anticipé) : médaille réduite, badge et sous-titre retirés, deux actions
   côte à côte. Tout tient sans défiler, les étoiles ne sont jamais couvertes. */
#screen-done.done--compact .done-scene {
  padding-top: calc(1.4rem + env(safe-area-inset-top, 0px));
}
#screen-done.done--compact .done-body {
  gap: 0.85rem;
}
#screen-done.done--compact .done-icon-wrap {
  width: 84px;
  height: 84px;
  margin-bottom: 1.1rem;
}
#screen-done.done--compact .done-icon-3d,
#screen-done.done--compact .done-icon-3d__coin,
#screen-done.done--compact .done-icon-uber {
  width: 72px;
  height: 72px;
}
#screen-done.done--compact .done-icon-3d {
  margin-top: 6px;
}
#screen-done.done--compact .done-badge {
  margin-bottom: 0.55rem;
}
/* Grand texte sur petit écran : le badge « Course terminée » (redondant
   avec le titre) s'efface pour laisser les étoiles et le bouton visibles. */
#screen-done.done--compact .done-badge {
  display: none;
}
#screen-done.done--compact .done-hero h2 {
  font-size: 1.6rem;
}
#screen-done.done--compact .done-card {
  padding: 0.95rem 1.1rem 0.9rem;
}
#screen-done.done--compact .done-rating {
  padding: 0.8rem 0.95rem 0.7rem;
}
#screen-done.done--compact .done-rating-head {
  min-height: 44px;
  margin: -0.5rem 0 -0.1rem;
}
#screen-done.done--compact .stars button {
  width: 48px;
  height: 48px;
}
#screen-done.done--compact .stars button svg {
  width: 32px;
  height: 32px;
}
/* Deux actions côte à côte : la principale plus large, tout tient sans
   défiler et sans couvrir les étoiles. */
#screen-done.done--compact .done-footer {
  flex-direction: row;
  /* Si les deux libellés ne tiennent pas côte à côte (grand texte), le
     secondaire passe seul sur une seconde ligne — jamais coupé. */
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.6rem;
}
#screen-done.done--compact .btn-done-cta--rate {
  flex: 1.35 1 auto;
  min-height: 54px;
  padding: 0.85rem 0.75rem;
  font-size: 0.95rem;
  white-space: nowrap;
}
#screen-done.done--compact .btn-done-cta--rate .btn-done-cta__ico--check {
  display: none;
}
#screen-done.done--compact .btn-done-secondary {
  flex: 1 1 auto;
  min-height: 54px;
  max-height: none;
  padding: 0.8rem 0.75rem;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: transform 0.12s ease, background 0.2s ease, border-color 0.2s ease;
}
#screen-done.done--compact .done-footer.is-sent .btn-done-secondary {
  display: none;
}
#screen-done.done--compact .done-subtitle {
  display: none;
}

/* Second cran (grand texte + adresses longues sur petit écran) : la
   médaille se réduit encore, l'écran reste sans défilement. */
#screen-done.done--tight .done-scene {
  padding-top: calc(0.9rem + env(safe-area-inset-top, 0px));
}
#screen-done.done--tight .done-body {
  gap: 0.6rem;
}
#screen-done.done--tight .done-icon-wrap {
  width: 64px;
  height: 64px;
  margin-bottom: 0.7rem;
}
#screen-done.done--tight .done-icon-3d,
#screen-done.done--tight .done-icon-3d__coin,
#screen-done.done--tight .done-icon-uber {
  width: 56px;
  height: 56px;
}
#screen-done.done--tight .done-icon-uber svg {
  width: 24px;
  height: 24px;
}
#screen-done.done--tight .done-hero h2 {
  font-size: 1.4rem;
}
#screen-done.done--tight .done-card {
  padding: 0.8rem 0.95rem 0.75rem;
}
#screen-done.done--tight .done-amount {
  font-size: clamp(2.2rem, 9vw, 2.8rem);
}
#screen-done.done--tight .done-route {
  margin-top: 0.55rem;
  padding-top: 0.55rem;
}
#screen-done.done--tight .done-rating-hint {
  display: none;
}
#screen-done.done--tight .btn-done-cta--rate,
#screen-done.done--tight .btn-done-secondary {
  font-size: 0.9rem;
  padding-left: 0.6rem;
  padding-right: 0.6rem;
}

/* ───────────── Notifications (deux apps) : filtres et « Tout effacer » ne se chevauchent plus ───────────── */
.notifs-toolbar {
  flex-wrap: wrap;
  row-gap: 0.5rem;
}

.notifs-filters {
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: wrap;
  row-gap: 0.4rem;
  overflow: visible;
}

.notifs-clear {
  flex: 0 0 auto;
  min-height: 44px;
  margin-inline-start: auto;
}

/* ───────────── Profil (deux apps) : une seule cible pour changer la photo ───────────── */
.profile-avatar-badge {
  pointer-events: none;
}

/* ───────────── Contrastes (AA) ───────────── */
.confirm-pay-line,
.overlay--request .request-sheet--pro .request-pay,
.overlay--request .request-sheet--pro .request-passenger {
  color: #4a4560;
}

html[data-theme="dark"] .confirm-pay-line,
html[data-theme="dark"] .overlay--request .request-sheet--pro .request-pay,
html[data-theme="dark"] .overlay--request .request-sheet--pro .request-passenger {
  color: rgba(226, 220, 240, 0.86);
}

.profile-photo-link {
  color: #5b2e9a;
  font-weight: 700;
}

html[data-theme="dark"] .profile-photo-link {
  color: #d9c4ff;
}

/* Mode sombre natif : la carte d'entête du profil restait blanche
   (règle perf-native plus spécifique) et le nom, blanc, disparaissait. */
html[data-theme="dark"] #screen-profile .profile-hero,
html[data-theme="dark"].moto-capacitor-native #screen-profile .profile-hero {
  background: rgba(36, 26, 51, 0.98);
}

html[data-theme="dark"] .profile-hero-name {
  color: #fff;
}

html[data-theme="dark"] .profile-edit-btn {
  color: #f4effb;
}

/* Pastille « retour » sur la carte : fond clair forcé, donc encre fixe. */
html[data-theme="dark"] .map-float-btn,
html[data-theme="dark"] .map-float-back {
  color: #2d1b4e;
}

#screen-confirm .confirm-meta--muted {
  color: #6b6478;
}

html[data-theme="dark"] #screen-confirm .confirm-meta--muted {
  color: #b7aecb;
}

/* Chauffeur en route : Appeler / Message en 1 tap, cible ≥ 44 px */
#screen-ride .moto-contact-btn {
  min-height: 44px;
  padding: 0.5rem 0.5rem;
}

/* ───────────── Pro · accueil : barre d'onglets et interrupteur toujours visibles ───────────── */
#screen-home .uber-map-stage {
  min-height: min(41vh, calc(100vh - 430px)); /* fallback dvh */
  min-height: min(41dvh, calc(100dvh - 430px));
}

#screen-home .uber-dock--home {
  display: flex;
  flex-direction: column;
  /* Complément exact de la hauteur mini de la carte : la somme ne dépasse
     jamais l'écran, la barre d'onglets reste visible. */
  max-height: max(59vh, 430px); /* fallback dvh */
  max-height: max(59dvh, 430px);
}

#screen-home .uber-dock--home .uber-dock-inner {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

#screen-home .uber-dock--home .dock-search {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

#screen-home .uber-dock--home .driver-online-box,
#screen-home .uber-dock--home .moto-tabbar,
#screen-home .uber-dock--home .moto-sheet-grip {
  flex: 0 0 auto;
}

/* En ligne, la zone « On cherche » porte déjà le prénom, la note et les
   courses du jour : l'entête du dock ne les répète plus. */
#screen-home .uber-dock--online #driver-greeting,
#screen-home .uber-dock--online .dock-stats-row {
  display: none;
}

/* ───────────── Pro · demande entrante : la feuille défile, « Accepter » reste collé au bas ───────────── */
.overlay--request .request-sheet {
  max-height: calc(100vh - 12px); /* fallback dvh */
  max-height: calc(100dvh - 12px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.overlay--request .request-actions {
  position: sticky;
  bottom: 0;
  margin-bottom: calc(-1 * var(--safe-bottom));
  padding-bottom: calc(0.4rem + var(--safe-bottom));
  background: inherit;
}

/* Derniers contrastes < AA relevés par l'audit (note du dock, « Tout effacer »
   et libellé de l'interrupteur en mode sombre). */
.dock-search__rating {
  color: #8a6710;
}

html[data-theme="dark"] .notifs-clear {
  color: #9dbcff;
}

html[data-theme="dark"] .driver-online-toggle__label {
  color: #e3e8f2;
}

.overlay--request .request-sheet--pro .request-service {
  color: #414c66;
}

.overlay--request .request-sheet--pro .request-fare-step {
  color: #46516c;
}

html[data-theme="dark"] .overlay--request .request-sheet--pro .request-service,
html[data-theme="dark"] .overlay--request .request-sheet--pro .request-fare-step {
  color: #dfe4ee;
}

html[data-theme="dark"] .driver-online-toggle[aria-checked="true"] .driver-online-toggle__label {
  color: #9dbcff;
}

/* ───────────── Système de box : trois arrondis, partout les mêmes ─────────────
   Feuilles ancrées en bas : 26 px (--moto-radius-xl) · cartes : 18 px (lg) ·
   petites tuiles et boutons secondaires : 14 px. Relevé automatisé
   (tmp/debug/survey-boxes.mjs) : 28/24/22/20/16/10 px cohabitaient. */
#screen-book .uber-sheet--home,
#screen-confirm .uber-sheet--confirm,
#screen-ride .uber-sheet--ride,
.overlay--request .request-sheet--pro,
#screen-ride .trip-sheet--pro {
  border-radius: var(--moto-radius-xl, 26px) var(--moto-radius-xl, 26px) 0 0;
}

.uber-route-fields,
.express-toggle,
#ride-offers.ride-offers,
.profile-field,
#earnings-chart.earnings-chart,
.trip-passenger-card,
#driver-card.moto-ride-driver {
  border-radius: var(--moto-radius-lg, 18px);
}

#ride-eta-bar.moto-eta-bar,
#ride-nav-footer.trip-nav-footer,
#screen-ride .moto-contact-btn,
#screen-ride .btn-cancel-ride,
.trip-nav-chrome {
  border-radius: 14px;
}

#screen-profile .profile-hero {
  border-radius: var(--moto-radius-lg, 18px);
}

/* Pro · « Je suis arrivé » encore inactif (loin du départ) : lisible quand même */
#screen-ride .btn-trip-action:disabled {
  opacity: 1;
  color: #4d5872;
  background: #e6e9f0;
}

html[data-theme="dark"] #screen-ride .btn-trip-action:disabled {
  color: #c3cad8;
  background: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .earnings-chart__day {
  color: #b9c2d6;
}

html[data-theme="dark"] .earnings-chart__col.is-today .earnings-chart__day {
  color: #9dbcff;
}

/* Pro · la boîte « Mode en ligne » entière est la cible (JS relaie au switch) */
#driver-online-box {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* ───────────── Taxi · chauffeur en route : contact en premier ───────────── */
#screen-ride .uber-sheet--ride.uber-sheet--ride-driver:not(.is-folded) {
  display: flex;
  flex-direction: column;
}

#screen-ride .uber-sheet--ride.uber-sheet--ride-driver:not(.is-folded) > * {
  order: 6;
  flex: 0 0 auto;
}

/* Nom long du chauffeur : sur deux lignes plutôt que « … » */
#screen-ride .moto-ride-driver__name {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
  line-height: 1.15;
}

/* Petit écran : les pastilles d'étapes cèdent la place au chauffeur et au
   contact (la barre de progression et le bandeau haut disent déjà l'étape). */
@media (max-height: 700px) {
  #screen-ride .uber-sheet--ride.uber-sheet--ride-driver .ride-steps {
    display: none;
  }
}

#screen-ride .uber-sheet--ride.uber-sheet--ride-driver:not(.is-folded) > .ride-sheet-handle { order: 0; }
#screen-ride .uber-sheet--ride.uber-sheet--ride-driver:not(.is-folded) > .ride-progress { order: 1; }
#screen-ride .uber-sheet--ride.uber-sheet--ride-driver:not(.is-folded) > .ride-steps { order: 2; }
#screen-ride .uber-sheet--ride.uber-sheet--ride-driver:not(.is-folded) > .moto-eta-bar { order: 3; }
#screen-ride .uber-sheet--ride.uber-sheet--ride-driver:not(.is-folded) > .driver-card { order: 4; }
#screen-ride .uber-sheet--ride.uber-sheet--ride-driver:not(.is-folded) > .moto-contact-row { order: 5; }
#screen-ride .uber-sheet--ride.uber-sheet--ride-driver:not(.is-folded) > .btn-cancel-ride { order: 7; }

/* Pro · montant de la demande : toujours sur une ligne (« 125 000 FCFA » en
   grand texte compris) — la taille suit la largeur disponible. */
.overlay--request .request-sheet--pro .request-fare {
  font-size: clamp(1.5rem, 9.5vw, 2.15rem);
  white-space: nowrap;
}

/* ───────────── Tiroir (deux apps) : le menu défile, les préférences rapides
   (thème Clair / Sombre / Auto) restent au bas sans recouvrir « Paramètres ». ───────────── */
.drawer-panel .drawer-nav {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.5rem;
}

.drawer-panel .drawer-prefs,
.drawer-panel .drawer-footer,
.drawer-panel .drawer-user-head {
  flex: 0 0 auto;
}

/* ───────────── Écrans de saisie : clavier ouvert / petit écran ─────────────
   La liste défile sous le bouton fixe (min-height: 0 sinon flex refuse de
   rétrécir) et le logo se fait discret quand la hauteur manque. */
.lang-main {
  min-height: 0;
}

@media (max-height: 700px) {
  .lang-hero-logo {
    width: 64px;
    height: 64px;
  }
  .lang-title {
    font-size: 1.45rem;
  }
}

@media (max-height: 560px) {
  .lang-hero-logo,
  .lang-subtitle {
    display: none;
  }
  .auth-logo-img {
    width: 88px;
  }
  .auth-brand {
    margin-bottom: 0.4rem;
  }
}

/* Arrivée : le montant reste sur une ligne, quelle que soit la taille de texte */
#screen-done .done-amount {
  font-size: clamp(1.7rem, 11vw, 3.5rem);
  white-space: nowrap;
}
