/* =============================================
   VARIABLES
   ============================================= */
:root {
    --filter-radius: 12px;
    --transition: 0.2s ease;
    --shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
    --border-color: #f0f0f0;
}

/* =============================================
   CONTENEUR FILTRES — DESKTOP
   ============================================= */
#filtres_vehicules {
    box-shadow: var(--shadow);
    margin: 8px;
    padding: 20px 14px;
    border-radius: var(--filter-radius);
    background: #fff;
    border: 1px solid var(--border-color);
    position: sticky;
    top: 16px;
}

/* =============================================
   BOUTON EFFACER LES FILTRES
   ============================================= */
#filtres_vehicules > .d-flex.justify-content-center .btn.btn-primary {
    font-size: 12px;
    font-weight: 500;
    padding: 7px 18px;
    border-radius: 999px;
    letter-spacing: 0.02em;
    border: none;
    background: var(--couleur-principale);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    transition: filter var(--transition), transform var(--transition), box-shadow var(--transition);
}

#filtres_vehicules > .d-flex.justify-content-center .btn.btn-primary:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* =============================================
   TITRES DE SECTION FILTRE
   ============================================= */
#filtres_vehicules .filtre-vehicule .filtre-titre {
    font-size: 10px;
    font-weight: 700;
    margin: 22px 0 8px 0;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.09em;
}

/* Séparateur visuel entre filtres */
.filtre-vehicule + .filtre-vehicule {
    border-top: 1px solid #f5f5f7;
}

/* =============================================
   CHECKBOXES
   ============================================= */
.checkbox-filtres-selection {
    max-height: 110px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-right: 4px;
}

.checkbox-filtres-selection .form-check {
    padding-left: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.checkbox-filtres-selection .form-check-input {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    min-width: 16px;
    border: 1.5px solid #d1d5db;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition);
    position: relative;
    margin: 0;
    flex-shrink: 0;
}

.checkbox-filtres-selection .form-check-input:hover {
    border-color: var(--couleur-principale);
}

.checkbox-filtres-selection .form-check-input:checked {
    background: var(--couleur-principale);
    border-color: var(--couleur-principale);
}

.checkbox-filtres-selection .form-check-input:checked::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1.5px;
    width: 5px;
    height: 9px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

.checkbox-filtres-selection .form-check-label {
    font-size: 13px;
    font-weight: 400;
    color: #374151;
    cursor: pointer;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 6px;
    user-select: none;
}

/* Scrollbar */
.checkbox-filtres-selection::-webkit-scrollbar {
    width: 3px;
}

.checkbox-filtres-selection::-webkit-scrollbar-track {
    background: transparent;
}

.checkbox-filtres-selection::-webkit-scrollbar-thumb {
    background: #e5e7eb;
    border-radius: 100px;
}

.checkbox-filtres-selection::-webkit-scrollbar-thumb:hover {
    background: var(--couleur-principale);
}

/* =============================================
   BADGE COMPTEUR
   ============================================= */
.nombre-vehicule-indicateur {
    font-size: 10px;
    font-weight: 500;
    color: #9ca3af;
    background: #f3f4f6;
    padding: 1px 6px;
    border-radius: 999px;
    line-height: 1.7;
    flex-shrink: 0;
}

/* =============================================
   INPUTS NOMBRE (PRIX / KM / ANNÉE)
   ============================================= */
.filtre-prix,
.filtre-km,
.filtre-annee {
    display: flex;
    gap: 8px;
}

.filtre-prix input,
.filtre-km input,
.filtre-annee input {
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    padding: 7px 10px;
    font-size: 13px;
    color: #374151;
    background: #fafafa;
    transition: border-color var(--transition), box-shadow var(--transition);
    width: 100%;
    outline: none;
    -moz-appearance: textfield;
}

.filtre-prix input::-webkit-outer-spin-button,
.filtre-prix input::-webkit-inner-spin-button,
.filtre-km input::-webkit-outer-spin-button,
.filtre-km input::-webkit-inner-spin-button,
.filtre-annee input::-webkit-outer-spin-button,
.filtre-annee input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.filtre-prix input:focus,
.filtre-km input:focus,
.filtre-annee input:focus {
    border-color: var(--couleur-principale);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--couleur-principale) 12%, transparent);
    background: #fff;
}

