/* ═══════════════════════════════════
   BLOC PROCESS — ETAPE PAR ETAPE
═══════════════════════════════════ */

.process-section {
    height: 150vh;
    /* Reduced scrollytelling height */
    background: var(--color-bg);
    position: relative;
    z-index: 10;
}

.process-container {
    max-width: 1200px;
    margin: 0 auto;
    position: sticky;
    top: 10vh;
    height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 5%;
    z-index: 2;
    overflow: hidden;
}

.process-header {
    text-align: center;
    margin-bottom: 100px;
}

.process-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 4vw, 48px);
    font-weight: 800;
    line-height: 1.2;
    margin-top: 70px;
    margin-bottom: 25px;
    color: var(--color-primary);
}

.process-subtitle {
    font-size: 18px;
    color: var(--color-text-2);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.process-timeline-wrapper {
    position: relative;
    width: 100%;
}

.process-timeline {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-top: 20px;
}

/* Timeline Track & Fill */
.timeline-track {
    position: absolute;
    top: 40px;
    left: 10%;
    right: 10%;
    height: 4px;
    background: rgba(14, 3, 56, 0.08);
    border-radius: 4px;
    z-index: 1;
    overflow: hidden;
}

.timeline-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    /* updated via JS */
    background: var(--color-primary);
    border-radius: 4px;
    transition: width 0.1s linear;
}

.process-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 0 15px;
    opacity: 0.5;
    transition: opacity 0.5s cubic-bezier(0.23, 1, 0.32, 1), transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
}

.process-step:hover {
    opacity: 0.8;
}

.process-step.active {
    opacity: 1;
}

.step-marker {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: white;
    border: 2px solid rgba(14, 3, 56, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    position: relative;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

.step-number {
    font-size: 16px;
    font-weight: 800;
    font-family: var(--font-display);
    color: var(--color-primary);
    transition: color 0.4s ease;
}

.step-glow {
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    background: var(--color-primary);
    opacity: 0;
    filter: blur(15px);
    z-index: -1;
    transition: opacity 0.5s ease;
}

/* Active State Styles */
.process-step.active .step-marker {
    background: var(--color-primary);
    border-color: var(--color-primary);
    transform: scale(1.2);
    box-shadow: 0 15px 35px rgba(14, 3, 56, 0.25);
}

.process-step.active .step-number {
    color: white;
}

.process-step.active .step-glow {
    opacity: 0.4;
}

.step-content {
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.process-step.active .step-content {
    /* No vertical shift */
}

.step-content h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.step-content p {
    font-size: 14px;
    color: var(--color-text-2);
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 1023px) {
    .process-section {
        height: auto !important;
        padding: 80px 0 !important;
    }

    .process-container {
        position: relative !important;
        top: auto !important;
        height: auto !important;
        overflow: visible !important;
        padding: 0 20px !important;
    }

    .process-timeline {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 20px;
        padding-top: 0;
    }

    .timeline-track {
        top: 20px;
        bottom: 40px;
        left: 42px;
        /* Center of the marker */
        width: 4px;
        height: auto;
        right: auto;
    }

    .timeline-fill {
        width: 100%;
        height: 0%;
        /* updated via JS */
        transition: height 0.1s linear;
    }

    .process-step {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        margin-bottom: 60px;
        padding: 0;
        transform: translateX(-20px);
    }

    .process-step.active {
        transform: translateX(0);
    }

    .process-step.active .step-content {
        transform: translateX(10px) translateY(0);
    }

    .step-marker {
        margin-bottom: 0;
        margin-right: 30px;
        flex-shrink: 0;
    }
}

/* ═══ PROTROT MODE ═══ */
.mode-protrot .process-section {
    --color-primary: var(--color-protrot-primary);
    --color-secondary: var(--color-protrot-secondary);
}

.mode-protrot .timeline-track {
    background: rgba(25, 130, 108, 0.1);
}

.mode-protrot .step-marker {
    border-color: rgba(25, 130, 108, 0.15);
}

.mode-protrot .process-step.active .step-marker {
    box-shadow: 0 15px 35px rgba(25, 130, 108, 0.3);
}