.page-histoire {
    padding: 34px 0 56px;
}

.page-histoire__title {
    margin: 0 0 26px;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: var(--primary-color);
}

.timeline {
    position: relative;
    padding: 10px 0;
}

.timeline__line {
    position: absolute;
    left: 50%;
    top: 0;
    width: 4px;
    height: 0;
    transform: translateX(-50%) scaleY(0);
    transform-origin: top center;
    background: var(--secondary-color);
    border-radius: 999px;
}

.timeline__item {
    width: 50%;
    position: relative;
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    transition-delay: var(--timeline-reveal-delay, 0s);
}

.timeline__item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline__item.is-left {
    padding-right: 48px;
}

.timeline__item.is-right {
    margin-left: 50%;
    padding-left: 48px;
}

.timeline__dot {
    position: absolute;
    top: 26px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 3px solid var(--secondary-color);
    background: #fff;
    z-index: 2;
}

.timeline__item.is-left .timeline__dot {
    right: -11px;
}

.timeline__item.is-right .timeline__dot {
    left: -11px;
}

.timeline__card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.timeline__image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
    margin-bottom: 12px;
}

.timeline__date {
    margin: 0;
    font-size: 1.3rem;
    color: var(--secondary-color);
}

.timeline__text {
    margin: 8px 0 0;
    line-height: 1.5;
}

.page-histoire__fallback {
    margin: 0;
}

@media (min-width: 769px){
    /* .timeline__date {
        position: absolute;
        bottom: 50px;
        right: 80px;
        margin: 0;
        font-size: 46px;
        -webkit-text-stroke: 2px white;
        color: transparent;
    } */
}

@media (max-width: 768px) {
    .page-histoire {
        padding: 24px 0 40px;
    }

    .timeline__line {
        left: 20px;
        transform: translateX(0) scaleY(0);
    }

    .timeline__item,
    .timeline__item.is-right {
        width: 100%;
        margin-left: 0;
        padding-left: 56px;
        padding-right: 0;
    }

    .timeline__item.is-left .timeline__dot,
    .timeline__item.is-right .timeline__dot {
        left: 10px;
        right: auto;
    }
}
