/* Styles pour l'Annuaire des Membres */

.directory-section {
    padding: 4rem 5%;
    background: var(--light);
    min-height: 60vh;
}

.directory-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Barre de recherche */
.search-bar {
    max-width: 600px;
    margin: 0 auto 3rem;
}

.search-bar input {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-family: 'Work Sans', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 5px 20px rgba(233, 30, 99, 0.2);
}

/* Message vide */
.empty-message {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
}

.empty-message h3 {
    font-family: 'Righteous', cursive;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.empty-message p {
    color: var(--gray);
    font-size: 1.1rem;
}

/* Grille des membres */
.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* Carte membre */
.member-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.member-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(233, 30, 99, 0.2);
}

.member-card-avatar {
    margin-bottom: 1.5rem;
}

.avatar-circle {
    width: 80px;
    height: 80px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.member-card:hover .avatar-circle {
    background: var(--secondary);
    transform: scale(1.1);
}

.member-card-info h3 {
    font-family: 'Righteous', cursive;
    font-size: 1.3rem;
    color: var(--dark);
    margin-bottom: 1rem;
}

.member-phone,
.member-email {
    color: var(--gray);
    font-size: 0.95rem;
    margin: 0.5rem 0;
}

.member-card-btn {
    width: 100%;
    padding: 0.8rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.member-card-btn:hover {
    background: var(--secondary);
}

/* Modale membre */
.member-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 10000;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: rotate(90deg);
}

.modal-body {
    padding: 3rem 2rem 2rem;
}

.modal-avatar {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-avatar .avatar-circle {
    width: 100px;
    height: 100px;
    font-size: 2.5rem;
}

.modal-info h2 {
    font-family: 'Righteous', cursive;
    font-size: 1.8rem;
    color: var(--dark);
    margin-bottom: 2rem;
    text-align: center;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--light);
    border-radius: 10px;
    margin-bottom: 1rem;
}

.contact-icon {
    font-size: 1.5rem;
    min-width: 30px;
}

.contact-details {
    flex: 1;
}

.contact-details label {
    display: block;
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    font-weight: 600;
}

.contact-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--secondary);
    text-decoration: underline;
}

.modal-note {
    background: #e3f2fd;
    padding: 1rem;
    border-radius: 10px;
    margin-top: 2rem;
    text-align: center;
}

.modal-note p {
    color: var(--dark);
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .members-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .modal-content {
        width: 95%;
    }
    
    .modal-body {
        padding: 2.5rem 1.5rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .members-grid {
        grid-template-columns: 1fr;
    }
    
    .member-card {
        padding: 1.5rem;
    }
}

/* Badges de type de contact */
.type-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.type-membre {
    background: #4caf50;
    color: white;
}

.type-autre {
    background: #ff9800;
    color: white;
}