/* =========================================
   FICHIER : CSS/qr_app.css
   DESIGN : MOBILE CHAUFFEUR SEV
========================================= */

@import url('tokens.css');

:root {
    --sev-green: var(--sev-accent);
    --sev-green-dark: var(--sev-accent-hover);
    --sev-green-soft: var(--sev-accent-soft);
    --sev-mobile-max: 100%;
    --sev-touch-min: 44px;
    --primary: var(--sev-accent);
    --text-main: #1a1a1a;
    --radius-md: 12px;
    --sev-app-height: 100dvh;
}

html {
    height: auto;
    min-height: 100%;
    min-height: -webkit-fill-available;
}

body.is-mobile {
    background-color: #f8f9fa !important;
    color: #1a1a1a !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    height: auto;
    min-height: var(--sev-app-height);
    min-height: -webkit-fill-available;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    -webkit-text-size-adjust: 100%;
}

/* --- Conteneur plein écran (téléphones + tablettes PWA) --- */
.mobile-app-shell {
    width: 100%;
    max-width: 100%;
    margin: 0;
    height: auto;
    min-height: var(--sev-app-height);
    min-height: -webkit-fill-available;
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
}

.app-hero-header--no-back h2 {
    padding: 8px 16px 0;
}

/* Barre fixe bas : Retour + Enregistrer (même hauteur) */
.driver-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    z-index: 2000;
    display: flex;
    gap: 10px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    padding-left: calc(14px + env(safe-area-inset-left, 0px));
    padding-right: calc(14px + env(safe-area-inset-right, 0px));
    background: rgba(248, 249, 250, 0.96);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
    backdrop-filter: blur(8px);
}

.driver-bottom-bar--single .driver-bottom-btn {
    flex: 1;
}

.driver-bottom-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    padding: 12px 14px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

.driver-bottom-btn:active {
    transform: scale(0.98);
}

.driver-bottom-btn--back {
    background: #475569;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(71, 85, 105, 0.35);
}

.driver-bottom-btn--save {
    background: linear-gradient(135deg, var(--sev-green) 0%, var(--sev-green-dark) 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(46, 125, 50, 0.4);
}

.driver-bottom-btn--save.btn-success {
    background: var(--sev-green-dark) !important;
}

.loader--dark {
    border-color: rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    width: 18px;
    height: 18px;
}

/* --- EN-TÊTE PRO --- */
.app-hero-header {
    background: linear-gradient(135deg, var(--sev-green) 0%, var(--sev-green-dark) 100%);
    padding: 16px 20px 24px;
    text-align: center;
    border-radius: 0 0 28px 28px;
    margin-bottom: -24px;
    box-shadow: 0 10px 20px rgba(72, 164, 64, 0.15);
    position: relative;
}

.hero-back-link {
    position: absolute;
    top: 14px;
    left: 16px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: var(--sev-touch-min);
    padding: 0 10px;
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-back-link:active {
    background: rgba(0, 0, 0, 0.2);
}

.hero-help-badge {
    position: absolute;
    top: calc(12px + env(safe-area-inset-top, 0px));
    right: calc(14px + env(safe-area-inset-right, 0px));
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    padding: 6px 12px 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--sev-green-dark);
    text-decoration: none;
    font-weight: 800;
    font-size: 0.82rem;
    line-height: 1;
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.hero-help-badge:active {
    background: #f0fdf4;
    transform: scale(0.98);
}

.hero-help-badge__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--sev-green-dark);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 900;
    line-height: 1;
}

.hero-help-badge__label {
    white-space: nowrap;
}

.app-hero-header--arrets {
    padding-bottom: 16px;
    margin-bottom: -16px;
}

.app-hero-header--arrets h2 {
    padding: 8px 88px 0 16px;
}

/* Navigation chauffeur : Comptages ↔ Arrêts */
.driver-nav {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 16px;
    padding: 4px;
    background: rgba(0, 0, 0, 0.12);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.driver-nav-item {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: var(--sev-touch-min);
    padding: 8px 12px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 0.92rem;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.88);
    transition: background 0.2s, color 0.2s;
}

.driver-nav-item.is-active {
    background: #ffffff;
    color: var(--sev-green-dark);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.driver-nav-item:not(.is-active):active {
    background: rgba(255, 255, 255, 0.12);
}

.app-hero-header h2 {
    color: #ffffff !important;
    font-size: 1.65em !important;
    font-weight: 800 !important;
    margin: 0 0 5px 0 !important;
    padding: 10px 52px 0;
    line-height: 1.2;
}

/* On stylise le paragraphe sous le titre pour qu'il ressemble à un badge */
.app-hero-header p {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2); /* Fond blanc translucide */
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 1.1em !important; /* Plus grand */
    font-weight: 500;
    margin-top: 12px !important;
    border: 0px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

/* On met les valeurs (Umlauf et Date) en très gras */
.app-hero-header p strong {
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 0.5px;
}

/* --- BLOC CAPACITÉ --- */
.mobile-capacity-block {
    background: var(--sev-green-soft);
    margin: 0 16px 20px;
    padding: 14px 16px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid #c8e6c9;
    position: relative;
    z-index: 20;
}

.mobile-capacity-block input[type="number"] {
    width: 72px;
    min-height: var(--sev-touch-min);
    flex-shrink: 0;
}

.mobile-capacity-block label {
    font-weight: 800;
    color: #2e7d32;
    font-size: 1.1em;
    flex: 1;
}

/* --- CARTES COURSES --- */
body.is-mobile .styled-table {
    width: 100%;
    border-radius: 20px;
    border-collapse: separate;
    border-spacing: 0 16px;
}

body.is-mobile .styled-table tbody {
    display: block;
    padding: 8px 12px 0;
}

body.is-mobile .styled-table tr {
    display: block;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0;
    border-radius: 0 !important;
}

body.is-mobile .mobile-card.carte-course {
    display: block;
    background: #ffffff;
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

/* --- GROUPE LIGNE + AVIS (À gauche) --- */
.line-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    min-width: 100px;
}

.badge-ligne {
    background-color: #f1f3f5 !important;
    color: #1a1a1a !important;
    padding: 8px 14px;
    border-radius: 10px;
    font-weight: 900;
    font-size: 2.4em; /* Plus grand */
    border: 1px solid #dee2e6;
}

/* --- HORAIRE (Dégagé en haut à droite) --- */
.course-depart {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5em;
    font-weight: 900;
    color: #000000;
}

/* --- DESCRIPTION COURSE (Plus grande) --- */
.course-info {
    flex: 1;
    margin-top: 10px;
}

.course-route {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-left: 3px solid #dee2e6;
    margin-left: 10px;
    padding-left: 15px;
}

.stop-name {
    font-size: 1.3em !important; /* Plus grand pour lisibilité */
    font-weight: 800 !important;
    color: #212529 !important;
    line-height: 1.2;
}

/* --- ZONE COMPTAGE (Plus proportionnée) --- */
.input-cell {
    margin-left: 10px;
}

input[type="number"] {
    width: 60px; /* Réduit pour ne pas être trop massif */
    height: 60px;
    font-size: 1.6em;
    font-weight: 900;
    text-align: center;
    border: 2px solid #e9ecef !important;
    border-radius: 12px;
    background-color: #f8f9fa !important;
}

/* --- BADGES AVIS (Sous le numéro de ligne) --- */
.badge-avis-ok, .badge-avis-alerte {
    font-size: 0.8em !important;
    padding: 5px 8px !important;
    margin: 0 !important;
    width: auto;
    white-space: nowrap;
}

.badge-consigne-pill,
button.badge-consigne-pill {
    display: inline-block;
    margin: 4px 0 0;
    padding: 5px 8px;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    background: #fffbeb;
    color: #b45309;
    font-size: 0.78em;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.badge-consigne-pill:active {
    background: #fef3c7;
}

.avis-cell--stacked .badge-consigne-pill {
    align-self: flex-start;
}

/* --- BOUTON RETOUR (Avec flèche) --- */
.btn-retour-fleche {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #d32f2f;
    font-weight: 800;
    text-decoration: none;
    font-size: 1.3em;
    margin: 30px 0;
}

.btn-retour-fleche::before {
    content: '←'; /* Flèche de retour */
    font-size: 1.4em;
}

/* --- ÉTAT BLOQUÉ --- */
.row-blocked {
    background-color: #f1f3f5 !important;
    opacity: 0.6;
}

/* --- DESIGN CARTE MOBILE --- */
.mobile-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 4px;
}

.mobile-card-line-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.mobile-line-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

body.is-mobile .mobile-card .badge-ligne {
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--sev-green-dark);
    background: var(--sev-green-soft);
    border: 1px solid #c8e6c9;
    padding: 6px 12px;
    border-radius: 10px;
}

