/**
 * WS Booster - Timeline Years
 * Pattern sticky : annees en bandeau top + contenu sync vertical
 */
.ws-tly {
    position: relative;
    width: 100%;
}

.ws-tly__sticky {
    position: sticky;
    top: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    padding: 80px 40px;
    box-sizing: border-box;
}

/* Lignes decoratives */
.ws-tly__lines {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.ws-tly__line-h {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(15, 23, 42, 0.12);
}

.ws-tly__line-v {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background: rgba(15, 23, 42, 0.12);
}

/* Annees en bandeau horizontal */
.ws-tly__years {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 60px;
    z-index: 2;
}

.ws-tly__years-track {
    display: flex;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.ws-tly__year-slide {
    flex: 0 0 100%;
    text-align: center;
    opacity: 0.2;
    transition: opacity 0.5s ease;
}

.ws-tly__year-slide.is-active {
    opacity: 1;
}

.ws-tly__year {
    font-size: clamp(80px, 14vw, 220px);
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: -0.04em;
    color: #0f172a;
}

/* Contenu vertical (icone + texte) */
.ws-tly__content {
    position: relative;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    overflow: hidden;
    z-index: 2;
    height: 280px;
}

.ws-tly__content-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.ws-tly__slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 60px;
    align-items: center;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    pointer-events: none;
}

.ws-tly__slide.is-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.ws-tly__col-ico {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.ws-tly__ico {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.ws-tly__ico-title {
    font-size: 28px;
    font-weight: 600;
    line-height: 1.1;
    color: #0f172a;
}

.ws-tly__col-text {
    max-width: 640px;
}

.ws-tly__text {
    font-size: 15.5px;
    line-height: 1.6;
    color: #334155;
    margin: 0 0 18px;
}

.ws-tly__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ws-tly__tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(15, 23, 42, 0.05);
    color: #0f172a;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
}

.ws-tly__tag-star {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #ef3340;
    clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

/* Navigation */
.ws-tly__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 40px;
    position: relative;
    z-index: 3;
}

.ws-tly__nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.08);
    color: #0f172a;
    border: 0;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.2s ease;
}

.ws-tly__nav-btn:hover {
    background: rgba(15, 23, 42, 0.18);
    transform: translateY(-1px);
}

.ws-tly__dots {
    display: flex;
    gap: 10px;
}

.ws-tly__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.2);
    border: 0;
    padding: 0;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
}

.ws-tly__dot.is-active {
    background: #0f172a;
    transform: scale(1.25);
}

/* Editor : affichage vertical scrollable */
.ws-tly--editor .ws-tly__sticky {
    min-height: auto;
    position: relative;
    padding: 40px 20px;
}

.ws-tly--editor .ws-tly__content {
    height: auto;
}

.ws-tly--editor .ws-tly__content-track {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.ws-tly--editor .ws-tly__slide {
    position: relative;
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.ws-tly--editor .ws-tly__years-track {
    transform: none !important;
}

.ws-tly--editor .ws-tly__year-slide {
    opacity: 0.5;
}
.ws-tly--editor .ws-tly__year-slide.is-active { opacity: 1; }

@media (max-width: 768px) {
    .ws-tly__slide {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .ws-tly__content {
        height: 360px;
    }
    .ws-tly__sticky {
        padding: 40px 20px;
    }
}
