/* ============================================================
   VTC PREMIUM — STYLE.CSS
   Mobile-First · Premium Design
   ============================================================ */

/* ---- RESET & BASE ---- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Palette navy profonde — dégradé #0A2540 → #002F6B */
    --primary: #0A2540;
    --primary-dark: #061826;
    --primary-light: #EAF0F7;
    --primary-rgb: 10,37,64;
    --on-primary: #FFFFFF;   /* texte lisible sur la couleur primaire */
    --grad-primary: linear-gradient(135deg, #0A2540 0%, #002F6B 100%);
    --grad-primary-hover: linear-gradient(135deg, #061826 0%, #0A2540 100%);
    --accent: #C8A24B;            /* or discret, faible saturation */
    --success: #0E9E6E;
    --error: #E23D3D;
    --text-main: #0F1D2E;
    --text-secondary: #5B6B7D;
    --text-muted: #9AA7B4;
    --bg: #F5F7FA;
    --bg-card: #FFFFFF;
    --border: #E4E9EF;
    --border-focus: #5B7FA6;
    --shadow-sm: 0 1px 3px rgba(var(--primary-rgb),.05), 0 1px 2px rgba(var(--primary-rgb),.04);
    --shadow-md: 0 6px 20px rgba(var(--primary-rgb),.07), 0 2px 6px rgba(var(--primary-rgb),.04);
    --shadow-lg: 0 16px 44px rgba(var(--primary-rgb),.10), 0 4px 12px rgba(var(--primary-rgb),.05);
    /* Lignes plus droites — rayons resserrés */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-xl: 10px;
    --transition: all .28s cubic-bezier(.22,.61,.36,1);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* [F2] UX-046 (25/09/2026) — height:auto : une image qui porte width/height (réserve de place, aucun
   décalage au chargement) garde ses proportions quand max-width la réduit — sans lui, elle s'écrase. */
img { max-width: 100%; height: auto; display: block; }

button {
    font-family: var(--font);
    cursor: pointer;
    border: none;
    background: none;
}

input, select, textarea {
    font-family: var(--font);
    /* E1 (UX-028) — 16 px minimum : sous cette taille, iOS zoome la page au focus. */
    font-size: 1rem;
}

/* ---- HEADER ---- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    height: 64px;   /* 60 px avant le 04/09 : suit le logo passé à 48 px (8 px de marge haut/bas) */
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    width: 42px;
    height: 42px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

/* Logo téléversé par le tenant (Réglages → « Votre logo ») : hauteur fixe,
   largeur libre (mot-symbole accepté), jamais déformé.
   04/09 : 40 → 48 px (retour de Hamza : trop petit, surtout un logo carré sur mobile) ;
   le PNG servi fait ≤ 400 px (logo_lib.php), net même en écran 2x. */
.logo-img {
    height: 48px;
    width: auto;
    max-width: min(180px, 42vw);   /* mot-symbole : jamais plus large qu'avant sur un petit écran */
    object-fit: contain;
    display: block;
    flex-shrink: 0;
    border-radius: 6px;
}

/* ---- ICÔNES SVG À TRAITS (épurées) ---- */
.vic {
    display: inline-block;
    vertical-align: -0.15em;
    flex-shrink: 0;
    overflow: visible;
}
/* Icône suivie de texte inline (badges, boutons, liens) */
.trust-badge .vic,
.trip-type-btn .vic,
.btn-whatsapp .vic,
.review-source .vic,
.now-text .vic { margin-right: .4em; }

.logo-text {
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: -.3px;
}

.logo-text strong {
    font-weight: 800;
    color: var(--primary);
}

.phone-link {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: .9rem;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    background: var(--primary-light);
    color: var(--primary);
    transition: var(--transition);
}

.phone-link:hover {
    background: var(--primary);
    color: var(--on-primary);
}

/* ---- EN-TÊTE · « ESPACE CLIENT » (P3-UX-HDR-COMPTE-001, 09/10/2026) ----
   À droite de l'en-tête, après la pastille d'appel : un avatar rond à la couleur de la flotte
   (silhouette, ou l'initiale du prénom une fois connecté) et le libellé. Pilule à contour fin,
   fond blanc — un repère, pas un appel à l'action : la seule action pleine de l'en-tête reste
   l'appel, et la page n'a qu'un bouton principal par étape. 44 px de haut au minimum (pouce). */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.logo { min-width: 0; }                        /* le nom peut céder la place aux commandes… */
.logo-text {                                   /* …et se tronque plutôt que de passer sur deux lignes */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hdr-compte {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 4px 14px 4px 4px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--bg-card);
    color: var(--text-main);
    font-size: .9rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    transition: var(--transition);
}
.hdr-compte:hover {
    background: var(--primary-light);
    border-color: transparent;
    color: var(--primary);
}
.hdr-compte:focus-visible {
    outline: 2px solid var(--border-focus);
    outline-offset: 2px;
}
.hdr-compte-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--on-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
    font-weight: 700;
    flex-shrink: 0;
}
.hdr-compte-avatar .vic { font-size: 18px; }
/* Connecté : l'initiale remplace la silhouette, et un point vert signale la session ouverte. */
.hdr-compte--connecte .hdr-compte-avatar { position: relative; }
.hdr-compte--connecte .hdr-compte-avatar::after {
    content: '';
    position: absolute;
    right: -1px;
    bottom: -1px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--success);
    border: 2px solid var(--bg-card);
}

@media (max-width: 560px) {
    /* Téléphone : l'avatar seul (le nom accessible reste dans aria-label). */
    .hdr-compte { padding: 2px; border-color: transparent; background: transparent; }
    .hdr-compte-label { display: none; }
    .hdr-compte-avatar { width: 40px; height: 40px; }
    .hdr-compte-avatar .vic { font-size: 20px; }
}
@media (max-width: 360px) {
    /* Petit téléphone (Galaxy, 360 px) : la pastille d'appel devient un rond (le numéro est dans
       aria-label) — logo, appel et espace client tiennent alors quel que soit le nom de la flotte.
       Au-dessus (iPhone 375/390…), le numéro reste lisible : c'est le nom qui se tronque. */
    .phone-link { padding: 0; width: 40px; height: 40px; justify-content: center; border-radius: 50%; }
    .phone-link .phone-num { display: none; }
    .phone-link .vic { font-size: 18px; }
}

