/*--------------------------------------------------------------
# Team Section Modern - Refined & Intuitive Design
# Style épuré avec animations subtiles et UX optimale
--------------------------------------------------------------*/

/* Section Container */
.team-section-modern {
    background: #ffffff;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.team-section-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #FF8200, #009B3A, transparent);
}

/* Section Header */
.section-header-modern {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
}

.section-badge {
    display: inline-block;
    padding: 10px 28px;
    background: linear-gradient(135deg, #FF8200 0%, #009B3A 100%);
    color: #ffffff;
    border-radius: 30px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(255, 130, 0, 0.25);
}

.section-header-modern h2 {
    font-size: 52px;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.section-header-modern h2 span {
    background: linear-gradient(135deg, #FF8200 0%, #009B3A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.section-header-modern p {
    font-size: 18px;
    color: #666;
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Team Grid */
.team-grid-modern {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Team Card */
.team-card-modern {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #f5f5f5;
    overflow: hidden;
}

.team-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FF8200 0%, #ffffff 50%, #009B3A 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.team-card-modern:hover::before {
    opacity: 1;
}

.team-card-modern:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 130, 0, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

/* Featured Card (Président) */
.team-card-modern.featured {
    border-color: #FF8200;
    background: linear-gradient(135deg, rgba(255, 130, 0, 0.02) 0%, rgba(0, 155, 58, 0.02) 100%);
}

.team-card-modern.featured::before {
    opacity: 1;
    height: 5px;
}

/* Card Glow - Subtle */
.card-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 130, 0, 0.08) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.team-card-modern:hover .card-glow {
    opacity: 1;
}

/* Member Photo */
.member-photo {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 30px;
}

.member-photo img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #f5f5f5;
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.team-card-modern:hover .member-photo img {
    border-color: #FF8200;
    transform: scale(1.05);
}

.team-card-modern.featured .member-photo img {
    border-color: #FF8200;
}

/* Role Badge */
.role-badge {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #FF8200 0%, #009B3A 100%);
    color: #ffffff;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(255, 130, 0, 0.35);
    white-space: nowrap;
    z-index: 2;
}

.role-badge.president {
    background: linear-gradient(135deg, #FF8200 0%, #009B3A 100%);
    padding: 8px 24px;
    font-size: 12px;
    box-shadow: 0 6px 20px rgba(255, 130, 0, 0.4);
}

/* Member Info */
.member-info {
    position: relative;
}

.member-info h3 {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}

.member-info .role {
    font-size: 16px;
    font-weight: 600;
    color: #FF8200;
    margin-bottom: 8px;
    line-height: 1.4;
}

.member-info .ministry {
    font-size: 15px;
    color: #777;
    margin-bottom: 24px;
    line-height: 1.5;
    min-height: 45px;
}

/* Button Message */
.btn-message {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #FF8200 0%, #009B3A 100%);
    color: #ffffff;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 25px rgba(255, 130, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

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

.btn-message:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 155, 58, 0.35);
}

.btn-message i,
.btn-message span {
    position: relative;
    z-index: 1;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .team-grid-modern {
        gap: 30px;
    }
    
    .member-photo {
        width: 160px;
        height: 160px;
    }
}

@media (max-width: 992px) {
    .team-grid-modern {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .team-card-modern.featured {
        grid-column: span 2;
    }
    
    .section-header-modern h2 {
        font-size: 42px;
    }
}

@media (max-width: 768px) {
    .team-section-modern {
        padding: 80px 0;
    }
    
    .section-header-modern {
        margin-bottom: 60px;
    }
    
    .team-grid-modern {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .team-card-modern {
        padding: 35px 25px;
    }
    
    .team-card-modern.featured {
        grid-column: span 1;
    }
    
    .section-header-modern h2 {
        font-size: 36px;
    }
    
    .member-photo {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 576px) {
    .team-section-modern {
        padding: 60px 0;
    }
    
    .section-header-modern h2 {
        font-size: 30px;
    }
    
    .section-header-modern p {
        font-size: 16px;
    }
    
    .team-card-modern {
        padding: 30px 20px;
    }
    
    .member-photo {
        width: 130px;
        height: 130px;
        margin-bottom: 25px;
    }
    
    .member-info h3 {
        font-size: 22px;
    }
    
    .member-info .role {
        font-size: 15px;
    }
    
    .member-info .ministry {
        font-size: 14px;
        min-height: auto;
    }
    
    .btn-message {
        padding: 12px 24px;
        font-size: 13px;
    }
}
