/* Conteneur principal */
.methodology-timeline {
    position: relative;
    padding: 100px 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    overflow: hidden;
}

.methodology-timeline .container {
    position: relative;
    z-index: 2;
}

/* Assurer que le row utilise flex-start */
.methodology-timeline .row {
    align-items: flex-start;
}

/* Colonne gauche - sticky par défaut */
.methodology-timeline .col-lg-5 {
    position: relative;
    z-index: 10;
}

.methodology-intro {
    will-change: transform;
}

.methodology-title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    margin-bottom: 2rem;
}

.methodology-intro p {
    font-size: var(--font-size);
    color: #fff;
}

.methodology-intro h3 {
    color: var(--color-accent);
    margin-top: var(--space-md)!important;
}

.methodology-description p {
    margin-bottom: var(--space-sm);
    color: #fff;
}

.methodology-description p:last-child {
    margin-bottom: 0;
}

/* Timeline - Colonne droite */
.methodology-steps {
    position: relative;
}

/* Étape individuelle */
.methodology-step {
    position: relative;
    margin-bottom: 4rem;
}

/* Ligne verticale pointillée entre les étapes */
.methodology-step:not(:last-child)::before {
    content: '';
    position: absolute;
    left: -61px;
    top: 60px;
    height: calc(100% + 4rem);
    width: 2px;
    background: repeating-linear-gradient(
        to bottom,
        var(--color-primary) 0px,
        var(--color-primary) 10px,
        transparent 10px,
        transparent 20px
    );
    z-index: 1;
}

/* Numéro de l'étape (cercle sur la ligne) */
.step-number {
    position: absolute;
    left: -80px;
    top: 20px;
    width: 40px;
    height: 40px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-weight-bold);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(0, 155, 144, 0.2);
    z-index: 2;
}

/* Carte de l'étape */
.step-card {
    background: #fff;
    border-radius: var(--border-radius);
    padding: var(--space-xl);
}

/* Icône de l'étape */
.step-icon {
    margin-bottom: var(--space-xl);
}

.step-icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

/* Titre de l'étape */
.step-title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    margin-bottom: var(--space-md);
}

/* Description de l'étape */
.step-description p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   RESPONSIVE - DESKTOP FIRST
   ========================================================================== */

/* Tablette (1024px et moins) */
@media screen and (max-width: 1024px) {
    
}

/* En-dessous du breakpoint lg (992px) - colonnes full-width */
@media screen and (max-width: 992px) {
    .methodology-timeline {
        padding: 60px 0;
        background-attachment: scroll;
    }
    
    .methodology-intro {
        margin-bottom: 3.5rem;
        text-align: center;
    }
    
    .methodology-steps {
        padding-left: 50px;
    }
    
    .methodology-step:not(:last-child)::before {
        left: -41px;
    }
    
    .step-number {
        left: -58px;
        width: 35px;
        height: 35px;
    }
    
    .step-card {
        padding: var(--space-lg);
    }
    
    .step-icon {
        margin-bottom: var(--space-lg);
    }
    
    .step-icon img {
        width: 50px;
        height: 50px;
    }
}

/* Tablette et mobile (768px et moins) */
@media screen and (max-width: 768px) {
    
}

/* Mobile (480px et moins) */
@media screen and (max-width: 480px) {
    .methodology-timeline {
        padding: 40px 0;
    }
    
    .methodology-intro {
        margin-bottom: 3rem;
    }
    
    .methodology-steps {
        padding-left: 40px;
    }
    
    .methodology-step {
        margin-bottom: 3rem;
    }
    
    .methodology-step:not(:last-child)::before {
        left: -31px;
        height: calc(100% + 3rem);
    }
    
    .step-number {
        left: -46px;
        width: 32px;
        height: 32px;
        font-size: var(--font-size-sm);
    }
    
    .step-card {
        padding: var(--space-md);
    }
    
    .step-icon {
        margin-bottom: var(--space-md);
    }
    
    .step-icon img {
        width: 40px;
        height: 40px;
    }
}