/* ============================================================
   Design system — thème sombre façon app mobile premium
   Marine profond + dégradé orange→corail + accent bleu
   ============================================================ */

:root {
    --bg: #0B1220;
    --surface: #141C30;
    --surface-2: #1E2A45;
    --ink: #070C16;
    --paper: #F8FAFC;
    --rose: #F5576C;
    --rose-dark: #E13F58;
    --gradient-primary: linear-gradient(135deg, #FF8A3D 0%, #F5576C 100%);
    --ocean: #3B82F6;
    --gold: #FBBF24;
    --sand: #1E2A45;
    --border: #232E4A;
    --text: #EAF0FB;
    --text-muted: #8B96AD;
    --radius: 20px;
    --radius-sm: 12px;
    --shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    --shadow-hover: 0 14px 34px rgba(0, 0, 0, 0.45);
    --font-display: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;
}

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

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.01em; margin: 0 0 0.4em; }
h1 { font-size: 1.9rem; }
h2 { font-size: 1.3rem; margin-top: 2rem; }

a { color: inherit; }

/* ---------- Icônes SVG (remplacent les emojis) ---------- */
.icon {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: -4px;
    flex-shrink: 0;
}
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 28px; height: 28px; }

h1 .icon { width: 24px; height: 24px; stroke-width: 1.6; margin-right: 0.2rem; }
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 1rem;
    background: var(--ink);
    color: var(--paper);
    position: sticky;
    top: 0;
    z-index: 950;
}

.navbar-brand {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    color: var(--paper);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
}
.navbar-brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.navbar-logo { width: 26px; height: 26px; border-radius: 7px; flex-shrink: 0; }

/* petit repère rond utilisé sur les cartes (départ/arrivée) à la place d'émojis */
.map-dot { display: block; width: 14px; height: 14px; border-radius: 50%; border: 2.5px solid white; box-shadow: 0 2px 6px rgba(23,24,28,0.35); }

.topbar-greeting { font-size: 0.85rem; opacity: 0.85; flex-shrink: 0; }

/* ---------- Navigation : barre du bas sur mobile, façon appli native ---------- */
.app-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 0.4rem 0.25rem calc(0.4rem + env(safe-area-inset-bottom));
}
.nav-item {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.66rem;
    font-weight: 500;
    padding: 0.35rem 0.1rem 0.25rem;
    transition: color 0.15s ease;
}
.nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: var(--gradient-primary);
    transform: translateX(-50%) scaleX(0);
    transition: transform 0.15s ease;
}
.nav-item.active { color: var(--paper); font-weight: 600; }
.nav-item.active::before { transform: translateX(-50%) scaleX(1); }
.nav-item .icon { width: 21px; height: 21px; stroke-width: 1.7; }
.nav-item:active { opacity: 0.6; }

/* ---------- Layout ---------- */
.container {
    max-width: 980px;
    margin: 0 auto;
    padding: 1.25rem 1rem calc(5.5rem + env(safe-area-inset-bottom));
    animation: fadeSlideIn 0.35s ease both;
}

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- Hero ---------- */
.hero {
    text-align: center;
    padding: 2.5rem 0.5rem;
    position: relative;
}
.hero-logo { width: 72px; height: 72px; border-radius: 18px; margin-bottom: 1.1rem; box-shadow: var(--shadow); border: 1px solid var(--border); }
.hero h1 {
    font-size: clamp(1.7rem, 6vw, 2.6rem);
    max-width: 640px;
    margin: 0 auto 0.6rem;
}
.hero p {
    color: var(--text-muted);
    max-width: 480px;
    margin: 0 auto 1.75rem;
    font-size: 1rem;
}
.hero .btn { margin: 0.3rem 0.3rem; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem 1.5rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease;
}
.btn:active { transform: scale(0.97); }

.btn-primary { background: var(--gradient-primary); color: white; }
.btn-primary:hover { box-shadow: 0 6px 18px rgba(245, 87, 108, 0.4); transform: translateY(-1px); filter: brightness(1.06); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--ocean); transform: translateY(-1px); }
.btn-secondary:active { transform: translateY(0); }

