/* ===================================
   ÉQUIPE - STYLE MODERNE PORTRAIT
   =================================== */

/* Section En-tête Équipe */
.page-header {
    background: linear-gradient(135deg, #003366 0%, #C85A9C 100%);
    color: white;
    text-align: center;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.page-header h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.page-header p {
    font-size: 20px;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

/* Section Équipe */
.team-section {
    padding: 80px 0;
    background: #ffffff; /* Fond blanc pur */
}

.section-intro {
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
    font-size: 18px;
    color: #666;
    line-height: 1.8;
}

/* Grille Équipe - Portrait Moderne */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 30px;
    padding: 20px 0;
    max-width: 1200px;
    margin: 0 auto;
}

/* Style spécial pour le DG (premier membre) */
.team-card:first-child {
    grid-column: 1 / -1; /* Prend toute la largeur */
    max-width: 320px; /* Taille raisonnable pour le DG */
    margin: 0 auto 40px; /* Centré avec marge en bas */
}

.team-card:first-child .team-image {
    padding-top: 100%; /* Ratio carré pour le DG */
}

.team-card:first-child .team-info h3 {
    font-size: 24px; /* Nom plus grand pour le DG */
}

.team-card:first-child .team-position {
    font-size: 16px; /* Poste plus grand pour le DG */
}

.team-card:first-child .team-bio {
    font-size: 14px;
}

/* Carte Membre - Design Portrait */
.team-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 51, 102, 0.15);
}

/* Image Portrait */
.team-image {
    position: relative;
    width: 100%;
    padding-top: 110%; /* Ratio portrait léger (au lieu de 120%) */
    overflow: hidden;
    background: #ffffff; /* Fond blanc */
}

.team-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.team-card:hover .team-image img {
    transform: scale(1.08);
}

/* Overlay avec effets */
.team-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.4) 30%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 30px;
}

.team-card:hover .team-overlay {
    opacity: 1;
}

/* Réseaux sociaux */
.team-social {
    display: flex;
    gap: 12px;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.team-card:hover .team-social {
    transform: translateY(0);
}

.team-social a {
    width: 38px;
    height: 38px;
    background: white;
    color: #C85A9C;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.team-social a:hover {
    background: #003366;
    color: white;
    transform: scale(1.15) rotate(5deg);
}

/* Informations Membre */
.team-info {
    padding: 25px 20px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: white;
}

.team-info h3 {
    font-size: 19px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
    line-height: 1.3;
}

.team-position {
    font-size: 13px;
    color: #C85A9C;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.team-bio {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Décoration badge */
.team-card::before {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-card:hover::before {
    opacity: 1;
}

/* ===================================
   SECTION DÉPARTEMENTS
   =================================== */

.departments-section {
    padding: 80px 0;
    background: white;
}

.departments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.department-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.department-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(200, 90, 156, 0.1), transparent);
    transition: left 0.5s ease;
}

.department-card:hover::before {
    left: 100%;
}

.department-card:hover {
    border-color: #C85A9C;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(200, 90, 156, 0.15);
}

.dept-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, #C85A9C, #E896C8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.department-card:hover .dept-icon {
    transform: scale(1.1) rotate(5deg);
}

.dept-icon i {
    font-size: 35px;
    color: white;
}

.department-card h3 {
    font-size: 20px;
    color: #1a1a1a;
    margin-bottom: 15px;
    font-weight: 700;
}

.department-card p {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* ===================================
   SECTION VALEURS
   =================================== */

.team-values-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #C85A9C 0%, #003366 100%);
    color: white;
    position: relative;
}

.team-values-section .section-header h2 {
    color: white;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.value-item {
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.value-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.value-item i {
    font-size: 50px;
    color: #E896C8;
    margin-bottom: 20px;
    display: block;
}

.value-item h4 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
}

.value-item p {
    font-size: 15px;
    opacity: 0.9;
    line-height: 1.6;
    margin: 0;
}

/* ===================================
   SECTION REJOINDRE L'ÉQUIPE
   =================================== */

.join-us-section {
    padding: 100px 0;
    background: #f8f9fa;
}

.join-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.join-content h2 {
    font-size: 38px;
    color: #1a1a1a;
    margin-bottom: 25px;
    font-weight: 700;
}

.join-content p {
    font-size: 18px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 35px;
}

.btn {
    display: inline-block;
    padding: 16px 45px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, #C85A9C, #E896C8);
    color: white;
    box-shadow: 0 5px 20px rgba(200, 90, 156, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(200, 90, 156, 0.4);
    background: linear-gradient(135deg, #B04A87, #C85A9C);
}

/* ===================================
   SECTION HEADER COMMUNE
   =================================== */

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 38px;
    color: #1a1a1a;
    margin-bottom: 15px;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #C85A9C, #E896C8);
    border-radius: 2px;
}

.section-header p {
    font-size: 18px;
    color: #666;
    margin-top: 25px;
}

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 1200px) {
    .team-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 36px;
    }
    
    .page-header p {
        font-size: 16px;
    }
    
    .team-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 25px;
    }
    
    .team-info {
        padding: 25px 20px;
    }
    
    .team-info h3 {
        font-size: 20px;
    }
    
    .departments-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .join-content h2 {
        font-size: 30px;
    }
    
    .section-header h2 {
        font-size: 30px;
    }
}

@media (max-width: 480px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .team-social a {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .page-header {
        padding: 60px 0;
    }
    
    .team-section,
    .departments-section,
    .team-values-section,
    .join-us-section {
        padding: 60px 0;
    }
}

/* ===================================
   ANIMATIONS
   =================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.team-card {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.team-card:nth-child(1) { animation-delay: 0.1s; }
.team-card:nth-child(2) { animation-delay: 0.2s; }
.team-card:nth-child(3) { animation-delay: 0.3s; }
.team-card:nth-child(4) { animation-delay: 0.4s; }
.team-card:nth-child(5) { animation-delay: 0.5s; }
.team-card:nth-child(6) { animation-delay: 0.6s; }