/* ---- BOOKING CONTAINER ---- */
/* MODIF: Styles hero supprimés — section supprimée du HTML */
.booking-container {
    max-width: 680px;
    /* MODIF: Marge positive — hero supprimé, pas d'overlap nécessaire */
    margin: 28px auto 60px;
    padding: 0 16px;
    position: relative;
    z-index: 10;
}

/* ---- PROGRESS BAR ---- */
.progress-bar-wrapper {
    margin-bottom: 24px;
}

.progress-track {
    height: 3px;
    background: var(--border);
    border-radius: 99px;
    margin-bottom: 14px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--grad-primary);
    border-radius: 99px;
    width: 0%;
    transition: width .5s cubic-bezier(.22,.61,.36,1);
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    gap: 4px;
}

.step-dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.dot-inner {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    position: relative;
}

.step-dot.active .dot-inner {
    border-color: var(--primary);
    background: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.step-dot.completed .dot-inner {
    border-color: var(--success);
    background: var(--success);
}

.step-dot.completed .dot-inner::after {
    content: '✓';
    color: white;
    font-size: .6rem;
    font-weight: 800;
}

.dot-label {
    font-size: .65rem;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
    white-space: nowrap;
}

.step-dot.active .dot-label { color: var(--primary); }
.step-dot.completed .dot-label { color: var(--success); }

/* ---- BOOKING STEPS ---- */
.booking-step {
    display: none;
    animation: fadeSlideIn .3s cubic-bezier(.4,0,.2,1) both;
    /* MINEUR 3 — Offset pour que le header fixe ne masque pas le contenu */
    scroll-margin-top: 80px;
}

.booking-step.active {
    display: block;
}

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

/* MODIF: Micro-animation bounce quand un champ devient valide */
@keyframes inputBounce {
    0%, 100% { transform: scaleX(1); }
    35%       { transform: scaleX(1.018); }
    70%       { transform: scaleX(0.996); }
}

/* ---- STEP CARD ---- */
.step-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 28px 24px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0,0,0,.04);
}

.step-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 26px;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--grad-primary);
    color: var(--on-primary);
    font-weight: 800;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb),.35);
}

.step-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -.3px;
}

.step-subtitle {
    font-size: .82rem;
    color: var(--text-muted);
    font-weight: 400;
}

.back-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: white;
    color: var(--text-secondary);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.back-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

/* ---- ADDRESS FIELDS ---- */
.address-fields {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.address-field-group {
    position: relative;
}

.field-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .78rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: .8px;
    margin-bottom: 6px;
}

.field-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* E1 (UX-027) — le libellé du départ et le bouton « Me localiser » sur une ligne, le bouton
   HORS du <label> (un bouton dans un label n'est pas du HTML valide). */
.field-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 6px;
}
.field-label-row .field-label { margin-bottom: 0; }

.dot-depart { background: var(--primary); }
.dot-arrivee { background: var(--accent); }

.autocomplete-wrapper {
    position: relative;
}

.address-input {
    width: 100%;
    padding: 15px 44px 15px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-main);
    background: white;
    transition: var(--transition);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.address-input::placeholder { color: var(--text-muted); font-weight: 400; }

.address-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb),.12);
}

.address-input.has-value {
    border-color: var(--success);
    background: #F0FDF4;
}

.input-clear {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    /* E1 (UX-031) — un <button> désormais : focalisable, et une cible de 44 px (la croix
       dessinée reste petite ; c'est la zone qui grandit). */
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: none;
    border-radius: 50%;
    display: none;
    transition: var(--transition);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
.input-clear .vic { width: 1em; height: 1em; stroke-width: 2.5; }

.input-clear:hover { color: var(--error); }
.input-clear:focus-visible { outline: 2px solid var(--primary); outline-offset: -6px; }
.input-clear.visible { display: flex; align-items: center; justify-content: center; }

/* AUTOCOMPLETE LIST */
.autocomplete-list {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    list-style: none;
    overflow: hidden;
    display: none;
    max-height: 260px;
    overflow-y: auto;
}

.autocomplete-list.open { display: block; }

.autocomplete-item {
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    transition: var(--transition);
    border-bottom: 1px solid var(--border);
}

.autocomplete-item:last-child { border-bottom: none; }

.autocomplete-item:hover,
.autocomplete-item.focused {
    background: var(--primary-light);
}

/* E1 (UX-005) — une ligne d'information (service indisponible, aucun résultat) n'est pas
   une adresse à choisir : ni survol, ni curseur de lien. */
.autocomplete-item--info,
.autocomplete-item--info:hover { cursor: default; background: transparent; }
.autocomplete-item--info .autocomplete-item-icon { color: var(--text-muted); }

.autocomplete-item-icon {
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.autocomplete-item-text {
    flex: 1;
}

.autocomplete-item-main {
    font-weight: 600;
    font-size: .9rem;
    color: var(--text-main);
    line-height: 1.3;
}

.autocomplete-item-sub {
    font-size: .78rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.autocomplete-loading {
    padding: 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: .85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* P2-GEO-GOOGLE-001 (lot 1, 05/10/2026) — la liste Google : mêmes lignes que la BAN, plus
   la DISTANCE depuis le départ (ou la ville de la flotte), la ville seule marquée
   « précisez l'adresse » (décision Q3 : proposée, jamais retenue), et le pied
   « Powered by Google », une ligne qui n'est PAS un .autocomplete-item (le clavier
   ne s'y arrête pas) et qui n'est jamais masquée (décision Q5). Le même pied sert au
   panneau « Me localiser » (.geo-pied). Sans Google, rien de tout cela n'est rendu. */
.autocomplete-item-dist {
    flex-shrink: 0;
    align-self: center;
    font-size: .72rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg);
    border-radius: 99px;
    padding: 2px 8px;
    white-space: nowrap;
}
.autocomplete-item--imprecis .autocomplete-item-sub em { font-style: normal; color: var(--primary); }
.autocomplete-pied,
.geo-pied {
    display: flex;
    justify-content: flex-end;
    padding: 6px 12px;
    border-top: 1px solid var(--border);
    background: var(--bg);
    cursor: default;
}
.oscg-powered { display: inline-flex; align-items: center; line-height: 1; }
.oscg-powered img { display: block; height: 16px; width: auto; }
.oscg-powered-texte { font-size: .68rem; color: var(--text-muted); letter-spacing: .2px; }
.oscg-powered-texte strong { font-weight: 700; color: var(--text-secondary); }

/* SWAP BUTTON */
.swap-btn-wrapper {
    display: flex;
    justify-content: flex-end;
    padding: 6px 0;
    position: relative;
    z-index: 1;
}

.swap-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: white;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.swap-btn:hover {
    background: var(--primary);
    color: var(--on-primary);
    border-color: var(--primary);
    transform: rotate(180deg);
}

/* ---- MAP ZONE ---- */
.map-zone {
    margin-top: 20px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    display: none;
    animation: fadeSlideIn .35s ease both;
}

.map-zone.visible { display: block; }

#map {
    height: 280px;
    width: 100%;
}

/* P2-GEO-GOOGLE-001 (lot 1) — la carte Google vit dans un <div> enfant de #map (ou de #mapRecap :
   une seule instance, déplacée) qui prend toute la place de son hôte. */
.oscg-carte { width: 100%; height: 100%; }
.recap-map .oscg-carte { min-height: 160px; }

/* E1 (UX-007) — « Calcul de l'itinéraire précis… » sous la barre distance / durée / prix,
   pendant qu'OSRM répond (8 s au plus) : l'estimation est déjà là, le bouton déjà actif. */
.route-calcul {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 6px 16px 10px;
    font-size: .85rem;
    color: var(--text-secondary);
    background: white;
}

.route-info-bar {
    background: white;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 0;
    border-top: 1px solid var(--border);
}

.route-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.route-info-icon { font-size: 1.1rem; }

.route-info-label {
    display: block;
    font-size: .7rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .6px;
}

.route-info-value {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
}

.route-divider {
    width: 1px;
    height: 36px;
    background: var(--border);
    margin: 0 20px;
}

/* ---- ROUTE CHIP ---- */
.route-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-left: 3px solid var(--primary);
    border-radius: var(--radius-sm);
    padding: 9px 16px;
    margin-bottom: 20px;
    font-size: .82rem;
    overflow: hidden;
}

.chip-depart, .chip-arrivee {
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 40%;
}

.chip-arrow { color: var(--text-muted); flex-shrink: 0; }

/* ---- VEHICLE GRID ---- */
.vehicle-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 20px;
}