.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ---------- Forms ---------- */
.form-page { text-align: center; margin: 0 auto; }
.form-page form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    max-width: 440px;
    margin: 0 auto;
    text-align: left;
}

label { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.88rem; color: var(--text-muted); }

input, textarea, select {
    width: 100%;
    padding: 0.7rem 0.85rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface);
    font-size: 1rem;
    font-family: var(--font-body);
    color: var(--text);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input::placeholder, textarea::placeholder { color: var(--text-muted); }
input:focus, textarea:focus {
    outline: none;
    border-color: var(--ocean);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.22);
}

/* ---------- Page header ---------- */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-header > div { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cards-list { display: flex; flex-direction: column; gap: 1rem; }

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 4px solid var(--ocean);
    border-radius: var(--radius);
    padding: 1.1rem 1.35rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    align-items: flex-start;
    box-shadow: var(--shadow);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    animation: fadeSlideIn 0.4s ease both;
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.card.badge-en_cours-border { border-left-color: var(--rose); }

/* Tracé départ -> arrivée, en vertical façon reçu de course (évite tout débordement horizontal) */
.card .route-line {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    width: 100%;
}
.card .route-line span:not(.dots) {
    position: relative;
    padding-left: 1.4rem;
    line-height: 1.45;
    word-break: break-word;
}
.card .route-line span:not(.dots)::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.42em;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--ocean);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}
.card .route-line span:not(.dots):last-of-type::before {
    background: var(--rose);
    box-shadow: 0 0 0 3px rgba(245, 87, 108, 0.18);
}
.card .route-line .dots {
    width: 1px;
    height: 14px;
    margin: 3px 0 3px 4px;
    background-image: linear-gradient(to bottom, var(--text-muted) 0 3px, transparent 3px 6px);
    background-size: 1px 6px;
    border-top: none;
    flex: none;
}

.trajet-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.6rem;
    width: 100%;
    margin-top: 0.15rem;
}
.trajet-date {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ---------- Badges ---------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    font-family: var(--font-mono);
}

.badge-en_attente { background: #FEF3E2; color: #92400E; }
.badge-acceptee { background: #E3ECFB; color: #1E40AF; }
.badge-en_cours { background: #E1F3EA; color: #166534; animation: pulse 1.8s ease-in-out infinite; }
.badge-terminee { background: #EDF0F2; color: #334155; }
.badge-annulee { background: #FBE4E1; color: #991B1B; }

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(22, 101, 52, 0.25); }
    50% { box-shadow: 0 0 0 6px rgba(22, 101, 52, 0); }
}

/* ---------- Alerts / toasts ---------- */
.alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    font-size: 0.92rem;
}
.alert-error { background: #FBE4E1; color: #991B1B; }
.alert-success { background: #E1F3EA; color: #166534; }

#toast-container {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    z-index: 1000;
}
.toast {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--paper);
    padding: 0.8rem 1.2rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    box-shadow: var(--shadow-hover);
    animation: toastIn 0.25s ease both;
    max-width: 320px;
}
.toast.toast-error { background: var(--rose-dark); }
@keyframes toastIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -1rem; padding: 0 1rem; }
.table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 520px; }
.table th {
    text-align: left;
    padding: 0.6rem 0.8rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    border-bottom: 2px solid var(--border);
}
.table td { padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--border); }
.table tr { transition: background 0.15s ease; }
.table tbody tr:hover { background: rgba(59, 130, 246, 0.08); }

/* ---------- Stats ---------- */
.stats-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
    margin-bottom: 1.5rem;
}
.stat {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.9rem 1rem;
    box-shadow: var(--shadow);
}
.stat strong { display: block; font-family: var(--font-display); font-size: 1.6rem; color: var(--rose); }
.stat span { font-size: 0.82rem; color: var(--text-muted); }

.hint { font-size: 0.84rem; color: var(--text-muted); }

/* ---------- Wizard (réservation multi-étapes) ---------- */
.wizard-steps {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}
.wizard-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--text-muted);
}
.wizard-step .dot {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--border);
    color: white;
    display: flex; align-items: center; justify-content: center;
    font-weight: 600;
    transition: background 0.25s ease;
}
.wizard-step.active .dot { background: var(--rose); }
.wizard-step.done .dot { background: var(--ocean); }
.wizard-line { flex: 1; height: 2px; background: var(--border); }

