/* Page Staff - Design simple et propre */

/* Staff Hero Section - Même style que Partenaires */
.staff-hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 25%, #1a1a1a 50%, #0f0f0f 75%, #1a1a1a 100%);
    color: #ffffff;
    text-align: center;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.staff-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    animation: heroGlow 8s ease-in-out infinite alternate;
}

.staff-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(45deg, transparent 48%, rgba(212, 175, 55, 0.03) 49%, rgba(212, 175, 55, 0.03) 51%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(255, 255, 255, 0.02) 49%, rgba(255, 255, 255, 0.02) 51%, transparent 52%);
    background-size: 60px 60px;
    animation: patternMove 20s linear infinite;
}

.staff-hero .container {
    position: relative;
    z-index: 2;
}

.staff-hero h1 {
    font-size: 52px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-out;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
}

.staff-hero h1::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), #ffed4e, var(--secondary));
    margin: 20px auto 0;
    border-radius: 2px;
    animation: shimmer 3s ease-in-out infinite;
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
}

.staff-hero p {
    font-size: 20px;
    color: #e0e0e0;
    max-width: 700px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out 0.2s both;
    line-height: 1.6;
}

.staff-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.staff-stat {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 35px 25px;
    border-radius: 20px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.2),
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    min-width: 140px;
    animation: fadeInUp 1s ease-out 0.4s both;
    position: relative;
    overflow: hidden;
}

.staff-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary), #ffed4e, var(--secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.staff-stat:hover::before {
    opacity: 1;
}

.staff-stat:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 25px 70px rgba(0, 0, 0, 0.3),
        0 10px 40px rgba(0, 0, 0, 0.15);
}

.staff-stat-number {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: #000;
    margin-bottom: 8px;
    line-height: 1;
}

.staff-stat-label {
    display: block;
    font-size: 14px;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@keyframes heroGlow {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}

@keyframes patternMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0%, 100% { 
        background-position: 0% center;
        opacity: 1;
    }
    50% { 
        background-position: 100% center;
        opacity: 0.8;
    }
}

/* Filtres améliorés */
.staff-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 28px;
    border: 2px solid #e5e5e5;
    background: white;
    cursor: pointer;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: left 0.5s ease;
}

.filter-btn:hover::before {
    left: 100%;
}

.filter-btn:hover {
    border-color: var(--secondary, #d4af37);
    color: var(--secondary, #d4af37);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

.filter-btn.active {
    background: var(--secondary, #d4af37);
    color: white;
    border-color: var(--secondary, #d4af37);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.filter-btn.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

/* Section header */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #1a1a1a;
}

.section-subtitle {
    font-size: 16px;
    color: #666;
    margin: 0;
    font-weight: 400;
}

.staff-section {
    display: block;
}

.staff-section.hidden {
    display: none;
}

.staff-card {
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    padding: 35px 30px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.staff-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--secondary, #d4af37);
}

.staff-card-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.staff-photo-container {
    width: 140px;
    height: 140px;
    min-width: 140px;
    min-height: 140px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

/* Le conteneur photo n'est affiché que s'il contient une image */

.staff-card:hover .staff-photo-container {
    transform: scale(1.05);
}

.staff-photo {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    border-radius: 50%;
    position: absolute !important;
    top: 0;
    left: 0;
    z-index: 2 !important;
    display: block !important;
    opacity: 1;
}

.staff-avatar-default {
    width: 100%;
    height: 100%;
    min-width: 140px;
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 56px;
    font-weight: 700;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

/* Masquer l'avatar quand une image est présente et chargée */
.staff-photo-container:has(.staff-photo:not([style*="display: none"])) .staff-avatar-default {
    display: none !important;
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.staff-info {
    width: 100%;
}

.staff-info h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #1a1a1a;
}

.staff-position {
    font-size: 15px;
    color: var(--secondary, #d4af37);
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.staff-bio {
    color: #555;
    line-height: 1.8;
    margin-bottom: 25px;
    font-size: 15px;
    flex-grow: 1;
}

.staff-contact {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 14px;
    color: #666;
}

.contact-item a {
    color: #000;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.staff-responsibilities {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 2px solid #f0f0f0;
}

.responsibilities-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 13px;
}

.responsibilities-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.responsibilities-list li {
    padding: 10px 15px 10px 35px;
    font-size: 14px;
    color: #555;
    position: relative;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid var(--secondary, #d4af37);
    transition: all 0.3s ease;
}

.responsibilities-list li:hover {
    background: #f0f0f0;
    transform: translateX(5px);
}

.responsibilities-list li::before {
    content: "✓";
    position: absolute;
    left: 12px;
    color: var(--secondary, #d4af37);
    font-weight: 700;
    font-size: 12px;
}

@media (max-width: 768px) {
    .staff-hero {
        padding: 60px 0;
    }
    
    .staff-hero h1 {
        font-size: 36px;
    }
    
    .staff-hero p {
        font-size: 18px;
    }
    
    .staff-stats {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .staff-stat {
        min-width: 200px;
    }
    
    .staff-grid {
        grid-template-columns: 1fr !important;
    }
    
    .staff-filters {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .container {
        padding: 40px 20px !important;
    }
    
    .staff-section {
        margin-top: 50px !important;
    }
}
