/**
 * WS Booster - Stack Scale Reveal (Coudac pattern)
 */

.ws-ssr {
    display: flex;
    flex-direction: column;
    gap: 40px;
    position: relative;
}

.ws-ssr__card {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px;
    border-radius: 24px;
    min-height: 560px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transform: scale(1);
    transform-origin: center center;
    will-change: transform;
}

/* Glow gradient (visible sur card active) */
.ws-ssr__glow {
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, transparent 0%, var(--ws-ssr-accent, #6366f1) 50%, transparent 100%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}

.ws-ssr__card.is-active .ws-ssr__glow {
    opacity: 1;
}

.ws-ssr__content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.ws-ssr__text {
    flex: 1;
    max-width: 600px;
}

.ws-ssr__title {
    margin: 0 0 18px;
    font-size: clamp(32px, 4vw, 56px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.ws-ssr__desc {
    margin: 0 0 24px;
    font-size: 17px;
    line-height: 1.55;
    color: #475569;
}

.ws-ssr__btn {
    display: inline-block;
    padding: 12px 24px;
    background: #0f172a;
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ws-ssr__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.ws-ssr__number {
    font-size: clamp(40px, 5vw, 72px);
    font-weight: 700;
    color: var(--ws-ssr-accent, #6366f1);
    opacity: 0.6;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.ws-ssr__image {
    margin-top: 32px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.ws-ssr__image img {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .ws-ssr__card {
        padding: 32px 24px;
        min-height: 480px;
    }
    .ws-ssr__content {
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ws-ssr__card {
        transform: none !important;
        transition: none;
    }
    .ws-ssr__glow {
        transition: none;
    }
}
