/* EasyGo — design sombre or & émeraude (remplace styles.css sur la page de réservation).
   Feuille autonome : aucune ressource externe, compatible avec la politique de sécurité du serveur. */

:root {
  --bg: #111318;
  --bg-deep: #0c0e13;
  --card: #1a1b21;
  --card-2: #1e1f25;
  --card-3: #282a2f;
  --line: #33353a;
  --line-soft: rgba(40, 42, 47, 0.7);
  --text: #e2e2e9;
  --muted: #d1c5b4;
  --dim: #9a8f80;
  --gold: #e9c176;
  --gold-deep: #c5a059;
  --on-gold: #412d00;
  --green: #4edea3;
  --green-bright: #6ffbbe;
  --error: #ffb4ab;
  --error-bg: rgba(147, 0, 10, 0.35);
  --header-h: 4.5rem;
  --nav-h: 4rem;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --radius: 0.75rem;
  --radius-lg: 1rem;
  color-scheme: dark;
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--safe-top) + 0.75rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

h1, h2, h3, p, fieldset, legend, ol {
  margin: 0;
  padding: 0;
}

fieldset {
  border: 0;
  min-width: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
}

svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
  flex-shrink: 0;
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

/* ---------- En-tête ---------- */

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding-top: var(--safe-top);
  background: rgba(12, 14, 19, 0.86);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
}

.topbar-inner {
  height: var(--header-h);
  max-width: 36rem;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-shrink: 0;
}

