/* ==========================================================
   PROCESSUS REFERENCEMENT FOURNISSEUR
   Classes volontairement isolées
========================================================== */

.sems-ref-process {
    --rp-dark: #07375f;
    --rp-blue: #087fc7;
    --rp-blue-light: #239fe3;
    --rp-green: #24c59c;
    --rp-orange: #ff8117;
    --rp-purple: #8055e7;
    --rp-text: #607994;

    position: relative;
    width: 100%;
    overflow: hidden;

    padding: 65px 5% 85px;

    font-family:
        Inter,
        Arial,
        sans-serif;

    background:
        radial-gradient(
            circle at 92% 0%,
            rgba(218, 240, 253, .70),
            transparent 20%
        ),
        radial-gradient(
            circle at 5% 100%,
            rgba(225, 243, 253, .65),
            transparent 20%
        ),
        linear-gradient(
            115deg,
            #ffffff 0%,
            #fbfdff 55%,
            #f6fbff 100%
        );
}


/* ==========================================================
   CONTAINER
========================================================== */

.sems-ref-process__container {
    position: relative;
    z-index: 5;

    width: 100%;
    max-width: 1400px;

    margin: 0 auto;
}


/* ==========================================================
   HEADER
========================================================== */

.sems-ref-process__header {
    margin-bottom: 58px;
}


.sems-ref-process__eyebrow {
    display: flex;
    align-items: center;

    gap: 15px;

    margin-bottom: 17px;

    color: var(--rp-blue);

    font-size: 14px;
    font-weight: 800;

    letter-spacing: 2px;
}


.sems-ref-process__eyebrow span {
    width: 28px;
    height: 3px;

    display: block;

    border-radius: 5px;

    background: var(--rp-blue);
}


/* IMPORTANT :
   ici on ne touche pas au style global des h2
*/

.sems-ref-process__title {
    margin: 0 0 12px;

    color: var(--rp-dark);

    font-size: clamp(26px, 2.4vw, 36px);

    line-height: 1.1;

    font-weight: 800;

    letter-spacing: -1.4px;
}


.sems-ref-process__title strong {
    color: var(--rp-dark);

    font-weight: 800;
}


.sems-ref-process__subtitle {
    margin: 0;

    max-width: 950px;

    color: var(--rp-text);

    font-size: 17px;

    line-height: 1.6;
}


/* ==========================================================
   TIMELINE
========================================================== */

.sems-ref-process__timeline {
    position: relative;

    display: grid;

    grid-template-columns:
        1fr 42px
        1fr 42px
        1fr 42px
        1fr 42px
        1fr 42px
        1fr 42px
        1fr 42px
        1fr;

    align-items: start;

    width: 100%;

    padding: 0 12px;
}


/* ligne horizontale */

.sems-ref-process__line {
    position: absolute;

    z-index: 1;

    top: 62px;

    left: 5%;
    right: 5%;

    height: 2px;

    background:
        linear-gradient(
            90deg,
            rgba(23, 143, 211, .22),
            rgba(23, 143, 211, .55),
            rgba(23, 143, 211, .22)
        );
}


/* ==========================================================
   STEP
========================================================== */

.sems-ref-step {
    position: relative;
    z-index: 5;

    text-align: center;

    min-width: 0;
}


/* numéro */

.sems-ref-step__number {
    position: absolute;

    z-index: 8;

    top: -15px;
    left: 50%;

    width: 34px;
    height: 34px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    transform: translateX(-50%);

    color: #ffffff;

    background:
        linear-gradient(
            145deg,
            #0c4773,
            #052d4d
        );

    border: 4px solid #ffffff;

    box-shadow:
        0 7px 17px
        rgba(7, 55, 95, .14);

    font-size: 12px;
    font-weight: 800;
}


/* ==========================================================
   ICON CIRCLE
========================================================== */

.sems-ref-step__icon {
    position: relative;

    width: 100px;
    height: 100px;

    margin: 0 auto 18px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    border: 6px solid #ffffff;

    font-size: 39px;

    box-shadow:
        0 10px 32px
        rgba(27, 91, 132, .09);
}


.sems-ref-step__icon::before {
    content: "";

    position: absolute;

    inset: -9px;

    border-radius: 50%;

    border:
        1px solid
        rgba(102, 181, 226, .12);
}


/* bleu */

.sems-ref-step__icon--blue {
    color: #318fe4;

    background:
        radial-gradient(
            circle,
            #eef8ff,
            #dbedfc
        );
}


/* vert */

.sems-ref-step__icon--green {
    color: #24bfa0;

    background:
        radial-gradient(
            circle,
            #effcf8,
            #daf6ec
        );
}


/* orange */

.sems-ref-step__icon--orange {
    color: #ff8117;

    background:
        radial-gradient(
            circle,
            #fff8f1,
            #ffead6
        );
}


/* violet */

.sems-ref-step__icon--purple {
    color: #8056e5;

    background:
        radial-gradient(
            circle,
            #f8f5ff,
            #ece5fc
        );
}


/* ==========================================================
   STEP TEXT
========================================================== */