.vehicle-card {
    background: white;
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 16px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-align: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.vehicle-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.vehicle-card.selected {
    border-color: var(--primary);
    background: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb),.12);
}

.vehicle-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent);
    color: white;
    font-size: .62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: 2px 8px;
    border-radius: 99px;
}

.vehicle-icon { font-size: 2.6rem; margin-bottom: 8px; }

.vehicle-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 3px;
}

.vehicle-desc {
    font-size: .75rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.vehicle-specs {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 10px;
    margin-bottom: 12px;
}

.spec-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: .78rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.vehicle-price {
    border-top: 1px solid var(--border);
    padding-top: 10px;
    transition: border-color .22s;
}

.vehicle-card.selected .vehicle-price {
    border-top-color: rgba(var(--primary-rgb),.25);
}

.price-from {
    display: block;
    font-size: .68rem;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.price-value {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
}

.vehicle-select-indicator {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--primary);
    font-size: .75rem;
    font-weight: 700;
    margin-top: 8px;
}

.vehicle-card.selected .vehicle-select-indicator { display: flex; }

.check-icon {
    width: 18px;
    height: 18px;
    background: var(--primary);
    color: var(--on-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .65rem;
}
.check-icon .vic { width: 11px; height: 11px; stroke-width: 3; }   /* E1 : coche dessinée, plus « ✓ » */

/* ---- PRICE SUMMARY ---- */
.price-summary-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 20px;
}

.price-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .88rem;
    padding: 6px 0;
    color: var(--text-secondary);
}

.price-summary-divider {
    height: 1px;
    background: var(--border);
    margin: 8px 0;
}

.price-total-row {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-main);
    gap: 0;
}

.price-total-row .price-total-value {
    margin-left: auto;
}

.price-total-value {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
}

