:root {
    --navy: #102a5e; /* Bleu Marine EduPay */
    --amber: #f59e0b; /* Ambre Premium */
    --slate: #1e293b; /* Texte Principal */
    --light: #f1f5f9; /* Fond légèrement grisé */
    --white: #ffffff;
    --border: #e2e8f0;
    --shadow: 0 20px 40px rgba(16, 42, 94, 0.08);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--light);
    color: var(--slate);
    line-height: 1.6;
    overflow-x: hidden;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 25px; }

/* FLOATING BACK */
.floating-back {
    position: fixed; top: 30px; left: 30px; z-index: 100;
    text-decoration: none; color: var(--navy); font-weight: 700;
    font-size: 13px; display: flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.7); backdrop-filter: blur(10px);
    padding: 10px 20px; border-radius: 50px; border: 1px solid var(--border);
    box-shadow: 0 5px 15px rgba(0,0,0,0.03); transition: var(--transition);
}
.floating-back:hover { transform: translateX(-5px); background: var(--navy); color: white; border-color: var(--navy); }

/* HEADER */
.team-header { padding: 100px 0 60px; text-align: center; }
.badge-t {
    display: inline-block; padding: 6px 16px; background: rgba(16, 42, 94, 0.05);
    color: var(--navy); border-radius: 50px; font-weight: 800; font-size: 11px;
    text-transform: uppercase; margin-bottom: 20px; letter-spacing: 1px;
}
.team-header h1 { font-size: 48px; color: var(--navy); font-weight: 800; }
.team-header h1 span { color: var(--amber); }
.lead { margin-top: 25px; font-size: 18px; color: #64748b; max-width: 700px; margin-left: auto; margin-right: auto; font-weight: 400; }

/* TEAM GRID */
.team-grid { padding-bottom: 100px; }
.team-grid .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* TEAM CARD */
.team-card {
    background: var(--white);
    border-radius: 24px;
    border: 1px solid #eef2f6;
    overflow: hidden;
    position: relative;
    transition: var(--transition);
    opacity: 0; /* Piloté par JS */
    transform: translateY(30px);
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
    border-color: #dbeafe;
}

.card-inner {
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.member-image {
    width: 140px; height: 140px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid rgba(16, 42, 94, 0.03);
    margin-bottom: 25px;
    transition: var(--transition);
}

.member-image img { width: 100%; height: 100%; object-fit: cover; }

.team-card:hover .member-image {
    border-color: rgba(245, 158, 11, 0.2);
    transform: scale(1.05);
}

.member-info h3 { color: var(--navy); font-size: 20px; font-weight: 700; margin-bottom: 5px; }
.role { color: var(--amber); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 15px; }
.bio { color: #64748b; font-size: 14px; line-height: 1.6; margin-bottom: 25px; font-weight: 400; }

/* SOCIAL BAR */
.member-social {
    display: flex; gap: 15px;
    padding: 15px 0 0;
    border-top: 1px solid #f1f5f9;
    width: 100%;
    justify-content: center;
}

.member-social a {
    text-decoration: none;
    color: #94a3b8;
    font-size: 18px;
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: #f8fafc;
    transition: var(--transition);
}

.member-social a:hover {
    color: white;
    background: var(--navy);
    transform: scale(1.1) rotate(5deg);
}

/* FOOTER */
.team-footer {
    text-align: center; padding: 50px 0;
    border-top: 1px solid #e2e8f0;
    background: var(--white);
    color: #94a3b8; font-size: 14px;
}
.team-footer a { color: var(--navy); font-weight: 600; text-decoration: none; }
.team-footer a:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 768px) {
    .team-header h1 { font-size: 32px; }
    .floating-back { top: 15px; left: 15px; padding: 8px 15px; font-size: 12px; }
    .floating-back span { display: none; }
}
/* STATS SECTION */
.team-stats {
    padding: 60px 0;
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}
.stat-number {
    display: block;
    font-size: 42px;
    font-weight: 800;
    color: var(--amber); /* Ton orange */
    margin-bottom: 5px;
}
.stat-item p { color: var(--navy); font-weight: 600; font-size: 14px; text-transform: uppercase; }

/* TITRES */
.section-title { text-align: center; margin-bottom: 50px; color: var(--navy); font-size: 28px; font-weight: 800; }

/* JOIN US CARD */
.join-us-card .card-inner {
    background: var(--navy);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
}
.join-content i { font-size: 50px; color: var(--amber); margin-bottom: 20px; }
.btn-join { 
    display: inline-block; margin-top: 20px; padding: 10px 25px; 
    background: var(--amber); color: white; border-radius: 8px; text-decoration: none; font-weight: bold;
}

/* VALUES SECTION */
.team-values { padding: 100px 0; background: #f8fafc; }
.values-header { text-align: center; margin-bottom: 60px; }
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; }
.value-box { text-align: center; }
.value-box i { font-size: 40px; color: var(--navy); margin-bottom: 20px; }
.value-box h4 { margin-bottom: 15px; color: var(--navy); }
.team-expertise {
    padding: 80px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
}

.section-subtitle {
    text-align: center;
    margin-top: -40px;
    margin-bottom: 50px;
    color: #64748b;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.exp-card {
    background: white;
    padding: 35px;
    border-radius: 20px;
    border-bottom: 4px solid var(--navy);
    transition: 0.3s;
}

.exp-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(16, 42, 94, 0.08);
}

.exp-icon {
    font-size: 30px;
    color: var(--amber);
    margin-bottom: 20px;
}

.tech-tag {
    display: inline-block;
    padding: 4px 10px;
    background: #f1f5f9;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    color: var(--navy);
    margin-top: 15px;
    margin-right: 5px;
    text-transform: uppercase;
}