/*
╔══════════════════════════════════════════════════════════════╗
║  SOMMAIRE - PARCOURS.CSS                                     ║
╠══════════════════════════════════════════════════════════════╣
║  1. Introduction                                             ║
║  2. Timeline                                                 ║
║  3. Items timeline                                           ║
║  4. État actuel                                              ║
║  5. Responsive                                               ║
╚══════════════════════════════════════════════════════════════╝
*/

/* ═══════════════════════════════════════════════════════════════
   1. INTRODUCTION
   ═══════════════════════════════════════════════════════════════ */
.parcours-intro {
    max-width: 800px;
    margin: 0 auto var(--space-3xl);
    padding: var(--space-xl);
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    text-align: center;
}

.parcours-intro p {
    font-size: var(--fs-md);
    line-height: 1.8;
    margin: 0;
}

/* ═══════════════════════════════════════════════════════════════
   2. TIMELINE
   ═══════════════════════════════════════════════════════════════ */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: var(--space-xl);
}

/* Ligne verticale */
.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--color-border);
}

/* ═══════════════════════════════════════════════════════════════
   3. ITEMS TIMELINE
   ═══════════════════════════════════════════════════════════════ */
.timeline-item {
    position: relative;
    padding-bottom: var(--space-2xl);
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: calc(-1 * var(--space-xl) - 1px);
    top: 0;
}

.marker-dot {
    width: 16px;
    height: 16px;
    background: var(--color-bg-secondary);
    border: 2px solid var(--color-text-muted);
    border-radius: var(--radius-full);
    position: relative;
    z-index: 1;
}

.timeline-content {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: all var(--transition-base);
}

.timeline-item:hover .timeline-content {
    border-color: var(--color-border-hover);
    transform: translateX(4px);
}

.timeline-date {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-mono);
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-sm);
}

.timeline-title {
    font-size: var(--fs-lg);
    font-weight: var(--fw-semibold);
    margin-bottom: var(--space-sm);
}

.timeline-text {
    font-size: var(--fs-sm);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-md);
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

/* ═══════════════════════════════════════════════════════════════
   4. ÉTAT ACTUEL
   ═══════════════════════════════════════════════════════════════ */
.timeline-item.current .marker-dot {
    border-color: var(--color-accent);
    background: var(--color-accent);
}

.marker-dot.pulse {
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(237, 237, 237, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(237, 237, 237, 0); }
}

.timeline-item.current .timeline-content {
    border-color: var(--color-border-hover);
}

.badge-current {
    display: inline-flex;
    align-items: center;
    padding: var(--space-xs) var(--space-sm);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    font-size: var(--fs-xs);
    color: var(--color-accent);
    margin-left: var(--space-sm);
}

/* ═══════════════════════════════════════════════════════════════
   5. RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (min-width: 768px) {
    .timeline {
        padding-left: 0;
    }
    
    .timeline::before {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .timeline-item {
        width: 50%;
        padding-right: var(--space-2xl);
    }
    
    .timeline-item[data-side="right"] {
        margin-left: 50%;
        padding-right: 0;
        padding-left: var(--space-2xl);
    }
    
    .timeline-marker {
        left: auto;
        right: calc(-1 * var(--space-xl) - 8px);
    }
    
    .timeline-item[data-side="right"] .timeline-marker {
        right: auto;
        left: calc(-1 * var(--space-xl) - 8px);
    }
    
    .timeline-item:hover .timeline-content {
        transform: translateX(0) scale(1.02);
    }
}
