body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

#activites {
    font-family: Arial, sans-serif;
    margin-left: 4%;
    margin-top: 3%;
}

.separator {
    border-bottom: 1px solid #ccc;
    margin-left: 10%;
    margin-right: 10%;
    margin-top: 60px;
}

ul {
    list-style-type: none;
}

/* A PROPOS */
#apropos ul,
#activites ul,
#actualites ul {
    list-style-type: none;
    margin: 0;
    padding: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

#apropos ul li,
#activites ul li,
#actualites ul li {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    border: 1px solid #dddddd;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(136, 136, 136, 0.1);
    background-color: #f9f9f9;
    width: 25%;
}

#apropos ul li img,
#activites ul li img,
#actualites ul li img {
    width: 230px;
    height: 170px;
    margin-bottom: 10px;
    border-radius: 5%;
    border: 2px solid #ccc;
}

#apropos ul li p,
#activites ul li p,
#actualites ul li p {
    margin: 0;
    color: #333;
    text-align: center;
}

#apropos li,
#activites li,
#actualites li {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#activites li:hover,
#actualites li:hover {
    transform: translateY(-5px);
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.2);
}

/* CAROUSEL */
.carousel {
    position: relative;
    width: 80%;
    max-width: 640px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    margin: auto;
}

.carousel-track-container {
    width: 100%;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    box-sizing: border-box;
}

.carousel-slide img {
    width: 500px;
    height: 360px;
    object-fit: cover;
    display: block;
}

.prev,
.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 24px;
    z-index: 10;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

a.button {
    display: inline-block;
    background-color: #4a90e2;
    margin-top: 20px;
    color: white;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    padding: 10px 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

a.button:hover {
    background-color: #367BB6;
    transform: translateY(-2px);
}


/* CONTACT */
#contact p {
    margin-left: 150px;
    margin-right: 150px;
}

/* PLAN */
.bandeau-carte {
    width: 100%;
    height: 300px;
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bandeau-carte iframe {
    width: 80%;
    height: 100%;
    border: none;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

/* SECTIONS */
section {
    padding: 2rem;
    text-align: center;
}

/* FOOTER */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 1rem;
}

/* Styles pour les écrans de tablettes (entre 768px et 1024px) */
@media (max-width: 1024px) {
    header {
        height: 70vh;
    }

    #apropos ul li,
    #activites ul li,
    #actualites ul li {
        width: 300px;
    }

    #apropos ul li img,
    #activites ul li img,
    #actualites ul li img {
        width: 200px;
        height: 150px;
    }

    .carousel-slide img {
        width: 100%;
        height: auto;
    }

    #contact p {
        margin-left: 50px;
        margin-right: 50px;
    }
}

/* Styles pour les écrans de smartphones (moins de 768px) */
@media (max-width: 768px) {
    header {
        height: 60vh;
    }

    .navbar ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.9);
        position: absolute;
        align-items: start;
        top: 100%;
        box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.5);
    }

    .navbar ul.active {
        display: flex;
    }

    .burger-menu {
        display: flex;
    }

    .navbar {
        padding: 10px;
    }

    #apropos ul,
    #activites ul,
    #actualites ul {
        flex-direction: column;
    }

    #apropos ul li,
    #activites ul li,
    #actualites ul li {
        width: 90%;
        margin: 10px auto;
    }

    #apropos ul li img,
    #activites ul li img,
    #actualites ul li img {
        width: 100%;
        height: auto;
    }

    .carousel {
        width: 100%;
    }

    .bandeau-carte iframe {
        width: 100%;
    }

    #contact p {
        margin: 10px;
    }
}

/* Styles pour les écrans de smartphones (moins de 480px) */
@media (max-width: 480px) {
    header {
        height: 50vh;
    }

    .navbar ul li {
        margin: 5px;
    }

    a.button {
        padding: 8px 15px;
        font-size: 14px;
    }

    footer {
        font-size: 14px;
    }
}

img,
iframe {
    max-width: 100%;
    height: auto;
}