.baptiste.timeline {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column-reverse;
    padding: 2rem;
}

/* La ligne centrale */
.baptiste.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: rgb(13, 140, 224);
    top: 2rem;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(80, 131, 176, 0.5);
}

/* Flèche tout en haut de la ligne pour indiquer la direction */
.baptiste.timeline::before {
    content: '▲';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    color: rgb(13, 140, 224);
    font-size: 20px;
}

/* --- 3. LES ÉLÉMENTS (ITEMS) --- */
.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    opacity: 0;
    animation: fadeIn 0.8s forwards;
}

/* Animation d'apparition */
@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.left {
    left: 0;
    text-align: right;
    transform: translateY(20px);
}

.right {
    left: 50%;
    text-align: left;
    transform: translateY(20px);
}

/* Décalage des animations pour un effet cascade */
.timeline-item:nth-child(5) {
    animation-delay: 0.1s;
}

.timeline-item:nth-child(4) {
    animation-delay: 0.3s;
}

.timeline-item:nth-child(3) {
    animation-delay: 0.5s;
}

.timeline-item:nth-child(2) {
    animation-delay: 0.7s;
}

.timeline-item:nth-child(1) {
    animation-delay: 0.9s;
}

/* --- 4. LE POINT SUR LA LIGNE --- */
.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: rgb(13, 140, 224);
    border: 3px solid rgb(13, 140, 224);
    top: 20px;
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 10px rgba(13, 140, 224, 0.6);
    transition: all 0.3s ease;
}

.right::after {
    left: -10px;
}

.timeline-item:hover::after {
    background-color: rgb(13, 140, 224);
    transform: scale(1.3);
}

/* --- 5. LE CONTENU (LA CARTE) --- */
.baptiste.timeline .timeline-item .content {
    padding: 20px 30px;
    background: rgba(255, 255, 255, 0.1);
    /* Glassmorphism */
    backdrop-filter: blur(5px);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.baptiste.timeline .timeline-item .content:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border-color: rgba(13, 140, 224, 0.3);
}

.baptiste.timeline .timeline-item .content h2 {
    font-weight: 700;
    color: rgb(13, 140, 224);
    margin-bottom: 0px;
}

.baptiste.timeline .timeline-item .content h3 {
    font-weight: 500;
    margin: 0 0 1rem 0;
}

.baptiste.timeline .timeline-item .content p {
    font-weight: 300;
    line-height: 1.5;
    font-size: 0.95em;
    color: #888888;
}

/* --- 6. RESPONSIVE (MOBILE) --- */
@media screen and (max-width: 768px) {

    .baptiste.timeline {
        padding: 0;
    }

    .baptiste.timeline .timeline-item .content h2 {
        font-size: 1.3em;
    }
    
    .baptiste.timeline .timeline-item .content h3 {
        font-size: 0.95em;
    }
    
    .baptiste.timeline .timeline-item .content p {
        font-size: 0.8em;
    }    
    

    /* La ligne passe à gauche */
    .baptiste.timeline::after {
        left: 31px;
    }

    /* La flèche aussi */
    .baptiste.timeline::before {
        left: 31px;
    }

    /* Les items prennent toute la largeur */
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    /* On aligne tout à gauche */
    .left,
    .right {
        text-align: left;
        left: 0;
    }

    /* Ajustement des points sur la ligne */
    .timeline-item::after {
        left: 21px;
        /* Position ajustée à la nouvelle ligne */
    }

    .right::after {
        left: 21px;
    }
}