#a4wcarousel .carousel-caption {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: left;
    color: white; 
    z-index: 10;
    width: 100%;
    padding: 0px 60px;
}
#a4wcarousel {
    max-width: 100% !important;
    margin: auto !important;
    padding: 0px !important;
}

#a4wcarousel .hidden {
    visibility: hidden; /* Cache visuellement mais conserve l'espace */
  }

#a4wcarousel .product-next {
    position: absolute;
    bottom: 10px;
    right: 0%;
    top: 50%;
    margin: 0px 20px;
}

#a4wcarousel .product-prev {
    position: absolute;
    bottom: 10px;
    left: 0%;
    top: 50%;
    margin: 0px 10px;
}

#a4wcarousel .product-prev, #a4wcarousel .product-next {
    color:#c19a5c !important;
    z-index: 9999;
}
#a4wcarousel .index {
    z-index: 9998;
}
.product-next .material-icons, .product-prev .material-icons{
    width: 30px;
    height: 30px;
    font-size: 3.125rem;
}

#a4wcarousel .carousel-caption h3 {
    font-size: 36px;
    margin: 25px 0 30px 0;
    max-width: 840px;
    text-transform: uppercase; /* Met le texte en majuscule */
    margin-bottom: 20px;
    color: white;
    text-align: left;
}

/* Style du texte */
#a4wcarousel .carousel-caption p {
    font-size: 20px;
    font-weight: 400;
    line-height: 31px;
    text-align: left;
    margin-bottom: 20px; /* Ajustez si nécessaire */
    color: white;
    width: 800px;
}

#a4wcarousel .carousel-item picture img {
    width: 100%;
    height: 900px;
    object-fit: fill;
}

#a4wcarousel .carousel-item {
    flex: 0 0 100%; /* Chaque diapositive occupe 100% de la largeur */
    opacity: 0; /* Masquer par défaut */
    visibility: hidden; /* Masquer complètement hors du flux visuel */
    position: absolute; /* Empêche les superpositions */
    top: 0;
    left: 0;
    transition: opacity 0.5s ease-in-out, visibility 0s 0.5s; /* Animation fluide */
}

#a4wcarousel .inner-carousel {
    display: flex;
    position: relative; /* Permet le positionnement absolu des diapositives */
    transition: transform 0.5s ease-in-out; /* Transition fluide */
    width: 100%; /* Important pour le conteneur */
    overflow: hidden; /* Évite les débordements des diapositives */
}

#a4wcarousel .carousel-item.active {
    opacity: 1; /* Rendre visible */
    visibility: visible; /* Permet l'affichage */
    position: relative; /* Garde la diapositive active dans le flux */
    transition: opacity 0.5s ease-in-out, visibility 0s 0s; /* Animation fluide */
}
@media (max-width: 1024px) {
    #a4wcarousel .carousel-caption {
        top: 32%;
    }
}

@media (max-width: 1024px) {
    #a4wcarousel .carousel-item picture img {
        height: 580px;
    }
    #a4wcarousel .carousel-caption h3 {
        font-size: 39px;
    }
    .carousel {
        left : 0px !important;

    }
}
@media (max-width: 800px) {
    #a4wcarousel .carousel-caption p{
        width: auto;
    }
}

@media (max-width: 601px) {
    #a4wcarousel .carousel-item picture img {
        height: 100%;
    }
    #a4wcarousel .carousel-caption p {
        width: auto;
        font-size: 18px;
        line-height: 22px;
        padding: 80px 0px;
        text-align: center;
    }
    #a4wcarousel .carousel-caption h3 {
        font-size: 28px;
        margin-bottom: 0px;
        line-height: 33px;
        text-align: center;
    }
    #a4wcarousel .carousel-caption {
        top: 45%;
        padding: 0px 20px;
    }
    #a4wcarousel .product-next {
        position: absolute;

    }
    
    #a4wcarousel .product-prev {
        position: absolute;
    }
    #a4wcarousel .center-mobile {
        display: flex;
        justify-content: center;
    }
}


@media (max-width: 376px) {
    #a4wcarousel .carousel-caption p {
        width: auto;
        font-size: 18px;
        line-height: 22px;
        padding: 50px 0px;
        text-align: center;
    }
}

@media (max-width: 321px) {
    #a4wcarousel .carousel-caption p {
        padding-bottom: 0px;
    }
    #a4wcarousel .product-next {
        position: absolute;

    }
    
    #a4wcarousel .product-prev {
        position: absolute;

    }
    #a4wcarousel .carousel-caption {
        top: 35%;
        padding: 0px 20px;
    }
}