/* ========================================== */
/* PAGE ÉVÉNEMENTS */
/* ========================================== */

main {
    width: 100%;
    max-width: 1300px;

    margin: 0 auto;
    padding: 40px 20px;

    box-sizing: border-box;
}


/* ========================================== */
/* TITRES */
/* ========================================== */

main h1 {
    font-family: "Chewy", cursive;

    font-size: clamp(2rem, 5vw, 3rem);

    color: #86669b;

    text-align: center;

    margin-bottom: 15px;
}

.intro-evenements {
    font-family: "Iceberg", sans-serif;

    font-size: clamp(1rem, 2vw, 1.3rem);

    color: #6d527b;

    text-align: center;

    margin-bottom: 50px;
}


/* ========================================== */
/* SECTIONS */
/* ========================================== */

.section-evenements {
    margin-bottom: 60px;
}

.section-evenements h2 {
    font-family: "Chewy", cursive;

    font-size: clamp(1.5rem, 3vw, 2.2rem);

    color: #86669b;

    margin-bottom: 25px;
}


/* ========================================== */
/* GRILLE DES ÉVÉNEMENTS */
/* ========================================== */

.liste-evenements {
    display: grid;

    grid-template-columns: repeat(
        3,
        minmax(0, 1fr)
    );

    gap: 25px;
}


/* ========================================== */
/* CARTES ÉVÉNEMENTS */
/* ========================================== */

.carte-evenement {
    display: flex;
    flex-direction: column;

    gap: 12px;

    padding: 25px;

    background-color: #fffdf8;

    border: 1px solid #e8d9ee;
    border-radius: 16px;

    box-shadow: 0 4px 12px rgba(
        109,
        82,
        123,
        0.08
    );

    transition: transform 0.3s, box-shadow 0.3s;
}

.carte-evenement:hover {
    transform: translateY(-5px);

    box-shadow: 0 8px 20px rgba(
        109,
        82,
        123,
        0.15
    );
}


/* ========================================== */
/* INFORMATIONS */
/* ========================================== */

.carte-evenement h3 {
    font-family: "Chewy", cursive;

    font-size: clamp(1.2rem, 2vw, 1.6rem);

    color: #86669b;

    margin: 0 0 10px;
}

.date-evenement,
.lieu-evenement {
    font-family: "Iceberg", sans-serif;

    font-size: 1.1rem;

    color: #6d527b;

    margin: 0;
}


/* ========================================== */
/* MESSAGES */
/* ========================================== */

.message-vide {
    font-family: "Iceberg", sans-serif;

    font-size: 1.1rem;

    color: #6d527b;

    text-align: center;

    grid-column: 1 / -1;
}


/* ========================================== */
/* RESPONSIVE */
/* ========================================== */

@media (max-width: 1000px) {

    .liste-evenements {
        grid-template-columns: repeat(
            2,
            minmax(0, 1fr)
        );
    }
}

@media (max-width: 600px) {

    main {
        padding: 25px 15px;
    }

    .liste-evenements {
        grid-template-columns: 1fr;
    }

    .carte-evenement {
        padding: 20px;
    }
}