.filtre-prix input::placeholder,
.filtre-km input::placeholder,
.filtre-annee input::placeholder {
    color: #c0c4cc;
    font-size: 12px;
}

/* =============================================
   CRITAIR
   ============================================= */
.filtre-critairs {
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: start;
    gap: 8px;
    max-height: none;
    overflow: visible;
}

.filtre-critairs .form-check {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.label-critair {
    opacity: 0.4;
    filter: grayscale(0.6) saturate(0.8);
    transition: opacity var(--transition), filter var(--transition), transform var(--transition);
    cursor: pointer;
    display: block;
    border-radius: 6px;
    padding: 2px;
}

.label-critair:hover {
    opacity: 0.75;
    transform: scale(1.08);
}

.label-critair-selected {
    opacity: 1 !important;
    filter: grayscale(0) saturate(1) !important;
    transform: scale(1.08);
    transition-duration: 0.2s;
}

.label-critair img {
    width: 34px;
    display: block;
}

/* =============================================
   RANGE SLIDERS
   ============================================= */
.middle {
    position: relative;
    width: 100%;
}

.multi-range-slider {
    position: relative;
    width: 100%;
}

input[type="range"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
    outline: none;
    position: absolute;
    margin: auto;
    top: 0;
    bottom: 0;
    background-color: transparent;
    pointer-events: none;
}

.slider-track {
    width: 100%;
    height: 4px;
    position: absolute;
    margin: auto;
    top: 0;
    bottom: 0;
    border-radius: 999px;
    background-color: var(--couleur-principale);
}

input[type="range"]::-webkit-slider-runnable-track {
    -webkit-appearance: none;
    height: 4px;
}

input[type="range"]::-moz-range-track {
    -moz-appearance: none;
    height: 4px;
}

input[type="range"]::-ms-track {
    appearance: none;
    height: 4px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 1.2em;
    width: 1.2em;
    background-color: var(--couleur-principale);
    cursor: pointer;
    margin-top: -7px;
    pointer-events: auto;
    border-radius: 50%;
    transition: box-shadow var(--transition);
}

input[type="range"]::-moz-range-thumb {
    height: 1.2em;
    width: 1.2em;
    cursor: pointer;
    border-radius: 50%;
    background-color: var(--couleur-principale);
    pointer-events: auto;
    border: none;
}

input[type="range"]::-ms-thumb {
    appearance: none;
    height: 1.2em;
    width: 1.2em;
    cursor: pointer;
    border-radius: 50%;
    background-color: var(--couleur-principale);
    pointer-events: auto;
}

input[type="range"]:active::-webkit-slider-thumb {
    background-color: #fff;
    border: 3px solid var(--couleur-principale);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--couleur-principale) 15%, transparent);
}

input[type="range"]::after {
    content: "";
    position: absolute;
    width: 1.5em;
    height: 1.5em;
    display: block;
}

/* =============================================
   BOUTON FILTRER (desktop, sticky/fixed via JS)
   ============================================= */
#btn_filtre_vehicules {
    width: 100%;
    margin-top: 20px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    padding: 11px;
    letter-spacing: 0.02em;
    border: none;
    background: var(--couleur-principale);
    color: #fff;
    transition: filter var(--transition), transform var(--transition), box-shadow var(--transition);
}

#btn_filtre_vehicules:hover {
    filter: brightness(1.08);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.btn-filtre-vehicules-fixed {
    position: fixed;
    bottom: 20px;
    z-index: 10;
}

.btn-filtre-vehicules-change {
    animation: animation-btn-filtre-vehicules-change 1.5s infinite linear;
}

@keyframes animation-btn-filtre-vehicules-change {
    0%   { box-shadow: 0 0 0px 0px color-mix(in srgb, var(--couleur-principale) 35%, transparent); }
    100% { box-shadow: 0 0 0px 8px color-mix(in srgb, var(--couleur-principale) 0%, transparent); }
}

/* =============================================
   BOUTON REMONTÉE FILTRES (scroll)
   ============================================= */
