/* ==============================
   Bloc : Etapes
   ============================== */

.bloc-etapes {
    position: relative;
}

.bloc-etapes__deco {
    position: absolute;
    left: -80px;
    bottom: -100px;
    pointer-events: none;
}


.steps {
    position: relative;
    padding-top: 48px;
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 64px;
}

.steps .ligne {
    opacity: 0.4;
    display: block;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 16px;
    width: 100%;
    height: 4px;
    border: none;
    background: repeating-linear-gradient(
        to right,
        transparent,
        transparent 12px,
        currentColor 8px,
        currentColor 24px
    );
    -webkit-mask-image: linear-gradient(
        to right,
        transparent,
        var(--color-primary) 20%,
        var(--color-primary) 80%,
        transparent
    );
    mask-image: linear-gradient(
        to right,
        transparent,
        var(--color-primary) 20%,
        var(--color-primary) 80%,
        transparent
    );
    clip-path: inset(0 100% 0 0);
    transition: clip-path 1.2s ease-out;
}

.steps.is-visible .ligne {
    clip-path: inset(0 0% 0 0);
}

.steps .step {
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}
.steps .step h3{
    font-size: 32px;
}

.steps .step .chiffre {
    font-family: var(--font-titres, 'Cabinet'), sans-serif;
    font-weight: 800;
    font-size: 90px;
    line-height: 1;
    color: transparent;
    background: linear-gradient(180deg, #337AB7 45%, #FFFFFD 65%);
    background-clip: text;
    -webkit-background-clip: text;
    margin-bottom: -34px;
}

@keyframes stepFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==============================
   Responsive - Tablette (1024px)
   ============================== */

@media (max-width: 1024px) {
    .bloc-etapes__deco {
        display: none;
    }

    .steps {
        flex-wrap: wrap;
        justify-content: center;
        gap: 32px;
    }

    .steps .step {
        opacity: 1;
        transform: translateY(0);
        max-width: 300px;
        width: 100%;
    }

}

@media (min-width: 1025px) {
    .steps.is-visible .step {
        animation: stepFadeIn 0.5s ease-out forwards;
    }
}

/* ==============================
   Responsive - Mobile (768px)
   ============================== */

@media (max-width: 768px) {
    .steps {
        gap: 16px;
    }

    .steps .step {
        max-width: 100%;
    }

    .steps .step .chiffre {
        font-size: 64px;
        margin-bottom: -32px;
    }
    .steps{
        padding-left:16px;
    }
    .steps .ligne{
        width: 4px;
        height: 100%;
        left: -8px;
        transform: translateX(0px);
        background: repeating-linear-gradient(to bottom, transparent, transparent 12px, currentColor 8px, currentColor 24px);
        -webkit-mask-image: linear-gradient(to bottom, transparent, var(--color-primary) 20%, var(--color-primary) 80%, transparent);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    }
    .steps.is-visible .ligne{
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
    }
}