/* ---- TIME TOGGLE ---- */
.time-toggle {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    background: var(--bg);
    padding: 4px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.time-tab {
    flex: 1;
    padding: 12px;
    border-radius: var(--radius-sm);
    font-size: .9rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.time-tab.active {
    background: white;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.tab-icon { font-size: 1rem; }

/* ---- NOW CARD ---- */
.now-card {
    background: linear-gradient(135deg, var(--primary-light), #F1F5FA);
    border: 2px solid var(--primary);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.now-icon { font-size: 2rem; }

.now-text strong {
    display: block;
    font-size: .95rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.now-text p {
    font-size: .82rem;
    color: var(--text-secondary);
}

/* ---- DATE TIME FIELDS ---- */
.datetime-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field-input {
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 1rem;   /* E1 (UX-028) : .95rem = 15,2 px → zoom iOS au focus */
    font-weight: 500;
    color: var(--text-main);
    background: white;
    transition: var(--transition);
    outline: none;
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
}

.field-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb),.12);
}

/* ---- OPTIONS GRID ---- */
.options-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
}

.option-card {
    background: white;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.option-icon { font-size: 1.5rem; flex-shrink: 0; }

.option-info { flex: 1; }

.option-name {
    font-size: .95rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 3px;
}

.option-limit {
    font-size: .78rem;
    color: var(--text-muted);
}

/* COUNTER */
.counter {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.counter-btn {
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    background: white;
    transition: var(--transition);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.counter-btn:hover { background: var(--primary-light); }
.counter-btn:active { background: var(--primary); color: var(--on-primary); }
.counter-btn:disabled { color: var(--border); cursor: not-allowed; }

.counter-value {
    min-width: 40px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-main);
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    padding: 0 4px;
    line-height: 40px;
}

/* ---- CONTACT FORM ---- */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field-error {
    font-size: .75rem;
    color: var(--error);
    font-weight: 500;
    min-height: 16px;
    display: block;
}

.field-input.error {
    border-color: var(--error);
    background: #FEF2F2;
}

.field-input.valid {
    border-color: var(--success);
    background: #F0FDF4;
    /* MODIF: Bounce visuel à la validation réussie */
    animation: inputBounce .35s cubic-bezier(.4,0,.2,1);
}

/* ---- RECAP ---- */
.recap-map-wrapper {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    margin-bottom: 20px;
}

.recap-map {
    height: 160px;
    width: 100%;
}

.recap-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.recap-item {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
}

.recap-item:not(.no-edit):hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.recap-icon { font-size: 1.2rem; flex-shrink: 0; }

.recap-content { flex: 1; min-width: 0; }

.recap-label {
    display: block;
    font-size: .7rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .6px;
    margin-bottom: 2px;
}

.recap-value {
    display: block;
    font-size: .92rem;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recap-edit-btn {
    font-size: .85rem;
    padding: 6px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    transition: var(--transition);
    flex-shrink: 0;
}

.recap-edit-btn:hover {
    background: white;
    color: var(--primary);
}

/* ---- PRICE FINAL ---- */
.price-final-card {
    background: var(--grad-primary);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    margin-bottom: 24px;
    color: var(--on-primary);
}

.price-final-label {
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: .75;
    margin-bottom: 6px;
}

.price-final-value {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -.5px;
    margin-bottom: 6px;
}

.price-final-note {
    font-size: .75rem;
    opacity: .65;
}

/* ---- BUTTONS ---- */
.step-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 24px;
}

.btn-primary {
    width: 100%;
    padding: 17px 24px;
    background: var(--grad-primary);
    color: var(--on-primary);
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
    box-shadow: 0 4px 14px rgba(var(--primary-rgb),.35);
    letter-spacing: -.2px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.btn-primary:hover:not(:disabled) {
    background: var(--grad-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb),.45);
}

.btn-primary:active:not(:disabled) { transform: translateY(0); }

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

.btn-arrow { font-size: 1.1rem; transition: transform .2s; }

/* E2 (UX-008) — la zone d'erreur de l'envoi, sous le bouton « Confirmer » : persistante, lisible,
   avec ses actions (Réessayer, Appeler) à 44 px. Rouge sur fond clair : contraste AA. */
.submit-error {
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #FCA5A5;
    border-left: 4px solid var(--error);
    border-radius: var(--radius-md);
    background: #FEF2F2;
    color: #991B1B;
    font-size: .9rem;
    line-height: 1.5;
    text-align: left;
}
.submit-error strong { color: #7F1D1D; }
.submit-error-retry,
.submit-error-tel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin: 6px 8px 0 0;
    padding: 0 16px;
    border-radius: var(--radius-md);
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.submit-error-retry { background: var(--error); color: #fff; border: 0; }
.btn-whatsapp:disabled { opacity: .5; cursor: not-allowed; }   /* E2 : pendant l'envoi */
.submit-error-tel { background: #fff; color: #991B1B; border: 1.5px solid #FCA5A5; }

/* E1 (UX-005) — la raison écrite sous un bouton désactivé (« Choisissez une adresse dans la
   liste. ») : lisible (≥ .85rem, encre secondaire), centrée, jamais en rouge — ce n'est pas
   une erreur, c'est la prochaine chose à faire. */
.step-reason {
    margin: -2px 0 0;
    text-align: center;
    font-size: .85rem;
    line-height: 1.4;
    color: var(--text-secondary);
}
.btn-primary:hover:not(:disabled) .btn-arrow { transform: translateX(4px); }

.btn-confirm {
    width: 100%;
    padding: 19px 24px;
    background: linear-gradient(135deg, #059669, var(--success));
    color: white;
    font-size: 1.05rem;
    font-weight: 800;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
    box-shadow: 0 4px 14px rgba(16,185,129,.35);
    letter-spacing: -.2px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.btn-confirm:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16,185,129,.45);
}

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

.submit-note {
    text-align: center;
    font-size: .78rem;
    color: var(--text-muted);
}

/* LOADER */
.loader-ring {
    display: inline-block;
    width: 22px;
    height: 22px;
    border: 3px solid rgba(255,255,255,.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin .7s linear infinite;
}

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

/* ---- CONFIRMATION ---- */
.confirmation-card {
    text-align: center;
    padding: 40px 28px;
}

.confirmation-animation {
    margin-bottom: 24px;
}

.check-circle {
    width: 90px;
    height: 90px;
    margin: 0 auto;
}

.check-svg {
    width: 90px;
    height: 90px;
}

.check-circle-bg {
    stroke: var(--success);
    stroke-width: 2;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: stroke .5s cubic-bezier(.65,0,.45,1) .1s forwards;
}

.check-mark {
    stroke: var(--success);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke .4s cubic-bezier(.65,0,.45,1) .65s forwards;
}

@keyframes stroke {
    to { stroke-dashoffset: 0; }
}

.confirmation-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 12px;
    letter-spacing: -.3px;
}

.confirmation-msg {
    font-size: .95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.confirmation-survey-note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    text-align: left;
    background: #FFFBEB;
    border: 1px solid #FDE68A;
    border-radius: var(--radius-md);
    padding: 12px 14px;
    margin-bottom: 24px;
    font-size: .82rem;
    line-height: 1.55;
    color: #92400E;
}

.confirmation-survey-icon {
    flex-shrink: 0;
    font-size: 1rem;
    line-height: 1.4;
}

.confirmation-details {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: left;
    margin-bottom: 24px;
    font-size: .85rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.btn-home { margin-top: 0; }

/* ---- LEAFLET OVERRIDES ---- */
.leaflet-control-attribution {
    font-size: .6rem !important;
}

/* MODIF: Styles footer supprimés — footer supprimé du HTML (tunnel de conversion) */

/* ---- SPINNER for autocomplete ---- */
.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin .6s linear infinite;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ---- Mobile : bouton Suivant sticky en bas ---- */
/* MODIF: CTA toujours visible sans scroller sur mobile */
@media (max-width: 599px) {
    .step-actions {
        position: sticky;
        bottom: 0;
        background: var(--bg-card);
        padding: 14px 24px 20px;
        margin: 16px -24px -28px;
        border-top: 1px solid var(--border);
        z-index: 50;
    }
    .route-info-bar {
        padding: 10px 10px;
    }
    .route-divider {
        margin: 0 8px;
    }
    .route-info-item {
        gap: 6px;
    }
    .route-info-value {
        font-size: .9rem;
    }
    .route-info-label {
        font-size: .62rem;
    }
}

/* ---- Tablet 600px+ ---- */
@media (min-width: 600px) {
    /* MODIF: margin-top positif — plus de hero overlap */
    .step-card { padding: 36px 32px; }
    .booking-container { margin-top: 28px; }

    .vehicle-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    #map { height: 340px; }

    .options-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

/* ---- Desktop 900px+ ---- */
@media (min-width: 900px) {
    /* MODIF: margin-top positif — plus de hero overlap */
    .booking-container {
        margin-top: 32px;
        padding: 0 24px;
    }

    .step-card { padding: 40px 40px; }
    #map { height: 380px; }

    .address-fields {
        gap: 0;
    }

    /* 04/09 : sur grand écran l'en-tête a la place — logo 56 px dans 72 px (48 px / 64 px en mobile). */
    .header-inner { height: 72px; }
    .logo-img { height: 56px; max-width: 220px; }
}

/* ---- 4K 2000px+ ---- */
@media (min-width: 2000px) {
    .booking-container { max-width: 860px; }
    /* MODIF: hero-title supprimé — hero supprimé */
    .step-card { padding: 48px 56px; }
    .address-input { font-size: 1.1rem; }
}

/* ---- Mobile small 360px ---- */
@media (max-width: 400px) {
    .header-inner { padding: 0 14px; }
    .step-card { padding: 22px 16px; }
    .vehicle-grid { grid-template-columns: 1fr; gap: 10px; }
    .vehicle-card { padding: 16px 14px; }
    .vehicle-icon { font-size: 2rem; }
    .form-row { grid-template-columns: 1fr; }
    .datetime-fields { grid-template-columns: 1fr; }
    .progress-steps { gap: 2px; }
    .dot-label { font-size: .55rem; }
    .options-grid { grid-template-columns: 1fr; }
}

/* ---- Touch devices ---- */
@media (hover: none) {
    .vehicle-card:hover { transform: none; }
    .btn-primary:hover:not(:disabled) { transform: none; }
}

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

/* ---- DESTINATION SHORTCUTS ---- */
.shortcuts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 8px;
    margin-top: 6px;
}

.shortcut-btn {
    padding: 10px 8px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    background: white;
    font-size: .75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    line-height: 1.2;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.shortcut-icon { font-size: 1.1rem; }
.shortcut-name { display: block; }

@media (max-width: 400px) {
    .shortcuts-grid { grid-template-columns: repeat(3, 1fr); }
}

/* P4-RESERVATION-002 (15/09/2026) — depuis que le propriétaire de la flotte
   choisit lui-même ses libellés (jusqu'à 18 caractères), la grille ci-dessus
   ne peut plus supposer des noms courts. Trois bornes, et seulement elles :
     · minmax(min(80px, 100%), …) : sous 80 px de large, la colonne suit
       l'écran au lieu de le dépasser ;
     · min-width: 0 sur le bouton : sans lui, un élément de grille refuse de
       descendre sous la taille de son contenu (c'est ce mécanisme qui avait
       déporté la barre d'onglets de l'espace client sur iPhone 14 le 14/09) ;
     · overflow-wrap: anywhere : un nom d'un seul tenant (« Centrehospitalier »)
       se coupe au lieu de déborder du bouton.
   Le libellé est limité à DEUX lignes : au-delà, les boutons d'une même ligne
   se décalent en hauteur et la grille part de travers. */
.shortcuts-grid { grid-template-columns: repeat(auto-fit, minmax(min(80px, 100%), 1fr)); }
.shortcut-btn { min-width: 0; }
.shortcut-name { max-width: 100%; overflow-wrap: anywhere;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }

.shortcut-btn:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
}

.shortcut-btn.active {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
    box-shadow: 0 0 0 2px rgba(var(--primary-rgb),.15);
}

/* P4-RESERVATION-005 (15/09/2026) — UN RACCOURCI PEUT MAINTENANT ÊTRE LE DÉPART.
   Deux marques distinctes, et non une seule repeinte : choisir la gare au départ
   puis la MAIF à l'arrivée doit laisser les DEUX visibles. `.active` reste la
   marque de l'arrivée (posée par app.min.js, couleur de la flotte) ; celle du
   départ est VERTE — troisième couleur assumée. Ni --primary (c'est déjà la
   marque de l'arrivée) ni --accent (c'est la pastille du champ arrivée) :
   réutiliser l'une des deux ferait dire à la couleur le contraire de ce
   qu'elle dit ailleurs. Le vert se lit « point de départ » sans légende.
   Les deux peuvent coexister sur des boutons différents, jamais sur le même :
   une course dont le départ et l'arrivée sont identiques n'existe pas. */
.shortcut-btn.active-depart {
    border-color: #16A34A;
    background: #F0FDF4;
    color: #15803D;
    box-shadow: 0 0 0 2px rgba(22,163,74,.15);
}

/* Le suffixe « · pour le départ » / « · pour l'arrivée » de l'intitulé de
   section. `text-transform: none` : la section est en capitales, pas lui —
   une phrase en capitales se lit deux fois moins vite, et celle-ci est une
   indication, pas un titre. Vide tant que le JS n'a rien posé : rien ne
   bouge à l'écran si le fichier n'est pas chargé. */
.dest-cible {
    text-transform: none;
    letter-spacing: 0;
    font-weight: 600;
    color: var(--text-muted);
}

/* P4-UX-RACCOURCIS-002 (05/10/2026) — le bloc des raccourcis SUIT le champ à
   remplir (raccourcis-champ.js le déplace sous le départ ou sous l'arrivée).
   Quand il vient d'arriver, un fondu court le signale à l'œil qui suit le
   formulaire de haut en bas ; rien ne clignote, rien ne saute. Respecte
   prefers-reduced-motion : sans animation, le bloc est simplement là. */
.dest-bouge { animation: destBouge .24s ease-out both; }
@keyframes destBouge {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .dest-bouge { animation: none; }
}

/* ---- TRIP TYPE BAR ---- */
.section-label {
    font-size: .7rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .7px;
    margin-top: 14px;
    margin-bottom: 6px;
}

.trip-type-bar {
    display: flex;
    gap: 6px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.trip-type-btn {
    padding: 6px 13px;
    border: 1.5px solid var(--border);
    border-radius: 99px;
    background: white;
    font-size: .74rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition);
    white-space: nowrap;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.trip-type-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.trip-type-btn.active {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--on-primary);
}

/* ---- TRUST BADGES ---- */
.trust-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    padding-top: 2px;
}

.trust-badge {
    font-size: .72rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ---- BILLING SECTION ---- */
.billing-toggle {
    margin-top: 14px;
    padding: 13px 16px;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.billing-toggle:has(input:checked) {
    border-color: var(--primary);
    background: var(--primary-light);
}

.billing-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .88rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
}

.billing-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
    flex-shrink: 0;
}

.billing-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
    padding: 16px;
    background: var(--primary-light);
    border: 1.5px solid var(--border-focus);
    border-radius: var(--radius-md);
    animation: fadeSlideIn .2s ease both;
}

/* ============================================================
   JS-ONLY (invisible si JS désactivé)
   ============================================================ */
.js-only { display: none !important; }

/* ============================================================
   WIDGET "MON TRAJET"
   ============================================================ */
.my-route-widget {
    background: var(--bg-card);
    border: 2px solid var(--primary);
    border-radius: var(--radius-xl);
    padding: 20px;
    margin-bottom: 24px;
    animation: fadeSlideIn .3s cubic-bezier(.4,0,.2,1) both;
    overflow: hidden;
}

.widget-body { /* états gérés via display:none/block */ }

.widget-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.widget-icon { font-size: 1.15rem; }

.widget-title {
    font-size: .82rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: .6px;
}

.widget-email-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.widget-hint {
    font-size: .73rem;
    color: var(--text-muted);
    text-align: center;
}

.widget-message {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: .82rem;
    margin-top: 8px;
    line-height: 1.5;
}

.widget-message-info {
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

.widget-message-warn {
    background: #FFFBEB;
    border: 1px solid var(--accent);
    color: var(--text-main);
}

.widget-message-warn p { margin-bottom: 0; font-size: .82rem; }

.widget-conflict-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

/* ---- Profil chargé (état 3) ---- */
.widget-profile-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--on-primary);
    font-weight: 700;
    font-size: .85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: -.5px;
}

.widget-greeting-block { flex: 1; min-width: 0; }

.widget-greeting {
    display: block;
    font-size: .95rem;
    font-weight: 700;
    color: var(--text-main);
}

.widget-company {
    display: block;
    font-size: .73rem;
    color: var(--text-muted);
}

.widget-close-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: white;
    color: var(--text-muted);
    font-size: .9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.widget-close-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

/* ============================================================
   P4-UX-TRAJET-REDUIT-001 (15/09/2026) — L'ÉTAT 3 REPLIÉ EN UNE LIGNE
   ------------------------------------------------------------
   Replié, ce bloc n'est plus une carte : c'est une PROPOSITION, et une
   proposition tient sur une ligne. Déplié, il redevient exactement la carte
   d'avant — aucune des règles ci-dessus n'a été touchée.
   ============================================================ */

/* La ligne entière est la commande. Un bouton, donc : remis à plat (les
   navigateurs lui donnent un fond, une bordure, une police et un centrage
   qui n'ont rien à voir avec le reste). */
.widget-resume {
    flex: 1; min-width: 0;
    display: flex; align-items: center; gap: 12px;
    padding: 0; border: 0; background: none;
    font: inherit; color: inherit; text-align: left; cursor: pointer;
}
/* L'anneau de focus doit se voir : sans bordure ni fond, un bouton qui se
   résume à du texte est invisible au clavier. */
.widget-resume:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: var(--radius-md); }

/* « Réserver comme la dernière fois ? » — la question, à côté du nom. Elle
   prend l'espace restant et se replie sous le nom quand il n'y en a plus. */
.widget-resume-accroche {
    flex: 0 1 auto; min-width: 0;
    font-size: .85rem; font-weight: 600; color: var(--primary);
}
/* Dépliée, la question a reçu sa réponse : elle ne sert plus qu'à occuper
   une place que le trajet utilise mieux. */
.widget-resume[aria-expanded="true"] .widget-resume-accroche { display: none; }

/* Le chevron, dessiné en CSS : deux traits, aucune requête, aucune police
   d'icônes. Il tourne d'un demi-tour à l'ouverture — c'est lui qui dit que
   la ligne est dépliable, avant même qu'on l'ait touchée. */
.widget-resume-chev {
    flex: 0 0 auto; width: 9px; height: 9px; margin-left: auto;
    border-right: 2px solid var(--text-muted); border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform .2s ease;
}
.widget-resume[aria-expanded="true"] .widget-resume-chev { transform: rotate(-135deg) translate(-2px, -2px); }
@media (prefers-reduced-motion: reduce) { .widget-resume-chev { transition: none; } }

.widget-details[hidden] { display: none; }

/* Replié, le cadre se resserre : garder 20 px de marge intérieure autour
   d'une seule ligne referait une carte là où on voulait un onglet. */
.my-route-widget.is-replie { padding: 10px 12px; border-width: 1.5px; }
.my-route-widget.is-replie .widget-profile-header { margin-bottom: 0; }
.my-route-widget.is-replie .profile-avatar { width: 32px; height: 32px; font-size: .78rem; }

/* Sous 480 px, « Réserver comme la dernière fois ? » ne tient plus à côté du
   nom : elle passe dessous, à l'aplomb du texte (avatar 32 + écart 12), comme
   un sous-titre. DEUX rangées, pas trois — d'où `order` : dans le HTML la
   question précède le chevron (elle se lit avant, c'est l'ordre juste pour un
   lecteur d'écran), mais à l'écran le chevron doit rester en bout de PREMIÈRE
   ligne. Sans cette inversion, il tombait seul sur une troisième ligne. */
@media (max-width: 480px) {
    .widget-resume { flex-wrap: wrap; row-gap: 2px; }
    .widget-greeting-block { flex: 1 1 auto; }
    .widget-resume-chev { order: 2; }
    .widget-resume-accroche { order: 3; flex: 1 0 100%; margin-left: 44px; }
}

/* ---- Route preview ---- */
.route-preview {
    display: flex;
    gap: 12px;
    align-items: stretch;
    padding: 12px 14px;
    background: var(--bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    margin-bottom: 12px;
}

.route-preview-dots {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    padding-top: 3px;
}

.route-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.route-dot-depart  { background: var(--primary); }
.route-dot-arrivee { background: var(--accent); }

.route-dot-line {
    width: 2px;
    flex: 1;
    min-height: 12px;
    background: var(--border);
    margin: 4px auto;
}

.route-preview-labels {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
}

.route-preview-label {
    font-size: .82rem;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---- Meta (véhicule + prix) ---- */
.widget-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .8rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 16px;
}

.widget-meta-sep { color: var(--border); }

/* ---- Time chips ---- */
.widget-time-section { margin-bottom: 14px; }

.widget-time-label {
    font-size: .7rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .6px;
    margin-bottom: 8px;
}

.time-chips-row {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}

.time-chip {
    padding: 6px 16px;
    border: 1px solid var(--border);
    border-radius: 99px;
    background: white;
    font-size: .82rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition);
    cursor: pointer;
    white-space: nowrap;
    min-width: 70px;
    text-align: center;
}

.time-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.time-chip.active {
    background: var(--primary);
    color: var(--on-primary);
    border-color: var(--primary);
}

.time-chip-autre { color: var(--text-muted); font-style: italic; }

.time-chip-autre.active {
    background: var(--bg);
    color: var(--primary);
    border-color: var(--primary);
}

/* ---- Custom date/time ---- */
.widget-custom-time {
    margin-bottom: 14px;
    animation: fadeSlideIn .2s ease both;
}

/* ---- Bouton Réserver ---- */
.widget-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}

/* ---- Lien Modifier ---- */
.widget-modify-link { text-align: center; margin-top: 10px; }

.widget-text-link {
    font-size: .76rem;
    color: var(--text-muted);
    text-decoration: underline;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: var(--font);
    transition: var(--transition);
}

.widget-text-link:hover { color: var(--primary); }

/* ---- Boutons petits (banners, conflits) ---- */
.btn-sm {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: .8rem;
    font-weight: 700;
    transition: var(--transition);
    cursor: pointer;
    border: 1.5px solid transparent;
    font-family: var(--font);
    line-height: 1;
}

.btn-sm-primary {
    background: var(--primary);
    color: var(--on-primary);
    border-color: var(--primary);
}

.btn-sm-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }

.btn-sm-outline {
    background: white;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-sm-outline:hover { background: var(--primary-light); }

/* ---- Bannière de sauvegarde post-confirmation ---- */
.save-profile-banner {
    background: #FFF9EC;
    border: 1px solid var(--accent);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 16px;
    animation: fadeSlideIn .25s ease both;
}

.save-profile-banner p {
    font-size: .88rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 12px;
    line-height: 1.4;
}

.save-profile-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ============================================================
   TOOLTIP TRIGGER
   ============================================================ */
.tooltip-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    font-size: .7rem;
    font-weight: 700;
    margin-left: 6px;
    flex-shrink: 0;
    transition: var(--transition);
    vertical-align: middle;
    line-height: 1;
}

.tooltip-trigger:hover,
.tooltip-trigger[aria-expanded="true"] {
    background: var(--primary);
    color: var(--on-primary);
}
/* E1 (UX-013) — la pastille reste petite, la zone de toucher fait 44 px. */
.tooltip-trigger { position: relative; }
.tooltip-trigger::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 44px;
    height: 44px;
    transform: translate(-50%, -50%);
}
.tooltip-trigger .vic { width: 1.15em; height: 1.15em; }

.tooltip-trigger--small {
    width: 15px;
    height: 15px;
    font-size: .6rem;
    margin-left: 8px;
}

/* ============================================================
   TOOLTIP BUBBLE
   ============================================================ */
.vtc-tooltip {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    font-size: .8rem;
    color: var(--text-secondary);
    line-height: 1.55;
    box-shadow: var(--shadow-md);
    z-index: 200;
    animation: fadeSlideIn .18s ease both;
}

.vtc-tooltip::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 18px;
    width: 8px;
    height: 8px;
    background: var(--bg-card);
    border-left: 1px solid var(--border);
    border-top: 1px solid var(--border);
    transform: rotate(45deg);
}

