/* ================================================= */
/* Page « Notre équipe » – Eden Services RD Congo    */
/* À charger APRÈS css/index9.css                    */
/* Utilise les variables et le style existants       */
/* ================================================= */

/* ---------- Hero plus compact + titre en h1 ---------- */
.hero.hero-page {
    min-height: 48vh;
    padding-bottom: 0;
}
.hero-content h1 {
    font-size: clamp(2.2rem, 5.2vw, 4rem);
    margin-bottom: 20px;
    line-height: 1.12;
    font-weight: 900;
    letter-spacing: -0.015em;
    text-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    animation: slideInUp 1s ease-out;
}
.hero-content .hero-sub {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    max-width: 700px;
    margin: 0 auto;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    animation: fadeIn 1.2s ease-out 0.3s backwards;
}

/* ---------- Section équipe ---------- */
.team {
    padding: 90px 0;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(5px);
}
.team-intro {
    max-width: 680px;
    margin-bottom: 50px;
}
.team-intro h2 {
    font-size: clamp(2rem, 3.5vw, 2.6rem);
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -0.01em;
    color: var(--primary-dark);
    margin-bottom: 14px;
}
.team-intro p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--muted);
}

/* Sous-titre de groupe (Direction, Équipe terrain…) */
.team-group + .team-group { margin-top: 70px; }
.team-group-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 30px;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-color-dark);
}
.team-group-title::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
}

/* ---------- Grille de cartes ---------- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 28px;
}

.team-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e3e8e5;
    border-top: 5px solid var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}
.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

/* Bloc photo : remplace l'image par celle de la personne */
.team-photo {
    aspect-ratio: 4 / 5;
    background: linear-gradient(135deg, var(--primary-deep), var(--primary-color));
    overflow: hidden;
}
.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.6s ease;
}
.team-card:hover .team-photo img { transform: scale(1.05); }

/* Nom + fonction */
.team-info {
    padding: 22px 18px 26px;
    position: relative;
}
.team-info::before {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    border-radius: 4px;
    background: var(--accent-color);
    margin: 0 auto 14px;
}
.team-name {
    font-size: 1.25rem;
    line-height: 1.3;
    font-weight: 700;
    color: var(--primary-dark);
}
.team-role {
    margin-top: 4px;
    font-size: 0.97rem;
    font-weight: 500;
    color: var(--muted);
    line-height: 1.45;
}

/* Réseaux (optionnel) */
.team-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
}
.team-links a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(40, 167, 69, 0.12);
    color: var(--primary-dark);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background var(--transition-speed), color var(--transition-speed);
}
.team-links a:hover {
    background: var(--primary-color);
    color: #fff;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .hero.hero-page { min-height: 40vh; }
    .team { padding: 60px 0; }
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .team-info { padding: 16px 10px 20px; }
    .team-name { font-size: 1.05rem; }
    .team-role { font-size: 0.88rem; }
}

@media (max-width: 420px) {
    .team-grid { grid-template-columns: 1fr; }
}