#scroll_filtres_vehicules {
    position: fixed;
    left: 8px;
    top: 100px;
    cursor: pointer;
    color: #fff;
    width: 16.666667%;
    text-align: center;
    padding: 10px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    background: var(--couleur-principale);
    user-select: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    letter-spacing: 0.02em;
    transition: filter var(--transition), box-shadow var(--transition);
}

#scroll_filtres_vehicules:hover {
    filter: brightness(1.08);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.16);
}

/* =============================================
   RÉSULTATS & SELECT TRI (desktop)
   ============================================= */
.nombre-resultats {
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #6b7280;
    margin-bottom: 0;
}

.nombre-resultats .fw-bold {
    color: var(--couleur-principale);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.custom-select-input.filter-select {
    position: relative;
}

.custom-select-input.filter-select select {
    appearance: none;
    -webkit-appearance: none;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    padding: 8px 36px 8px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    background: #fff;
    cursor: pointer;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
    min-width: 200px;
}

.custom-select-input.filter-select select:focus {
    border-color: var(--couleur-principale);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--couleur-principale) 12%, transparent);
}

.custom-select-input.filter-select .ui-selectmenu-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
    font-size: 12px;
}

/* =============================================
   FAVORIS / ICÔNES CARTE
   ============================================= */
.icones-container {
    position: absolute;
    right: 16px;
    z-index: 99;
    top: 10px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    gap: 4px;
}

.icones-container i {
    color: var(--couleur-principale);
    vertical-align: middle;
    padding: 5px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    backdrop-filter: blur(4px);
    transition: background var(--transition), transform var(--transition);
}

.icones-container i:hover {
    background: #fff;
    transform: scale(1.12);
}

/* =============================================
   AUCUN RÉSULTAT
   ============================================= */
#vehicule-aucun-resultat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fafafa;
    border: 1px solid var(--border-color);
    padding: 16px 20px;
    border-radius: var(--filter-radius);
    margin-top: 30px;
    color: #c0c4cc;
    font-size: 14px;
    gap: 16px;
    flex-wrap: wrap;
}

/* =============================================
   LOADING
   ============================================= */
#loading {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 32px;
    color: var(--couleur-principale);
    font-size: 13px;
    font-weight: 500;
}

#loading i {
    font-size: 22px;
    animation: rotation 1000ms infinite linear;
    transform-origin: 50% 50%;
}

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes rotation {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@keyframes shake {
    0%   { transform: translateY(-1%); }
    100% { transform: translateY(3%); }
}

@keyframes line {
    0%   { stroke-dashoffset: 22; }
    25%  { stroke-dashoffset: 22; }
    50%  { stroke-dashoffset: 0; }
    51%  { stroke-dashoffset: 0; }
    80%  { stroke-dashoffset: -22; }
    100% { stroke-dashoffset: -22; }
}

@keyframes leftright {
    0%, 20%   { transform: translateX(0); left: 0; }
    80%, 100% { transform: translateX(-100%); left: 100%; }
}

.animate-text-overflow {
    position: relative !important;
    animation: 5s linear infinite alternate leftright !important;
}

.fb_dialog {
    z-index: 100 !important;
}

/* =============================================
   OVERLAY MOBILE (fond derrière le drawer)
   ============================================= */
#filter-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 199;
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

#filter-overlay.active {
    display: block;
    opacity: 1;
}

#responsive-bloc-filter {
    display: none;
}

/* =============================================
   HERO SECTION
   ============================================= */

.container-hero {
    position: relative;
    width: 100%;
    background-color: rgba(72, 99, 118, 1);
    /* Dégradé de profondeur */
    background-image:
            radial-gradient(ellipse 80% 60% at 10% 50%, rgba(255,255,255,0.07) 0%, transparent 70%),
            radial-gradient(ellipse 60% 80% at 90% 20%, rgba(30, 50, 65, 0.5) 0%, transparent 65%);
    border-radius: 2.75rem;
    overflow: hidden;
    isolation: isolate;
}

.hero-corner {
    position: absolute;
    top: 0;
    right: 0;
    width: 180px;
    height: 180px;
    pointer-events: none;
    z-index: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    border-top-right-radius: 2.75rem; /* suit le border-radius du container */
}

.hero-corner::before {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 100px;
    height: 100px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    border-top-right-radius: 1.5rem;
}

