/**
 * WS Booster - Video Testimonials
 */

.ws-vt {
    width: 100%;
    position: relative;
}

.ws-vt__track {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.ws-vt--grid-tilted .ws-vt__card {
    transform: rotate(var(--tilt, 0deg));
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ws-vt--grid-tilted .ws-vt__card:hover {
    transform: rotate(0deg) translateY(-4px);
    z-index: 2;
}

.ws-vt--carousel .ws-vt__track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    gap: 24px;
}

.ws-vt--carousel .ws-vt__track::-webkit-scrollbar { display: none; }

.ws-vt--carousel .ws-vt__card {
    flex: 0 0 calc(min(400px, 90%));
    scroll-snap-align: center;
    transform: scale(0.92);
    opacity: 0.7;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.ws-vt--carousel .ws-vt__card.is-active {
    transform: scale(1);
    opacity: 1;
}

.ws-vt__card {
    background: #1a1a2e;
    color: #fff;
    border-radius: 16px;
    overflow: hidden;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.ws-vt__video {
    position: relative;
    aspect-ratio: var(--ws-vt-ratio, 4/3);
    overflow: hidden;
    border-radius: 10px;
    background: #000;
}

/* !important neutralise piege theme WP img {max-width:100%; height:auto !important} */
.ws-vt__video video,
.ws-vt__video img,
.ws-vt__video iframe {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: var(--ws-vt-fit, cover);
    object-position: center center;
    display: block;
}

.ws-vt__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.ws-vt__card.is-playing .ws-vt__overlay {
    opacity: 0;
}

.ws-vt__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.ws-vt__play:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.ws-vt__card.is-playing .ws-vt__play {
    opacity: 0;
    pointer-events: none;
}

.ws-vt__rating {
    display: flex;
    justify-content: center;
    gap: 3px;
}

.ws-vt__star {
    color: rgba(255, 255, 255, 0.2);
    display: inline-flex;
}

.ws-vt__star.is-filled {
    color: #fbbf24;
}

.ws-vt__quote {
    margin: 0;
    padding: 0;
    border: none;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
    opacity: 0.95;
}

.ws-vt__quote strong {
    font-weight: 700;
}

.ws-vt__footer {
    text-align: center;
    font-size: 13px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ws-vt__author {
    font-weight: 700;
    color: #fb923c;
    margin-bottom: 2px;
}

.ws-vt__company {
    opacity: 0.65;
    font-size: 12px;
}

/* Fleches nav carrousel */
.ws-vt__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    cursor: pointer;
    font-size: 24px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ws-vt__nav--prev { left: -20px; }
.ws-vt__nav--next { right: -20px; }

.ws-vt__nav:hover {
    background: rgba(0, 0, 0, 0.9);
}

@media (prefers-reduced-motion: reduce) {
    .ws-vt__card,
    .ws-vt__play,
    .ws-vt__overlay {
        transition: none;
    }
}
