/* Styles spécifiques pour le trombinoscope */
/* Version originale fonctionnelle */

.page-header {
    text-align: center;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.header-content h1 {
    font-size: 2.5rem;
    background: linear-gradient(45deg, var(--primary-warm), var(--accent-warm));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.header-content p {
    color: var(--text-light);
    opacity: 0.8;
    font-size: 1.1rem;
}

/* Filtres d'équipe */
.team-filters {
    margin-bottom: 3rem;
    padding: 0 2rem;
}

.filters-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.filter-btn {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: var(--text-light);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    white-space: nowrap;
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glass);
}

.filter-btn.active {
    background: var(--primary-warm);
    border-color: var(--primary-warm);
    box-shadow: var(--shadow-glass);
}

/* Sections hiérarchiques */
.hierarchy-section {
    margin-bottom: 3rem;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-weight: 600;
}

/* Grille direction */
.direction-grid {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

/* Container des équipes */
.teams-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Cartes d'équipe */
.team-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 2px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glass);
}

/* En-tête d'équipe avec logo */
.team-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    color: white;
    font-weight: 600;
}

.team-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    padding: 5px;
    flex-shrink: 0;
}

.team-title {
    font-size: 1.3rem;
    margin: 0;
}

/* Employés de l'équipe */
.team-employees {
    padding: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 1rem;
}

.mini-employee-card {
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.mini-employee-card:hover {
    transform: scale(1.05);
}

.mini-employee-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 0.5rem;
    border: 2px solid var(--glass-border);
}

.mini-employee-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mini-employee-name {
    font-size: 0.8rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.2;
}

/* Grille pour employés d'équipe */
.team-employees-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Cartes d'employé principales */
.employee-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 2px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.employee-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glass);
}

.employee-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-warm), var(--accent-warm));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.employee-card:hover::before {
    opacity: 1;
}

.employee-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.5rem;
    border: 4px solid var(--glass-border);
    transition: all 0.3s ease;
}

.employee-card:hover .employee-photo {
    border-color: var(--primary-warm);
}

.employee-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.employee-info {
    color: var(--text-light);
}

.employee-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.employee-position {
    font-size: 1rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.employee-email {
    display: inline-block;
    color: var(--primary-warm);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid var(--primary-warm);
    border-radius: 25px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.employee-email:hover {
    background: var(--primary-warm);
    color: white;
}

/* Style spécial pour responsable */
.employee-card.responsable {
    background: linear-gradient(135deg, var(--primary-warm), var(--secondary-warm));
    border: none;
    color: white;
}

.employee-card.responsable .employee-name,
.employee-card.responsable .employee-position,
.employee-card.responsable .employee-email {
    color: white;
    opacity: 1;
}

/* Messages de statut */
.loading-message,
.error-message {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
}

.error-message {
    background: rgba(231, 76, 60, 0.2);
    border: 1px solid rgba(231, 76, 60, 0.3);
    border-radius: 10px;
    margin: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .filters-container {
        flex-direction: column;
        align-items: center;
    }
    
    .teams-container {
        grid-template-columns: 1fr;
    }
    
    .team-employees-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
    
    .employee-photo {
        width: 60px;
        height: 60px;
    }
    
    .header-content h1 {
        font-size: 2rem;
    }
    
    /* Responsive pour les logos */
    .team-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .team-logo {
        width: 35px;
        height: 35px;
    }
}

/* Animation d'apparition */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.employee-card {
    animation: fadeInUp 0.6s ease-out;
}

.team-section {
    animation: fadeInUp 0.8s ease-out;
}

/* Lien actif dans la navigation */
.nav-menu a.active {
    background: var(--primary-warm);
    color: white;
}
