*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --black: #000000;
    --white: #ffffff;
    --olive: #D1DFD1;
    --olive-80: rgba(209, 223, 209, .8);
}

@media (prefers-reduced-motion: no-preference) {
    html {
        interpolate-size: allow-keywords;
    }
}

body {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

.header .container {
    display: flex;
    padding: 30px;
    justify-content: space-between;
}

.logo img {
    height: 30px;
    width: auto;
}

a:hover {
    text-decoration: underline !important;
}

.nav {
    align-items: center;
    gap: 30px;
    font-size: .8rem;

    &:not(.mobile) {
        display: none;
    }

    &.mobile {
        display: flex;
        max-height: 0;
        padding: 0 30px 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
        font-size: .9rem;
        background-color: var(--white);
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;

        &.open {
            max-height: 400px;
            padding-top: 30px;
            padding-bottom: 30px;
            opacity: 1;
        }
    }

    a {
        color: var(--black);
        text-decoration: none;
    }
}

.nav-active {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
}

section {
    position: relative;
    margin-bottom: 120px;
    min-height: 100vh;

    &.olive {
        padding: 120px 0;
        background-color: var(--olive);

        h2 {
            color: var(--white);
        }
    }

}

.btn {
    display: flex;
    margin-top: 60px;
    padding: 16px 32px;
    width: fit-content;
    color: var(--black);
    font-size: 1rem;
    font-weight: 800;
    text-decoration: none;
    background-color: var(--olive);
    border-radius: 8px;
    align-content: center;
    gap: 10px;

    svg {
        width: 20px;
        height: 20px;
    }

    &:hover {
        background-color: var(--olive-80);
        text-decoration: none !important;
    }
}

.container {
    position: relative;
    padding: 0 30px;
}

.hero {
    margin-bottom: 60px;
}

h1 {
    padding-top: 120px;
    color: var(--black);
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 3.5rem;
    line-height: 1;
    white-space: pre;
    opacity: 0;
}

h2 {
    position: relative;
    left: -14px;
    bottom: 0;
    color: var(--olive);
    font-size: 4rem;
    line-height: 1;
}

h3 {
    margin-bottom: 20px;
    font-size: 2rem;
    background-color: var(--olive);
    border-radius: 16px;
}

.burger {
    display: flex;
    padding: 0;
    width: 28px;
    height: 20px;
    flex-direction: column;
    justify-content: space-between;
    background: none;
    border: none;
    cursor: pointer;
    align-self: center;

    span {
        display: block;
        width: 100%;
        height: 2px;
        background-color: var(--black);
        transition: transform 0.3s ease, opacity 0.3s ease;
        transform-origin: center;
    }

    &.open span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    &.open span:nth-child(2) {
        opacity: 0;
    }

    &.open span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}

.section-hero {
    position: relative;

    p {
        position: relative;
        right: 0;
        font-size: 2rem;
        font-weight: 800;
        line-height: 1;
        z-index: 1;
        padding-left: 5rem;
    }
}

.section-core {
    padding-top: 4rem;

    p:first-child {
        font-size: 1rem;
        font-weight: 800;
    }

    p {
        margin-bottom: 20px;
        font-size: 1.25rem;
    }

    img {
        margin-top: 40px;
        width: 100%;
    }

    .container.grid {
        display: flex;
        margin-top: 60px;
        flex-direction: column;
        gap: 30px;
    }
}

.section-cols {
    flex-direction: column;
}

#approcheSection {
    margin-bottom: 120px !important;
}

#offreSection {
    margin-bottom: 60px;

    .section-core {
        padding-top: 0 !important;

        p:first-child {
            margin-bottom: 0;
        }
    }

    .section-col {
        display: flex;
        width: 100%;
        flex-direction: column;
        gap: 30px;
    }

    h3 {
        margin-bottom: 0;
        padding: 20px 30px;
    }

    p {
        margin-bottom: 5px;
    }

    span {
        font-size: .8rem;
        font-style: italic;
    }

    img {
        margin-top: 60px;
    }
}

#contactSection {
    margin-bottom: 0 !important;

    .section-cols {
        display: flex;
        margin-bottom: 80px;
        gap: 30px;

        div {
        }

        p {
            margin-bottom: 0;
            font-size: 2rem;
        }

        span {
            display: flex;
            margin-top: 5px;
            flex-direction: row;
            gap: 5px;
        }

        a {
            color: var(--black);
            text-decoration: none;

            svg {
                width: 20px;
                height: 20px;
            }
        }
    }
}

#legalSection {
    h3 {
        margin-top: 60px;
        margin-bottom: 15px;
        background-color: transparent;
    }
}

.card {
    &.staff {
        position: relative;

        &::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, var(--black, rgba(0, 0, 0, 0.50)) 100%);
            border-radius: 16px;
            opacity: .5;
            z-index: 1;
        }

        img {
            margin: 0;
        }

        div {
            position: absolute;
            bottom: 0;
            left: 0;
            padding: 30px 22px;
            color: var(--white) !important;
            z-index: 2;
        }

        .staff-title {
            position: absolute;
            top: 15px;
            left: 22px;
            font-weight: 700;
        }

        .staff-name {
            font-size: 3rem;
            font-weight: 800;
            line-height: 1;
        }

        .staff-formation {
            display: none;
            margin-top: 20px;
            font-size: .7rem;
            font-weight: 700;
        }

        .staff-bio {
            display: none;
            font-size: .7rem;
            line-height: 1.4;
        }

        &:hover {
            &::after {
                opacity: .8;
            }

            .staff-formation {
                display: block;
            }

            .staff-bio {
                display: block;
            }
        }
    }
}

footer {
    background-color: var(--olive);

    .container {
        display: flex;
        padding: 20px 0;
        font-size: .8rem;
        flex-direction: column;
        justify-content: space-between;
        gap: 30px;

        div:last-child a {
            display: none;
        }
    }

    span {
        /*margin-right: 30px;*/
        font-weight: 700;
    }

    a {
        color: var(--black);
        text-decoration: none;
    }

}

@media (min-width: 960px) {
    h1 {
        font-size: 10rem;
    }

    h2 {
        font-size: 20rem;
        left: -54px;
    }

    .btn {
        font-size: 1.8rem;

        svg {
            width: 30px;
            height: 30px;
        }
    }

    .nav {
        &.mobile {
            display: none !important;
        }

        &:not(.mobile) {
            display: flex;
        }
    }

    .burger {
        display: none;
    }

    .container {
        padding: 0;
    }

    .section-hero {
        p {
            font-size: 4rem;
        }
    }

    .section-core {
        padding-top: 4rem;

        p:first-child {
            font-size: 1.5rem;
        }

        p {
            font-size: 1.25rem;
        }

        .container.grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            grid-gap: 30px;
        }
    }

    #contactSection {
        .section-cols {
            gap: 8rem;

            span {
                margin-top: 10px;
            }
        }
    }

    footer {
        .container {
            flex-direction: row;

            div:first-child {
                display: flex;
                gap: 30px;
            }

            div:last-child a {
                display: block;
                font-weight: 700;
            }
        }
    }
}

@media (min-width: 1200px) {
    header {
        padding: 30px 0;

        nav.mobile, .burger {
            display: none;
        }
    }

    .container {
        padding: 0;
        margin: auto;
        width: 1200px;
    }

    .section-hero {
        .container {
            top: -6.75rem;
        }
    }

    .section-cols {
        margin-top: 40px;
        display: flex;
        flex-direction: row;
        gap: 30px;
    }
}