.wizard-panel { animation: fadeSlideIn 0.3s ease both; }

/* ---------- Star rating ---------- */
.star-rating { display: flex; gap: 0.3rem; font-size: 2rem; direction: rtl; justify-content: flex-end; width: fit-content; }
.star-rating input { display: none; }
.star-rating label {
    cursor: pointer;
    color: var(--border);
    transition: color 0.15s ease, transform 0.1s ease;
}
.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label { color: var(--gold); }
.star-rating label:hover { transform: scale(1.15); }

/* ---------- Maps ---------- */
#map-suivi, #map-supervision, #map-choix, #map-domicile {
    width: 100%;
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    margin-bottom: 1rem;
}
.map-box--sm { height: 220px; }
.map-box--md { height: 300px; }
.map-box--lg { height: 360px; }
.marker-voiture { transition: transform 0.15s linear; }

.eta-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--paper);
    padding: 1rem 1.4rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    font-family: var(--font-mono);
}
.eta-banner strong { font-family: var(--font-display); font-size: 1.4rem; color: var(--rose); }

/* ---------- Empty states ---------- */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
}
/* ============================================================
   Mobile-first : tout ce qui précède cible le mobile par défaut.
   Les blocs ci-dessous ajustent pour petits mobiles puis desktop.
   ============================================================ */

/* Très petits écrans : on garde juste les numéros du wizard */
@media (max-width: 400px) {
    .wizard-step .label { display: none; }
    .wizard-step { gap: 0; }
    .wizard-steps { gap: 0.3rem; }
}

/* Desktop (≥768px) : la nav redevient une barre horizontale dans la topbar,
   les espacements et les cartes retrouvent plus d'air */
@media (min-width: 768px) {
    .topbar { padding: 1rem 1.75rem; }
    .navbar-brand { font-size: 1.15rem; }

    .app-nav {
        position: static;
        flex: 0 0 auto;
        justify-content: flex-end;
        gap: 0.3rem;
        background: transparent;
        border-top: none;
        padding: 0;
    }
    .nav-item {
        flex-direction: row;
        gap: 0.4rem;
        font-size: 0.88rem;
        padding: 0.4rem 0.7rem;
        color: rgba(253, 249, 244, 0.8);
    }
    .nav-item::before { display: none; }
    .nav-item.active,
    .nav-item:hover { color: var(--paper); }
    .nav-item.active { font-weight: 600; }
    .nav-item .icon { width: 17px; height: 17px; }

    .container { padding: 2.25rem 1.5rem 4rem; }
    .hero { padding: 4.5rem 1rem; }
    .hero p { margin-bottom: 2rem; }

    .stats-row { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1.25rem; }
    .stat { padding: 1.1rem 1.6rem; }

    .map-box--sm { height: 280px; }
    .map-box--md { height: 380px; }
    .map-box--lg { height: 520px; }

    .table-wrap { margin: 0; padding: 0; overflow-x: visible; }
}

/* ============================================================
   Page d'accueil — sections qui n'avaient encore aucun style
   ============================================================ */
.stats-row-centered { justify-content: center; }
.stats-row-centered .stat { text-align: center; }

.how-it-works, .features { padding: 2.5rem 0; text-align: center; }
.how-it-works h2, .features h2 {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 4vw, 1.85rem);
    margin-bottom: 2rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    text-align: left;
}
.step-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem 1.4rem 1.3rem;
    box-shadow: var(--shadow);
}
.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.9rem;
}
.step-card h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.step-card p { margin: 0; }

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    text-align: left;
}
.feature-card { display: flex; flex-direction: column; gap: 0.6rem; }
.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--sand);
    color: var(--rose-dark);
}
.feature-card h3 { font-size: 1rem; margin: 0; }
.feature-card p { margin: 0; }

.cta-final {
    text-align: center;
    padding: 3rem 1.25rem;
    margin: 2.5rem -1rem 0;
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius) var(--radius) 0 0;
}
.cta-final h2 { font-family: var(--font-display); font-size: clamp(1.3rem, 4.5vw, 1.7rem); margin-bottom: 1.4rem; }
.cta-final .btn-primary { background: var(--ink); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35); }
.cta-final .btn-primary:hover { filter: brightness(1.2); }