.brand-word {
  display: flex;
  align-items: baseline;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.brand-easy {
  color: var(--green);
}

.brand-go {
  position: relative;
  margin-left: 2px;
  color: var(--gold);
}

.brand-go svg {
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 6px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.brand small {
  margin-top: 7px;
  color: var(--gold-deep);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: var(--card);
  flex-shrink: 0;
}

.language-switch svg {
  width: 15px;
  height: 15px;
  margin-left: 7px;
  color: var(--muted);
}

.language-button {
  height: 2rem;
  min-width: 2.25rem;
  padding: 0 0.5rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.language-button.active,
.language-button[aria-pressed="true"] {
  color: var(--green);
  font-weight: 700;
}

.phone-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  height: 2.75rem;
  padding: 0 0.9rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(233, 193, 118, 0.15), var(--card-3), rgba(78, 222, 163, 0.15));
  box-shadow: 0 0 15px rgba(233, 193, 118, 0.12);
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.phone-link svg {
  color: var(--green);
}

@media (max-width: 369px) {
  .phone-link span {
    display: none;
  }
}

/* ---------- Mise en page ---------- */

main {
  max-width: 36rem;
  margin: 0 auto;
  padding: calc(var(--header-h) + var(--safe-top) + 0.75rem) 1rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.intro {
  text-align: center;
}

.intro h1 {
  color: var(--gold);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.intro p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.intro p::before,
.intro p::after {
  content: "";
  width: 2rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(233, 193, 118, 0.6));
}

.intro p::after {
  transform: scaleX(-1);
}

/* ---------- Carte de réservation ---------- */

.booking-shell,
.status-shell {
  padding: 0.875rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.partner-banner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid rgba(233, 193, 118, 0.35);
  border-radius: var(--radius);
  background: rgba(233, 193, 118, 0.08);
}

.partner-icon {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  background: rgba(233, 193, 118, 0.14);
  color: var(--gold);
}

.partner-banner small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.partner-banner strong {
  font-size: 14px;
}

.form-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.625rem;
}

.step-label {
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.form-heading h2 {
  font-size: 17px;
  font-weight: 700;
}

.secure-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.secure-badge svg {
  width: 13px;
  height: 13px;
  color: var(--green);
}

form {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.field {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

.field > label,
.ride-time legend,
.payment-methods legend,
.payment-timing > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ride-time legend,
.payment-methods legend {
  margin-bottom: 0.4rem;
}

.field > input,
.field > select,
.field > textarea,
.input-with-icon {
  width: 100%;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--bg-deep);
  transition: border-color 0.15s, background-color 0.15s;
}

.field > input,
.field > select,
.field > textarea {
  min-height: 2.875rem;
  padding: 0.55rem 0.75rem;
  font-size: 16px;
  font-weight: 500;
}

.field > textarea {
  resize: vertical;
}

.field > select {
  appearance: none;
  padding-right: 2.25rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.field > select option {
  background: var(--card);
  color: var(--text);
}

::placeholder {
  color: var(--dim);
  opacity: 1;
}

.field > input:focus,
.field > select:focus,
.field > textarea:focus,
.input-with-icon:focus-within {
  outline: none;
  border-color: rgba(78, 222, 163, 0.6);
  background: var(--card-2);
}

.field > [aria-invalid="true"],
.input-with-icon:has([aria-invalid="true"]) {
  border-color: var(--error);
}

.field-error {
  color: var(--error);
  font-size: 12px;
  font-weight: 500;
}

.field-error:empty {
  display: none;
}

/* Adresses */

.route-fields {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.route-line {
  display: none;
}

.input-with-icon {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 3rem;
  padding: 0 0.75rem;
}

.input-with-icon svg {
  width: 14px;
  height: 14px;
}

.pickup-icon {
  color: var(--green);
}

.destination-icon {
  color: var(--gold);
}

.input-with-icon input {
  flex: 1;
  min-width: 0;
  height: 3rem;
  border: 0;
  background: transparent;
  font-size: 16px;
  font-weight: 500;
  text-overflow: ellipsis;
}

.input-with-icon input:focus {
  outline: none;
}

.input-with-icon input[aria-busy="true"] {
  opacity: 0.6;
}

/* Aide réservée aux lecteurs d'écran : l'afficher au focus décalait la page
   à la sortie du champ et faisait rater le premier appui suivant. */
.address-help {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.address-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 30;
  max-height: 16rem;
  overflow-y: auto;
  padding: 0.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card-3);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
}

.address-suggestion {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.55rem 0.6rem;
  border-radius: 0.5rem;
  text-align: left;
}

.address-suggestion:hover,
.address-suggestion[aria-selected="true"] {
  background: rgba(78, 222, 163, 0.12);
}

.suggestion-icon {
  display: grid;
  place-items: center;
  color: var(--green);
}

.suggestion-icon svg {
  width: 16px;
  height: 16px;
}

.address-suggestion > span:last-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.address-suggestion strong {
  font-size: 14px;
  font-weight: 600;
}

.address-suggestion small {
  color: var(--muted);
  font-size: 12px;
}

.suggestions-message {
  padding: 0.6rem;
  color: var(--muted);
  font-size: 13px;
}

.google-suggestions-attribution {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.4rem 0.6rem 0.25rem;
  color: var(--dim);
  font-size: 10px;
}

.google-maps-attribution {
  font-weight: 700;
}

/* Sélecteurs segmentés */

.segmented-control {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: var(--radius);
  background: var(--bg-deep);
}

.segmented-control label {
  position: relative;
  cursor: pointer;
}

.segmented-control input,
.payment-option input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  pointer-events: none;
}

.segmented-control span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.6rem;
  padding: 0 0.5rem;
  border-radius: 0.5rem;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  transition: background-color 0.15s, color 0.15s;
}

.segmented-control svg {
  width: 16px;
  height: 16px;
}

.segmented-control input:checked + span {
  background: var(--card-3);
  color: var(--gold);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.segmented-control input:focus-visible + span,
.payment-option input:focus-visible + span {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

/* Boutons */

.estimate-button,
.primary-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 3rem;
  padding: 0 1rem;
  border-radius: var(--radius);
  background: linear-gradient(90deg, var(--gold), var(--gold-deep) 50%, var(--green));
  color: var(--bg-deep);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
  transition: transform 0.12s, filter 0.15s;
}

.estimate-button:active,
.primary-button:active {
  transform: scale(0.98);
}

.primary-button:disabled {
  filter: grayscale(0.5) brightness(0.8);
  cursor: progress;
}

.estimate-button svg,
.primary-button svg {
  width: 18px;
  height: 18px;
}

/* Étape 1 : seuls le trajet et l'heure sont visibles */

.booking-shell:not(.booking-advanced) .route-preview,
.booking-shell:not(.booking-advanced) .payment-methods,
.booking-shell:not(.booking-advanced) .divider,
.booking-shell:not(.booking-advanced) .two-columns,
.booking-shell:not(.booking-advanced) .options-panel,
.booking-shell:not(.booking-advanced) .consent-row,
.booking-shell:not(.booking-advanced) .consent-error,
.booking-shell:not(.booking-advanced) .primary-button,
.booking-shell:not(.booking-advanced) .form-note {
  display: none !important;
}

.booking-shell.booking-advanced .estimate-button {
  display: none;
}

/* Aperçu du trajet */

.route-preview {
  padding: 0.75rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--bg-deep);
}

.route-preview-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.route-preview-label {
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.route-preview h3 {
  font-size: 15px;
  font-weight: 700;
}

.route-metrics {
  display: flex;
  gap: 0.4rem;
}

.route-metrics span {
  display: flex;
  flex-direction: column;
  padding: 0.3rem 0.6rem;
  border-radius: 0.5rem;
  background: var(--card-2);
}

.route-metrics small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.route-metrics strong {
  color: var(--gold);
  font-size: 14px;
  white-space: nowrap;
}

.route-map {
  position: relative;
  height: 13.5rem;
  overflow: hidden;
  border-radius: 0.6rem;
  background: var(--card-2);
}

.route-overlay {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
}

.map-tile {
  filter: saturate(0.8) brightness(0.92);
}

.route-line-shadow {
  stroke: #0c0e13;
}

.route-line-map {
  stroke: #0d9d6c;
}

.map-marker.start {
  fill: #0d9d6c;
}

.map-marker.end {
  fill: #c5892b;
}

.map-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.map-loading span {
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid var(--line);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.map-attribution,
.route-notice {
  margin-top: 0.4rem;
  color: var(--dim);
  font-size: 11px;
}

.map-attribution a {
  text-decoration: underline;
}

/* Tarif et paiement */

.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.payment-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(233, 193, 118, 0.4);
  border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(233, 193, 118, 0.1), rgba(78, 222, 163, 0.07));
}

.payment-total > span {
  display: flex;
  flex-direction: column;
}

.payment-total small {
  color: var(--muted);
  font-size: 11px;
}

.payment-total > span small {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.payment-total strong {
  color: var(--gold);
  font-size: 22px;
  font-weight: 700;
  white-space: nowrap;
}

.payment-total > small {
  max-width: 11rem;
  text-align: right;
}

.payment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
}

.payment-option {
  position: relative;
  cursor: pointer;
}

.payment-option > span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  height: 100%;
  padding: 0.6rem 0.3rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--card);
  text-align: center;
  transition: border-color 0.15s, background-color 0.15s;
}

.payment-option svg,
.payment-option b {
  color: var(--muted);
}

.payment-option b {
  font-size: 18px;
  font-style: italic;
  line-height: 1.25rem;
}

.payment-option strong {
  font-size: 12px;
  font-weight: 700;
}

.payment-option small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.25;
}

