/* Conteneur principal */
.mslc-search-wrapper {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

/* Le formulaire en Flexbox */
.mslc-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end; /* Aligne le bouton avec les champs */
}

/* Groupe de champs individuel */
.mslc-filter-field {
    flex: 1 1 200px; /* Largeur flexible, minimum 200px */
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mslc-filter-field label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #444;
    text-transform: uppercase;
}

/* Styles des inputs et selects */
.mslc-filter-field input[type="text"],
.mslc-filter-field input[type="number"],
.mslc-filter-field select {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    background-color: #fff;
    transition: border-color 0.2s;
}

.mslc-filter-field input:focus,
.mslc-filter-field select:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,115,170,0.1);
}

/* Groupe spécifique pour les Checkboxes */
.mslc-filter-group-checkboxes {
    flex: 1 1 100%; /* Prend toute la largeur sur mobile */
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.mslc-filter-field.type-checkbox {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.mslc-filter-field.type-checkbox input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Le bouton de recherche */
.mslc-btn-search {
    flex: 0 0 auto;
    background-color: #0073aa;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    height: 44px; /* Même hauteur que les inputs */
}

.mslc-btn-search:hover {
    background-color: #005177;
}

/* Animation de chargement (utilisée par le JS) */
.mslc-component {
    transition: opacity 0.3s ease;
}

/* Media Query pour Mobile */
@media (max-width: 600px) {
    .mslc-filter-field {
        flex: 1 1 100%; /* Un champ par ligne sur mobile */
    }
    .mslc-btn-search {
        width: 100%;
    }
}
.mslc-filter-actions {
    display: flex;
    gap: 10px;
    flex: 0 0 auto;
}

.mslc-btn-reset {
    background-color: #e2e8f0;
    color: #475569;
    border: 1px solid #cbd5e1;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    height: 44px;
}

.mslc-btn-reset:hover {
    background-color: #cbd5e1;
    color: #1e293b;
}

/* Sur mobile, on empile les boutons */
@media (max-width: 600px) {
    .mslc-filter-actions {
        flex-direction: column;
        width: 100%;
    }
}