:root {
    --bs-primary: #886aec;
    --bs-primary-rgb: 136, 106, 236;
    --bs-primary-bg-subtle: #f3f0fd;
    --bs-primary-bg-dark: #5328e2;
    --bs-purple: var(--bs-primary);

    --bs-secondary: rgba(247, 247, 247, 1);
    --bs-secondary-bg-subtle: #F5F5F5;

    --bs-danger: #ff325b;
    --bs-danger-rgb: 255, 50, 91;
    --bs-danger-bg-subtle: #ffeaee;
    --bs-danger-bg-dark: #cc0029;
    --bs-red: var(--bs-danger);

    --bs-success: #00bfd4;
    --bs-success-rgb: 0, 191, 212;
    --bs-success-bg-subtle: #e5f8fb;
    --bs-success-bg-dark: #0093a3;
    --bs-teal: var(--bs-success);

    --bs-border-radius: 1.25rem;
    --bs-body-line-height: normal;

    --navbar-height: 5rem;
}

.btn {
    --bs-btn-padding-x: 1.25rem;
    --bs-btn-padding-y: .75rem;
    --bs-btn-line-height: normal;
    --bs-border-radius: 3rem;
}

.btn-danger {
    --bs-btn-bg: var(--bs-danger);
    --bs-btn-border-color: var(--bs-danger);
    --bs-btn-hover-bg: var(--bs-danger-bg-dark);
    --bs-btn-hover-border-color: var(--bs-danger-bg-dark);
    --bs-btn-active-bg: var(--bs-danger-bg-dark);
    --bs-btn-active-border-color: var(--bs-danger-bg-dark);
}

.btn-primary {
    --bs-btn-bg: var(--bs-primary);
    --bs-btn-border-color: var(--bs-primary);
    --bs-btn-hover-bg: var(--bs-primary-bg-dark);
    --bs-btn-hover-border-color: var(--bs-primary-bg-dark);
    --bs-btn-active-bg: var(--bs-primary-bg-dark);
    --bs-btn-active-border-color: var(--bs-primary-bg-dark);
}

.btn-outline-primary {
    --bs-btn-bg: white;
    --bs-btn-color: var(--bs-primary);
    --bs-btn-border-color: white;
    --bs-btn-hover-bg: var(--bs-primary);
    --bs-btn-hover-border-color: var(--bs-primary);
    --bs-btn-active-bg: var(--bs-primary);
    --bs-btn-active-border-color: var(--bs-primary);
    --bs-btn-disabled-color: var(--bs-primary);
    --bs-btn-disabled-border-color: var(--bs-primary);
}

.no-hover {
    --bs-btn-hover-bg: var(--bs-btn-bg);
    --bs-btn-hover-border-color: var(--bs-btn-border-color);
    --bs-btn-hover-color: var(--bs-btn-color);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: "Gotham HTF", sans-serif;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
}

h3 {
    font-size: 1.38rem;
    font-weight: 500;
}

h4 {
    font-size: 1.13rem;
    font-weight: 500;
}

.anchor {
    position: absolute;
    top: calc(var(--navbar-height) * -1);
}

.block-contact {
    background-position: center;
    background-size: cover;
    background-image: url("images/contact-11qsJIP.jpg");
    text-align: center;
    height: calc(100dvh - var(--navbar-height));
}

.block-domains {
    padding-bottom: 8.75rem;

    .domains {
        display: flex;
        justify-content: space-between;
        gap: 4rem;
    }

    .card {
        flex: 1;
        padding: 3.13rem;
        border: 0;
        height: 447px;
        margin: 0 20px;
    }

    .carousel-indicators {
        bottom: -5.88rem;
        gap: 30px;
        [data-bs-slide] {
            width: 50px;
            height: 50px;
            border-radius: 100%;
            background-color: var(--bs-secondary-bg-subtle);
        }

        [data-bs-slide-to] {
            display: none;
        }

        [data-bs-target] {
            opacity: 1;
        }

        .carousel-control-next-icon {
            background-image: url("logos/chevron-right-fPgxXHP.svg");
            background-size: 60%;
        }

        .carousel-control-prev-icon {
            background-image: url("logos/chevron-left-HJ1hzjk.svg");
            background-size: 60%;
        }
    }

}