.hero-lines {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.hero-line {
    position: absolute;
    background: rgba(255, 255, 255, 0.08);
}

/* Ligne diagonale longue */
.hero-line--1 {
    width: 1px;
    height: 180%;
    top: -40%;
    right: 28%;
    transform: rotate(20deg);
}

/* Ligne diagonale plus courte */
.hero-line--2 {
    width: 1px;
    height: 150%;
    top: -30%;
    right: 22%;
    transform: rotate(20deg);
    opacity: 0.5;
}

/* Ligne horizontale basse */
.hero-line--3 {
    width: 35%;
    height: 1px;
    bottom: 30%;
    right: 0;
    background: linear-gradient(to left, rgba(255,255,255,0.1), transparent);
}

/* Lumière d'ambiance gauche */
.hero-glow {
    position: absolute;
    bottom: -30px;
    left: 5%;
    width: 50%;
    height: 160px;
    background: radial-gradient(ellipse at center bottom, rgba(140, 185, 215, 0.22) 0%, transparent 70%);
    filter: blur(25px);
    pointer-events: none;
    z-index: 0;
}

.container-text {
    position: relative;
    z-index: 1;
    color: white;
    padding: 40px 5rem;
}

.container-text p {
    margin-bottom: 0;
    opacity: 0.75;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
}

.container-text h1 {
    font-size: 1.75rem;
    line-height: 1.3;
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

/* Badge compteur véhicules */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 4px 12px 4px 8px;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    margin-bottom: 14px;
    color: rgba(255,255,255,0.9);
}

.badge-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    background: #7dd3b0;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(125, 211, 176, 0.8);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.85); }
}

/* Barre de recherche */
.container-hero-input {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 16px;
}

.hero-input {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255,255,255,0.8);
    width: 100%;
    height: 3.375rem;
    padding-inline: 1.125rem 0.5rem;
    transition: box-shadow 0.2s ease;
}

.hero-input:focus-within {
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.18), 0 0 0 3px rgba(255,255,255,0.25);
}

.hero-input input {
    width: 100%;
    height: 100%;
    font-size: 1rem;
    line-height: 1;
    outline: none;
    border: none;
    background: transparent;
    color: #1a2a35;
}

.hero-input input::placeholder {
    color: #a0aab5;
}

.hero-input i {
    color: #8a9aaa;
    flex-shrink: 0;
    font-size: 0.9rem;
}

/* Bouton dans l'input */
.hero-search-btn {
    flex-shrink: 0;
    background: rgba(72, 99, 118, 1);
    color: white;
    border: none;
    border-radius: 99px;
    padding: 0 18px;
    height: calc(3.375rem - 14px);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    letter-spacing: 0.01em;
    transition: background 0.2s ease, transform 0.1s ease;
    white-space: nowrap;
}

.hero-search-btn:hover {
    background: rgba(55, 78, 95, 1);
}

.hero-search-btn:active {
    transform: scale(0.98);
}

/* ---- DESKTOP ---- */
@media (min-width: 1024px) {
    .container-hero {
        height: 240px;
    }

    .container-text {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 100%;
        padding-block: 0;
    }

    .container-text h1 {
        font-size: 2.25rem;
        line-height: 1.1;
    }

    .container-hero-input {
        max-width: 560px;
    }
}

/* =============================================
   RESPONSIVE — < 1200px
   ============================================= */
