.bloc.cta-testimony{
    background-color: #ffc000;
    padding: 50px 60px;
}

.bloc.cta-testimony div.text{
    margin-bottom: 40px;
}

.bloc.cta-testimony .carousel {
    --items: 5;
    --carousel-duration: 40s;
    --carousel-item-width: 300px;
    --carousel-item-height: ;
    --carousel-item-gap: 2rem;

    position: relative;
    width: 100%;
    height: 200px;
    overflow: clip;

    &[mask] {
        /* fade out on sides */
        mask-image: linear-gradient(to right,transparent,black 10% 90%,transparent);
    }

    &[reverse] > article {
        animation-direction: reverse;
    }
    /* hover pauses animation */
    &:hover > article {
        animation-play-state: paused;
    }
}

.bloc.cta-testimony .carousel > article {
    position: absolute;
    top: 0;
    left: calc(100% + var(--carousel-item-gap));
    width: var(--carousel-item-width);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    
    border-radius: 10px;
    background-color: white;
    padding: 5px 10px;
    
    /* animation */
    will-change: transform;
    animation-name: marquee;
    animation-duration: var(--carousel-duration);
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-delay: calc(
        var(--carousel-duration) / var(--items) * 1 * var(--i) * -1
    );
    &:nth-child(1) {
        --i: 0;
    }
    &:nth-child(2) {
        --i: 1;
    }
    &:nth-child(3) {
        --i: 2;
    }
    &:nth-child(4) {
        --i: 3;
    }
    &:nth-child(5) {
        --i: 4;
    }
    &:nth-child(6) {
        --i: 5;
    }
    &:nth-child(7) {
        --i: 6;
    }
    &:nth-child(8) {
        --i: 7;
    }
}

.bloc.cta-testimony .carousel article .top{
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    height: 75px;
    margin-bottom: 10px;
}

.bloc.cta-testimony .carousel article .top img {
    width: 65px;
    height: 65px;
    object-fit: cover;
    border-radius: 50%;
}

.bloc.cta-testimony .carousel article .top .title {
    display: flex;
    justify-content: center;
    text-align: center;
    width: 100%;    
    font-weight: bold;
    font-size: 15px;
    line-height: 15px;
}

.bloc.cta-testimony .carousel article .middle {    
    text-align: left;
    width: 100%;        
    font-size: 15px;
    line-height: 15px;
    height: 65px;
}

.bloc.cta-testimony .carousel article .bottom{
    display: flex;      
    align-items: center;
    justify-content: space-between;
    height: 20px;
    margin-top: 30px;
}
.bloc.cta-testimony .carousel article .bottom .date{
    font-size: 15px;
    line-height: 15px;
    color: grey;
}
.bloc.cta-testimony .carousel article .bottom .star{
    color: #ffc000;
}


@keyframes marquee {
    100% {
        transform: translateX(
            calc(
                (var(--items) * (var(--carousel-item-width) + var(--carousel-item-gap))) *
                    -1
            )
        );
    }
}