@media (min-width: 700px) {
    .steps-grid { grid-template-columns: repeat(3, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .cta-final { margin-left: 0; margin-right: 0; border-radius: var(--radius); }
}
@media (min-width: 980px) {
    .features-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Recherche d'adresse (réservation) ---------- */
.address-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0 0.75rem;
}
.address-search .icon { color: var(--text-muted); }
.address-search input {
    border: none;
    padding: 0.7rem 0;
    background: transparent;
}
.address-search input:focus { box-shadow: none; }

.hint-or { text-align: center; font-size: 0.8rem; margin: 0.6rem 0; }

.btn-locate {
    width: 100%;
    justify-content: center;
    margin-top: 0.6rem;
    color: var(--ocean);
    border-color: var(--ocean);
}
.btn-locate:hover { background: var(--ocean); color: white; }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Suggestions d'autocomplétion (adresse, passagers) ---------- */
.autocomplete-suggestions {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-hover);
    margin-top: -0.6rem;
    margin-bottom: 0.8rem;
    max-height: 220px;
    overflow-y: auto;
    position: relative;
    z-index: 20;
}
.autocomplete-item {
    padding: 0.65rem 0.85rem;
    font-size: 0.88rem;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
}
.autocomplete-item:last-child { border-bottom: none; }
.autocomplete-item:hover { background: var(--sand); }

/* ---------- Chat trajet (conducteur <-> adhérent) ---------- */
.chat-box {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-top: 1rem;
}
.chat-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
}
.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    max-height: 260px;
    overflow-y: auto;
}
.chat-empty { color: var(--text-muted); font-size: 0.85rem; text-align: center; padding: 0.5rem 0; }
.chat-bubble {
    max-width: 78%;
    padding: 0.55rem 0.85rem;
    border-radius: 14px;
    font-size: 0.88rem;
    line-height: 1.4;
    word-break: break-word;
}
.chat-bubble .chat-time { display: block; font-size: 0.68rem; opacity: 0.65; margin-top: 0.2rem; }
.chat-bubble--moi { align-self: flex-end; background: var(--rose); color: white; border-bottom-right-radius: 4px; }
.chat-bubble--autre { align-self: flex-start; background: var(--sand); color: var(--text); border-bottom-left-radius: 4px; }
.chat-form {
    display: flex;
    gap: 0.5rem;
    padding: 0.7rem;
    border-top: 1px solid var(--border);
}
.chat-form input {
    flex: 1;
    border-radius: 999px;
    padding: 0.55rem 1rem;
}
.chat-form button {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
}

/* ---------- Carte conducteur (pendant le suivi d'un trajet) ---------- */
.driver-card {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.1rem;
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
}
.driver-avatar {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.2rem;
}
.driver-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.15rem; }
.driver-info strong { font-size: 1rem; }
.driver-rating { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.82rem; color: var(--gold); font-weight: 600; }
.driver-rating.hint { color: var(--text-muted); font-weight: 500; }
.driver-vehicule { font-size: 0.82rem; color: var(--text-muted); }
.driver-call {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--ocean);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
.driver-call:hover { background: #1e5866; }

.vehicle-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.9rem 1.1rem;
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
}
.vehicle-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--surface-2);
    color: var(--ocean);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.vehicle-card strong { display: block; font-size: 0.94rem; }