.sems-ref-step h3,
.sems-ref-follow h3 {
    margin: 0 0 7px;

    color: var(--rp-dark);

    font-size: 15px;

    line-height: 1.3;

    font-weight: 800;
}


.sems-ref-step p {
    max-width: 165px;

    margin: 0 auto;

    color: var(--rp-text);

    font-size: 13px;

    line-height: 1.5;
}


/* ==========================================================
   ARROWS
========================================================== */

.sems-ref-arrow {
    position: relative;

    z-index: 6;

    height: 100px;

    display: flex;

    align-items: center;
    justify-content: center;
}


.sems-ref-arrow i {
    width: 36px;
    height: 36px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    color: #1889dc;

    background:
        rgba(229, 243, 253, .96);

    font-size: 18px;

    box-shadow:
        0 5px 15px
        rgba(13, 128, 196, .08);
}


/* ==========================================================
   FOLLOW LINE STEP 5 -> STEP 9
========================================================== */

.sems-ref-follow-line {
    position: absolute;

    top: 92px;
    left: 50%;

    width: 2px;
    height: 245px;

    transform: translateX(-50%);

    background:
        repeating-linear-gradient(
            to bottom,
            #acdafa 0,
            #acdafa 7px,
            transparent 7px,
            transparent 13px
        );

    z-index: -1;
}


/* ==========================================================
   STEP 9
========================================================== */

.sems-ref-follow {
    position: relative;

    width: 240px;

    margin:
        70px
        auto
        0;

    text-align: center;
}


.sems-ref-follow__number {
    top: -15px;
}


.sems-ref-step__icon--follow {
    color: #138fdc;

    background:
        radial-gradient(
            circle,
            #eef9ff,
            #d9effd
        );
}


.sems-ref-follow p {
    max-width: 200px;

    margin: 0 auto;

    color: var(--rp-text);

    font-size: 13px;

    line-height: 1.5;
}


/* ==========================================================
   BACKGROUND SHAPES
========================================================== */

.sems-ref-process__shape {
    position: absolute;

    z-index: 1;

    display: block;

    border-radius: 50%;

    pointer-events: none;
}


.sems-ref-process__shape--top {
    width: 430px;
    height: 430px;

    top: -250px;
    right: -100px;

    background:
        rgba(220, 240, 252, .60);
}


.sems-ref-process__shape--bottom {
    width: 430px;
    height: 430px;

    left: -230px;
    bottom: -300px;

    background:
        rgba(224, 242, 253, .65);
}


/* ==========================================================
   DOTS
========================================================== */

.sems-ref-process__dots {
    position: absolute;

    z-index: 2;

    width: 160px;
    height: 160px;

    opacity: .55;

    pointer-events: none;

    background-image:
        radial-gradient(
            rgba(58, 163, 220, .32) 2px,
            transparent 2px
        );

    background-size: 19px 19px;
}


.sems-ref-process__dots--top {
    top: 55px;
    right: 25px;
}


.sems-ref-process__dots--bottom {
    left: 25px;
    bottom: 25px;
}


/* ==========================================================
   RESPONSIVE - DESKTOP SMALL
========================================================== */

@media (max-width: 1450px) {

    .sems-ref-process {
        padding-left: 3%;
        padding-right: 3%;
    }


    .sems-ref-process__timeline {
        grid-template-columns:
            1fr 30px
            1fr 30px
            1fr 30px
            1fr 30px
            1fr 30px
            1fr 30px
            1fr 30px
            1fr;
    }


    .sems-ref-step__icon {
        width: 88px;
        height: 88px;

        font-size: 33px;
    }


    .sems-ref-step p {
        font-size: 12px;
    }

}


/* ==========================================================
   TABLET / HORIZONTAL SCROLL
========================================================== */

@media (max-width: 1100px) {

    .sems-ref-process {
        padding:
            55px
            30px
            70px;
    }


    .sems-ref-process__timeline {
        min-width: 1500px;

        padding:
            0
            20px;
    }


    .sems-ref-process__container {
        overflow-x: auto;

        padding-bottom: 20px;

        scrollbar-width: thin;
        scrollbar-color:
            #bddff4
            transparent;
    }


    .sems-ref-process__header {
        position: sticky;

        left: 0;

        width: min(900px, 100%);

        z-index: 20;

        background:
            linear-gradient(
                90deg,
                rgba(255,255,255,.96),
                rgba(255,255,255,.9),
                transparent
            );
    }


    .sems-ref-follow {
        margin-left: 645px;
    }

}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 650px) {

    .sems-ref-process {
        padding:
            42px
            20px
            60px;
    }


    .sems-ref-process__eyebrow {
        font-size: 11px;

        letter-spacing: 1.2px;
    }


    .sems-ref-process__title {
        font-size: 31px;

        letter-spacing: -.7px;
    }


    .sems-ref-process__subtitle {
        font-size: 14px;
    }


    .sems-ref-process__header {
        margin-bottom: 45px;
    }


    .sems-ref-process__timeline {
        min-width: 1420px;
    }


    .sems-ref-step__icon {
        width: 84px;
        height: 84px;

        font-size: 30px;
    }


    .sems-ref-step h3 {
        font-size: 14px;
    }


    .sems-ref-step p {
        font-size: 11px;
    }

}