#filtre-animaux-container {
    margin-bottom: 2rem;
    background: #dbdbdb;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    padding: 1.5rem;
    transition: box-shadow 0.2s ease;
}

#filtre-animaux-container:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.filter-form {
    display: block !important;
    flex-direction: column;
    gap: 1.5rem;
}

.filter-group {
    display: block !important;
    flex-direction: column;
    gap: 0.75rem;
}

.filter-group h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    padding-bottom: 0.25rem;
    border-bottom: 2px solid #007cba;
    display: inline-block;
}

.filter-checkbox {
    display: block !important;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background 0.2s ease;
    margin-bottom: 0.5rem;
}

.filter-checkbox:hover {
    background: #f8f9fa;
}

.filter-checkbox input {
    margin-right: 0.5rem;
    width: 18px;
    height: 18px;
    accent-color: #007cba;
    vertical-align: middle; /* 👈 Alignement vertical avec le texte */
}

.filter-checkbox span {
    font-size: 0.95rem;
    color: #495057;
    vertical-align: middle; /* 👈 Alignement vertical avec la checkbox */
}

#sexe-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ced4da;
    border-radius: 8px;
    background: #fff;
    font-size: 0.95rem;
    color: #495057;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#sexe-select:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0,124,186,0.1);
}

.filter-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 1rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn-primary {
    background-color: #007cba;
    color: white;
}

.btn-primary:hover {
    background-color: #005a87;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #545b62;
}

#loading-indicator {
    text-align: center;
    padding: 2rem;
    font-style: italic;
    color: #6c757d;
}

/* Responsive : sur mobile, les boutons s'alignent verticalement */
@media (max-width: 768px) {
    .filter-form {
        padding: 1rem;
    }

    .filter-group h4 {
        font-size: 0.95rem;
        padding-bottom: 0.2rem;
    }

    .filter-checkbox span {
        font-size: 0.9rem;
    }

    .btn {
        width: 100%;
        text-align: center;
        padding: 0.75rem 1rem;
    }

    .filter-actions {
        gap: 0.5rem;
    }
}