/* ============================================================
   MICRO-COPY
   ============================================================ */
.field-hint {
    display: block;
    font-size: .73rem;
    color: var(--text-muted);
    margin-top: 4px;
    line-height: 1.4;
}

.field-hint--block {
    display: flex;
    align-items: flex-start;
    gap: 5px;
    margin-top: 10px;
    padding: 8px 12px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.field-hint-icon {
    color: var(--primary);
    font-size: .8rem;
    flex-shrink: 0;
    margin-top: 1px;
    display: inline-flex;
}
.field-hint-icon .vic { width: 1.1em; height: 1.1em; }

/* ============================================================
   INDICATEUR DE PROGRESSION
   ============================================================ */
.progress-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .75rem;
    color: var(--text-secondary);
    background: var(--bg);
    border-radius: 99px;
    padding: 5px 14px;
    margin-top: 10px;
    border: 1px solid var(--border);
    animation: fadeSlideIn .2s ease both;
}

.progress-hint::before {
    content: '→';
    color: var(--primary);
    font-size: .8rem;
    flex-shrink: 0;
}

/* ============================================================
   ONBOARDING SPOTLIGHT
   ============================================================ */
#onboardingOverlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .45);
    z-index: 500;
    pointer-events: none;
}

#onboardingBubble {
    position: fixed;  /* enfant direct du body — ne dépend plus du stacking-context de l'overlay */
    z-index: 502;     /* au-dessus de l'overlay (500) et du booking-container (10) */
    width: 300px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    box-shadow: var(--shadow-lg);
    pointer-events: all;
    animation: fadeSlideIn .25s ease both;
}

