.ancrages-testimonies {
    display: flex;
    gap: 15px;
    height: 425px;
}

.testimony-details {
    width: 75%;
    max-width: 75%;
    min-width: 75%;
    background-color: #F4F4F4;
    padding: 60px 60px;
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;

    background-image: url(/wp-content/themes/astra-child/assets/testimonies/quote.svg);
    background-repeat: no-repeat;
    background-position: calc(100% - 60px) 60px;
    
    justify-content: space-between;
}

.testimony-author-image {
    max-width: 25%!important;
    min-width: 25%!important;
    width: 25%!important;
    border-radius: 20px;
    object-fit: cover;
}

.testimony-author-and-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
	gap: 40px;
}

.testimony-author {
    width: fit-content;
    font-weight: bold;
}

.testimony-controls {
    display: flex;
    gap: 10px;
    width: fit-content;
}

.prev-testimony,
.next-testimony {
    box-shadow: none;
    background-color: #fff;
    width: 42px;
    height: 42px;
    border-radius: 21px;
    padding: 0;
    background-image: url(/wp-content/themes/astra-child/assets/carousel/carousel-arrow.svg);
    background-size: 40%;
    background-repeat: no-repeat;
    background-position: center;
    transition: background-color 0.3s ease, filter 0.3s ease; /* Ajout de la transition */
}

.next-testimony {
    transform: rotate(180deg);
}

.prev-testimony:hover, .next-testimony:hover,
.prev-testimony:focus, .next-te stimony:focus {
    background-color: #fff;
    filter: invert(1);
}

.testimony-info {
    width: 80%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

h3.testimony-title {
    font-size: 30px;
    line-height: 1.3em;
    margin-bottom: 0px;
}

p.testimony-content {
    font-size: 20px;
    line-height: 30px;
    font-weight: 400;
    overflow: hidden;
    margin-bottom: 0px;

}

p.author-name {
    font-size: 21px;
    line-height: 25px;
    font-weight: 600;
    margin-bottom: 5px;
}

p.author-title {
    font-size: 17px;
    font-weight: 400;
    line-height: 25px;
    color: #00000080;
    margin-bottom: 0px;

}

.testimony-author-image-mobile {
    display: none;
}

.testimony-controls-mobile {
    display: none;
}

.quote-svg-mobile {
    display: none;
}


@media screen and (max-width: 980px) {

    .ancrages-testimonies {
        flex-direction: column;
        gap: 15px;
        height: auto;
    }

    .quote-svg-mobile {
        display: block;
        width: 31px;
        height: auto;
    }

    .testimony-author-image-mobile {
        display: flex;
        width: 35%;
        aspect-ratio: 1/1;
        border-radius: 20px;
        object-fit: cover;
    }


    .testimony-author-and-controls {
        gap: 20px;
    }
    
    .testimony-controls-mobile {
        display: flex;
    }

    

    .testimony-details {
        width: 100%;
        max-width: 100%;
        min-width: 100%;
        padding: 30px 20px;
        background-image: none;
    }

    .testimony-info {
        width: 100%;
    }

    h3.testimony-title {
        font-size: 22px;
        line-height: 25px;
    }

    p.testimony-content {
        font-size: 15px;
        line-height: 24px;
    }

    p.author-name {
        font-size: 16px;
        line-height: 19px;
        margin-bottom: 10px;
    }

    p.author-title {
        font-size: 14px;
        line-height: 19px;
    }

    .testimony-controls-mobile  {
        display: flex;
        gap: 10px;
    }


    .prev-testimony,
    .next-testimony {
        background-color: #0000001A;
        width: 35px;
        height: 35px;
        border-radius: 17.5px;
    }
    
}