/* ============================
VERSION MOBILE TÉMOIGNAGES
============================ */
/* Titre */

.temoignages-carousel-wrapper {
    padding: 30px 0px;
}

@media screen and (min-width: 500px) {
    .temoignages-carousel-wrapper {
        padding: 30px 40px;
    }
}

.temoignages-carousel-wrapper .title-temoignage {
    font-size: 20px;
    font-weight: 700;
    color: black;
}


.temoignages-carousel-wrapper .carousel-container {
    margin-bottom: 2em;
    position: relative;
}

.temoignages-carousel-wrapper .carousel-container .testimonial {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.5s ease-in-out,
        visibility 0.5s ease-in-out,
        transform 0.5s ease-in-out;
    transform: translateX(0);
    /* Changé : position neutre par défaut */
}

.temoignages-carousel-wrapper .carousel-container .testimonial.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
    z-index: 1;
}

.temoignages-carousel-wrapper .carousel-container .testimonial.exit-right {
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);
}

.temoignages-carousel-wrapper .carousel-container .testimonial.enter-left {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-100%);
}

.temoignages-carousel-wrapper .carousel-container .testimonial.exit-left {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-100%);
}

.temoignages-carousel-wrapper .carousel-container .testimonial.enter-right {
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);
}

/* Ajoute ça pour empêcher les interactions sur les slides cachées */
.temoignages-carousel-wrapper .carousel-container .testimonial:not(.active) {
    pointer-events: none;
    z-index: -1;
}


/* Bloc contenant infos + image */
.testimonial .info-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Bloc nom + sous-titre à gauche */
.testimonial .info-block .name {
    color: var(--green-text);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 19px;
    margin-bottom: 10px;
}

.testimonial .info-block .subtitle {
    font-size: 16px;
    color: #686F80;
}

/* Image carrée à droite */

.testimonial .block-image {
    width: 170px;
    height: 170px;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    justify-content: center;

}

.testimonial-mobile .block-image {
    width: 130px;
    height: 130px;

}

.testimonial .block-image img {
    object-fit: cover;
}

/* Texte du témoignage */

.testimonial .temoignage {
    color: var(--green-text);
    font-size: 16px;
    line-height: 1.5;
}

.testimonial-mobile .temoignage {
    margin-top: 20px;
}

.testimonial .right-block-text {
    position: relative;
}

.testimonial-mobile .right-block-text {
    padding-left: 10px;
}

.testimonial .right-block-text::before {
    position: absolute;
    left: -50px;
    top: -10px;
    content: "";
    display: block;
    z-index: 3;
    width: 30px;
    height: 55px;
    background-image: url('../../assets/images/quotes.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.testimonial-mobile .right-block-text::before {
    left: -20px;
    width: 20px;
}


/* Dots */

.dots,
.mobile-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 25px;
}

.dot {
    width: 8px;
    height: 8px;
    background-color: var(--green-text);
    border-radius: 50%;
    cursor: pointer;
    opacity: 0.35;
}

.dot.active {
    opacity: 1;
}


/* Cache desktop */

.testimonial-desktop {
    display: none;
}

/* ------------------------------
   Version Tablette (>= 767px)
-------------------------------- */

@media (min-width: 1024px) {



    /* Titre */
    .mobile-dots {
        display: none;
    }

    .temoignages-carousel-wrapper {
        margin-top: 80px;
        padding: 20px;
    }

    .temoignages-carousel-wrapper .intro {
        position: absolute;
        top: -80px;
        left: -40px;
    }

    .temoignages-carousel-wrapper .title-temoignage {
        font-weight: 600;
    }


    #footer-widgets {
        margin-top: 0px;
    }


    .testimonial-mobile {
        display: none;
    }

    .testimonial-desktop {
        display: grid;
        grid-template-columns: 2fr 1fr 2fr;
        gap: 100px;
    }

    /* Bloc gauche */
    .testimonial .temoignage-left {
        text-align: right;
        height: 200px;
    }

    .testimonial .temoignage-left .name {
        color: var(--green-text);
        font-weight: 600;
        text-transform: uppercase;
        font-size: 20px;
        margin-bottom: 5px;
    }

    .testimonial .temoignage-left .role {
        color: gray;
        font-size: 18px;
        line-height: 1;
    }

    /* Bloc centre */
    .testimonial .temoignage-center {
        position: relative;
        text-align: center;
    }

    .testimonial .temoignage-center .block-image {
        width: 200px;
        height: 200px;
    }

    /* Bloc droit */
    .testimonial .temoignage {
        font-size: 16px;
        line-height: 1.3;
    }



    /*TITRE*/
}