/* =========================
   PAGE D'ACCUEIL - Mobile First
========================= */

.hero-accueil {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}


.hero-accueil img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.hero-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 1.5rem;
}


.hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    /*recommandation d'un tutoriel, j'utilise clamp () pour ajouter des éléments simple en responsif, 
    sans utiliser les medias querys*/
    margin-bottom: 1rem;
}


.hero-content p {
    max-width: 600px;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    line-height: 1.4;
    margin-bottom: 1.5rem;
}


/* Bouton différent car légèrement plus gros*/
.btn-hero {
    padding: 0.8rem 1.6rem;
    border: 3px solid #ff7a00;
    color: #ff7a00;
    text-decoration: none;
    border-radius: 15px;
    font-weight: 600;
}

.btn-hero:hover {
    background: #ff7a00;
    color: #ffffff;
}


.hero-accueil::after {
    /*Chat GPT - ajout d'un filtre noir devant le background*/
    content: "";
    position: absolute;
    inset: 0;
    /* top,right,bottom et left= 0 */
    background: rgba(0, 0, 0, 0.5);
}


/* SECTION 2 EVENEMENTS */
.events {
    background-color: #fdf7ec;
    padding: 4rem 0;
}

.events-container {
    text-align: center;
}

.events-subtitle {
    margin-bottom: 3rem;
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.event-card img {
    width: 220px;
    height: auto;
    border-radius: 15px;
    margin-bottom: 1, 5rem;
    background-position: cover;
    box-shadow: 0 8px 8px rgba(0, 0, 0, 0.25);
}

.event-card p {
    font-size: 0.95rem;
    line-height: 1.4;
}

.activities {
    background: #2f4f1e;
    padding: 4rem 0;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.activities-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.activities-content h2 {
    color: #B9DAA3;
}

.activities-affiche img {
    width: min(240px, 100%);
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 15px;
    box-shadow: 0 8px 8px rgba(0, 0, 0, 0.25);
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.activities-content {
    text-align: center;
}


.activities-content p {
    margin: 0 0 1rem;
    line-height: 1.5;
    opacity: 0.95;
}

/* SECTION 4 RESERVER */
.reserver {
    background: #ffffff;
    padding: 4rem 0;
    text-align: center;
}

.reserver-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.reserver-intro {
    line-height: 1.6;
}

.reserver-visuel img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.reserver-info {
    line-height: 1.6;
}




/*DESKTOP*/

@media (min-width: 768px) {

    /* SECTION 2 EVENEMENTS*/
    .events-list {
        flex-direction: row;
        justify-content: space-between;
        gap: 2rem;
    }

    .event-card {
        flex: 1;
    }

    .event-card img {
        width: 285px;
        background-position: cover;
    }


    /* SECTION 3 ACTIVITES*/
    .activities-container {
        flex-direction: row;
        justify-content: space-between;
        gap: 4rem;
        text-align: left;
    }

    .activities-content {
        order: 1;
        text-align: left;
    }

    .activities-affiche {
        order: 2;
    }

    .activities-affiche img {
        width: 370px;
    }

    /* SECTION 4 RESERVER*/


}