/* Timeline simple et épurée */
.timeline-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

.modern-timeline {
    position: relative;
    padding: 30px 0;
}

/* Ligne verticale - couleurs plus pastel */
.modern-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%; /* Ligne visible par défaut */
    background: linear-gradient(to bottom, #eed5f7, #edf8e8); /* Couleurs plus pastel */
    transform: translateX(-50%);
    transform-origin: top center;
}

/* Carte Timeline */
.timeline-card {
    position: relative;
    width: 45%;
    margin-bottom: 50px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    opacity: 1; /* Visible par défaut */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Étape active lors du scroll - mise en évidence plus douce */
.timeline-card.active-step {
    background: linear-gradient(to bottom right, rgba(238, 213, 247, 0.1), rgba(237, 248, 232, 0.1));
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(238, 213, 247, 0.4); /* Bordure plus fine et plus pastel */
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

/* Effet de surbrillance sur l'étape active - plus pastel */
.timeline-card.active-step .timeline-marker {
    box-shadow: 0 0 0 6px white, 0 0 15px rgba(238, 213, 247, 0.6);
    animation: pulse 2s infinite;
    background: linear-gradient(135deg, #eed5f7, #edf8e8); /* Couleurs pastel identiques à la ligne */
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 6px white, 0 0 20px rgba(228, 188, 245, 0.6); }
    50% { box-shadow: 0 0 0 6px white, 0 0 30px rgba(228, 188, 245, 0.8); }
    100% { box-shadow: 0 0 0 6px white, 0 0 20px rgba(228, 188, 245, 0.6); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation d'apparition des cartes */
.timeline-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.timeline-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Alternance gauche-droite */
.timeline-card:nth-child(odd) {
    margin-left: auto;
}

/* Cercle sur la ligne - couleurs pastel */
.timeline-marker {
    position: absolute;
    top: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #eed5f7, #edf8e8); /* Couleurs plus pastel, identiques à la ligne */
    display: flex;
    justify-content: center;
    align-items: center;
    color: #6e2b62; /* Couleur de texte plus foncée pour contraste */
    font-weight: 800;
    font-size: 1.2rem;
    box-shadow: 0 0 0 4px white, 0 5px 15px rgba(0, 0, 0, 0.1);
    opacity: 1; /* Visible par défaut */
    transform: scale(1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Étapes terminées lors du scroll */
.timeline-card.active-step .timeline-number {
    font-weight: 900;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

@keyframes popIn {
    from { opacity: 0; transform: scale(0); }
    to { opacity: 1; transform: scale(1); }
}

/* Animation d'apparition des marqueurs */
.timeline-card.animate .timeline-marker {
    opacity: 1;
    transform: scale(1);
    transition-delay: 0.2s; /* Apparaissent juste après les cartes */
}

.timeline-card:hover .timeline-marker {
    transform: scale(1.1);
}

.timeline-card:nth-child(odd) .timeline-marker {
    left: -75px;
}

.timeline-card:nth-child(even) .timeline-marker {
    right: -75px;
}

.timeline-title {
    color: #6e2b62;
    margin-bottom: 15px;
    font-size: 1.4rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}

.timeline-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, #e4bcf5, #e5f9d3);
    border-radius: 2px;
}

.timeline-description {
    color: #555;
    line-height: 1.6;
    font-size: 1rem;
    margin-top: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .modern-timeline::before {
        left: 20px;
    }
    
    .timeline-card {
        width: 80%;
        margin-left: 60px !important;
        margin-right: 0 !important;
    }
    
    .timeline-card:nth-child(odd) .timeline-marker,
    .timeline-card:nth-child(even) .timeline-marker {
        left: -40px;
        right: auto;
    }
}
