/* 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: 1400px) {
    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;
}
@media (min-width: 1400px) and (max-width: 1599px) {
    body.home .hero .tab-pane#tab1 .content {
        margin-right: 2rem;
    }
    body.home .hero .tab-pane#tab2 .content {
        margin-left: 2rem;
    }
}

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 */

.partners .item {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 200px;
    margin: auto;
    aspect-ratio: 1;
}
.partners .item a {
    text-decoration: none;
}
.partners .item img {
    display: block;
    width: 100%;
    height: 100%;
    transition: filter 0.5s;
    object-fit: contain;
}
@media (hover: hover) {
    .partners .item img {
        filter: grayscale(1) brightness(1.3);
    }
}
.partners .item:hover img {
    filter: none;
}


/* Méthodologie */

@media (min-width: 1200px) and (max-width: 1879px) {
    body.home .methodology .steps {
        max-width: 1200px;
        margin: auto;
    }
}

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-right: auto;
    margin-left: 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%);
}

body.home .contracts .contract-card ul li {
    position: relative;
    padding-bottom: 1em;
    padding-left: 30px;
    font-size: var(--wp--preset--font-size--small);
}
body.home .contracts .contract-card ul li::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 0;
    display: block;
    width: 20px;
    height: 20px;
    margin-right: 0.5em;
    background-color: currentColor;
    mask: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='currentColor'%3E%3Cg %3E%3Cpath d='M0 10C0 4.477 4.477 0 10 0C15.523 0 20 4.477 20 10C20 15.523 15.523 20 10 20C4.477 20 0 15.523 0 10ZM13.707 8.707C13.8892 8.5184 13.99 8.2658 13.9877 8.0036C13.9854 7.7414 13.8802 7.49059 13.6948 7.30518C13.5094 7.11977 13.2586 7.0146 12.9964 7.01233C12.7342 7.01005 12.4816 7.11084 12.293 7.293L9 10.586L7.707 9.293C7.5184 9.11084 7.2658 9.01005 7.0036 9.01233C6.7414 9.0146 6.49059 9.11977 6.30518 9.30518C6.11977 9.49059 6.0146 9.7414 6.01233 10.0036C6.01005 10.2658 6.11084 10.5184 6.293 10.707L8.293 12.707C8.48053 12.8945 8.73484 12.9998 9 12.9998C9.26516 12.9998 9.51947 12.8945 9.707 12.707L13.707 8.707Z'/%3E%3C/g%3E%3C/svg%3E");
}

body.home .contracts .custom-contract img {
    position: absolute;
    top: 0;
    right: 0;
    display: none;
    transform: translate(100%, 0%);
}
@media (min-width: 768px) {
    body.home .contracts .custom-contract img {
        display: block;
    }
}
@media (min-width: 1400px) {
    body.home .contracts .custom-contract img {
        transform: translate(60%, -40%) scale(0.75);
    }
}
@media (min-width: 1600px) {
    body.home .contracts .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;
}