.ob-highlight {
    position: relative;
    z-index: 501;
    border-radius: var(--radius-md);
    box-shadow: 0 0 0 4px var(--primary), 0 0 0 8px rgba(var(--primary-rgb),.18);
}

.ob-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.ob-title {
    font-size: .88rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.3;
}

.ob-dismiss {
    font-size: .72rem;
    color: var(--text-muted);
    text-decoration: underline;
    flex-shrink: 0;
    margin-top: 2px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font);
}

.ob-dismiss:hover { color: var(--text-secondary); }

.ob-body {
    font-size: .82rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 14px;
}

.ob-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ob-dots {
    display: flex;
    gap: 5px;
    align-items: center;
}

.ob-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--border);
    transition: var(--transition);
}

.ob-dot--active {
    background: var(--primary);
    width: 16px;
    border-radius: 3px;
}

.ob-next {
    padding: 7px 16px;
    background: var(--primary);
    color: var(--on-primary);
    border-radius: var(--radius-sm);
    font-size: .82rem;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-family: var(--font);
}

.ob-next:hover { background: var(--primary-dark, #061826); }

/* ---- Responsive ---- */
@media (max-width: 400px) {
    #onboardingBubble { width: calc(100vw - 24px); left: 12px !important; }
    .vtc-tooltip {
        position: fixed;
        left: 12px !important;
        right: 12px !important;
        top: auto !important;
        bottom: 80px;
    }
}

/* ---- Responsive widget ---- */
@media (max-width: 400px) {
    .my-route-widget { padding: 16px; }
    .time-chip { min-width: 62px; padding: 6px 10px; font-size: .78rem; }
}

/* ============================================================
   AMÉLIORATION 5 — BANDEAU REPRISE DE RÉSERVATION
   ============================================================ */
.resume-banner {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--radius-md);
    padding: 10px 12px;
    margin-bottom: 14px;
    animation: fadeSlideIn .3s ease both;
}

/* Mobile-first : 2 lignes
   L1 : icône + texte + ×
   L2 : boutons pleine largeur
   ≥ 560 px : tout sur 1 ligne       */
.resume-banner-inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 8px;
}