/* ---------- Écran de confirmation (réservation) ---------- */
.confirm-page {
    text-align: center;
    padding-top: 1rem;
    position: relative;
    overflow: hidden;
}
.confirm-check {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: #E1F3EA;
    color: #16A34A;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    animation: popIn 0.45s cubic-bezier(.34,1.56,.64,1) both;
}
.confirm-check .icon { width: 34px; height: 34px; stroke-width: 2.4; }
@keyframes popIn { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.confetti-zone { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.confetti-piece {
    position: absolute;
    top: -12px;
    width: 8px;
    height: 14px;
    opacity: 0.9;
    animation: confettiFall 2.6s ease-in forwards;
}
.confetti-piece--0 { background: var(--rose); }
.confetti-piece--1 { background: var(--gold); }
.confetti-piece--2 { background: var(--ocean); }
.confetti-piece--3 { background: var(--paper); }
/* Distribue chaque confetti sur une position/délai/rotation différents, en CSS pur */
.confetti-zone span:nth-child(1) { left: 3%; animation-delay: 0.02s; transform: rotate(12deg); }
.confetti-zone span:nth-child(2) { left: 8%; animation-delay: 0.18s; transform: rotate(-20deg); }
.confetti-zone span:nth-child(3) { left: 14%; animation-delay: 0.05s; transform: rotate(40deg); }
.confetti-zone span:nth-child(4) { left: 19%; animation-delay: 0.3s; transform: rotate(-8deg); }
.confetti-zone span:nth-child(5) { left: 25%; animation-delay: 0.12s; transform: rotate(25deg); }
.confetti-zone span:nth-child(6) { left: 30%; animation-delay: 0.26s; transform: rotate(-35deg); }
.confetti-zone span:nth-child(7) { left: 36%; animation-delay: 0.08s; transform: rotate(15deg); }
.confetti-zone span:nth-child(8) { left: 41%; animation-delay: 0.34s; transform: rotate(-12deg); }
.confetti-zone span:nth-child(9) { left: 47%; animation-delay: 0.15s; transform: rotate(30deg); }
.confetti-zone span:nth-child(10) { left: 52%; animation-delay: 0.22s; transform: rotate(-25deg); }
.confetti-zone span:nth-child(11) { left: 58%; animation-delay: 0.04s; transform: rotate(18deg); }
.confetti-zone span:nth-child(12) { left: 63%; animation-delay: 0.29s; transform: rotate(-40deg); }
.confetti-zone span:nth-child(13) { left: 69%; animation-delay: 0.1s; transform: rotate(10deg); }
.confetti-zone span:nth-child(14) { left: 74%; animation-delay: 0.36s; transform: rotate(-15deg); }
.confetti-zone span:nth-child(15) { left: 80%; animation-delay: 0.07s; transform: rotate(35deg); }
.confetti-zone span:nth-child(16) { left: 85%; animation-delay: 0.24s; transform: rotate(-30deg); }
.confetti-zone span:nth-child(17) { left: 91%; animation-delay: 0.16s; transform: rotate(20deg); }
.confetti-zone span:nth-child(18) { left: 96%; animation-delay: 0.32s; transform: rotate(-10deg); }
.confetti-zone span:nth-child(19) { left: 11%; animation-delay: 0.4s; transform: rotate(22deg); }
.confetti-zone span:nth-child(20) { left: 44%; animation-delay: 0.45s; transform: rotate(-18deg); }
.confetti-zone span:nth-child(21) { left: 66%; animation-delay: 0.42s; transform: rotate(28deg); }
.confetti-zone span:nth-child(22) { left: 22%; animation-delay: 0.5s; transform: rotate(-22deg); }
.confetti-zone span:nth-child(23) { left: 77%; animation-delay: 0.48s; transform: rotate(16deg); }
.confetti-zone span:nth-child(24) { left: 55%; animation-delay: 0.55s; transform: rotate(-28deg); }

@keyframes confettiFall {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(340px) rotate(340deg); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .confetti-piece, .confirm-check { animation: none; }
}

/* ---------- Récap de réservation (façon fiche récapitulative) ---------- */
.review-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.2rem 1.1rem;
    margin-bottom: 1rem;
}
.review-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
}
.review-row:last-child { border-bottom: none; }
.review-icon {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    background: var(--surface-2);
    color: var(--ocean);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.review-text { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; text-align: left; }
.review-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.review-text strong { font-size: 0.94rem; word-break: break-word; font-weight: 600; }

.route-estimate-row {
    display: flex;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 0.5rem;
    margin: 1rem 0;
    text-align: center;
}
.route-estimate-row > div { flex: 1; }
.route-estimate-row span { display: block; font-size: 0.7rem; color: var(--text-muted); margin-bottom: 0.3rem; }
.route-estimate-row strong { font-family: var(--font-display); font-size: 1.05rem; color: var(--text); }