@media screen and (max-width: 1200px) {

    /* --- Barre filtres/tri responsive --- */
    #responsive-bloc-filter {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        padding: 10px 4px 6px;
        gap: 10px;
        margin: 10px 0;
    }

    /* Bouton "Filtrer" */
    .responsive-bouton-filtrer {
        border-radius: 999px;
        font-size: 13px;
        font-weight: 600;
        padding: 9px 22px;
        border: 1.5px solid var(--couleur-principale);
        color: var(--couleur-principale);
        background: transparent;
        display: flex;
        align-items: center;
        gap: 8px;
        transition: background var(--transition), color var(--transition), box-shadow var(--transition);
        cursor: pointer;
    }

    .responsive-bouton-filtrer:hover,
    .responsive-bouton-filtrer:focus {
        background: var(--couleur-principale);
        color: #fff;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
    }

    /* Dropdown "Trier" */
    .dropdown .btn.btn-outline-primary {
        border-radius: 999px;
        font-size: 13px;
        font-weight: 600;
        padding: 9px 22px;
        border: 1.5px solid var(--couleur-principale);
        color: var(--couleur-principale);
        background: transparent;
        display: flex;
        align-items: center;
        gap: 8px;
        transition: background var(--transition), color var(--transition);
    }

    .dropdown .btn.btn-outline-primary:hover,
    .dropdown .btn.btn-outline-primary:focus,
    .dropdown .btn.btn-outline-primary.show {
        background: var(--couleur-principale);
        color: #fff;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
    }

    /* Menu dropdown */
    .dropdown-menu {
        display: none;
        position: absolute;
        z-index: 1000;
        background: #fff;
        border: 1px solid #f0f0f0;
        border-radius: 12px;
        padding: 6px;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
        min-width: 220px;
        margin-top: 6px !important;
    }

    .dropdown-menu.show {
        display: block;
    }

    .dropdown-item {
        border-radius: 8px;
        font-size: 13px;
        font-weight: 400;
        color: #374151;
        padding: 9px 14px;
        transition: background 0.15s ease, color 0.15s ease;
    }

    .dropdown-item:hover {
        background: #f9fafb;
        color: var(--couleur-principale);
    }

    .dropdown-item.active,
    .dropdown-item:active {
        background: color-mix(in srgb, var(--couleur-principale) 10%, transparent);
        color: var(--couleur-principale);
        font-weight: 600;
    }

    /* Select desktop masqué */
    .filter-select {
        display: none;
    }

    /* Nombre de résultats */
    .nombre-resultats {
        margin-bottom: 0;
    }

    /* --- Drawer bottom sheet --- */
    #filtres_vehicules {
        display: block !important;   /* override jQuery .hide() initial */
        position: fixed !important;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        z-index: 200;
        margin: 0;
        padding: 6px 20px 24px;
        border-radius: 20px 20px 0 0;
        max-height: 85dvh;
        overflow-y: auto;
        overscroll-behavior: contain;
        transform: translateY(100%);       /* caché par défaut */
        transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
        box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.12);
        border: none;
        background: #fff;
    }

    /* Handle drag */
    #filtres_vehicules::before {
        content: "";
        display: block;
        width: 36px;
        height: 4px;
        background: #e5e7eb;
        border-radius: 999px;
        margin: 12px auto 6px;
    }

    /* Sticky désactivé sur mobile */
    #filtres_vehicules {
        position: fixed !important;
        top: auto;
    }

    /* #scroll_filtres_vehicules masqué sur mobile */
    #scroll_filtres_vehicules {
        display: none !important;
    }

    /* Touch targets agrandis */
    .checkbox-filtres-selection .form-check-input {
        width: 20px;
        height: 20px;
        min-width: 20px;
    }

    .checkbox-filtres-selection .form-check-input:checked::after {
        left: 6px;
        top: 2px;
        width: 6px;
        height: 10px;
    }

    .checkbox-filtres-selection .form-check-label {
        font-size: 14px;
    }

    .checkbox-filtres-selection {
        max-height: 150px;
    }

    .filtre-prix input,
    .filtre-km input,
    .filtre-annee input {
        padding: 10px 12px;
        font-size: 14px;
    }

    .label-critair img {
        width: 40px;
    }

    /* Bouton Filtrer sticky en bas du drawer */
    #btn_filtre_vehicules {
        position: sticky !important;
        bottom: 0;
        width: 100% !important;
        margin: 16px 0 0;
        border-radius: 12px;
        font-size: 14px;
        font-weight: 600;
        padding: 13px;
    }

    .btn-filtre-vehicules-fixed {
        position: sticky !important;
        bottom: 0;
    }
}

/* =============================================
   MOBILE — < 640px
   ============================================= */
@media screen and (max-width: 640px) {

    #filtres_vehicules {
        max-height: 92dvh;
    }

    #all_vehicules {
        flex-direction: column;
        align-items: stretch;
    }

    .nombre-resultats .fw-bold {
        font-size: 18px;
    }

    .responsive-bouton-filtrer,
    .dropdown .btn.btn-outline-primary {
        font-size: 14px;
        padding: 10px 20px;
    }
}