/* Container SVG */
.drawing-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

#drawing-line {
    width: 100%;
    height: 100%;
}

#pencil {
    position: absolute;
    width: 60px; /* Un peu plus gros pour bien voir */
    height: auto;
    z-index: 5; /* Au-dessus du trait */
    
    /* CORRECTION CRUCIALE POUR LA MINE EN BAS A GAUCHE */
    /* On positionne le top/left via JS, et CSS remonte l'image de sa hauteur */
    transform: translate(0, -100%); 
    will-change: top, left;
}

/* --- ANIMATION D'APPARITION --- */
.section-step {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.section-step.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- TIMELINE GENERAL --- */
.timeline {
    position: relative;
    padding: 20px 0;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline-item {
    display: flex;
    padding: 40px 0;
    width: 50%;
    position: relative;
}

.timeline-item.left {
    justify-content: flex-end;
    align-self: flex-start;
    text-align: right;
    padding-right: 80px; 
    margin-right: auto;
}

.timeline-item.right {
    justify-content: flex-start;
    align-self: flex-end;
    margin-left: auto;
    text-align: left;
    padding-left: 80px;
}

.timeline-item .content {
    background: #fff;
    padding: 25px 30px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
    border: 1px solid rgba(245, 168, 199, 0.3);
    max-width: 400px;
}

.timeline-item .date {
    font-family: 'Indie Flower', cursive;
    color: #f5a8c7;
    font-weight: bold;
    font-size: 1.3rem;
    display: block;
    margin-bottom: 8px;
}

.timeline-item h3 {
    font-family: 'Chivo', sans-serif;
    margin-bottom: 10px;
    font-size: 1.4rem;
    color: #333;
}

.typewriter {
    font-family: 'Poppins', sans-serif;
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
}

/* ... (Votre code CSS existant reste au dessus) ... */

/* --- RESPONSIVE DESIGN (Tablettes et Mobiles) --- */

@media (max-width: 900px) {
    
    /* 1. TIMELINE : On passe de 2 colonnes à 1 colonne */
    .timeline {
        padding: 20px;
        /* On déplace la ligne imaginaire vers la gauche */
        margin-left: 0; 
    }

    .timeline-item {
        width: 100%; /* Prend toute la largeur */
        padding: 20px 0 20px 50px; /* 50px de marge à gauche pour laisser passer le trait */
    }

    /* On force l'alignement à gauche pour TOUS les items (left et right) */
    .timeline-item.left, 
    .timeline-item.right {
        justify-content: flex-start;
        align-self: flex-start;
        text-align: left;
        padding-left: 60px; /* Espace pour le crayon */
        padding-right: 0;
        margin-left: 0;
    }

    /* On retire les connecteurs PC pour mettre des connecteurs Mobile */
    .timeline-item.left .content::after,
    .timeline-item.right .content::before {
        display: none;
    }

    /* Nouveau connecteur (petit trait à gauche) */
    .timeline-item .content::before {
        content: '';
        display: block !important; /* Force l'affichage */
        position: absolute;
        top: 50%;
        left: -20px; /* Pointe vers le trait à gauche */
        width: 20px;
        height: 2px;
        background: #f5a8c7;
    }

    /* Ajustement des boites de contenu */
    .timeline-item .content {
        max-width: 100%; /* La boite prend toute la place disponible */
    }
}