/* ═══════════════════════════════════════════════════════════
   EDUWEB — Carrousel Équipe + Compteur de Stats
   Charte graphique EduWeb v2.0
   Vert #3aaf7f · Orange #f5a623 · Sombre #2d3e36
═══════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────
   SECTION COMMUNE
───────────────────────────────────────── */
.eduweb-section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Montserrat', 'Poppins', sans-serif;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ew-orange, #f5a623);
    margin-bottom: 0.75rem;
}
.eduweb-section-label::before {
    content: '';
    display: inline-block;
    width: 28px;
    height: 2px;
    background: var(--ew-orange, #f5a623);
}
.eduweb-section-title {
    font-family: 'Montserrat', 'Poppins', sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 900;
    color: #1a1f1c;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}
.eduweb-section-title em {
    font-style: normal;
    color: var(--ew-green, #3aaf7f);
}
.eduweb-section-sub {
    font-size: 1rem;
    color: #5a6660;
    max-width: 520px;
    line-height: 1.7;
}

/* ═══════════════════════════════════════════
   1. COMPTEUR DE STATISTIQUES
═══════════════════════════════════════════ */
.eduweb-stats-section {
    background: linear-gradient(160deg, #2d3e36 0%, #1a3328 55%, #1e7d55 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

/* Formes décoratives */
.eduweb-stats-section::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(58,175,127,0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.eduweb-stats-section::after {
    content: '';
    position: absolute;
    bottom: -60px; left: -60px;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(245,166,35,0.10) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.eduweb-stats-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}
.eduweb-stats-header .eduweb-section-label { color: #5cc99a; }
.eduweb-stats-header .eduweb-section-label::before { background: #5cc99a; }
.eduweb-stats-header .eduweb-section-title { color: #ffffff; }
.eduweb-stats-header .eduweb-section-sub { color: rgba(255,255,255,0.65); margin: 0 auto; }

/* Grille des stats */
.eduweb-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 1;
}
@media (max-width: 900px) {
    .eduweb-stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
    .eduweb-stats-grid { grid-template-columns: 1fr; }
}

/* Carte stat individuelle */
.eduweb-stat-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(6px);
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.eduweb-stat-card:hover {
    transform: translateY(-6px);
    background: rgba(58,175,127,0.12);
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}

/* Trait décoratif en bas */
.eduweb-stat-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #3aaf7f, #f5a623);
    border-radius: 2px;
    transition: width 0.4s ease;
}
.eduweb-stat-card:hover::after { width: 60%; }

/* Icône */
.eduweb-stat-icon {
    width: 60px;
    height: 60px;
    background: rgba(58,175,127,0.18);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.6rem;
    transition: background 0.3s ease, transform 0.3s ease;
}
.eduweb-stat-card:hover .eduweb-stat-icon {
    background: rgba(245,166,35,0.2);
    transform: scale(1.1) rotate(-6deg);
}

/* Nombre animé */
.eduweb-stat-number {
    font-family: 'Montserrat', 'Poppins', sans-serif;
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 0.4rem;
    letter-spacing: -0.03em;
}
.eduweb-stat-number .stat-suffix {
    font-size: 0.55em;
    color: #5cc99a;
    vertical-align: super;
    font-weight: 700;
    letter-spacing: 0;
}

/* Libellé */
.eduweb-stat-label {
    font-family: 'Montserrat', 'Poppins', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.55);
    margin-bottom: 0.6rem;
}

/* Description courte */
.eduweb-stat-desc {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.4);
    line-height: 1.5;
}

/* Séparateur vertical entre cartes (desktop) */
.eduweb-stat-card + .eduweb-stat-card::before {
    content: '';
    position: absolute;
    left: -1rem;
    top: 20%;
    height: 60%;
    width: 1px;
    background: rgba(255,255,255,0.08);
}
@media (max-width: 900px) {
    .eduweb-stat-card + .eduweb-stat-card::before { display: none; }
}

/* ═══════════════════════════════════════════
   2. CARROUSEL ÉQUIPE
═══════════════════════════════════════════ */
.eduweb-team-section {
    background: #f6fbf8;
    padding: 90px 0 100px;
    position: relative;
    overflow: hidden;
}
.eduweb-team-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3aaf7f, #f5a623, #3aaf7f);
    background-size: 200% 100%;
    animation: eduweb-gradient-move 4s linear infinite;
}
@keyframes eduweb-gradient-move {
    0%   { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.eduweb-team-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}
.eduweb-team-header .eduweb-section-sub { margin: 0.75rem auto 0; }

/* Wrapper du carrousel */
.eduweb-team-carousel-wrapper {
    position: relative;
    padding: 0 50px;
}

/* Piste */
.eduweb-team-track-outer {
    overflow: hidden;
    border-radius: 0;
}
.eduweb-team-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

/* Carte membre */
.eduweb-team-card {
    flex: 0 0 calc(33.333% - 1rem);
    min-width: calc(33.333% - 1rem);
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(26,31,28,0.07);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    position: relative;
}
.eduweb-team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(58,175,127,0.15);
}
@media (max-width: 900px) {
    .eduweb-team-card {
        flex: 0 0 calc(50% - 0.75rem);
        min-width: calc(50% - 0.75rem);
    }
}
@media (max-width: 580px) {
    .eduweb-team-card {
        flex: 0 0 100%;
        min-width: 100%;
    }
    .eduweb-team-carousel-wrapper { padding: 0 40px; }
}

/* Zone photo */
.eduweb-team-photo-wrap {
    position: relative;
    height: 260px;
    overflow: hidden;
    background: linear-gradient(160deg, #eaf7f1, #d0efdf);
}
.eduweb-team-photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s ease;
}
.eduweb-team-card:hover .eduweb-team-photo-wrap img {
    transform: scale(1.06);
}

/* Placeholder si pas de photo */
.eduweb-team-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eaf7f1, #d0efdf);
    font-size: 5rem;
}

/* Badge rôle sur la photo */
.eduweb-team-role-badge {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #3aaf7f, #1e7d55);
    color: #ffffff;
    font-family: 'Montserrat', 'Poppins', sans-serif;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.38rem 1.1rem;
    border-radius: 100px;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(58,175,127,0.35);
}

/* Overlay liens réseaux sociaux */
.eduweb-team-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(26,31,28,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.eduweb-team-card:hover .eduweb-team-overlay { opacity: 1; }
.eduweb-team-social-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: 1.5px solid rgba(255,255,255,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.85rem;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
    backdrop-filter: blur(4px);
}
.eduweb-team-social-btn:hover {
    background: #3aaf7f;
    border-color: #3aaf7f;
    color: #ffffff;
}

/* Corps de la carte */
.eduweb-team-body {
    padding: 1.5rem 1.75rem 1.75rem;
}
.eduweb-team-name {
    font-family: 'Montserrat', 'Poppins', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    color: #1a1f1c;
    margin-bottom: 0.2rem;
    line-height: 1.3;
}
.eduweb-team-title {
    font-family: 'Montserrat', 'Poppins', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #f5a623;
    margin-bottom: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.eduweb-team-title::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 2px;
    background: #f5a623;
    border-radius: 1px;
}
.eduweb-team-desc {
    font-size: 0.84rem;
    color: #5a6660;
    line-height: 1.65;
    border-top: 1px solid #eaf7f1;
    padding-top: 0.85rem;
    margin-top: 0;
}

/* ── Navigation du carrousel ── */
.eduweb-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: #ffffff;
    color: #1a1f1c;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(26,31,28,0.12);
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.eduweb-carousel-btn:hover {
    background: #3aaf7f;
    color: #ffffff;
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 8px 24px rgba(58,175,127,0.3);
}
.eduweb-carousel-btn:disabled {
    opacity: 0.35;
    pointer-events: none;
}
.eduweb-carousel-btn.prev { left: 0; }
.eduweb-carousel-btn.next { right: 0; }

/* ── Indicateurs (dots) ── */
.eduweb-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2.5rem;
}
.eduweb-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 100px;
    background: #c0ddd0;
    border: none;
    cursor: pointer;
    transition: width 0.3s ease, background 0.3s ease;
    padding: 0;
}
.eduweb-carousel-dot.active {
    width: 28px;
    background: linear-gradient(90deg, #3aaf7f, #1e7d55);
}
.eduweb-carousel-dot:hover:not(.active) {
    background: #5cc99a;
}

/* ── Conteneur Owl Carousel sécurisé ── */
.eduweb-team-section .av-container {
    position: relative;
}
