/* ======================================================
   PAGE ÉQUIPE — Olympiades de Robotique
   Design restructuré et modernisé
   ====================================================== */

/* === KEYFRAMES === */
@keyframes eqFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes eqCardReveal {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* === HERO ÉQUIPE === */
.eq-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white);
    padding: 0;
    padding-top: var(--header-height);
    min-height: 440px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.eq-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.eq-hero-content {
    position: relative;
    z-index: 2;
    padding: 50px 20px 45px;
    text-align: center;
}

.eq-hero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 3px solid;
    font-size: 1.5rem;
    margin-bottom: 18px;
    backdrop-filter: blur(10px);
    animation: eqFadeUp 0.5s ease-out;
}

.eq-hero h1 {
    font-family: var(--font-tech);
    font-size: 2.6rem;
    font-weight: 800;
    margin-bottom: 12px;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.5);
    animation: eqFadeUp 0.6s ease-out 0.1s both;
}

.eq-hero-slogan {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    font-style: italic;
    margin-bottom: 18px;
    animation: eqFadeUp 0.6s ease-out 0.2s both;
}

.eq-hero-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    animation: eqFadeUp 0.6s ease-out 0.3s both;
}

.eq-hero-meta span {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.eq-hero-meta i {
    margin-right: 6px;
    color: var(--golden);
}

.meta-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
}

/* === HERO CTA BUTTONS === */
.eq-hero-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-bottom: 24px;
    animation: eqFadeUp 0.6s ease-out 0.35s both;
}

.btn-eq-hero-vote {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
}

.btn-eq-hero-vote:hover {
    filter: brightness(1.15);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-eq-hero-doc {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-eq-hero-doc:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.7);
    color: #fff;
    transform: translateY(-2px);
}

/* === STATS BAND (sous le hero) === */
.eq-stats-band {
    padding: 0;
    position: relative;
    overflow: hidden;
    margin-top: -1px;
}

.eq-stats-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(90deg,
            rgba(255, 255, 255, 0.04) 0px,
            rgba(255, 255, 255, 0.04) 1px,
            transparent 1px,
            transparent 80px);
    pointer-events: none;
}

.eq-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.eq-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 22px 16px;
    position: relative;
    text-align: center;
    transition: background 0.3s ease;
}

.eq-stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 25%;
    height: 50%;
    width: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.eq-stat-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.eq-stat-num {
    font-family: var(--font-tech);
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}

.eq-stat-num sup {
    font-size: 0.6em;
}

.eq-stat-label {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 4px;
}

/* === DESCRIPTION SECTION === */
.eq-description-content {
    max-width: 820px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-light);
    text-align: justify;
}

.eq-description-content p {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-light);
    margin-bottom: 16px;
    text-align: justify;
}

.eq-description-content strong {
    color: var(--primary);
    font-weight: 600;
}

/* === MEMBRES GRID === */
.eq-membres-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 28px;
}

.eq-membre-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
}

.eq-membre-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

/* Staggered reveal */
.eq-membre-card.animated {
    animation: eqCardReveal 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.eq-membre-card:nth-child(1).animated {
    animation-delay: 0.05s;
}

.eq-membre-card:nth-child(2).animated {
    animation-delay: 0.12s;
}

.eq-membre-card:nth-child(3).animated {
    animation-delay: 0.19s;
}

.eq-membre-card:nth-child(4).animated {
    animation-delay: 0.26s;
}

.eq-membre-card:nth-child(5).animated {
    animation-delay: 0.33s;
}

.eq-membre-card:nth-child(6).animated {
    animation-delay: 0.40s;
}

.eq-membre-photo-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.eq-membre-photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.5s ease;
}

.eq-membre-card:hover .eq-membre-photo-wrap img {
    transform: scale(1.06);
}

.eq-membre-role {
    position: absolute;
    bottom: 12px;
    left: 12px;
    padding: 5px 14px;
    border-radius: 20px;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.eq-membre-info {
    padding: 20px;
    text-align: center;
}

.eq-membre-info h4 {
    font-family: var(--font-tech);
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.eq-membre-ecole,
.eq-membre-filiere {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 4px;
    line-height: 1.5;
}

.eq-membre-ecole i,
.eq-membre-filiere i {
    width: 18px;
    text-align: center;
    color: var(--golden);
    margin-right: 4px;
    font-size: 0.8rem;
}

.eq-membre-socials {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--gray-100, #f1f1f1);
}

.eq-membre-socials a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    color: var(--text-muted);
    background: var(--gray-50);
    transition: all 0.3s ease;
    text-decoration: none;
}

.eq-membre-socials a:hover {
    color: #fff;
    transform: translateY(-3px);
}

/* Couleurs spécifiques réseaux sociaux */
.eq-membre-socials a[aria-label="Facebook"]:hover {
    background: #1877F2;
}

.eq-membre-socials a[aria-label="WhatsApp"]:hover {
    background: #25D366;
}

.eq-membre-socials a[aria-label="LinkedIn"]:hover {
    background: #0A66C2;
}

.eq-membre-socials a[aria-label="Instagram"]:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

/* === TITLE ACCENT === */
.title-accent {
    color: var(--golden);
}

.title-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--golden), transparent);
    margin: 12px auto 0;
    border-radius: 2px;
}

/* === RESPONSIVE — TABLET (≤ 1024px) === */
@media (max-width: 1024px) {
    .eq-hero {
        min-height: 380px;
    }

    .eq-hero h1 {
        font-size: 2rem;
    }

    .eq-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .eq-stat-item:nth-child(2)::after {
        display: none;
    }
}

/* === RESPONSIVE — MOBILE (≤ 768px) === */
@media (max-width: 768px) {
    .eq-hero {
        min-height: 340px;
    }

    .eq-hero-content {
        padding: 35px 16px 35px;
    }

    .eq-hero h1 {
        font-size: 1.6rem;
    }

    .eq-hero-slogan {
        font-size: 1rem;
    }

    .eq-hero-badge {
        width: 52px;
        height: 52px;
        font-size: 1.2rem;
    }

    .eq-hero-meta .meta-dot {
        display: none;
    }

    .eq-hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .eq-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .eq-stat-item:nth-child(odd)::after,
    .eq-stat-item:nth-child(even)::after {
        display: none;
    }

    .eq-membres-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .eq-membre-info {
        padding: 16px;
    }

    .eq-membre-info h4 {
        font-size: 0.9rem;
    }

    .eq-membre-ecole,
    .eq-membre-filiere {
        font-size: 0.78rem;
    }

    .eq-membre-socials a {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
}

/* === RESPONSIVE — SMALL MOBILE (≤ 480px) === */
@media (max-width: 480px) {
    .eq-hero h1 {
        font-size: 1.35rem;
    }

    .eq-hero-slogan {
        font-size: 0.9rem;
    }

    .eq-membres-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .eq-membre-photo-wrap {
        aspect-ratio: 4 / 3;
    }

    .eq-stats-row {
        grid-template-columns: 1fr 1fr;
    }

    .eq-stat-item {
        padding: 16px 10px;
    }

    .eq-stat-num {
        font-size: 1.2rem;
    }
}