/** Généré par Claude (IA), légèrement modifié par moi-même **/
/** Generated with Claude (AI), slightly modified by me **/


.timeline{
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    padding: 2rem 0;
}

/* Rail centrale */
.timeline::before{
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: #2a3140;
    transform: translateX(-50%);
}

.timeline-item{
    position: relative;
    width: 50%;
    padding: 0 3rem 4rem;
    opacity: 0;
}

.timeline-item:nth-child(odd){
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even){
    left: 50%;
    text-align: left;
}

/* Point sur la rail */
.timeline-dot{
    position: absolute;
    top: 0.35rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #0b0e14;
    border: 2px solid var(--secondary);
    z-index: 2;
}

.timeline-item:nth-child(odd) .timeline-dot{ right: -7px; }
.timeline-item:nth-child(even) .timeline-dot{ left: -7px; }

.timeline-card{
    display: inline-block;
    background: #12161f;
    border: 1px solid #12161f;
    border-radius: 14px;
    padding: 1.5rem 1.75rem;
    max-width: 90%;
    text-align: left;
}

.timeline-date{
    color: var(--secondary);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.timeline-role{
    font-size: 1.15rem;
    margin: 0 0 0.15rem;
}

.timeline-company{
    color: #8b93a7;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.timeline-desc{
    font-size: 0.92rem;
    line-height: 1.55;
    color: #e7ebf3;
    opacity: 0.85;
    margin: 0;
    margin-bottom: 1rem;
}

/* Responsive : timeline sur un seul côté en dessous de 700px */
@media (max-width: 700px){
    .timeline::before,
    .timeline-progress{ left: 20px; }

    .timeline-item,
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even){
        width: 100%;
        left: 0;
        text-align: left;
        padding: 0 0 3rem 3.5rem;
    }

    .timeline-item:nth-child(odd) .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot{
        left: 13px;
        right: auto;
    }

    .timeline-card{ max-width: 100%; }
}