body, html {
    overflow-x: hidden;
}

.h-1 {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 20px;
    overflow: hidden; /* Empêche les débordements */
}

.slider-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    z-index: 1;
}

.swiper-container {
    width: 100%;
    height: auto;
    position: relative; /* Ensure relative positioning for child elements */
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-pagination {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.swiper-button-prev,
.swiper-button-next {
    color: #ffffff;
    z-index: 20;
}

.swiper-wrapper {
    width: 100%;
    height: 100%;
}

.p-1 {
    max-width: 100%;
    text-align: justify;
    margin: 30px 0;
    padding: 20px 100px;
    background-color: rgba(255, 255, 255, 0.85); /* léger voile blanc */
}

span {
    background-color: rgba(255, 255, 255, 0.85); /* léger voile blanc */
}

.p-1 span {
    font-size: 20px;
}


/* Media Queries for smaller screens */
@media (max-width: 768px) {
    .slider-image {
        width: 90%;
    }

    .p-1 {
        padding: 20px 50px;
    }

    .swiper-container {
        height: 100%; /* Adjust height for smaller screens */
    }

    .swiper-button-prev::after,
    .swiper-button-next::after,
    .swiper-rtl::after {
        display: none;
    }

    .p-1 span {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .slider-image {
        width: 80%;
    }

    .p-1 {
        padding: 20px 20px;
    }

    .swiper-container {
        height: 100%; 
    }

    .swiper-button-prev,
    .swiper-button-next {
        display: none;
    }

    .p-1 span {
        font-size: 14px;
    }
}
