/* Hero */

body.home .hero {
    text-align: center;
}

body.home .hero .nav-pills {
    display: inline-flex;
    padding: 0.6rem;
    background: white;
    box-shadow: 8px 4px 13px 0 rgba(0, 0, 0, 0.25);
    border-radius: 5em;
}
body.home .hero .nav-pills .nav-link {
    padding: 0.4em 0.75em;
    border-radius: 5em;
    color: var(--wp--preset--color--color-2);
    font-size: 1.5rem;
    font-weight: bold;
    transition: color 0.5s, background-color 0.5s, opacity 0.5s;
}
@media (min-width: 576px) {
    body.home .hero .nav-pills .nav-link {
        padding: 0.85em 1.35em;
    }
    body.home .hero .nav-pills .nav-item:first-child .nav-link {
        margin-right: -0.8em;
        padding: 0.85em 2.8em;
    }
}
body.home .hero .nav-pills .nav-link.active,
body.home .hero .nav-pills .show > .nav-link {
    background-color: var(--wp--preset--color--color-2);
    color: white;
}

body.home .hero .tab-content {
    margin-top: -2.5rem;
    padding: 2rem;
    padding-top: 5rem;
    background: white;
    border-radius: 2rem;
}
body.home .hero .tab-pane {
    position: relative;
    overflow: hidden;
    z-index: 1;
}
body.home .hero .tab-pane > img {
    position: absolute;
    top: 0;
    left: 0;
    display: none;
    max-height: 100%;
    pointer-events: none;
    z-index: -1;
}
@media (min-width: 1200px) {
    body.home .hero .tab-pane > img {
        display: block;
    }
}

body.home .hero .tab-pane:nth-child(2n) > img {
    right: 0;
    left: auto;
}
body.home .hero .tab-pane .content {
    max-width: 900px;
    margin: auto;
}

body.home .hero .tab-pane .content .title {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
}

body.home .hero .tab-pane .content p,
body.home .hero .tab-pane .content .title {
    filter: drop-shadow(0px 0px 0.5rem white);
}

body.home .hero .tab-pane .content .tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.5rem;
    gap: 0.75rem;
}
body.home .hero .tab-pane .content .tags span {
    padding: 0.25rem 0.75rem;
    background-image: linear-gradient(to right, var(--wp--preset--color--color-3), var(--wp--preset--color--color-1));
    color: white;
}
body.home .hero .tab-pane#tab1 .content .tags span:nth-child(1),
body.home .hero .tab-pane#tab2 .content .tags span:nth-child(2) {
    background-image: linear-gradient(to left, var(--wp--preset--color--color-3), var(--wp--preset--color--color-1));
}

@supports (anchor-name: --test) {
    @media (min-width: 992px) {
        body.home .hero .tab-pane .content .tags {
            display: block;
        }
        body.home .hero .tab-pane .content .tags span {
            position: absolute;
            top: anchor(top);
            left: anchor(right);
            transform: rotate(10deg) translate(10px);
            transform-origin: center left;
        }

        body.home .hero .tab-pane#tab1 .content .tags span:nth-child(2n),
        body.home .hero .tab-pane#tab2 .content .tags span:nth-child(2n+1) {
            right: anchor(left);
            left: auto;
            transform: rotate(-10deg) translate(-10px);
            transform-origin: center right;
        }

        body.home .hero .tab-pane#tab1 .content .tags span:nth-child(1) {
            transform: rotate(15deg) translate(-20px, -25px);
        }
        body.home .hero .tab-pane#tab1 .content .tags span:nth-child(2) {
            transform: rotate(-10deg) translate(-5px, -10px);
        }
        body.home .hero .tab-pane#tab1 .content .tags span:nth-child(3) {
            transform: rotate(10deg) translate(0, -10px);
        }
        body.home .hero .tab-pane#tab2 .content .tags span:nth-child(1) {
            transform: rotate(-20deg) translate(-20px, 5px);
        }
        body.home .hero .tab-pane#tab2 .content .tags span:nth-child(2) {
            transform: rotate(10deg) translate(-65px, -25px);
        }
        body.home .hero .tab-pane#tab2 .content .tags span:nth-child(3) {
            transform: rotate(10deg) translate(-5px, 15px);
        }

        body.home .hero .tab-pane .content:not(:has(.title span:nth-child(1))) .tags span:nth-child(n+1),
        body.home .hero .tab-pane .content:not(:has(.title span:nth-child(2))) .tags span:nth-child(n+2),
        body.home .hero .tab-pane .content:not(:has(.title span:nth-child(3))) .tags span:nth-child(n+3),
        body.home .hero .tab-pane .content:not(:has(.title span:nth-child(4))) .tags span:nth-child(n+4),
        body.home .hero .tab-pane .content:not(:has(.title span:nth-child(5))) .tags span:nth-child(n+5) {
            display: none;
        }
    }
}

/* Partenaires */

body.home .partners .item {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 200px;
    margin: auto;
    aspect-ratio: 1;
}
body.home .partners .item a {
    text-decoration: none;
}
body.home .partners .item img {
    display: block;
    width: 100%;
    height: 100%;
    transition: filter 0.5s;
    object-fit: contain;
}
@media (hover: hover) {
    body.home .partners .item img {
        filter: grayscale(1) brightness(1.3);
    }
}
body.home .partners .item:hover img {
    filter: none;
}


/* Méthodologie */

body.home .methodology .step {
    max-width: 390px;
}
body.home .methodology .step h3 {
    font-size: 2rem;
    letter-spacing: initial;
}
body.home .methodology .step h3 .number {
    font-size: 6rem;
}
body.home .methodology .step p {
    min-height: 2lh;
}
body.home .methodology svg {
    filter: drop-shadow(4px 2px 3px rgba(0, 0, 0, 0.25));
}


/* Contrats */

body.home .contracts > .container > .row {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

body.home .contracts .top-tag {
    position: absolute;
    top: 1rem;
    left: 50%;
    white-space: nowrap;
    transform: translateX(-50%);
}
body.home .contracts .top-tag img {
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateY(-100%);
}

.custom-contract img {
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    transform: translate(100%, 0%);
}
@media (min-width: 768px) {
    .custom-contract img {
        display: block;
    }
}
@media (min-width: 1400px) {
    .custom-contract img {
        transform: translate(55%, -45%);
    }
}


/* Chiffres clés */

body.home .key-numbers .value {
    font-size: 4.375rem;
}

body.home .key-numbers .sublabel {
    font-size: 1.25rem;
}