/* ========================================
   NOTRE ÉQUIPE - TOPCENTER
   Charte: #0D4FD8 (bleu) & #FF772A (orange)
   ======================================== */

/* Variables CSS */
:root {
    --topcenter-blue: #0D4FD8;
    --topcenter-orange: #FF772A;
    --topcenter-blue-light: rgba(13, 79, 216, 0.1);
    --topcenter-orange-light: rgba(255, 119, 42, 0.1);
    --topcenter-blue-dark: #0a3db0;
}

/* Hero Section */
.hero-equipe {
    background: linear-gradient(135deg, var(--topcenter-blue) 0%, var(--topcenter-orange) 100%);
    color: white;
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero-equipe::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.2;
}

.hero-equipe .display-4 {
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    line-height: 1.2;
}

.hero-equipe .lead {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 2rem;
}

/* Section Équipe */
.equipe-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.equipe-title {
    text-align: center;
    margin-bottom: 4rem;
}

.equipe-title h2 {
    color: var(--topcenter-blue);
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
}

.equipe-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--topcenter-blue), var(--topcenter-orange));
    border-radius: 2px;
}

.equipe-title .subtitle {
    color: #6c757d;
    font-size: 1.125rem;
    font-weight: 400;
}

/* Cards Membre d'Équipe */
.membre-card {
    background: white;
    border: none;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.membre-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--topcenter-blue), var(--topcenter-orange));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.membre-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.membre-card:hover::before {
    transform: scaleX(1);
}

.membre-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    border: 4px solid var(--topcenter-blue-light);
    transition: all 0.3s ease;
    display: block;
}

.membre-card:hover .membre-photo {
    border-color: var(--topcenter-blue);
    transform: scale(1.05);
}

.membre-nom {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--topcenter-blue);
    margin-bottom: 0.5rem;
}

.membre-poste {
    color: var(--topcenter-orange);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

/* Social Icons */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--topcenter-blue-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--topcenter-blue);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.social-link:hover {
    background: var(--topcenter-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 79, 216, 0.3);
}

.social-link:nth-child(2) {
    background: var(--topcenter-orange-light);
    color: var(--topcenter-orange);
}

.social-link:nth-child(2):hover {
    background: var(--topcenter-orange);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 119, 42, 0.3);
}

/* Section Dynamisme */
.dynamisme-section {
    padding: 4rem 0;
    background: white;
}

.dynamisme-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 0 1rem;
}

.dynamisme-content h3 {
    color: var(--topcenter-blue);
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.dynamisme-content .lead {
    color: #6c757d;
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.dynamisme-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.dynamisme-feature {
    padding: 1.5rem;
    background: var(--topcenter-blue-light);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.dynamisme-feature:nth-child(even) {
    background: var(--topcenter-orange-light);
}

.dynamisme-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.dynamisme-feature i {
    font-size: 2rem;
    color: var(--topcenter-blue);
    margin-bottom: 1rem;
    display: block;
}

.dynamisme-feature:nth-child(even) i {
    color: var(--topcenter-orange);
}

.dynamisme-feature h5 {
    color: var(--topcenter-blue);
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.dynamisme-feature:nth-child(even) h5 {
    color: var(--topcenter-orange);
}

.dynamisme-feature p {
    color: #6c757d;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* CTA Section */
.cta-equipe {
    background: linear-gradient(135deg, var(--topcenter-blue) 0%, var(--topcenter-orange) 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.cta-equipe h2 {
    font-weight: 700;
    font-size: 2.25rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.cta-equipe .lead {
    font-size: 1.125rem;
    opacity: 0.95;
    margin-bottom: 2rem;
}

/* Boutons */
.btn-equipe-primary {
    background: white;
    color: var(--topcenter-blue);
    border: 2px solid white;
    border-radius: 30px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin: 0 0.5rem;
}

.btn-equipe-primary:hover {
    background: transparent;
    color: white;
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.btn-equipe-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
    border-radius: 30px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin: 0 0.5rem;
}

.btn-equipe-secondary:hover {
    background: white;
    color: var(--topcenter-blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

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

.membre-card,
.dynamisme-feature {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.membre-card:nth-child(1) { animation-delay: 0.1s; }
.membre-card:nth-child(2) { animation-delay: 0.2s; }
.membre-card:nth-child(3) { animation-delay: 0.3s; }

.dynamisme-feature:nth-child(1) { animation-delay: 0.1s; }
.dynamisme-feature:nth-child(2) { animation-delay: 0.2s; }
.dynamisme-feature:nth-child(3) { animation-delay: 0.3s; }
.dynamisme-feature:nth-child(4) { animation-delay: 0.4s; }

/* Responsive */
@media (max-width: 992px) {
    .equipe-title h2 {
        font-size: 2rem;
    }
    
    .membre-card {
        margin-bottom: 2rem;
    }
    
    .membre-photo {
        width: 120px;
        height: 120px;
    }
    
    .dynamisme-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero-equipe {
        padding: 3rem 0 2.5rem;
    }
    
    .hero-equipe .display-4 {
        font-size: 2rem;
    }
    
    .equipe-section,
    .dynamisme-section,
    .cta-equipe {
        padding: 3rem 0;
    }
    
    .equipe-title h2 {
        font-size: 1.75rem;
    }
    
    .membre-card {
        padding: 1.5rem;
    }
    
    .membre-photo {
        width: 100px;
        height: 100px;
    }
    
    .social-icons {
        gap: 0.5rem;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .btn-equipe-primary,
    .btn-equipe-secondary {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .d-flex.flex-md-row {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }
}

@media (max-width: 576px) {
    .hero-equipe .display-4 {
        font-size: 1.75rem;
    }
    
    .membre-nom {
        font-size: 1.125rem;
    }
    
    .membre-poste {
        font-size: 0.9rem;
    }
    
    .dynamisme-content h3 {
        font-size: 1.5rem;
    }
}

/* Accessibilité */
.membre-card:focus-within,
.dynamisme-feature:focus-within {
    outline: 2px solid var(--topcenter-blue);
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .membre-card,
    .dynamisme-feature,
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    
    .membre-card:hover,
    .dynamisme-feature:hover {
        transform: none;
    }
}

/* Print */
@media print {
    .hero-equipe,
    .cta-equipe {
        background: white !important;
        color: black !important;
        -webkit-print-color-adjust: exact;
    }
    
    .membre-card {
        box-shadow: none !important;
        border: 1px solid #dee2e6 !important;
    }
}