.block-formations {
    color: #fff;
    background: linear-gradient(161deg, #00BFD4 0%, #886AEC 100%), #886AEC;

    .formations {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        gap: 2rem;

        .card {
            flex: 1;
            padding: 1rem;
            border: 0;
            display: flex;
            flex-direction: column;
            gap: 1.88rem;
        }

        table {
            font-size: .88rem;

            td {
                padding-bottom: .88rem;
            }

            td:first-child {
                width: 1.5rem;
            }
        }
    }

    .pic {
        height: 176px;
        border-radius: 10px;
        background-position: center;
        background-size: cover;
    }

    .pic-a {
        background-image: url("images/formation-a-7CBamoz.webp");
    }

    .pic-b {
        background-image: url("images/formation-b-F9WdXQ3.png");
    }

    .pic-c {
        background-image: url("images/formation-c-qJ8BBo3.webp");
    }

    .pic-d {
        background-image: url("images/formation-d-meXXRp3.webp");
    }
}

.block-gallerie {
    .carousel-item {
        height: calc(100dvh - var(--navbar-height));
        background: linear-gradient(161deg, #00BFD4 0%, #886AEC 100%);

        .card {
            text-align: center;
            box-shadow: 0 0 23px 0 rgba(0, 0, 0, 0.50);
            border: none;
            position: absolute;
            inset: 1.25rem;
            bottom: initial;
            padding: 1.59rem;
            display: flex;
            flex-direction: column;
            gap: 1.25rem;

            div {
                margin-top: auto;
                display: flex;
                flex-direction: column;
                gap: .63rem;
                z-index: 110;
            }

            img {
                border-radius: 10px;
            }

            p {
                display: none;
            }
        }
    }

}

.block-reasons {

    .address-wrapper {
        border-radius: 12px;
    }

    .map-wrapper {
        display: none;
    }
}

.block-trust {
    .carousel-indicators {
        bottom: -2rem;
        [data-bs-slide-to] {
            background-color: var(--bs-success);
        }

        [data-bs-slide] {
            color: var(--bs-success);
        }
    }

    .carousel-inner {
        height: 600px;
    }
}

.carousel-indicators {
    z-index: 100;
    bottom: -4px;

    [data-bs-slide] {
        text-indent: initial;
        font-size: 2.5rem;
        color: white;
        position: relative;
        width: 20px;
        height: 20px;
        background-color: transparent;
        border: none;
        transition: opacity .6s ease;
        top: -2px;
        &:hover {
            opacity: 1;
        }
    }

    [data-bs-slide-to] {
        width: 16px;
        height: 16px;
        border-radius: 10px;
        opacity: 0.5;
        background-color: white;
        background-clip: border-box;
        border: none;
        transition: width .6s ease, opacity .6s ease;

        &:hover {
            opacity: 1;
        }

        &.active {
            width: 30px;
            opacity: 1;
        }
    }
}

.carousel-hidden-control-prev, .carousel-hidden-control-next {
    position: absolute;
    top: 5%;
    bottom: 5%;
    z-index: 50;
    width: 40%;
}

.carousel-hidden-control-prev {
    left: 5%;
}

.carousel-hidden-control-next {
    right: 5%;
}



.container-fluid {
    padding: 0;
}

.icon {
    padding: .94rem;
    width: 4rem;
    height: 4rem;
    background: white;
    border-radius: .5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    font-size: 1.5rem;
}

.footer-link a {
    color: white;
    text-decoration: none;

    &:hover {
        text-decoration: underline;
    }
}

.map {
    position: relative;
    height: 367px;
    max-width: 448px;
    background: url("images/carte-XoFxoID.png") no-repeat center;
    background-size: contain;
    border-radius: var(--bs-card-border-radius);

    .dot {
        position: absolute;
        padding: 0;
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .dot-tou {
        bottom: 35px;
        left: 41%
    }

    .dot-age {
        bottom: 65px;
        left: 34%
    }

    .dot-car {
        bottom: 13px;
        left: 49%
    }

    .dot-par {
        top: 13px;
        left: 49%
    }

    .dot-mdm {
        bottom: 55px;
        left: 26%
    }

    .dot-clf {
        bottom: 150px;
        right: 38%
    }
}

.navbar {
    height: var(--navbar-height);
    .navbar-collapse {
        background: white;
        margin-right: calc(var(--bs-gutter-x) * -.5);
        margin-left: calc(var(--bs-gutter-x) * -.5);
        padding-right: calc(var(--bs-gutter-x) * .5);
        padding-left: calc(var(--bs-gutter-x) * .5);
    }
}

.navbar-nav {
    --bs-nav-link-padding-y: 0.75rem;
    gap: 1.88rem;
}

.navbar-pills {
    padding: 10px 0;
    --bs-navbar-nav-link-padding-x: 0.75rem;

    .nav-item {
        text-align: center;

        .nav-link {
            background: var(--bs-secondary);
            border-radius: var(--bs-border-radius-pill);
        }
    }
}

.navbar-toggler:focus {
    box-shadow: none;
}

.pin-phone {
    position: fixed;
    width: 4.19rem;
    height: 2.94rem;
    border-radius: 50px 0 0 50px;
    z-index: 1030;
    right: 0;
    top: 30%;
    background-color: var(--bs-danger);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 1200px) {
    .navbar-nav {
        gap: 0;
    }

    .nav-item {
        &:first-child .nav-link {
            padding-left: calc(var(--bs-navbar-nav-link-padding-x) * 1.5);
        }

        &:last-child .nav-link {
            padding-right: calc(var(--bs-navbar-nav-link-padding-x) * 1.5);
        }

        &:not(:first-child) .nav-link {
            border-top-left-radius: 0;
            border-bottom-left-radius: 0;
        }

        &:not(:last-child) .nav-link {
            border-top-right-radius: 0;
            border-bottom-right-radius: 0;
        }
    }

    .block-contact {
        text-align: left;
        height: initial;
        background-position: 90% 15%;
        background-size: 120%;
    }

    .block-domains {
        .carousel-indicators, .carousel-hidden-control-prev, .carousel-hidden-control-next {
            display: none;
        }

        .carousel-inner {
            display: flex;
            gap: 1.88rem;
            align-items: stretch;
        }

        .carousel-item {
            flex: 1;
            position: relative;
            display: block;
            float: none;
            width: initial;
            margin: 0;
            -webkit-backface-visibility: initial;
            backface-visibility: initial;

            .card {
                height: 100%;
            }
        }
    }

    .block-formations {
        .formations {
            flex-direction: initial;
        }
    }

    .block-gallerie {
        .carousel-item {
            box-shadow: 0 8px 20px 0 rgba(0, 0, 0, 0.25) inset;
            background-position: center;
            background-size: cover;

            &.carousel-item-a {
                background-image: url("images/carousel-a-QH163iD.jpg");
            }

            &.carousel-item-b {
                background-image: url("images/carousel-b-o9FPVLF.jpg");
            }

            &.carousel-item-c {
                background-image: url("images/carousel-c-UGTmLjp.jpg");
            }

            .card {
                text-align: left;
                z-index: 100;
                width: 650px;
                position: relative;
                top: 250px;
                padding: 2.5rem;
                border: none;
                box-shadow: 0 0 23px 0 rgba(0, 0, 0, 0.50);
                display: flex;
                flex-direction: column;
                gap: 1.25rem;

                > * {
                    margin: 0;
                }

                img {
                    display: none;
                }

                p {
                    display: block;
                }

                div {
                    display: block;
                }
            }
        }
    }

    .block-reasons {
        .address-wrapper {
            order: 100!important;
        }
        .map-wrapper {
            display: block;
        }
    }

    .block-trust {
        .carousel-inner {
            height: 405px;
        }
    }

    .pin-phone {
        display: none;
    }
}

.sup {
    vertical-align: super;
    font-size: 50%;
}
