
/* =========================================================
   ÉVÉNEMENTS — CIME
========================================================= */

/* =========================================================
   DEUXIÈME HEADER
   Même design que le header de la page ACTIVITÉS
========================================================= */

.events-intro {
    background: #f4f7fb;
    padding: 78px 7% 72px;
    border-bottom: 1px solid #e2e8f0;
    text-align: center;
}

.events-intro-label {
    margin-bottom: 20px;
    color: #075cae;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.events-intro-content {
    max-width: 1000px;
    margin: 0 auto;
}

.events-intro h1 {
    margin: 0 0 20px;
    color: #142f52;
    font-size: 62px;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -1.5px;
}

.events-intro p {
    margin: 0 auto;
    color: #4e6784;
    font-size: 20px;
    line-height: 1.6;
}

/* =========================================================
   LISTE DES ÉVÉNEMENTS
========================================================= */

.events-page {
    width: 100%;
    background: #ffffff;
}

.events-list-section {
    padding: 82px 7% 100px;
    background: #ffffff;
}

.events-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px;
    align-items: stretch;
}

/* Cartes */

.event-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;

    background: #ffffff;
    border: 1px solid #e1e8f0;
    border-top: 3px solid #142f52;
    border-radius: 2px;

    box-shadow: 0 8px 25px rgba(20, 47, 82, 0.06);

    color: #142f52;
    text-decoration: none;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(20, 47, 82, 0.10);
    border-top-color: #b51f18;
}

.event-card:focus-visible {
    outline: 3px solid #075cae;
    outline-offset: 4px;
}

/* Images des cartes */

.event-card-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: #f4f7fb;
}

.event-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.event-card:hover .event-card-image img {
    transform: scale(1.03);
}

/* Texte des cartes */

.event-card-content {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    padding: 25px;
}

.event-card-content h2 {
    flex: 1;
    margin: 0;
    color: #142f52;
    font-size: 20px;
    line-height: 1.5;
    font-weight: 700;
}

/* Flèche */

.event-card-arrow {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    border-radius: 50%;
    background: #075cae;
    color: #ffffff;

    font-size: 23px;
    line-height: 1;

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

.event-card:hover .event-card-arrow {
    background: #b51f18;
    transform: translateX(3px);
}

/* =========================================================
   PAGE DÉTAIL D'UN ÉVÉNEMENT
========================================================= */

.event-detail-page {
    width: 100%;
    padding: 60px 7% 90px;
    background: #ffffff;
}

.event-detail-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.event-detail-header {
    margin-bottom: 30px;
    text-align: center;
}

.event-detail-header h1 {
    margin: 0;
    color: #142f52;
    font-size: 34px;
    line-height: 1.3;
    font-weight: 700;
}

.event-detail-cover {
    width: 100%;
    margin-bottom: 30px;
    overflow: hidden;
    background: #f4f7fb;
}

.event-detail-cover img {
    display: block;
    width: 100%;
    max-height: 650px;
    object-fit: contain;
}

.event-detail-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.event-detail-gallery img {
    display: block;
    width: 100%;
    height: 300px;
    object-fit: cover;
    background: #f4f7fb;
}

.event-detail-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-top: 32px;
    padding: 12px 20px;

    background: #075cae;
    color: #ffffff;

    font-size: 14px;
    font-weight: 700;
    text-decoration: none;

    transition: background 0.2s ease;
}

.event-detail-back:hover {
    background: #142f52;
}

.event-not-found {
    padding: 50px 0;
    text-align: center;
}

.event-not-found h1 {
    color: #142f52;
}

.event-not-found p {
    color: #4e6784;
    line-height: 1.7;
}

/* =========================================================
   TABLETTE
========================================================= */

@media (max-width: 1100px) {
    .events-grid {
        gap: 22px;
    }

    .events-intro h1 {
        font-size: 54px;
    }

    .event-card-image {
        height: 240px;
    }

    .event-card-content {
        padding: 22px;
    }

    .event-card-content h2 {
        font-size: 18px;
    }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 760px) {
    .events-intro {
        padding: 60px 6% 58px;
        text-align: center;
    }

    .events-intro-label {
        font-size: 13px;
        letter-spacing: 2px;
        margin-bottom: 17px;
    }

    .events-intro h1 {
        font-size: 42px;
        line-height: 1.12;
        letter-spacing: -0.8px;
        margin-bottom: 17px;
    }

    .events-intro p {
        font-size: 17px;
        line-height: 1.6;
    }

    .events-list-section {
        padding: 62px 6% 75px;
    }

    .events-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .event-card-image {
        height: 230px;
    }

    .event-card-content {
        padding: 22px;
        gap: 12px;
    }

    .event-card-content h2 {
        font-size: 18px;
        line-height: 1.5;
    }

    .event-card-arrow {
        width: 35px;
        height: 35px;
        font-size: 21px;
    }

    .event-detail-page {
        padding: 40px 6% 60px;
    }

    .event-detail-header h1 {
        font-size: 27px;
    }

    .event-detail-gallery {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .event-detail-gallery img {
        height: auto;
        max-height: 400px;
        object-fit: cover;
    }
}

/* =========================================================
   PETITS ÉCRANS
========================================================= */

@media (max-width: 420px) {
    .events-intro {
        padding: 50px 5% 50px;
    }

    .events-intro h1 {
        font-size: 35px;
        line-height: 1.12;
    }

    .events-intro p {
        font-size: 16px;
    }

    .events-list-section {
        padding: 52px 5% 65px;
    }

    .event-card-image {
        height: 205px;
    }

    .event-card-content {
        padding: 19px;
    }

    .event-card-content h2 {
        font-size: 16px;
    }

    .event-detail-page {
        padding: 32px 5% 50px;
    }

    .event-detail-header h1 {
        font-size: 23px;
    }
}
