/* =========================
   PAGE ÉTAPE
   ========================= */

.stage-page {
    width: min(
        920px,
        calc(100% - 40px)
    );

    margin: 0 auto;

    padding:
        34px
        0
        90px;
}


/* =========================
   HERO / EN-TÊTE
   ========================= */

.stage-heading {
    margin-bottom: 42px;

    padding:
        28px
        28px
        30px;

    background:
        linear-gradient(
            180deg,
            #f4fbef 0%,
            #ffffff 100%
        );

    border: 1px solid #dcebd4;
    border-radius: 22px;
}

.stage-number {
    display: inline-block;

    margin-bottom: 18px;

    color: var(--green-dark);

    font-size: 15px;
    font-weight: 900;

    letter-spacing: 1px;
    text-transform: uppercase;
}

.stage-heading h1 {
    margin: 0;

    max-width: 760px;

    font-size: clamp(48px, 7vw, 74px);
    line-height: .95;

    letter-spacing: -3px;
}

.stage-heading h1::after {
    content: "";

    display: block;

    width: 74px;
    height: 8px;

    margin-top: 18px;

    background: var(--header-green);

    border-radius: 999px;
}

.stage-date {
    margin: 22px 0 0;

    color: var(--grey);

    font-size: 18px;
    line-height: 1.5;

    font-weight: 500;
}

.stage-date-separator {
    margin: 0 10px;

    color: #93bf78;

    font-weight: 800;
}


/* =========================
   CTA PRINCIPAL
   ========================= */

.stage-main-cta {
    width: fit-content;

    display: inline-flex;

    align-items: center;

    gap: 14px;

    margin-top: 22px;

    padding:
        16px
        22px;

    background: var(--coral);

    color: #ffffff;

    border-radius: 12px;

    text-decoration: none;

    font-size: 18px;
    font-weight: 900;

    box-shadow:
        0 10px 24px
        rgba(222, 106, 99, .18);

    transition:
        transform .15s ease,
        box-shadow .15s ease,
        filter .15s ease;
}

.stage-main-cta:hover {
    transform: translateY(-2px);

    filter: brightness(.98);

    box-shadow:
        0 14px 28px
        rgba(222, 106, 99, .24);
}

.stage-main-cta span:last-child {
    font-size: 22px;

    line-height: 1;
}


/* =========================
   TRAJET
   ========================= */

.stage-route {
    display: grid;

    grid-template-columns:
        1fr
        auto
        1fr;

    gap: 20px;

    align-items: stretch;

    margin-bottom: 28px;
}

.stage-route-card {
    padding:
        24px
        22px;

    background: #ffffff;

    border: 1px solid var(--border);
    border-radius: 20px;

    box-shadow:
        0 8px 24px
        rgba(0, 0, 0, .04);
}

.stage-label {
    display: inline-block;

    margin-bottom: 14px;

    color: var(--green-dark);

    font-size: 14px;
    font-weight: 900;

    letter-spacing: .8px;
    text-transform: uppercase;
}

.stage-route-card h2 {
    margin:
        0
        0
        10px;

    font-size: 38px;
    line-height: 1.02;

    letter-spacing: -1.5px;
}

.stage-route-card p {
    margin:
        0
        0
        14px;

    color: var(--grey);

    font-size: 18px;
    line-height: 1.45;
}

.stage-route-card strong {
    display: inline-block;

    padding:
        8px
        12px;

    background: #eef7e8;

    color: #16391d;

    border-radius: 10px;

    font-size: 20px;
    font-weight: 900;
}


/* =========================
   CONNECTEUR
   ========================= */

.stage-route-connector {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 10px;

    min-width: 64px;

    align-self: stretch;
}

.stage-route-connector-line {
    display: block;

    width: 30px;
    height: 2px;

    background: #cfe1c8;

    border-radius: 999px;
}

.stage-route-connector-icon {
    width: 44px;
    height: 44px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 999px;

    background: #eef7e8;

    color: var(--green-dark);

    font-size: 22px;
    font-weight: 900;

    line-height: 1;

    box-shadow:
        0 6px 14px
        rgba(118, 197, 107, .12);

    transform: rotate(-90deg);
}


/* =========================
   DÉTAILS
   ========================= */

.stage-details {
    display: grid;

    gap: 18px;
}

