.timeline {
    position: relative;
    max-width: 1200px;
    margin: 100px auto;
    overflow: hidden;
}

.container {
    padding: 10px 50px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.text-box {
    padding: 20px 30px;
    background-color: #fff;
    position: relative;
    border-radius: 6px;
    font-size: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.left-container {
    left: 0;
}

.right-container {
    left: 50%;
}

.container img {
    position: absolute;
    width: 60px; 
    border-radius: 50%;
    right: -30px; 
    top: 32px;
    z-index: 10;
}

.right-container img {
    left: -30px; 
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 100%;
    background: #fff;
    top: 0;
    left: 50%;
    margin-left: -3px;
    z-index: -1;
    animation: drawLine 2s forwards;
}

@keyframes drawLine {
    from {
        height: 0;
    }
    to {
        height: 100%;
    }
}

.container::before {
    content: '';
    position: absolute;
    top: 40px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 10px 10px 0;
    border-color: transparent #fff transparent transparent;
    left: -10px;
}

.right-container::before {
    left: auto;
    right: -10px;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent #fff;
}

@media screen and (max-width: 768px) {
    .container {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .left-container, .right-container {
        left: 0;
    }

    .right-container {
        left: 0;
    }

    .container img {
        left: 15px;
    }

    .right-container img {
        left: 15px;
    }

    .container::before, .right-container::before {
        left: 60px;
        right: auto;
        border-width: 10px 10px 10px 0;
        border-color: transparent #fff transparent transparent;
    }

    .right-container::before {
        left: 60px;
        right: auto;
        border-width: 10px 10px 10px 0;
        border-color: transparent #fff transparent transparent;
    }

    .timeline::after {
        left: 30px;
    }
}

#Titre-page-projets {
    text-align: center;
    color: white;
    margin-top: 50px;
    animation: fadeIn 2s ease-in-out;
}

#Titre-page-projets h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    animation: slideInFromLeft 1s ease-in-out;
}

#Titre-page-projets h2 {
    font-size: 1.5rem;
    animation: slideInFromRight 1s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInFromLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@media screen and (max-width: 768px) {
    #Titre-page-projets h1 {
        font-size: 2rem;
    }

    #Titre-page-projets h2 {
        font-size: 1rem;
    }
}