.timeline-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
}

.timeline-header {
    text-align: center;
    margin-bottom: 60px;
}

.timeline-badge {
    background-color: #1e3a8a;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    display: inline-block;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 50px;
    width: 3px;
    height: calc(100% - 120px);
    background-color: #d1d5db;
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-items {
    position: relative;
    z-index: 2;
}

.timeline-item {
    height: 60px;
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
    position: relative;
}

/* .timeline-item:nth-child(even) {
    transform: translateY(-30px);
} */

.timeline-content {
    background: white;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 450px;
    position: relative;
}

.timeline-content-left {
    margin-right: auto;
    margin-top: 0;
    border-top: 6px solid #fbbf24;
    background-color: #fffbeb;
}

.timeline-content-right {
    margin-left: auto;
    margin-top: 0;
    border-top: 6px solid #2563eb;
    background-color: #eff6ff;
}

.timeline-date {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #6b7280;
}

.timeline-title {
    font-size: 18px;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 12px;
    line-height: 1.4;
}

.timeline-description {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
}

.timeline-circle {
    position: absolute;
    left: 50%;
    top: 30px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    transform: translateX(-50%);
    border: 4px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.timeline-circle-yellow {
    background-color: #fbbf24;
}

.timeline-circle-blue {
    background-color: #2563eb;
}

@media (max-width: 768px) {
    .timeline-item {
        flex-direction: column;
        align-items: center;
    }
    .timeline-content {
        width: 100%;
        max-width: 350px;
        margin-bottom: 20px;
    }
    .timeline-line {
        left: 30px;
    }
    .timeline-circle {
        left: 30px;
    }
    .timeline-content-left,
    .timeline-content-right {
        margin-left: 60px;
    }
}

/* ========================= */
/* 📱 Mobile (max 576px)     */
/* ========================= */
@media (max-width: 576px) {
    .timeline-container {
        padding: 20px 10px;
    }

    .timeline-line {
        left: 20px;
        /* ligne collée à gauche */
        height: 100%;
    }

    .timeline-circle {
        left: 20px;
        /* cercle aligné à la ligne */
    }

    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 40px;
    }

    .timeline-content {
        width: 100%;
        max-width: 100%;
        margin-left: 50px;
        /* espace après la ligne */
    }

    .timeline-content-left,
    .timeline-content-right {
        margin: 0 0 0 50px;
        /* tout passe à gauche */
    }

    .timeline-title {
        font-size: 16px;
    }

    .timeline-date {
        font-size: 13px;
    }
}

/* ========================= */
/* 📲 Tablette (577px–991px) */
/* ========================= */
@media (min-width: 577px) and (max-width: 991px) {
    .timeline-content {
        width: 100%;
        max-width: 400px;
    }

    .timeline-line {
        left: 40px;
    }

    .timeline-circle {
        left: 40px;
    }

    .timeline-content-left,
    .timeline-content-right {
        margin-left: 70px;
    }
}

/* ========================= */
/* 💻 Desktop (>= 992px)     */
/* ========================= */
@media (min-width: 992px) {
    .timeline-content {
        width: 450px;
    }
}