.badge-course {
    font-size: 0.82rem;
    background: #e9ecef;
    color: #495057;
    padding: 5px 10px;
    border-radius: 8px;
    font-weight: 800;
}

.avis-cell--stacked {
    margin-top: 2px;
}

.mobile-card-route {
    margin: 16px 0;
    border-left: 3px solid #dee2e6;
    padding-left: 14px;
    margin-left: 6px;
}

.link-arrets-course {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--sev-green-dark);
    text-decoration: none;
    min-height: var(--sev-touch-min);
    padding: 4px 0;
}

.link-arrets-course:active {
    opacity: 0.75;
}

.mobile-card-input-area {
    width: fit-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: 0;
    background: #f8f9fa;
    padding: 10px 14px;
    border-radius: 14px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 14px;
    border: 1px solid #e9ecef;
    margin-top: 14px;
    position: relative;
}

.mobile-card-input-area > span {
    font-weight: 700;
    color: #495057;
    font-size: 1rem;
    white-space: nowrap;
}

.mobile-card-footer {
    margin-top: 14px;
    text-align: left;
    border-top: 1px solid #e2e8f0;
    padding-top: 12px;
}

.pax-cap-gate {
    position: absolute;
    inset: 0;
    z-index: 2;
    cursor: pointer;
    width: 100%;
    min-height: var(--sev-touch-min);
    margin: 0;
    border: 0;
    padding: 0;
    background: rgba(0, 0, 0, 0.01);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.pax-locked-status {
    font-weight: 800;
    font-size: 1.2rem;
    color: #64748b;
    min-width: 104px;
    text-align: center;
    padding: 8px 12px;
    border-radius: 12px;
    background: #fff;
    border: 2px solid #e2e8f0;
}

.input-passagers-actif {
    width: 64px;
    min-height: var(--sev-touch-min);
    text-align: center;
    font-size: 1.2em;
    font-weight: bold;
    border-radius: 10px;
    border: 2px solid var(--sev-green-dark);
    color: var(--sev-green-dark);
    background: white;
}

/* L'heure de départ : GROS et LISIBLE */
.vrai-horaire {
    font-size: 2.2em !important;
    font-weight: 900;
    color: #333;
    line-height: 1;
}

/* Le trajet : Plus grand pour ne pas s'abîmer les yeux */
.trajet-info {
    font-size: 1.2em;
    line-height: 1.4;
    color: #444;
    margin: 15px 0;
}
.trajet-info strong {
    color: #000;
    text-transform: uppercase;
}

/* Le Badge Avis (On lui redonne son look de bouton) */
.badge-avis-alerte {
    display: inline-block;
    background-color: #ff9800; /* Orange vif */
    color: white !important;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.9em;
    font-weight: bold;
    text-decoration: none !important;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Bloc Passagers */
.input-comptage-mini {
    width: 104px !important;
    min-width: 104px !important;
    min-height: var(--sev-touch-min) !important;
    height: auto !important;
    font-size: 1.5em !important;
    text-align: center;
    border-radius: 12px;
    border: 2px solid var(--sev-green-dark) !important;
    font-weight: 800;
    color: var(--sev-green-dark);
    background: #fff;
    flex-shrink: 0;
}

.p {
    color: white;
    font-size: 1.2em;
    font-weight: 400;
}


/* Animation de pulsation douce */
@keyframes highlight-pulse {
    0% { border-color: #dee2e6; box-shadow: 0 4px 12px rgba(0,0,0,0.08); background-color: #ffffff; }
    50% { border-color: #48A440; box-shadow: 0 0 20px rgba(72,164,64,0.4); background-color: #f1f9f1; transform: scale(1.02); }
    100% { border-color: #dee2e6; box-shadow: 0 4px 12px rgba(0,0,0,0.08); background-color: #ffffff; }
}

/* La classe qui sera appliquée à la course actuelle */
.course-en-cours {
    animation: highlight-pulse 3s infinite ease-in-out !important;
    z-index: 100;
    position: relative;
    border: 2px solid #48A440 !important;
}

/* Conteneur des badges sous le titre */
.header-badges {
    margin-top: 15px;
    display: flex;
    flex-direction: column; /* On empile verticalement */
    align-items: center;
    gap: 5px; /* Petit espace entre les deux */
}

/* Style commun pour l'Umlauf et la Date */
.badge-umlauf, .badge-date {
    background: rgba(255, 255, 255, 0.2); /* Fond translucide */
    padding: 6px 20px;
    border-radius: 20px;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* On booste l'Umlauf */
.badge-umlauf {
    font-size: 1.2em;
}

/* On booste la date */
.badge-date {
    font-size: 1.1em;
    background: rgba(0, 0, 0, 0.1); /* Légèrement plus sombre pour différencier */
}

/* Mise en avant des chiffres */
.badge-umlauf strong, .badge-date strong {
    font-weight: 900;
    margin-left: 5px;
}

/* Style global des champs de saisie */
.field input, 
.field select {
    width: 100% !important;
    max-width: 100%;
    padding: 16px; /* Plus d'espace pour le confort */
    border: 2px solid #edf2f7; /* Bordure très claire par défaut */
    border-radius: 16px !important; /* Angles bien arrondis style iPhone */
    background-color: #f8fafc; /* Fond légèrement grisé */
    font-size: 1.1rem;
    font-weight: 500;
    color: #1a202c;
    transition: all 0.3s ease; /* Animation fluide quand on clique */
    outline: none;
    appearance: none; /* Supprime le style par défaut des navigateurs */
    box-sizing: border-box;
}

/* Effet au clic (Focus) */
.field input:focus, 
.field select:focus {
    background-color: #ffffff;
    border-color: #48A440; /* Ta couleur verte SEV */
    box-shadow: 0 0 0 4px rgba(72, 164, 64, 0.1); /* Halo vert léger */
    transform: translateY(-1px); /* Petit effet de soulèvement */
}

/* Style spécifique pour le champ Date (pour harmoniser sur iPhone) */
input[type="date"] {
    position: relative;
    min-height: 58px;
}

/* Le bouton d'envoi (Submit) version moderne */
.submit {
    width: 100%;
    background: linear-gradient(135deg, #48A440 0%, #36822e 100%);
    color: white;
    border: none;
    padding: 18px;
    border-radius: 16px;
    font-size: 1.2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 20px rgba(72, 164, 64, 0.3);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 10px;
}

.submit:active {
    transform: scale(0.97); /* Effet de pression quand on clique */
    box-shadow: 0 4px 10px rgba(72, 164, 64, 0.2);
}

/* =========================================
   BOÎTE D'AIDE (GUIDE)
   ========================================= */
.guide-box {
    margin-bottom: 25px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.guide-toggle {
    width: 100%;
    border: none;
    background: #f1f5f9;
    color: #475569;
    padding: 14px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.2s;
}

.guide-toggle:hover { background: #e2e8f0; }

.guide-content {
    padding: 15px;
    display: none; /* Caché par défaut */
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
}

.guide-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.guide-num {
    width: 26px;
    height: 26px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.guide-text {
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--text-main);
}
/* --- AJOUT À LA FIN DU BLOC <style> --- */
        .alert-timeout {
            display: flex; align-items: center; background: #fff5f5; border: 1px solid #feb2b2;
            border-left: 5px solid #f56565; padding: 15px; margin-bottom: 20px; border-radius: 12px;
        }
        .alert-icon { font-size: 20px; margin-right: 12px; }
        .alert-message { color: #c53030; font-size: 0.9rem; line-height: 1.4; }
        .alert-message strong { display: block; font-size: 1rem; }
        
/* Conteneur pour fixer le bouton en haut à droite */
.ivu-container {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 9999; /* Toujours au-dessus de tout */
}

.btn-ivu-mobile {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.6); /* Fond sombre pour bien voir le logo */
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 15px;
    border-radius: 50px; /* Forme pilule très moderne */
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    backdrop-filter: blur(5px);
    cursor: pointer;
}

.ivu-icon-small {
    height: 20px;
    width: auto;
}

/* On cache le bouton si on est sur un grand écran (PC) pour ne pas polluer l'admin */
@media (min-width: 1024px) {
    .ivu-container { display: none; }
}
/* Sticky save — full width + safe-area iPhone */
body.is-mobile .sticky-save-area {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    z-index: 2000;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    padding-left: calc(16px + env(safe-area-inset-left, 0px));
    padding-right: calc(16px + env(safe-area-inset-right, 0px));
    background: linear-gradient(to top, rgba(248, 249, 250, 0.98) 70%, rgba(248, 249, 250, 0));
    box-sizing: border-box;
}

body.is-mobile .submit-dynamic {
    width: 100%;
    background: linear-gradient(135deg, var(--sev-green) 0%, var(--sev-green-dark) 100%);
    color: white;
    border: none;
    padding: 14px 20px;
    min-height: var(--sev-touch-min);
    border-radius: 14px;
    font-weight: 800;
    font-size: 1.05rem;
    box-shadow: 0 8px 24px rgba(46, 125, 50, 0.35);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
}

body.is-mobile .submit-dynamic:active {
    transform: scale(0.98);
}

.submit-dynamic {
    background: #48A440;
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.submit-dynamic:active {
    transform: scale(0.95);
}

/* Petit loader (spinner) */
.loader {
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top: 3px solid #fff;
    width: 20px; height: 20px;
    animation: spin 1s linear infinite;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* État "Succès" */
.btn-success { background-color: #2e7d32 !important; }
/* Zone fixe en bas à gauche */
.sticky-back-area {
    position: fixed;
    bottom: 20px;
    left: 20px; /* À l'opposé du bouton enregistrer */
    z-index: 2000;
}

/* Style du bouton retour dynamique */
.back-dynamic {
    background: #5a6268; /* Gris anthracite pro */
    color: white !important;
    text-decoration: none;
    padding: 15px 25px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    display: flex; 
    align-items: center; 
    gap: 10px;
    transition: all 0.3s ease;
}

.back-dynamic:active { 
    transform: scale(0.95); 
    background: #495057;
}
/* Style de la carte quand annulée */
.ligne-annulee {
    background-color: #fceaea !important;
    border: 2px dashed #ef4444 !important;
    opacity: 0.8;
}

.ligne-annulee .badge-ligne, .ligne-annulee .vrai-horaire {
    filter: grayscale(1);
    text-decoration: line-through;
}

/* Boutons de bascule */
.btn-toggle-annulation {
    border: none;
    border-radius: 10px;
    padding: 10px 14px;
    min-height: var(--sev-touch-min);
    font-size: 0.85rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.btn-annuler { background: #fee2e2; color: #dc3545; border: 1px solid #fecaca; }
.btn-retablir { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }

/* Le gros X sur la carte */
.big-x-status {
    color: #dc3545;
    font-weight: 900;
    font-size: 1.1rem;
    letter-spacing: 1px;
}
/* --- STYLE QUAND LA CAPACITÉ EST VIDE (ROUGE) --- */
.capacite-alerte {
    background-color: #fef2f2 !important;
    border: 2px solid #ef4444 !important;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    animation: pulseRed 2s infinite; /* Animation pour attirer l'œil */
}
.capacite-alerte label { color: #dc3545 !important; }
.capacite-alerte input {
    border: 2px solid #ef4444 !important;
    background-color: #fff !important;
    font-weight: bold;
    color: #dc3545;
}

/* --- STYLE QUAND C'EST REMPLI (VERT) --- */
.capacite-ok {
    background-color: #f0fdf4 !important;
    border: 2px solid #22c55e !important;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
}
.capacite-ok label { color: #166534 !important; }
.capacite-ok input {
    border: 1px solid #22c55e !important;
    font-weight: bold;
    color: #166534;
}

/* L'animation qui fait "respirer" la case rouge */
@keyframes pulseRed {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* --- PAGE COMPTAGES : scroll document + barre fixe (téléphone / tablette) --- */
html.comptage-html {
    height: auto;
    overflow: visible;
}

body.is-mobile.comptage-page-body {
    min-height: 100%;
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

body.is-mobile.comptage-page-body .mobile-app-shell.comptage-page {
    display: block;
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
    padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px));
}

body.is-mobile.comptage-page-body .comptage-content,
body.is-mobile.comptage-page-body .comptage-form,
body.is-mobile.comptage-page-body .comptages-scroll-panel {
    display: block;
    overflow: visible;
    min-height: 0;
    padding: 0;
}

.comptage-page .app-hero-header {
    margin-bottom: 8px;
}

.comptage-success-banner--in-shell {
    margin: 8px 16px 0;
}

body.is-mobile.comptage-page-body .comptage-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999;
    transform: translateZ(0);
}

body.is-mobile.comptage-page-body .styled-table tr:last-child .mobile-card.carte-course {
    margin-bottom: 16px;
}

/* Avis / déviations — zones tactiles */
.avis-cell {
    position: relative;
    z-index: 3;
    pointer-events: auto;
}

.avis-tap-target,
.avis-open-btn {
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.12);
    min-height: var(--sev-touch-min);
    padding: 8px 12px !important;
    cursor: pointer;
}

button.avis-open-btn {
    border: none;
    font: inherit;
    width: auto;
    max-width: 100%;
}

.avis-cell .notification-bubble {
    pointer-events: none;
}

/* Modal liste avis */
html.avis-modal-open,
body.avis-modal-open {
    overflow: hidden;
    height: 100%;
    touch-action: none;
}

body.avis-modal-open .comptage-bottom-bar {
    display: none !important;
}

.avis-modal {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    touch-action: none;
}

.avis-modal[hidden] {
    display: none !important;
}

.avis-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}

.avis-modal-panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 520px;
    height: min(82dvh, 640px);
    max-height: min(82dvh, 640px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.18);
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
    touch-action: auto;
}

body.is-mobile .avis-modal {
    align-items: stretch;
}

body.is-mobile .avis-modal-panel {
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
    padding-top: calc(12px + env(safe-area-inset-top, 0px));
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
}

.avis-modal-title {
    flex: 0 0 auto;
    margin: 0 36px 12px 0;
    font-size: 1.1rem;
    color: #1e293b;
}

.avis-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: #f1f5f9;
    color: #334155;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    touch-action: manipulation;
}

body.is-mobile .avis-modal-close {
    top: calc(8px + env(safe-area-inset-top, 0px));
}

.avis-modal-body {
    flex: 1 1 0;
    height: 0;
    min-height: 0;
    overflow-y: scroll;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 8px;
}

.avis-modal-link {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    min-height: var(--sev-touch-min);
    padding: 14px 16px;
    border-radius: 12px;
    background: #fff7ed;
    border: 1px solid #fdba74;
    color: #9a3412 !important;
    font-weight: 800;
    font-size: 1rem;
    font-family: inherit;
    text-decoration: none !important;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
    cursor: pointer;
    touch-action: pan-y;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.08);
}

.avis-modal-link:active {
    background: #ffedd5;
}

.avis-modal-text {
    padding: 12px 14px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-weight: 600;
    line-height: 1.4;
}

.comptage-deviations-banner {
    margin: 12px 16px 24px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #fff3cd;
    border: 1px solid #ffeeba;
    font-size: 0.95rem;
    line-height: 1.45;
}

.annulation-motif-display {
    margin-top: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #fee2e2;
    color: #991b1b;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.35;
}

.annul-modal-body {
    flex: 1 1 0;
    height: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

.annul-modal-hint {
    margin: 0;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.4;
}

.annul-motif-list {
    border: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.annul-motif-option {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: var(--sev-touch-min);
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    font-weight: 600;
    cursor: pointer;
}

.annul-motif-option input {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.annul-motif-libre {
    width: 100%;
    min-height: 88px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    font-family: inherit;
    font-size: 1rem;
    box-sizing: border-box;
    resize: vertical;
}

.annul-modal-actions {
    display: flex;
    gap: 10px;
}

.annul-modal-actions .driver-bottom-btn {
    flex: 1;
    min-height: 48px;
    font-size: 0.95rem;
}


/* --- PAGE ARRÊTS --- */
html.arrets-html {
    height: auto;
    overflow: visible;
}

body.is-mobile.arrets-page-body {
    min-height: 100%;
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    display: block;
}

body.is-mobile.arrets-page-body .mobile-app-shell.arrets-page {
    display: block;
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
}

.arrets-page {
    width: 100%;
    max-width: 100%;
    margin: 0;
}

.arrets-stops-panel {
    display: block;
    overflow: visible;
    padding-bottom: 8px;
}

.arrets-page .course-arrets-card:last-child {
    margin-bottom: 14px;
}

.arrets-page .stop-timeline {
    padding-bottom: 20px;
}

.arrets-page .app-hero-header {
    margin-bottom: 8px;
    z-index: 3;
}

.arrets-page .route-map-section {
    position: relative;
    z-index: 2;
}

body.is-mobile.arrets-page-body .route-map-panel {
    height: clamp(150px, 22dvh, 240px);
    min-height: 150px;
    touch-action: pan-x pinch-zoom;
}

body.is-mobile.arrets-page-body .route-map-section {
    margin-bottom: 10px;
}

/* Plein écran carte : rétablir le scroll page */
body.is-mobile.arrets-page-body.route-map-fs-open {
    overflow: hidden;
}

body.is-mobile.arrets-page-body.route-map-fs-open .mobile-app-shell.arrets-page {
    overflow: visible;
}

body.is-mobile.arrets-page-body.route-map-fs-open .arrets-stops-panel {
    overflow: hidden;
}

.arrets-meta {
    margin: 0 16px 16px;
    font-size: 0.92rem;
    color: #64748b;
    text-align: center;
}

.course-arrets-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    margin: 0 12px 14px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.course-arrets-head {
    background: linear-gradient(135deg, var(--sev-green-dark) 0%, #1b5e20 100%);
    color: #fff;
    padding: 14px 16px;
}

.course-arrets-head .meta {
    font-size: 0.88rem;
    opacity: 0.92;
    margin-top: 6px;
    line-height: 1.35;
}

.stop-timeline {
    list-style: none;
    margin: 0;
    padding: 12px 16px 12px 28px;
    position: relative;
}

.stop-timeline::before {
    content: '';
    position: absolute;
    left: 39px;
    top: 20px;
    bottom: 20px;
    width: 3px;
    background: linear-gradient(to bottom, #22c55e, #cbd5e1 15%, #cbd5e1 85%, #ef4444);
    border-radius: 2px;
}

.stop-timeline li {
    display: flex;
    gap: 12px;
    padding: 10px 0 10px 8px;
    font-size: 0.94rem;
    align-items: flex-start;
    position: relative;
}

.stop-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #334155;
    font-size: 0.78rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.stop-timeline li.is-start .stop-num {
    background: #22c55e;
    color: #fff;
}

.stop-timeline li.is-end .stop-num {
    background: #ef4444;
    color: #fff;
}

.stop-timeline li.is-foreign .stop-num {
    background: #6366f1;
    color: #fff;
}

.stop-timeline li.is-clickable {
    cursor: pointer;
    border-radius: 10px;
    margin-left: -6px;
    padding-left: 14px;
    transition: background 0.15s, box-shadow 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.stop-timeline li.is-clickable:active,
.stop-timeline li.is-map-active {
    background: rgba(72, 164, 64, 0.12);
    box-shadow: inset 0 0 0 2px rgba(72, 164, 64, 0.35);
}

.route-map-section {
    margin: 0 12px 14px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.route-map-head {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 14px;
    font-weight: 800;
    font-size: 0.92rem;
    color: #1e293b;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.route-map-head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
}

.route-map-head-btns {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.route-map-expand-btn {
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    width: 36px;
    height: 36px;
    padding: 0;
    font-size: 1rem;
    line-height: 1;
    color: #334155;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.route-map-expand-btn:active {
    transform: scale(0.96);
    background: #f1f5f9;
}

.route-map-fs-bar {
    display: none;
    align-items: center;
    gap: 12px;
    padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 10px;
    background: linear-gradient(135deg, var(--sev-green) 0%, var(--sev-green-dark) 100%);
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.route-map-section--fullscreen .route-map-fs-bar {
    display: flex !important;
}

.route-map-section--fullscreen .route-map-inline-head {
    display: none;
}

.route-map-fs-back {
    border: none;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.92rem;
    font-weight: 800;
    color: #fff;
    background: rgba(0, 0, 0, 0.18);
    cursor: pointer;
    white-space: nowrap;
}

.route-map-fs-back:active {
    background: rgba(0, 0, 0, 0.28);
}

.route-map-fs-title {
    flex: 1;
    font-weight: 800;
    font-size: 1rem;
    text-align: center;
    padding-right: 72px;
}

.route-map-section--fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 15000;
    margin: 0 !important;
    max-width: none !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: none !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
    background: #fff;
}

.route-map-section--fullscreen .route-map-panel {
    flex: 1 1 0;
    height: 0 !important;
    min-height: 0 !important;
}

.route-map-section--fullscreen .route-map-panel .leaflet-container {
    height: 100% !important;
    width: 100% !important;
}

.route-map-section--fullscreen .route-map-status {
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    flex-shrink: 0;
}

.route-map-section--fullscreen .route-course-tabs,
.route-map-section--fullscreen .route-closure-alerts {
    flex-shrink: 0;
}

body.route-map-fs-open {
    overflow: hidden;
}

body.route-map-fs-open .driver-bottom-bar {
    display: none;
}

.route-map-title {
    flex: 1 1 auto;
    min-width: 0;
}

.route-map-hint {
    display: block;
    width: 100%;
    font-size: 0.72rem;
    font-weight: 600;
    color: #64748b;
    text-align: center;
    line-height: 1.35;
}

.route-course-tabs {
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-bottom: 1px solid #e2e8f0;
}

.route-course-tab {
    flex: 0 0 auto;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #334155;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}

.route-course-tab.is-active {
    background: var(--sev-green);
    border-color: var(--sev-green);
    color: #fff;
}

.route-closure-alerts:empty {
    display: none;
}

.route-closure-alerts {
    padding: 0;
    background: #fff7ed;
    border-bottom: 1px solid #fed7aa;
}

.route-closure-alert {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 14px 10px 40px;
    font-size: 0.78rem;
    line-height: 1.45;
    color: #9a3412;
    border-bottom: 1px solid #ffedd5;
}

.route-closure-alert__body {
    flex: 1;
    min-width: 0;
}

.route-closure-dismiss {
    position: absolute;
    top: 6px;
    right: 8px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.85);
    color: #9a3412;
    font-size: 1.35rem;
    line-height: 1;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
}

.route-closure-dismiss:active {
    background: #fff;
}

.route-closure-alert:last-child {
    border-bottom: none;
}

.route-closure-alert strong {
    color: #c2410c;
}

.route-closure-title {
    display: block;
    margin-top: 4px;
    font-size: 0.72rem;
    color: #b45309;
}

.route-map-panel {
    height: clamp(200px, 30dvh, 360px);
    min-height: 200px;
    width: 100%;
    background: #e2e8f0;
    z-index: 1;
    touch-action: pan-x pan-y pinch-zoom;
}

.route-map-panel .leaflet-container {
    height: 100%;
    width: 100%;
    background: #e2e8f0;
}

.route-map-status {
    padding: 8px 14px 10px;
    font-size: 0.78rem;
    color: #64748b;
    text-align: center;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.route-map-marker-wrap {
    background: transparent;
    border: none;
}

.route-map-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.stop-name {
    flex: 1;
    line-height: 1.4;
    font-weight: 600;
    color: #1e293b;
    padding-top: 2px;
}

.stop-quai {
    display: inline-flex;
    align-items: center;
    margin-top: 4px;
    font-size: 0.78rem;
    font-weight: 800;
    color: #0f172a;
    background: #fef9c3;
    border: 1px solid #fde047;
    padding: 3px 10px;
    border-radius: 8px;
}

.stop-zone {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #6366f1;
    background: #eef2ff;
    padding: 3px 8px;
    border-radius: 6px;
}

.no-vdv {
    padding: 16px;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.45;
}

/* Empty state mobile */
.mobile-empty-state {
    background: #fff3cd;
    border: 2px dashed #ffeeba;
    color: #856404;
    padding: 36px 20px;
    text-align: center;
    border-radius: 15px;
    margin: 20px 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.mobile-empty-state__icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.mobile-empty-state h3 {
    margin: 0 0 10px;
    font-size: 1.35rem;
    font-weight: 900;
}

.mobile-empty-state p {
    margin-bottom: 8px;
    font-size: 1rem;
}

.mobile-empty-state__hint {
    background: rgba(133, 100, 4, 0.1);
    padding: 10px;
    border-radius: 8px;
    margin-top: 16px;
}

.mobile-empty-state__hint p {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
}

/* =========================================
   PAGE ACCÈS QR (qr_acces_comptage.php)
========================================= */

body.is-mobile.qr-access-page {
    background-color: #f3f4f6 !important;
}

.qr-access-shell {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
}

.qr-access-hero {
    background: linear-gradient(135deg, var(--sev-green) 0%, var(--sev-green-dark) 100%);
    padding: 28px 20px 36px;
    text-align: center;
    border-radius: 0 0 32px 32px;
    box-shadow: 0 10px 24px rgba(72, 164, 64, 0.2);
    color: #fff;
}

.qr-access-hero__brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 12px;
}

.qr-access-hero__logo {
    width: 72px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.qr-access-hero__bus {
    width: 64px;
    height: auto;
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.2));
}

.qr-access-hero h1 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1.25;
}

.qr-access-hero__subtitle {
    margin: 8px 0 0;
    opacity: 0.92;
    font-size: 1rem;
    font-weight: 500;
}

.qr-access-card-wrap {
    padding: 0 14px;
    margin-top: -28px;
}

.qr-access-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    padding: 22px 20px 24px;
}

.qr-langbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 14px;
    gap: 10px;
}

.qr-langbar__label {
    font-weight: 800;
    color: var(--sev-green);
    font-size: 0.95rem;
}

.qr-langbar select {
    min-height: var(--sev-touch-min);
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 8px 12px;
    font-weight: 700;
    font-size: 0.95rem;
    background: #f9fafb;
    color: #374151;
}

.qr-tablet-societe {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 12px;
    background: var(--sev-green-soft);
    border: 1px solid rgba(72, 164, 64, 0.35);
    text-align: center;
}

.qr-tablet-societe__badge {
    display: inline-block;
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--sev-green-dark);
}

.qr-tablet-societe__hint {
    margin: 8px 0 6px;
    font-size: 0.82rem;
    color: #4b5563;
    line-height: 1.35;
}

.qr-tablet-societe__change {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--sev-green-dark);
}

.qr-field {
    margin-bottom: 18px;
}

.qr-field label {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #4b5563;
}

.qr-field input,
.qr-field select {
    width: 100%;
    border: 2px solid #d1d5db;
    border-radius: 14px;
    padding: 14px 16px;
    min-height: var(--sev-touch-min);
    font-size: 1.05rem;
    background: #f9fafb;
    outline: none;
    appearance: none;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.qr-field input:focus,
.qr-field select:focus {
    border-color: var(--sev-green);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(72, 164, 64, 0.12);
}

.qr-field-hint {
    font-size: 0.82rem;
    color: #6b7280;
    margin: 8px 0 0;
    line-height: 1.4;
}

.qr-date-quick-btns {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.qr-date-quick-btn {
    flex: 1;
    min-width: 120px;
    min-height: var(--sev-touch-min);
    border: 2px solid #d1d5db;
    background: #fff;
    color: #374151;
    border-radius: 12px;
    padding: 10px 12px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
}

.qr-date-quick-btn:active {
    background: #e5e7eb;
    transform: scale(0.98);
}

.qr-submit {
    width: 100%;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--sev-green) 0%, var(--sev-green-dark) 100%);
    color: #fff;
    padding: 16px;
    min-height: var(--sev-touch-min);
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(72, 164, 64, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 4px;
}

.qr-submit:active {
    transform: scale(0.98);
    box-shadow: 0 4px 12px rgba(72, 164, 64, 0.25);
}

.qr-error {
    background: #fdecea;
    color: #b71c1c;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 18px;
    font-weight: 700;
    border: 1px solid #feb2b2;
    text-align: center;
    font-size: 0.95rem;
}

.qr-motivation-box {
    background: #fffaf0;
    border: 1px solid #fef3c7;
    border-radius: 16px;
    padding: 16px 18px;
    margin-top: 20px;
}

.qr-motivation-box strong {
    color: #92400e;
    display: block;
    margin-bottom: 6px;
}

.qr-motivation-box p {
    margin: 0;
    font-size: 0.85rem;
    color: #92400e;
    line-height: 1.45;
}

/* Campagne / notification spéciale (QR accès) */
.qr-easter-trigger {
    position: fixed;
    top: calc(16px + env(safe-area-inset-top, 0px));
    right: 16px;
    z-index: 10001;
    cursor: pointer;
    background: #fff;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
    border-width: 3px;
    border-style: solid;
}

.qr-easter-trigger.pulse-animation {
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(72, 164, 64, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(72, 164, 64, 0); }
    100% { box-shadow: 0 0 0 0 rgba(72, 164, 64, 0); }
}

.qr-easter-trigger__icon {
    font-size: 28px;
    line-height: 1;
}

#qr-easter-panel {
    position: fixed;
    top: calc(84px + env(safe-area-inset-top, 0px));
    right: -400px;
    width: 320px;
    max-width: calc(100vw - 32px);
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    z-index: 10000;
    transition: right 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 15px;
    overflow-y: auto;
    max-height: 70vh;
    border-width: 3px;
    border-style: solid;
}

#qr-easter-panel.open {
    right: 16px;
}

.qr-easter-panel__title {
    font-weight: 800;
    margin-top: 0;
    text-align: center;
}

.qr-easter-panel__img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 15px;
}

.qr-easter-panel__message {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: left;
    background: #f8fafc;
    padding: 10px;
    border-radius: 10px;
}

.qr-easter-panel__close {
    margin-top: 15px;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 700;
    width: 100%;
    min-height: var(--sev-touch-min);
    cursor: pointer;
}

/* Lien guide complet (écran QR) */
.guide-full-link {
    display: block;
    margin-top: 10px;
    text-align: center;
    font-weight: 800;
    font-size: 0.88rem;
    color: var(--sev-green-dark);
    text-decoration: none;
    min-height: var(--sev-touch-min);
    line-height: var(--sev-touch-min);
}

.guide-full-link:active {
    opacity: 0.75;
}

.driver-nav--with-help .driver-nav-item {
    font-size: 0.8rem;
    padding: 8px 6px;
}

/* Page aide chauffeur */
.help-chauffeur-page {
    background: #f1f5f9;
}

.help-chauffeur-shell {
    width: 100%;
    max-width: 100%;
    margin: 0;
    min-height: var(--sev-app-height);
    min-height: -webkit-fill-available;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.help-chauffeur-hero {
    background: linear-gradient(145deg, var(--sev-green) 0%, var(--sev-green-dark) 100%);
    color: #fff;
    padding: 24px 20px 20px;
    border-radius: 0 0 20px 20px;
}

.help-chauffeur-hero h1 {
    margin: 0 0 8px;
    font-size: 1.35rem;
    font-weight: 800;
}

.help-chauffeur-hero p {
    margin: 0 0 14px;
    font-size: 0.92rem;
    opacity: 0.92;
    line-height: 1.45;
}

.help-lang-form select {
    width: 100%;
    min-height: var(--sev-touch-min);
    border-radius: 10px;
    border: none;
    padding: 8px 12px;
    font-weight: 700;
}

.help-chauffeur-main {
    flex: 1;
    padding: 16px 14px 100px;
}

.help-section {
    background: #fff;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.help-section--new {
    border: 2px solid var(--sev-green, #48A440);
    background: linear-gradient(180deg, #f3faf2 0%, #fff 48%);
}

.help-section--new h2 {
    color: var(--sev-green-dark, #2e7d32);
}

.help-section h2 {
    margin: 0 0 12px;
    font-size: 1rem;
    font-weight: 800;
    color: var(--sev-green-dark);
}

.help-steps {
    margin: 0;
    padding-left: 1.2rem;
    color: #334155;
    font-size: 0.92rem;
    line-height: 1.5;
}

.help-steps li {
    margin-bottom: 8px;
}

.help-steps li:last-child {
    margin-bottom: 0;
}

.help-section--faq .help-faq-item {
    border-top: 1px solid #e2e8f0;
    padding: 10px 0;
}

.help-section--faq .help-faq-item:first-of-type {
    border-top: none;
    padding-top: 0;
}

.help-faq-item summary {
    font-weight: 800;
    font-size: 0.9rem;
    color: #1e293b;
    cursor: pointer;
    list-style: none;
    min-height: var(--sev-touch-min);
    display: flex;
    align-items: center;
}

.help-faq-item summary::-webkit-details-marker {
    display: none;
}

.help-faq-item p {
    margin: 8px 0 0;
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.45;
}

.help-chauffeur-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
    padding-left: calc(14px + env(safe-area-inset-left, 0px));
    padding-right: calc(14px + env(safe-area-inset-right, 0px));
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid #e2e8f0;
    box-sizing: border-box;
}

.help-back-btn {
    display: flex;
    width: 100%;
    justify-content: center;
    text-decoration: none;
}

/* --- Navigation QR (tablette → téléphone) --- */
.route-nav-btn {
    border: none;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 0.74rem;
    font-weight: 800;
    color: #fff;
    background: #1d4ed8;
    box-shadow: 0 2px 8px rgba(29, 78, 216, 0.35);
    cursor: pointer;
    white-space: nowrap;
}

.route-nav-btn:active {
    transform: scale(0.98);
}

.nav-qr-modal {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(16px + env(safe-area-inset-top, 0px)) calc(16px + env(safe-area-inset-right, 0px)) calc(16px + env(safe-area-inset-bottom, 0px)) calc(16px + env(safe-area-inset-left, 0px));
    box-sizing: border-box;
}

.nav-qr-modal[hidden] {
    display: none !important;
}

body.nav-modal-open {
    overflow: hidden;
}

.nav-qr-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
}

.nav-qr-panel {
    position: relative;
    width: min(100%, 400px);
    max-height: min(92dvh, calc(100% - 32px));
    overflow: auto;
    background: #fff;
    border-radius: 20px;
    padding: 18px 18px calc(18px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.28);
}

.nav-qr-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: #f1f5f9;
    color: #334155;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.nav-qr-panel h3 {
    margin: 0 40px 10px 0;
    padding-top: 4px;
    font-size: 1.05rem;
    color: #0f172a;
    line-height: 1.3;
}

.nav-qr-instruction,
.nav-qr-or,
.nav-qr-label {
    margin: 0 0 12px;
    font-size: 0.82rem;
    line-height: 1.45;
    color: #475569;
}

.nav-qr-label {
    text-align: center;
    font-weight: 700;
    color: #1e293b;
}

.nav-qr-wrap {
    display: flex;
    justify-content: center;
    margin: 8px 0 12px;
}

.nav-qr-img {
    width: 280px;
    height: 280px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #fff;
}

.nav-direct-links {
    display: grid;
    gap: 10px;
}

.nav-maps-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    text-decoration: none;
    color: #0f172a;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.nav-maps-btn strong {
    display: block;
    font-size: 0.95rem;
}

.nav-maps-btn small {
    display: block;
    margin-top: 2px;
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 600;
}

.nav-maps-btn--google {
    border-color: #bfdbfe;
    background: #eff6ff;
}

.nav-maps-btn--apple {
    border-color: #e2e8f0;
    background: #f8fafc;
}

.nav-maps-btn__icon {
    font-size: 1.5rem;
    line-height: 1;
}

.nav-parcours-shell {
    width: 100%;
    max-width: 100%;
    min-height: var(--sev-app-height);
    min-height: -webkit-fill-available;
    box-sizing: border-box;
}

.nav-parcours-page .app-hero-header {
    margin-bottom: 12px;
}

.nav-parcours-route {
    margin: 4px 12px 10px;
    font-size: 0.82rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.92);
    text-align: center;
}

.nav-parcours-card {
    margin: 14px 12px;
    padding: 16px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.nav-parcours-card--error p {
    margin: 0;
    color: #b91c1c;
    font-weight: 600;
}

.nav-parcours-intro {
    margin: 0 0 6px;
    font-size: 0.9rem;
    color: #334155;
    line-height: 1.45;
}

.nav-parcours-meta {
    margin: 0 0 14px;
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 700;
}

.nav-parcours-card .nav-maps-btn {
    margin-bottom: 10px;
}

.nav-parcours-note {
    margin: 12px 0 0;
    font-size: 0.74rem;
    line-height: 1.45;
    color: #64748b;
}

/* --- Horaires à l'arrêt (chauffeur) — pastille compacte --- */
.stop-name-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
}

.stop-name-text {
    flex: 1;
    min-width: 0;
    line-height: 1.35;
}

.stop-horaires-btn {
    flex-shrink: 0;
    display: inline-block;
    margin: 1px 0 0;
    padding: 3px 7px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    color: #475569;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.stop-horaires-btn:active {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #334155;
}

.stop-horaires-btn--map {
    margin-top: 8px;
    width: auto;
    min-width: 4.5rem;
    padding: 4px 10px;
    font-size: 0.7rem;
}

.stop-horaires-modal {
    position: fixed;
    inset: 0;
    z-index: 13000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    box-sizing: border-box;
}

.stop-horaires-modal[hidden] {
    display: none !important;
}

body.horaires-modal-open {
    overflow: hidden;
}

.stop-horaires-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
}

.stop-horaires-panel {
    position: relative;
    width: 100%;
    max-height: min(85dvh, 640px);
    overflow: auto;
    background: #fff;
    border-radius: 20px 20px 0 0;
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.2);
}

.stop-horaires-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: #f1f5f9;
    color: #334155;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.stop-horaires-panel h3 {
    margin: 0 40px 6px 0;
    font-size: 1.05rem;
    color: #0f172a;
    line-height: 1.3;
}

.stop-horaires-hint {
    margin: 0 0 12px;
    font-size: 0.8rem;
    line-height: 1.4;
    color: #64748b;
}

.stop-horaires-loading,
.stop-horaires-empty,
.stop-horaires-error {
    margin: 12px 0;
    font-size: 0.88rem;
    line-height: 1.45;
    color: #475569;
    text-align: center;
}

.stop-horaires-error {
    color: #b91c1c;
}

.stop-horaires-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.stop-horaires-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.stop-horaires-table th {
    padding: 8px 6px;
    text-align: left;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #64748b;
    border-bottom: 1px solid #e2e8f0;
}

.stop-horaires-table td {
    padding: 10px 6px;
    vertical-align: top;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
}

.stop-horaires-table tr.is-cancelled td {
    opacity: 0.65;
}

.stop-horaires-table .col-time strong {
    font-size: 0.95rem;
    color: #0f172a;
}

.stop-horaires-table .col-line-inner {
    display: flex;
    align-items: flex-start;
    gap: 4px;
}

.stop-horaires-table .col-line-text {
    min-width: 0;
}

.mode-picto {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.65rem;
    height: 1rem;
    padding: 0 3px;
    flex-shrink: 0;
    margin-top: 3px;
    border-radius: 3px;
    font-size: 0.48rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.mode-picto--bus {
    background: #166534;
    color: #fff;
}

.mode-picto--train {
    background: #1d4ed8;
    color: #fff;
}

.mode-picto--tram {
    background: #6d28d9;
    color: #fff;
}

.stop-horaires-table .badge-line {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    background: #e8f5e9;
    color: #166534;
    font-weight: 800;
}

.stop-horaires-table .op-family {
    display: block;
    margin-top: 2px;
    font-size: 0.68rem;
    color: #64748b;
    font-weight: 600;
}

.stop-horaires-msg td {
    padding-top: 0;
    padding-bottom: 10px;
    font-size: 0.74rem;
    color: #b45309;
    border-bottom: 1px solid #f1f5f9;
}

@media (min-width: 520px) {
    .stop-horaires-modal {
        align-items: center;
        padding: 16px;
    }

    .stop-horaires-panel {
        width: min(100%, 480px);
        border-radius: 20px;
        max-height: min(80dvh, 640px);
    }
}

/* --- Consignes chauffeur (FAQ par arrêt) --- */
.stop-name-actions {
    display: flex;
    flex-shrink: 0;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: flex-end;
    margin-top: 1px;
}

.stop-consigne-btn {
    flex-shrink: 0;
    display: inline-block;
    margin: 0;
    padding: 3px 7px;
    border: 1px solid #f59e0b;
    border-radius: 6px;
    background: #fffbeb;
    color: #b45309;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.stop-consigne-btn:active {
    background: #fef3c7;
    border-color: #d97706;
    color: #92400e;
}

.stop-consigne-btn--map {
    margin-top: 8px;
    min-width: 4.5rem;
    padding: 4px 10px;
    font-size: 0.7rem;
}

.stop-consigne-modal {
    position: fixed;
    inset: 0;
    z-index: 12050;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
}

.stop-consigne-modal[hidden] {
    display: none !important;
}

body.consigne-modal-open {
    overflow: hidden;
}

.stop-consigne-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}

.stop-consigne-panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-height: min(88dvh, 720px);
    overflow: auto;
    background: #fff;
    border-radius: 20px 20px 0 0;
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.12);
}

.stop-consigne-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: #f1f5f9;
    color: #475569;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.stop-consigne-panel h3 {
    margin: 0 36px 8px 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: #b45309;
}

.stop-consigne-hint {
    margin: 0 0 12px;
    font-size: 0.82rem;
    line-height: 1.45;
    color: #64748b;
}

.stop-consigne-hint[hidden] {
    display: none;
}

.stop-consigne-loading,
.stop-consigne-empty,
.stop-consigne-error {
    margin: 12px 0;
    font-size: 0.88rem;
    line-height: 1.45;
    color: #64748b;
}

.stop-consigne-error {
    color: #b91c1c;
}

.stop-consigne-faq {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stop-consigne-faq-item {
    border: 1px solid #fde68a;
    border-radius: 10px;
    background: #fffbeb;
}

.stop-consigne-faq-item summary {
    padding: 10px 12px;
    font-weight: 700;
    font-size: 0.88rem;
    color: #92400e;
    cursor: pointer;
}

.stop-consigne-faq-item p {
    margin: 0;
    padding: 0 12px 12px;
    font-size: 0.86rem;
    line-height: 1.5;
    color: #44403c;
}

.stop-consigne-section {
    display: block;
    padding: 8px 12px 0;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #d97706;
}

.stop-consigne-section-prevention {
    color: #b91c1c;
    background: rgba(254, 226, 226, 0.65);
    border-radius: 6px;
    margin: 0 8px;
    padding: 6px 10px 0;
}

@media (min-width: 520px) {
    .stop-consigne-modal {
        align-items: center;
        padding: 16px;
    }

    .stop-consigne-panel {
        width: min(100%, 480px);
        border-radius: 20px;
        max-height: min(80dvh, 640px);
    }
}