@import url('https://fonts.cdnfonts.com/css/heavitas');
@import url('https://fonts.cdnfonts.com/css/montserrat');

body {
    font-family: "Montserrat";
    margin: 0;
    padding: 0;
}

.our-subscriptions {
    font-weight: 800;
    font-family: "Heavitas";
}

.promo-banner {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    position: relative;

    .promo-mobile,
    .promo-desktop {
        width: 100%;
        height: 100%;
        background-size: cover;
        background-position: center;
    }

    .promo-mobile {
        aspect-ratio: 900 / 700;
        background-image: url("../images/promo-banner-mobile.jpg");
    }

    @media (min-width: 992px) {
        .promo-desktop {
            aspect-ratio: 1532 / 278;
            background-image: url("../images/promo-banner-desktop.jpg");
        }
    }
}

.steps-progress {
    gap: 60px;
    font-weight: 600;
    text-align: center;
    position: relative;

    .step-item {
        position: relative;

        p {
            text-transform: uppercase;
            color: #ffffff;
            font-size: 14px;
        }

        &::before {
            content: attr(data-step);
            display: block;
            margin: 0 auto;
            width: 70px;
            height: 70px;
            line-height: 66px;
            border-radius: 50%;
            font-size: 34px;
            font-weight: 700;
            background-color: white;
            border: 4px solid #2740ff;
            color: #353535;
        }

        &.active {
            &::before {
                background-color: #004FFF;
                color: #fff;
            }
        }
    }

    .step-item:not(:last-child)::after {
        content: "";
        position: absolute;
        top: 35px;
        left: 100%;
        width: 120px;
        height: 3px;
        background: #ffffff;
        transform: translateX(20px);
    }

    .step-item:nth-child(1)::before { content: "1"; }
    .step-item:nth-child(2)::before { content: "2"; }
    .step-item:nth-child(3)::before { content: "3"; }
}

.formulas-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 30px;
    flex-wrap: wrap;
    color: white !important;
}

.formula-container {
    display: flex;
    flex-direction: column;
    color: white;
    padding: 2rem;
    border-radius: 14px;
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;

    .btn-choose {
        background-image: url("../images/choisir-bouton-1.png");
    }

    &:nth-child(1) {
        background-image: url("../images/bg-abo-1.png");
    }

    &:nth-child(2) {
        background-image: url("../images/bg-abo-2.png");
    }

    &:nth-child(3) {
        background-image: url("../images/bg-abo-3.png");
    }

    .formula-title,
    .formula-sigle,
    .formula-duration {
        font-family: "Heavitas";
    }

    .separator,
    .big-separator {
        height: 1px;
        background: #ffffff;
        margin: 10px auto;
    }

    .separator {
        width: 40px;
    }

    .big-separator {
        width: 150px;
    }

    h2 {
        font-weight: 700;
    }

    .avantage {
        border: 1px solid white;
        border-radius: 20px;
        padding: 5px 10px;
        font-weight: bold;
        font-family: "Montserrat";
    }

    .plus-icon {
        font-size: 35px;
        line-height: 1;
        font-weight: bold;
    }

    .formula-price-container {
        .price {
            font-size: 100px;
            line-height: 1;
            font-weight: bold;
            font-family: "Heavitas";
        }

        .formula-sigle {
            font-size: 45px;
            line-height: 1;
            font-weight: 500;
        }

        .formula-duration {
            font-size: 20px;
            line-height: 1;
            font-weight: 400;
        }
    }

    .formula-then-price {
        font-size: 10px;
        text-align: center;
    }

    .formula-body {
        .badge-custom {
            position: relative;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 7px 14px;
            border-radius: 999px;
            background: transparent;
            color: #fff;
            font-weight: 700;
            font-size: 14px;
            white-space: nowrap;
            z-index: 0;

            &::before {
                content: "";
                position: absolute;
                inset: 0;
                border-radius: inherit;
                padding: 2px;
                background: linear-gradient(90deg, #ffffff, #2740ff);
                -webkit-mask:
                        linear-gradient(#000 0 0) content-box,
                        linear-gradient(#000 0 0);
                -webkit-mask-composite: xor;
                mask-composite: exclude;
            }

            span {
                color: #fff;
                font-weight: 700;
                font-size: 14px;
                white-space: nowrap;
                font-family: "Montserrat";
            }
        }

        ul {
            text-align: left;
            font-size: 14px;
            padding-left: 0;
            margin-bottom: 0;

            li {
                font-family: "Montserrat";
                font-weight: 600;
                margin-bottom: 6px;
                list-style: none;
                padding-left: 26px;
                position: relative;
                display: flex;
                align-items: center;

                &::before {
                    content: "";
                    position: absolute;
                    left: 0;
                    top: 2px;
                    width: 18px;
                    height: 18px;
                    background: url("../images/shield.svg") center/contain no-repeat;
                }
            }
        }

        .btn-choose {
            width: 100%;
            height: 80px;
            background-size: contain;
            background-position: center;
            background-repeat: no-repeat;
            border: none;
            background-color: transparent;
            cursor: pointer;
            margin: 0 auto;
            color: transparent;
            font-size: 0;
            outline: none;
            display: block;
        }

        .fees {
            .bg-white {
                border-radius: 40px;
                padding: 0 5px;
                background-color: white;
                color: black;

                .stroke {
                    position: relative;
                    font-weight: 600;
                    font-family: "Montserrat";

                    &::after {
                        content: "";
                        position: absolute;
                        left: 0;
                        right: 0;
                        top: 50%;
                        height: 2px;
                        background: #000;
                        transform: translateY(-50%);
                    }
                }

                span {
                    font-weight: bold;
                    font-family: "Montserrat";
                }
            }
        }

        .commit {
            font-family: "Heavitas";
            font-size: 22px;
            font-weight: 400;
        }
    }
}

.formula-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.formula-footer {
    margin-top: auto;
}

.gymk-swiper {
    width: 100%;
    overflow: hidden;
}

.gymk-swiper .swiper-wrapper {
    display: flex;
}

.gymk-swiper .swiper-slide {
    display: flex;
    justify-content: center;
}

.gymk-swiper .swiper-button-prev,
.gymk-swiper .swiper-button-next {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.gymk-swiper .swiper-button-prev::after,
.gymk-swiper .swiper-button-next::after {
    content: none;
}

.gymk-swiper .swiper-button-prev i,
.gymk-swiper .swiper-button-next i {
    font-size: 22px;
    color: #ffffff;
}

.gymk-swiper .swiper-button-prev {
    left: 8px;
}

.gymk-swiper .swiper-button-next {
    right: 8px;
}

.info-icon-wrapper {
    font-family: Montserrat;
    font-weight: 400;
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
    cursor: help;
}

.info-icon {
    width: 14px;
    height: 14px;
}

/* Infobulle */
.info-icon-wrapper::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: 130%;
    transform: translateX(-50%);
    background: #000;
    color: #fff;
    font-size: 12px;
    padding: 6px 8px;
    border-radius: 5px;
    width: 300px;
    white-space: normal;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease;
}

@media screen and (max-width: 991px) {
    .info-icon-wrapper::after {
        left: -70px;
    }
}

/* Flèche */
.info-icon-wrapper::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 120%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #000 transparent transparent transparent;
    opacity: 0;
    transition: opacity .15s ease;
}

.info-icon-wrapper:hover::after,
.info-icon-wrapper:hover::before {
    opacity: 1;
}
