/**
 * WS Booster - Focus Carousel
 * Slide actif en scale 1, voisins en scale --ws-fc-inactive-scale (0.8 par defaut)
 */

.ws-fc {
    position: relative;
    width: 100%;
    --ws-fc-inactive-scale: 0.8;
}

.ws-fc__viewport {
    overflow: hidden;
    width: 100%;
    padding: 20px 0;
}

.ws-fc__track {
    display: flex;
    gap: 40px;
    align-items: center;
    transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
    touch-action: pan-y;
    will-change: transform;
}

.ws-fc__slide {
    flex: 0 0 66%;
    position: relative;
    user-select: none;
}

.ws-fc__image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 24px;
    background: #0a0a0a;
    transform: scale(var(--ws-fc-inactive-scale));
    transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

.ws-fc__slide.is-active .ws-fc__image {
    transform: scale(1);
}

.ws-fc--ratio-4-3 .ws-fc__image { aspect-ratio: 4 / 3; }
.ws-fc--ratio-3-2 .ws-fc__image { aspect-ratio: 3 / 2; }
.ws-fc--ratio-1-1 .ws-fc__image { aspect-ratio: 1 / 1; }
.ws-fc--ratio-4-5 .ws-fc__image { aspect-ratio: 4 / 5; }

.ws-fc__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.ws-fc__title-wrap {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 40px;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease 0.2s, transform 0.4s ease 0.2s;
    pointer-events: none;
}

.ws-fc__slide.is-active .ws-fc__title-wrap {
    opacity: 1;
    transform: translateY(0);
}

.ws-fc__title {
    margin: 0;
    color: #fff;
    font-size: clamp(18px, 2vw, 25px);
    font-weight: 600;
    line-height: 1.2;
}

/* Bouton Play central */
.ws-fc__btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
    border-radius: 999px;
    overflow: visible;
    z-index: 2;
    transition: all 0.15s ease;
}

.ws-fc__btn-pulse {
    position: absolute;
    inset: -1px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(148, 163, 184, 0.6) 0%, rgba(2, 6, 23, 0.8) 80%);
    filter: blur(2px);
    opacity: 0;
    transition: opacity 1s ease;
    animation: ws-fc-pulse 2.2s ease-in-out infinite;
}

.ws-fc__slide.is-active .ws-fc__btn:hover .ws-fc__btn-pulse,
.ws-fc__slide.is-active .ws-fc__btn:focus .ws-fc__btn-pulse {
    opacity: 1;
}

@keyframes ws-fc-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.ws-fc__btn-inner {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    transition: padding 0.2s ease;
}

.ws-fc__btn:hover .ws-fc__btn-inner {
    padding: 14px 28px;
}

.ws-fc__slide:not(.is-active) .ws-fc__btn {
    pointer-events: none;
    opacity: 0.6;
}

/* Nav */
.ws-fc__nav {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.ws-fc__arrow {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: #0f172a;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease, background 0.2s ease;
}

.ws-fc__arrow:hover {
    transform: translateY(-2px);
    background: #1e293b;
}

.ws-fc__arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .ws-fc__track,
    .ws-fc__image,
    .ws-fc__title-wrap,
    .ws-fc__btn-pulse,
    .ws-fc__arrow {
        transition: none;
        animation: none;
    }
}