.payment-option input:checked + span {
  border-color: rgba(233, 193, 118, 0.6);
  background: var(--card-2);
}

.payment-option input:checked + span svg,
.payment-option input:checked + span b {
  color: var(--gold);
}

.payment-timing {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.payment-security-note,
.form-note {
  color: var(--dim);
  font-size: 11px;
}

.form-note {
  text-align: center;
}

/* Coordonnées et options */

.divider {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.25rem;
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

@media (max-width: 380px) {
  .two-columns:not(.compact-columns) {
    grid-template-columns: 1fr;
  }
}

.options-panel {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--bg-deep);
}

.options-panel summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 2.875rem;
  padding: 0 0.75rem;
  cursor: pointer;
  list-style: none;
  font-size: 13px;
  font-weight: 600;
}

.options-panel summary::-webkit-details-marker {
  display: none;
}

.options-panel summary > span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.options-panel summary svg {
  width: 16px;
  height: 16px;
  color: var(--green);
  transition: transform 0.15s;
}

.options-panel[open] summary svg {
  transform: rotate(45deg);
}

.options-panel summary small {
  color: var(--dim);
  font-size: 11px;
}

.options-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0 0.75rem 0.75rem;
}

.options-content .field > textarea {
  background: var(--card);
}

.check-card,
.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 13px;
}

.check-card {
  align-items: center;
  min-height: 2.75rem;
  padding: 0 0.75rem;
  border-radius: 0.5rem;
  background: var(--card);
}

.consent-row {
  color: var(--muted);
}

input[type="checkbox"] {
  width: 1.2rem;
  height: 1.2rem;
  margin: 1px 0 0;
  flex-shrink: 0;
  accent-color: var(--green);
}

input[type="datetime-local"] {
  color-scheme: dark;
}

/* ---------- Raccourcis ---------- */

.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.quick-actions > * {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0.25rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: background-color 0.15s, transform 0.12s;
}

.quick-actions > *:hover {
  background: var(--card-2);
}

.quick-actions > *:active {
  transform: scale(0.96);
}

.quick-icon {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.25rem;
  border-radius: 50%;
  background: rgba(233, 193, 118, 0.15);
  color: var(--gold);
}

.quick-icon.green {
  background: rgba(78, 222, 163, 0.15);
  color: var(--green);
}

.quick-icon svg {
  width: 17px;
  height: 17px;
}

.quick-actions strong {
  font-size: 12px;
  font-weight: 600;
}