.resume-banner-icon {
    order: 0;
    font-size: 1rem;
    flex-shrink: 0;
}

.resume-banner-text {
    order: 1;
    flex: 1;
    min-width: 0;
}

.resume-banner-text strong {
    display: block;
    font-size: .8rem;
    font-weight: 700;
    color: #166534;
    line-height: 1.3;
    white-space: nowrap;
}

.resume-banner-route {
    display: block;
    font-size: .72rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.resume-banner-close {
    order: 2;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid #bbf7d0;
    background: white;
    color: #166534;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--transition);
    font-family: var(--font);
    line-height: 1;
}

.resume-banner-close:hover { background: #dcfce7; }

/* Boutons : ligne 2 sur mobile, étirés */
.resume-banner-actions {
    order: 3;
    display: flex;
    gap: 6px;
    width: 100%;
    padding-left: calc(1rem + 8px); /* aligne avec le texte */
    margin-top: 2px;
}

.resume-banner-actions .btn-sm {
    flex: 1;
    text-align: center;
    justify-content: center;
}

/* ≥ 560 px : une seule ligne */
@media (min-width: 560px) {
    .resume-banner-inner { flex-wrap: nowrap; gap: 8px; }
    .resume-banner-actions {
        order: 2;
        width: auto;
        padding-left: 0;
        margin-top: 0;
        flex-shrink: 0;
    }
    .resume-banner-actions .btn-sm { flex: none; }
    .resume-banner-close { order: 3; }
}

/* ============================================================
   AMÉLIORATION 1 — AVIS GOOGLE
   ============================================================ */
.google-reviews-section {
    margin-bottom: 20px;
}

.google-reviews-title {
    font-size: .7rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .7px;
    margin-bottom: 12px;
    text-align: center;
}

.google-reviews-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
    scrollbar-width: none;
    /* dépasse légèrement le padding du step-card pour l'effet scroll natif */
}

.google-reviews-scroll::-webkit-scrollbar { display: none; }

.review-card {
    flex: 0 0 252px;
    scroll-snap-align: start;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

@media (min-width: 600px) {
    .google-reviews-scroll {
        flex-wrap: wrap;
        overflow-x: visible;
    }
    .review-card { flex: 1 1 calc(50% - 6px); }
}

@media (min-width: 860px) {
    .review-card { flex: 1 1 calc(33.333% - 8px); }
}

.review-stars {
    color: #F9AB00;
    font-size: 1rem;
    letter-spacing: 1px;
    line-height: 1;
}

.review-text {
    font-size: .8rem;
    color: var(--text-secondary);
    line-height: 1.55;
    flex: 1;
}

.review-meta {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    font-size: .7rem;
}

.review-author {
    font-weight: 700;
    color: var(--text-main);
}

.review-date {
    color: var(--text-muted);
}

.review-source {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    margin-left: auto;
}

.google-g {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #4285F4;
    color: white;
    font-size: .58rem;
    font-weight: 800;
    flex-shrink: 0;
}

/* ============================================================
   AMÉLIORATION 2 — BOUTON WHATSAPP & SÉPARATEUR
   ============================================================ */
.step-actions-separator {
    text-align: center;
    font-size: .72rem;
    color: var(--text-muted);
    position: relative;
    padding: 0 32px;
    line-height: 1;
}

.step-actions-separator::before,
.step-actions-separator::after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 22px);
    height: 1px;
    background: var(--border);
}

