/**
 * Process Timeline Styles
 */

.process {
    padding: var(--space-4xl) 0;
}

.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-xl) 0;
}

.timeline-line {
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gray-800);
    transform-origin: top center;
}

.process-step {
    position: relative;
    padding-left: var(--space-4xl);
    margin-bottom: var(--space-4xl);
}

.process-step:last-child {
    margin-bottom: 0;
}

.step-number {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-3xl);
    font-weight: 900;
    color: var(--white);
    box-shadow: var(--shadow-lg);
    z-index: 2;
    animation: heartbeat 1.5s ease-in-out infinite;
}

/* Délais en cascade pour animation heartbeat */
.process-step[data-step="1"] .step-number {
    animation-delay: 0s;
}

.process-step[data-step="2"] .step-number {
    animation-delay: 0.2s;
}

.process-step[data-step="3"] .step-number {
    animation-delay: 0.4s;
}

.process-step[data-step="4"] .step-number {
    animation-delay: 0.6s;
}

@keyframes heartbeat {
    0% {
        transform: translateY(-50%) scale(1);
    }
    14% {
        transform: translateY(-50%) scale(1.15);
    }
    28% {
        transform: translateY(-50%) scale(1);
    }
    42% {
        transform: translateY(-50%) scale(1.15);
    }
    70% {
        transform: translateY(-50%) scale(1);
    }
}

.step-content {
    background: var(--dark-secondary);
    border: 1px solid var(--gray-800);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    transition: all var(--transition-base);
}

.step-content:hover {
    border-color: var(--primary);
    transform: translateX(8px);
}

.step-title {
    font-size: var(--text-2xl);
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--white);
}

.step-duration {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: var(--space-md);
}

.step-description {
    color: var(--gray-400);
    line-height: 1.6;
}

/* Responsive Timeline */
@media (max-width: 768px) {
    .process-timeline {
        padding-left: var(--space-lg);
    }
    
    .timeline-line {
        left: 20px;
    }
    
    .process-step {
        padding-left: var(--space-3xl);
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: var(--text-lg);
    }
}