.quick-actions small {
  margin-top: 1px;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.quick-actions small.green {
  color: var(--green);
}

/* ---------- Suivi de la demande ---------- */

.status-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 0.875rem;
  text-align: center;
}

.status-animation {
  position: relative;
  display: grid;
  place-items: center;
  width: 5.5rem;
  height: 5.5rem;
}

.pulse-ring {
  position: absolute;
  inset: 0;
  border: 2px solid var(--green);
  border-radius: 50%;
  animation: pulse 1.8s ease-out infinite;
}

@keyframes pulse {
  from {
    transform: scale(0.6);
    opacity: 0.9;
  }
  to {
    transform: scale(1.15);
    opacity: 0;
  }
}

.car-disc {
  display: grid;
  place-items: center;
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--green));
  color: var(--bg-deep);
}

.car-disc svg {
  width: 2.1rem;
  height: 2.1rem;
}

.status-kicker {
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.status-shell h2 {
  font-size: 19px;
  font-weight: 700;
}

.status-copy {
  color: var(--muted);
  font-size: 14px;
}

.reference-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0.7rem;
  border: 1px dashed rgba(233, 193, 118, 0.5);
  border-radius: var(--radius);
  background: var(--bg-deep);
}

.reference-card span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reference-card strong {
  color: var(--gold);
  font-size: 20px;
  letter-spacing: 0.06em;
}

.status-timeline {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  list-style: none;
  text-align: left;
}

.status-timeline li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  opacity: 0.55;
}

.status-timeline li > span {
  width: 0.9rem;
  height: 0.9rem;
  margin-top: 0.2rem;
  border: 2px solid var(--dim);
  border-radius: 50%;
  flex-shrink: 0;
}

.status-timeline li.done,
.status-timeline li.active {
  opacity: 1;
}

.status-timeline li.done > span {
  border-color: var(--green);
  background: var(--green);
}

.status-timeline li.active > span {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(233, 193, 118, 0.2);
}

.status-timeline strong {
  display: block;
  font-size: 14px;
}

.status-timeline small {
  color: var(--muted);
  font-size: 12px;
}

.driver-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem;
  border: 1px solid rgba(78, 222, 163, 0.4);
  border-radius: var(--radius);
  background: rgba(78, 222, 163, 0.08);
  text-align: left;
}

.driver-avatar {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--gold);
  color: var(--on-gold);
  font-weight: 700;
}

.driver-card > div:nth-child(2) {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.driver-card small {
  color: var(--muted);
  font-size: 11px;
}

.driver-card span {
  color: var(--muted);
  font-size: 13px;
}

.driver-card a {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--green);
  color: var(--bg-deep);
}

.status-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  width: 100%;
}

.secondary-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.875rem;
  border: 1px solid rgba(233, 193, 118, 0.5);
  border-radius: var(--radius);
  color: var(--gold);
  font-weight: 700;
}

.text-button {
  min-height: 2.75rem;
  padding: 0 0.75rem;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
}

.text-button.danger {
  color: var(--error);
}

/* ---------- Engagements ---------- */

.reassurance {
  display: grid;
  gap: 0.5rem;
}

.reassurance article {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--card);
}

.reassurance article > span {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  background: rgba(78, 222, 163, 0.12);
  color: var(--green);
  flex-shrink: 0;
}

.reassurance strong {
  font-size: 14px;
}

.reassurance p {
  color: var(--muted);
  font-size: 12px;
}

/* ---------- Pied de page ---------- */

.site-footer {
  max-width: 36rem;
  margin: 0 auto;
  padding: 0.5rem 1rem calc(var(--nav-h) + var(--safe-bottom) + 1rem);
  color: var(--muted);
  text-align: center;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0 0.5rem;
  font-size: 13px;
  font-weight: 600;
}

.footer-links svg {
  width: 17px;
  height: 17px;
}

.footer-whatsapp {
  color: var(--green);
}

.footer-phone {
  color: var(--gold);
}

.footer-links i {
  color: var(--line);
  font-style: normal;
}

.site-footer p {
  font-size: 11px;
  opacity: 0.85;
}

.footer-brand {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line-soft);
  color: var(--dim);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Barre de navigation ---------- */

.bottom-nav {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 50;
  padding-bottom: var(--safe-bottom);
  background: rgba(12, 14, 19, 0.9);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.65);
}

.bottom-nav > div {
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: var(--nav-h);
  max-width: 36rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 4.5rem;
  height: 3.5rem;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: color 0.15s;
}

.bottom-nav a[aria-current="page"] {
  color: var(--gold);
}

