
/* ============================================================
   SECTION PARCOURS (EDUCATION)
   ============================================================ */
.education {
    background-color: var(--bg-color);
    overflow-x: hidden;
}

.timeline-items {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.timeline-items::before {
    content: '';
    position: absolute;
    width: 5px;
    height: 100%;
    background-color: var(--main-color);
    left: calc(50% - 2.5px);
}

.timeline-item {
    margin-bottom: 5rem;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
    padding-left: 0;
    padding-right: calc(50% + 20px);
    text-align: right;
}

.timeline-item:nth-child(even) {
    padding-left: calc(50% + 20px);
    padding-right: 0;
    text-align: left;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-right: auto;
}

.timeline-dot {
    height: 21px;
    width: 21px;
    background-color: var(--main-color);
    box-shadow: 0 0 25px var(--main-color),
                0 0 50px var(--main-color);
    position: absolute;
    left: calc(50% - 10.5px);
    border-radius: 50%;
    top: 25px;
}

.timeline-date {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-color);
    margin: 0.6rem 0 1.5rem;
}

.timeline-content {
    background-color: var(--bg-color);
    border: 3px solid var(--main-color);
    padding: 2.5rem 3rem;
    border-radius: 3rem;
    box-shadow: 0 0 10px var(--main-color);
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    display: inline-block;
    max-width: 400px;
}

.timeline-content:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px var(--main-color);
}

.timeline-content h3 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin: 0 0 1rem;
    font-weight: 600;
}

.timeline-content p {
    color: var(--text-color);
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1.6;
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */

/* Tablettes */
@media (max-width: 895px) {
    .timeline-items::before {
        left: 20px;
    }
    
    .timeline-dot {
        left: 12px;
    }
    
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        padding-left: 60px;
        padding-right: 0;
        text-align: left;
    }
    
    .timeline-content {
        max-width: 100%;
    }
}
