/* SLIDER */
section#slider {
    background: rgb(255, 255, 255);
    background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, var(--primary_1) 100%);
    height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
}

section#slider:after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: url("/wp-content/themes/per/inc/img/bubbles.png");
    z-index: 0;
    background-position: center top;
    background-size: 1700px;
    background-repeat: no-repeat;
    top: 0;
}

h1 {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    z-index: 1;
    text-transform: uppercase;
    font-weight: bold;
    max-width: 1240px;
    width: 100%;
}

h1 .col {
    display: flex;
    flex-direction: column;
    font-size: 6rem;
    letter-spacing: 4px;
    line-height: .9;
}

h1 .col:last-of-type {
    text-align: right;
}

h1 .col:last-of-type span {
    color: var(--primary_1)
}

h1 .col:first-of-type span:first-of-type {
    opacity: .3;
}

h1 .col:first-of-type span:nth-of-type(2) {
    opacity: .7;
}

section#slider .container {
    position: relative;
    z-index: 1;
    margin-bottom: calc(var(--space)*3);
}

section#slider .container p {
    font-size: 1.25rem;
    color: var(--primary_2);
}

section#slider .container .links {
    gap: 1rem;
    display: flex;
    align-items: center;
}

section#slider .container .links a {
    padding: 1.25rem 4.5rem;
}

/* PRESTATIONS */
section#prestations {
    padding-block: calc(var(--space)*5);
}

section#prestations>.row {
    justify-content: space-between;
}

section#prestations .text a {
    padding-inline: calc(var(--space)*2);
}

section#prestations .prestations {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space);
}

section#prestations .prestation:first-of-type:after {
    background-color: var(--secondary_1);
}

section#prestations .prestation:nth-of-type(2):after {
    background-color: var(--primary_2);
    opacity: 0.25;
    mix-blend-mode: hard-light;
    filter: saturate(2);
}

section#prestations .prestation:nth-of-type(3):after {
    background-color: var(--secondary_2);
}

section#prestations .prestation:last-of-type:after {
    background-color: var(--primary_2);
}

section#prestations .prestation {
    display: flex;
    width: calc(50% - var(--space));
    padding: var(--space);
    border-radius: 10px;
    align-items: center;
    position: relative;
    overflow: hidden;
    gap: var(--space);
}

section#prestations .prestation * {
    position: relative;
    z-index: 1;
}

section#prestations .prestation p:last-of-type {
    margin: 0;
}

section#prestations .prestation:after {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    display: block;
    top: 0;
    left: 0;
}

section#prestations .prestation p {
    color: var(--primary_2);
}

section#prestations .prestation h3 {
    color: var(--primary_2);
    font-size: 1.25rem;
    font-weight: bold;
}

section#prestations .prestation:nth-of-type(3) h3,
section#prestations .prestation:nth-of-type(3) p {
    color: white;
}

section#prestations .prestation:last-of-type h3,
section#prestations .prestation:last-of-type p {
    color: white;
}

section#prestations h2 {
    font-size: 2.5rem;
    color: var(--primary_2);
}

section#prestations h2+div p {
    color: var(--primary_2);
}

/* REALISATIONS */
section#realisations .holder {
    display: inline-flex;
    gap: 1rem;
}

section#realisations .projets {
    overflow-x: auto;
    overflow-y: hidden;
}


section#realisations .projets::-webkit-scrollbar {
    height: 8px;
    background-color: #F5F5F5;
    width: 50px;
}

section#realisations .projets::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background-color: var(--primary_2);
}

section#realisations .projets::-webkit-scrollbar-track {
    border-radius: 10px;
    background-color: #b9e0ff;
}

section#realisations {
    padding-bottom: calc(var(--space)*4);
}

section#realisations h2 {
    font-size: 2.5rem;
    color: var(--primary_2);
}

section#realisations h2+p {
    font-size: 1.25rem;
    max-width: 25%;
}


@media screen and (max-width:1023px) {
    h1 {
        overflow: hidden;
        top: 5%;
    }

    h1 .col {
        flex-direction: column;
        font-size: 3.5rem;
        letter-spacing: 4px;
        line-height: 1.25;
        padding-inline: calc(var(--space)/2);
    }


    h1 .col span {
        text-align: right;
        font-size: 3rem;
    }

    h1 .col:first-of-type span:last-of-type {
        text-align: center;
    }

    h1 .col:last-of-type span {
        color: var(--primary_1);
        text-align: left;
    }

    section#slider:after {
        left: 0;
        background-size: contain;
    }

    section#slider .container .links {
        flex-direction: column;
    }

    section#prestations .prestations {
        flex-direction: column;
    }

    section#prestations .prestation:first-of-type {
        margin-top: 2rem;
    }

    section#prestations .prestation {
        width: 100%;
    }

    section#prestations .text a {
        padding-inline: initial;
        width: 100%;
        text-align: center;
    }

    section#slider .container .links a {
        padding: 1rem 2rem;
        width: 75%;
        text-align: center;
    }

    section#slider {
        height: 830px;
    }

    section#realisations h2+div p {
        max-width: 100%;
    }

    section#prestations {
        padding-block: calc(var(--space)*2);
    }
}

@media screen and (min-width:1440px) and (max-width:1919px) {
    section#slider .container {
        margin-bottom: 0;
    }

    section#slider .container .links {
        margin-bottom: 2rem;
    }
}