/* =========================================================
   LABOCOMPTA — EVENEMENTS.CSS
   Page Événements
   ========================================================= */


/* =========================================================
   1. HERO
   ========================================================= */

.events-hero {
    padding: 90px 20px 85px;
    text-align: center;
    background:
        linear-gradient(
            135deg,
            #0a2a5e,
            #0f3f8c
        );
    color: #ffffff;
}


.events-hero .container {
    max-width: 900px;
    margin: 0 auto;
}


.events-hero .section-badge {
    display: inline-block;
    margin-bottom: 18px;
    padding: 7px 16px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}


.events-hero h1 {
    margin: 0 0 15px;
    color: #ffffff;
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.15;
}


.events-hero .hero-subtitle {
    margin: 0 0 18px;
    color: #f4a261;
    font-size: 1.25rem;
    font-weight: 600;
}


.events-hero .hero-description {
    max-width: 700px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
    line-height: 1.7;
}


/* =========================================================
   2. SECTION — COMING SOON
   ========================================================= */

.events-coming {
    padding: 75px 20px;
    background: #ffffff;
}


.events-coming .container {
    max-width: 1000px;
    margin: 0 auto;
}


.coming-card {
    max-width: 800px;
    margin: 0 auto;
    padding: 45px 35px;
    text-align: center;
    background: #f8fafc;
    border: 1px solid #e5eaf1;
    border-top: 4px solid #f4a261;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(10, 42, 94, 0.07);
}


.coming-icon {
    width: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px;
    background: #fff1e6;
    border-radius: 50%;
    font-size: 1.8rem;
}


.coming-card h2 {
    margin: 0 0 18px;
    color: #0a2a5e;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    line-height: 1.3;
}


.coming-card p {
    max-width: 680px;
    margin: 0 auto 14px;
    color: #4b5563;
    font-size: 1rem;
    line-height: 1.75;
}


.coming-card p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   3. SECTION — TYPES D'ACTIVITÉS
   ========================================================= */

.events-types {
    padding: 80px 20px;
    background: #f8fafc;
}


.events-types .container {
    max-width: 1100px;
    margin: 0 auto;
}


/* TITRE DE SECTION */

.section-heading {
    max-width: 760px;
    margin: 0 auto 45px;
    text-align: center;
}


.section-heading .section-badge {
    display: inline-block;
    margin-bottom: 14px;
    padding: 6px 14px;
    color: #0f3f8c;
    background: #eaf2ff;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
}


.section-heading h2 {
    margin: 0 0 15px;
    color: #0a2a5e;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    line-height: 1.3;
}


.section-heading p {
    margin: 0 auto;
    color: #5b6472;
    font-size: 1rem;
    line-height: 1.7;
}


/* =========================================================
   4. GRILLE DES ÉVÉNEMENTS
   ========================================================= */

.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}


/* CARDS */

.event-card {
    padding: 35px 28px;
    background: #ffffff;
    border: 1px solid #e5eaf1;
    border-top: 4px solid #f4a261;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(10, 42, 94, 0.06);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 32px rgba(10, 42, 94, 0.11);
}


/* ICÔNE */

.event-icon {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    background: #fff1e6;
    border-radius: 14px;
    font-size: 1.6rem;
}


/* TITRE */

.event-card h3 {
    margin: 0 0 12px;
    color: #0a2a5e;
    font-size: 1.35rem;
    line-height: 1.3;
}


/* TEXTE */

.event-card p {
    margin: 0;
    color: #5b6472;
    font-size: 0.97rem;
    line-height: 1.7;
}


/* =========================================================
   5. CTA FINAL
   ========================================================= */

.events-cta {
    padding: 80px 20px;
    background: #ffffff;
}


.events-cta .container {
    max-width: 1000px;
    margin: 0 auto;
}


.cta-card {
    padding: 55px 35px;
    text-align: center;
    background:
        linear-gradient(
            135deg,
            #0a2a5e,
            #0f3f8c
        );
    border-radius: 20px;
    box-shadow: 0 12px 35px rgba(10, 42, 94, 0.12);
}


.cta-card h2 {
    margin: 0 0 15px;
    color: #ffffff;
    font-size: clamp(1.7rem, 4vw, 2.4rem);
    line-height: 1.3;
}


.cta-card p {
    max-width: 650px;
    margin: 0 auto 28px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1rem;
    line-height: 1.7;
}


/* =========================================================
   6. BOUTON CTA
   ========================================================= */

.events-cta .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 24px;
    color: #0a2a5e;
    background: #f4a261;
    border: 2px solid #f4a261;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}


.events-cta .btn-primary:hover {
    background: #ffffff;
    border-color: #ffffff;
    transform: translateY(-2px);
}


/* =========================================================
   7. RESPONSIVE — TABLETTE
   ========================================================= */

@media (max-width: 900px) {

    .events-hero {
        padding: 75px 20px 70px;
    }


    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


/* =========================================================
   8. RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 640px) {

    .events-hero {
        padding: 65px 18px 60px;
    }


    .events-hero h1 {
        font-size: 2.35rem;
    }


    .events-hero .hero-subtitle {
        font-size: 1.1rem;
    }


    .events-hero .hero-description {
        font-size: 0.96rem;
        line-height: 1.65;
    }


    .events-coming,
    .events-types,
    .events-cta {
        padding: 60px 18px;
    }


    .coming-card {
        padding: 35px 22px;
    }


    .coming-card h2 {
        font-size: 1.55rem;
    }


    .coming-card p {
        font-size: 0.95rem;
        text-align: left;
    }


    .section-heading {
        margin-bottom: 35px;
        text-align: left;
    }


    .section-heading h2 {
        font-size: 1.75rem;
    }


    .section-heading p {
        text-align: left;
    }


    .events-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }


    .event-card {
        padding: 30px 24px;
    }


    .cta-card {
        padding: 42px 22px;
    }


    .cta-card h2 {
        font-size: 1.65rem;
    }


    .cta-card p {
        font-size: 0.95rem;
    }


    .events-cta .btn-primary {
        width: 100%;
        max-width: 300px;
    }

}


/* =========================================================
   9. ACCESSIBILITÉ — RÉDUCTION DES ANIMATIONS
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .event-card,
    .events-cta .btn-primary {
        transition: none;
    }

    .event-card:hover,
    .events-cta .btn-primary:hover {
        transform: none;
    }

}