
/* Le conteneur qui aligne proprement tous tes boutons de filtres */
.filters-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 25px;
    padding: 10px 0;
    
    border: solid black 2px; 
    padding: 30px; 
    background-color: #fdf0d5;
}

/* Style de base de chaque bouton (checkbox masquée dedans) */
.filter-btn {
    cursor: pointer;
    padding: 8px 16px;
/*     border: 1px solid #e0e0e0; */
    border: solid black 1px;
    border-radius: 20px;
    background-color: #f8f9fa;
    font-size: 14px;
    font-weight: 500;
    color: #495057;
    user-select: none;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

/* Effet au survol de la souris */
.filter-btn:hover {
    background-color: #e9ecef;
    border-color: #ced4da;
    transform: translateY(-1px);
}

/* Cache la case à cocher carrée native du navigateur */
.filter-btn input[type="checkbox"] {
    display: none;
}

/* Style dynamique quand le bouton est coché/activé */
.filter-btn:has(input:checked) {
    background-color: #007bff;
    color: white;
    border-color: #0056b3;
    box-shadow: 0 4px 6px rgba(0, 123, 255, 0.2);
}





/* /* Style de base : inactif (gris) */ 
/* .distance-filter-container { */
/* /*     display: inline-flex; */ 
/*     display: inline-flex; */
/*     width: auto;          */
/*     align-items: center; */
/*     gap: 5px; */
/*     transition: all 0.2s ease-in-out; */
/* } */

/* /* Style quand le filtre est ACTIF (la checkbox est cochée) */ 
/* .distance-filter-container:has(#distanceToggle:checked) { */
/*     background-color: #007bff; */
/* /*     color: white; */ 
/*     border-color: #0056b3; */
/*     box-shadow: 0 4px 6px rgba(0, 123, 255, 0.2); */
/* } */

/* /* Style de l'input numérique */ 
/* .distance-filter-container input[type="number"] { */
/*     width: 50px; */
/*     font-weight: bold; */
/*     border: solid black 1px; */
/*     background: white; */
/*     text-align: center; */
/*     color: black; */
/*     outline: none; */
/*     padding: 0; */
/* } */


/* .distance-label { */
/*     cursor: pointer; */
/*     font-weight: bold; */
/*     margin: 0; */
/*     user-select: none; */
/* } */


.distance-filter-container {
    display: inline-flex;
    width: auto;         
    align-items: center;
    gap: 8px;
}

/* Conteneur blanc interne */
.distance-controls {
    display: inline-flex;
    width: auto;         
    
    align-items: center;
    background-color: #ffffff !important;
    border: 1px solid #ced4da;
    border-radius: 20px; /* Style arrondi plus moderne */
    padding: 2px 6px;
}

/* L'input au milieu */
.distance-controls input[type="number"] {
    width: 50px;         
    font-weight: bold;
    border: none;
    background: transparent !important;
    color: #000000 !important;
    text-align: center;
    outline: none;
    padding: 0;
/*     pointer-events: none;  */
}

/* Petit "m" pour mètres */
.unit-m {
    color: #6c757d;
    font-size: 12px;
    font-weight: bold;
    margin-right: 4px;
}

/* Nos nouvelles flèches / boutons personnalisés */
.spin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background-color: #f1f3f5;
    color: #000000;
    font-weight: bold;
    font-size: 14px;
    border-radius: 50%;
    cursor: pointer;
    user-select: none;
    transition: background 0.1s;
}

.spin-btn:hover {
    background-color: #e9ecef;
}

/* Masquage définitif des flèches natives partout */
.distance-controls input[type="number"]::-webkit-inner-spin-button,
.distance-controls input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.distance-controls input[type="number"] {
    -moz-appearance: textfield;
}






/* --- LA CROIX DE DÉACTIVATION --- */
.reset-cross {
    display: none; /* Cachée par défaut quand le filtre est gris */
    margin-left: 6px;
/*     padding: 0 4px; */
    font-size: 26px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    border-radius: 50%;
    transition: background 0.2s;
}

/* On affiche la croix UNIQUEMENT quand le filtre est actif (bleu) */
.distance-filter-container:has(#distanceToggle:checked) .reset-cross {
    display: inline-block;
}

/* Effet au survol de la croix */
.reset-cross:hover {
    background-color: rgba(255, 255, 255, 0.3);
    color: #ff4d4d; /* Devient rouge subtilement au survol */
}

/* /* Force les flèches à être visibles et noires sur les navigateurs Webkit (Chrome, Safari, Edge) */ 
/* .distance-filter-container input[type="number"]::-webkit-inner-spin-button, */
/* .distance-filter-container input[type="number"]::-webkit-outer-spin-button { */
/*     opacity: 1 !important; */
/*     cursor: pointer; */
/* } */

/* /* Force la visibilité sur Firefox */ 
/* .distance-filter-container input[type="number"] { */
/*     -moz-appearance: textfield; Optionnel : si tu veux standardiser l'affichage sur Firefox */
/* } */