/**
 * Styles CSS pour les filtres avancés de l'annuaire
 */

/* Overlay */
#annuaire-filters-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Panneau de filtres */
.annuaire-filters-panel {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

/* En-tête du panneau */
.annuaire-filters-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.annuaire-filters-header h3 {
    margin: 0;
    font-size: 20px;
    color: #333;
}

.annuaire-filters-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
}

.annuaire-filters-close:hover {
    color: #333;
}

/* Contenu du panneau */
.annuaire-filters-content {
    padding: 20px;
}

/* Groupe de filtres */
.filter-group {
    margin-bottom: 20px;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.filter-group input[type="text"],
.filter-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.filter-group input[type="text"]:focus,
.filter-group select:focus {
    outline: none;
    border-color: #0088ff;
    box-shadow: 0 0 0 3px rgba(0, 136, 255, 0.1);
}

/* Actions */
.filter-actions {
    display: flex;
    gap: 10px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.filter-actions .button {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-actions .button-primary {
    background: #0088ff;
    color: #fff;
}

.filter-actions .button-primary:hover {
    background: #0066cc;
}

.filter-actions .button:not(.button-primary) {
    background: #f5f5f5;
    color: #333;
}

.filter-actions .button:not(.button-primary):hover {
    background: #e0e0e0;
}

/* Bouton pour ouvrir les filtres */
.annuaire-filters-toggle {
    display: inline-block;
    padding: 10px 20px;
    background: #0088ff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    margin: 10px 0;
    transition: background 0.3s;
    text-decoration: none;
}

.annuaire-filters-toggle:hover {
    background: #0066cc;
    color: #fff;
}

.annuaire-filters-toggle::before {
    content: "🔍 ";
    margin-right: 5px;
}

.annuaire-filters-button-wrapper {
    margin: 15px 0;
    text-align: center;
}

/* Filtres actifs */
.active-filters {
    background: #f0f7ff;
    padding: 15px 20px;
    margin: 15px 0 20px 0;
    border-radius: 4px;
    border-left: 4px solid #0088ff;
    font-size: 14px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.active-filters strong {
    color: #333;
    margin-right: 5px;
}

.active-filters strong:first-child {
    margin-right: 10px;
}

.active-filters .clear-filters {
    color: #0088ff;
    text-decoration: none;
    margin-left: auto;
    font-weight: 600;
    padding: 5px 10px;
    background: #fff;
    border-radius: 3px;
    transition: all 0.3s;
}

.active-filters .clear-filters:hover {
    background: #0088ff;
    color: #fff;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    .annuaire-filters-panel {
        width: 95%;
        max-height: 95vh;
    }
    
    .filter-actions {
        flex-direction: column;
    }
    
    .filter-actions .button {
        width: 100%;
    }
}