.bottom-nav svg {
  width: 22px;
  height: 22px;
}

/* ---------- Message temporaire ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--nav-h) + var(--safe-bottom) + 0.75rem);
  z-index: 60;
  width: max-content;
  max-width: calc(100vw - 2rem);
  padding: 0.7rem 1rem;
  border: 1px solid rgba(78, 222, 163, 0.5);
  border-radius: var(--radius);
  background: var(--card-3);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 1rem);
  transition: opacity 0.2s, transform 0.2s;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast.error {
  border-color: var(--error);
  background: #3a1414;
  color: #ffdad6;
}

/* ---------- Sélecteur de point sur carte ---------- */

.map-pick-button {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-right: -0.4rem;
  border-radius: 50%;
  color: var(--green);
  flex-shrink: 0;
  transition: background-color 0.15s;
}

.map-pick-button:hover {
  background: var(--card-3);
}

.input-with-icon .map-pick-button svg {
  width: 20px;
  height: 20px;
}

.map-pick-button[data-map-field="destination"] {
  color: var(--gold);
}

body.map-picker-open {
  overflow: hidden;
}

.map-picker {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.map-picker-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: calc(var(--safe-top) + 0.6rem) 0.75rem 0.6rem;
  background: var(--bg-deep);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.map-picker-header h2 {
  color: var(--gold);
  font-size: 16px;
  font-weight: 700;
}

.map-picker-icon-button {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--card-3);
  color: var(--text);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  flex-shrink: 0;
}

.map-picker-icon-button.locate {
  margin-top: 0.5rem;
  color: var(--green);
}

.map-picker-icon-button[aria-busy="true"] {
  animation: locate-pulse 1s ease-in-out infinite;
}

@keyframes locate-pulse {
  50% {
    opacity: 0.45;
  }
}

.map-picker-map {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: #d9d6cf;
  cursor: grab;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

.map-picker-map:active {
  cursor: grabbing;
}

.map-picker-map:focus-visible {
  outline-offset: -3px;
}

.map-picker-tiles {
  position: absolute;
  inset: 0;
}

.map-picker-tile {
  position: absolute;
  top: 0;
  left: 0;
  width: 256px;
  height: 256px;
  max-width: none;
  pointer-events: none;
  -webkit-user-drag: none;
}

/* Le repère reste au centre : sa pointe désigne le point choisi. */
.map-picker-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 44px;
  margin: -44px 0 0 -22px;
  color: #0a8a5c;
  pointer-events: none;
  transition: transform 0.15s;
  filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.45));
}

.map-picker-pin[data-field="destination"] {
  color: #b9781c;
}

.map-picker-pin svg {
  width: 44px;
  height: 44px;
  stroke: #ffffff;
  stroke-width: 1;
  paint-order: stroke;
}

.map-picker-pin i {
  position: absolute;
  left: 50%;
  bottom: -3px;
  width: 8px;
  height: 4px;
  margin-left: -4px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
}

.map-picker-pin.lifted {
  transform: translateY(-10px);
}

.map-picker-controls {
  position: absolute;
  right: 0.75rem;
  bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.map-picker-attribution {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 1px 6px;
  border-top-right-radius: 6px;
  background: rgba(255, 255, 255, 0.8);
  color: #333333;
  font-size: 10px;
}

.map-picker-attribution a {
  text-decoration: underline;
}

.map-picker-sheet {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.85rem 1rem calc(var(--safe-bottom) + 0.85rem);
  background: var(--card);
  box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.55);
  z-index: 2;
}

.map-picker-hint {
  color: var(--muted);
  font-size: 12px;
}

.map-picker-address {
  min-height: 2.6em;
  font-size: 15px;
  font-weight: 600;
}

.map-picker-address[data-state="loading"] {
  color: var(--muted);
  font-weight: 500;
}

.map-picker-address[data-state="error"] {
  color: var(--error);
}

@media (min-width: 40rem) {
  .map-picker {
    inset: 1.5rem;
    max-width: 44rem;
    margin: 0 auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.6);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* Bascule plan / satellite */

.map-picker-layer {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0 0.9rem;
  border-radius: 999px;
  background: var(--card-3);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

.map-picker-layer svg {
  width: 18px;
  height: 18px;
  color: var(--green);
}

.map-picker-map[data-layer="satellite"] {
  background: #1b2420;
}

/* Adresse du site en pied de page */

.footer-site {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  margin-top: 0.25rem;
  padding: 0 0.75rem;
  color: var(--gold);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.footer-site svg {
  width: 17px;
  height: 17px;
}