.step-actions-separator::before { left: 0; }
.step-actions-separator::after { right: 0; }

.btn-whatsapp {
    width: 100%;
    padding: 15px 24px;
    background: white;
    color: #25D366;
    border: 2px solid #25D366;
    font-size: .95rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
    letter-spacing: -.1px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
    font-family: var(--font);
    min-height: 52px;
}

.btn-whatsapp:hover {
    background: #f0fdf4;
    border-color: #128C7E;
    color: #128C7E;
}

.btn-whatsapp:active { transform: translateY(0); }

/* ============================================================
   AMÉLIORATION 3 — CRÉNEAUX RAPIDES (step 3)
   ============================================================ */
.quick-slots-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.quick-slot-chip {
    /* Hérite de .time-chip — pas de surcharge nécessaire */
}

/* ============================================================
   AMÉLIORATION 4 — BADGES TOUT COMPRIS
   ============================================================ */
.inclusive-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-top: 10px;
}

.inclusive-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 99px;
    padding: 4px 10px;
    font-size: .7rem;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
}

.inclusive-check {
    color: var(--success);
    font-weight: 800;
    font-size: .8rem;
    display: inline-flex;
}
.inclusive-check .vic { width: 1em; height: 1em; stroke-width: 3; }   /* E1 : coche SVG */

/* E1 — libellé visuellement masqué, lu par les lecteurs d'écran (code promo). */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---- iOS safe-area (iPhone X+, Dynamic Island) ---- */
.site-header {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
}
.step-actions,
.booking-main {
    padding-bottom: max(0px, env(safe-area-inset-bottom));
}
