/* ============================= */
/* PAGE: GALERIE - MAIN ONLY     */
/* ============================= */

/* ---------- Global styles (background) ---------- */
body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    color: #003C30;
    overflow-x: hidden;
    background-image: url("images/background2.jpg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    position: relative;
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(245, 230, 202, 0.2);
    pointer-events: none;
}

/* ---------- MAIN CONTENT ---------- */


/* MAIN CONTENT - uniformiser distance du header */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px;
    /* distance top réduite pour uniformiser */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    /* espace entre les éléments à l'intérieur du main */
    background-color: transparent;

}

/* Premier titre */
main h1 {
    font-size: 2.5rem;
    /* uniforme pour toutes les pages */
    color: #003C30;
    text-align: center;
    margin-top: 0;
    /* retirer marges inutiles */
    margin-bottom: 0px;
    /* espace avant le paragraphe */
}

/* Paragraphe sous le titre */
main p {
    font-size: 1.2rem;
    line-height: 1.5;
    /* un peu plus lisible */
    color: #000;
    text-align: center;
    margin-bottom: 30px;
}





/* ---------- Carousel ---------- */
.carousel-container {
    position: relative;
    width: 100%;
}

.carousel-wrapper {
    overflow: hidden;
    width: 100%;
}

.carousel {
    display: flex;
    transition: transform 0.5s ease;
    gap: 20px;
}

.carousel-item {
    min-width: 30%;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    padding: 20px;
    text-align: center;
    border: 2px solid #003C30;
    flex-shrink: 0;
}

.carousel-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 15px;
}

.carousel-item h3 {
    color: #8b5e3c;
    margin-bottom: 8px;
    font-size: 1.3rem;
}

.carousel-item p {
    font-size: 1rem;
    color: #003C30;
}

/* ---------- Carousel Buttons ---------- */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #003C30;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s;
}

.carousel-btn:hover {
    background-color: #8b5e3c;
}

.carousel-left {
    left: -25px;
}

.carousel-right {
    right: -25px;
}

/* ---------- Responsive ---------- */
@media(max-width:1024px) {
    .carousel-item {
        min-width: 45%;
    }
}

@media(max-width:768px) {
    .carousel-item {
        min-width: 80%;
        max-width: 300px;
        /* limite la largeur sur mobile */
    }

    .carousel-item img {
        width: 100%;
        height: auto;
        /* au lieu de 250px fixe */
        object-fit: cover;
    }

   

    .carousel-right {
        right: 5px;
    }

    main p {
        line-height: 1.8;
        /* plus d'espace entre les lignes */
        font-size: 1.1rem;
        /* optionnel : texte légèrement plus petit */
        margin-bottom: 40px;
        /* espace entre paragraphes */
    }
}