.stage-detail-item {
    display: flex;

    justify-content: space-between;
    align-items: center;

    padding:
        22px
        24px;

    background: #ffffff;

    border: 1px solid var(--border);
    border-radius: 18px;

    box-shadow:
        0 8px 24px
        rgba(0, 0, 0, .03);
}

.stage-detail-item span {
    font-size: 18px;

    font-weight: 800;
}

.stage-detail-item strong {
    font-size: 28px;

    line-height: 1;
}

.stage-detail-block {
    padding:
        26px
        24px;

    background: #ffffff;

    border: 1px solid var(--border);
    border-radius: 18px;

    box-shadow:
        0 8px 24px
        rgba(0, 0, 0, .03);
}

.stage-detail-block h2 {
    margin:
        0
        0
        14px;

    color: var(--green-dark);

    font-size: 24px;
    line-height: 1.1;

    letter-spacing: -.6px;
}

.stage-detail-block p {
    margin: 0;

    color: var(--grey);

    font-size: 16px;
    line-height: 1.7;
}


/* =========================
   TABLETTE
   ========================= */

@media (max-width: 900px) {

    .stage-route {
        grid-template-columns: 1fr;
    }

    .stage-route-connector {
        min-width: auto;
        min-height: 64px;

        flex-direction: column;

        gap: 8px;

        justify-content: center;
        align-items: center;

        padding: 0;
    }

    .stage-route-connector-line {
        width: 2px;
        height: 20px;
    }

    .stage-route-connector-icon {
        width: 38px;
        height: 38px;

        font-size: 19px;

        transform: none;
    }
}


/* =========================
   MOBILE
   ========================= */

@media (max-width: 760px) {

    .stage-page {
        width: calc(100% - 28px);

        padding:
            18px
            0
            52px;
    }

    .stage-heading {
        padding:
            18px
            16px
            18px;

        margin-bottom: 20px;

        border-radius: 16px;
    }

    .stage-number {
        margin-bottom: 10px;

        font-size: 13px;
    }

    .stage-heading h1 {
        font-size:
            clamp(
                40px,
                10.5vw,
                52px
            );

        line-height: .94;

        letter-spacing: -2.2px;
    }

    .stage-heading h1::after {
        width: 54px;
        height: 6px;

        margin-top: 13px;
    }

    .stage-date {
        margin-top: 14px;

        font-size: 15px;
        line-height: 1.4;
    }

    .stage-date-separator {
        margin:
            0
            7px;
    }

    .stage-main-cta {
        width: 100%;

        box-sizing: border-box;

        justify-content: space-between;

        margin-top: 14px;

        padding:
            14px
            16px;

        border-radius: 10px;

        font-size: 16px;
        line-height: 1.25;
    }

    .stage-route {
        grid-template-columns: 1fr;

        gap: 0;

        margin-bottom: 16px;
    }

    .stage-route-card {
        padding:
            17px
            16px;

        border-radius: 15px;
    }

    .stage-label {
        margin-bottom: 8px;

        font-size: 13px;
    }

    .stage-route-card h2 {
        margin-bottom: 7px;

        font-size: 28px;
        line-height: 1;

        letter-spacing: -1px;
    }

    .stage-route-card p {
        margin-bottom: 9px;

        font-size: 15px;
    }

    .stage-route-card strong {
        padding:
            6px
            10px;

        font-size: 17px;

        border-radius: 8px;
    }


    /* CONNECTEUR CENTRÉ */

    .stage-route-connector {
        width: 100%;
        height: 58px;

        min-height: 0;

        padding: 0;

        display: flex;

        flex-direction: column;

        align-items: center;
        justify-content: center;

        gap: 4px;
    }

    .stage-route-connector-line {
        width: 2px;
        height: 8px;

        flex: 0 0 auto;
    }

    .stage-route-connector-icon {
        width: 32px;
        height: 32px;

        flex:
            0
            0
            32px;

        font-size: 17px;

        transform: none;
    }


    /* DÉTAILS */

    .stage-details {
        gap: 12px;
    }

    .stage-detail-item,
    .stage-detail-block {
        padding: 16px;

        border-radius: 14px;
    }

    .stage-detail-item span {
        font-size: 15px;
    }

    .stage-detail-item strong {
        font-size: 21px;
    }

    .stage-detail-block h2 {
        margin-bottom: 10px;

        font-size: 21px;
    }

    .stage-detail-block p {
        font-size: 14px;
        line-height: 1.55;
    }
}