@layer app {
    :root {
        font-size: 52px;
    }

    body {
        font-size: .31em;
    }

    @media only screen and (min-width: 479px) {
        .res-d-xs {
            display: block !important;
        }

        .res-di-xs {
            display: inline !important;
        }

    ,
    }

    @media only screen and (min-width: 959px) {
        .res-d-sm {
            display: block !important;
        }

        .res-di-sm {
            display: inline !important;
        }
    }

    @media only screen and (min-width: 1280px) {
        .res-d-md {
            display: block !important;
        }

        .res-di-md {
            display: inline !important;
        }
    }

    @media only screen and (min-width: 1600px) {
        .res-d-lg {
            display: block !important;
        }

        .res-di-lg {
            display: inline !important;
        }
    }

    @media only screen and (min-width: 479px) {
        .res-h-xs {
            display: none !important;
        }
    }

    @media only screen and (min-width: 959px) {
        .res-h-sm {
            display: none !important;
        }
    }

    @media only screen and (min-width: 1280px) {
        .res-h-md {
            display: none !important;
        }
    }

    @media only screen and (min-width: 1600px) {
        .res-h-lg {
            display: none !important;
        }
    }

    html, body {
        margin: 0;
        font-family: 'Lato-Regular', serif;
        color: var(--light-black2);
        /*height: 100%;*/
    }

    body {
        background-color: white;
    }

    body.disable-scrolling {
        overflow: hidden;
    }

    #btnTop {
        --size: 50px;

        display: none;
        justify-content: center;
        align-items: center;
        position: fixed;
        bottom: 20px;
        right: 30px;
        z-index: 99;
        border: none;
        outline: none;
        color: white;
        cursor: pointer;
        border-radius: 10px;
        width: var(--size);
        height: var(--size);
        font-size: 15px;
        padding: 5px;
        background-color: var(--light-black);
    }

    @media only screen and (min-width: 959px) {
        #btnTop {
            width: 50px;
            height: 50px;
            font-size: 18px;
        }
    }

    header {
        --transition-duration: 300ms;
        position: sticky;
        inset-block-start: 0;
        width: 100%;
        height: 145px;
        z-index: 3;


        display: flex; /* TODO CHECK IF animation problem with this */
        align-items: center;

        box-sizing: border-box;
        padding-block-start: 30px;
        padding-block-end: 30px;
        padding-inline: 50px;
        background-color: transparent;

        transition: padding-block-start var(--transition-duration), padding-block-end var(--transition-duration), height var(--transition-duration), background-color var(--transition-duration), filter var(--transition-duration);

        &.header-small {

            height: 100px;
            padding-block-start: 22.5px;
            padding-block-end: 22.5px;
        }

        a {
            border: none;

            .logo {
                width: 130px;
                height: 81px;
                margin-left: 20px;

                transition: width var(--transition-duration), height var(--transition-duration);
            }
        }

        &.header-small {
            .logo {
                width: 60px;
                height: 37.4px;
            }
        }

    }

    header a:visited {
        color: white;
    }

    header:not(.index), header.index.header-small {
        background-color: rgba(17, 17, 17, 0.85);
        filter: saturate(150%);
    }

    header .nav-container {
        display: flex;
        align-items: center;
        justify-content: space-between;

        width: 100%;
    }

    header .nav-container nav {
        position: relative;
        /*top: -10px;*/
        display: none;
        transition: left 400ms;
    }

    @media only screen and (max-width: 959px) {
        header .nav-container nav {
            position: absolute;
            display: flex;
            flex-direction: column;
            justify-content: space-evenly;
            width: 70vw;
            top: 0;
            left: -100%;
            background-color: var(--light-black);
            height: 100vh;
            z-index: 6;
        }

        header .nav-container nav.mobile-opened {
            left: 0;
        }

        header .nav-container nav a {
            display: block;
            padding: 30px;
            text-align: center;
            font-size: 20px;
            position: relative;
            top: -15px;
        }

        header .nav-container nav a.active {
            color: #e94d50;
        }

        header .nav-container nav a:hover {
            color: #e94d50;
        }
    }

    header .nav-container nav a {
        font-family: 'Lato-Black', serif;
        letter-spacing: 3px;
        text-transform: uppercase;
        text-decoration: none;
        color: white;
    }

    @media only screen and (min-width: 959px) {
        header .nav-container nav {
            display: block;
        }

        header .nav-container nav a {
            margin-left: 50px;
            padding: 20px 0;

            &:active {
                outline: none;
            }

            span {
                transition-property: border-color, padding, color;
                transition-duration: 300ms;
                padding: 0;

                border-top: 1px solid transparent;
                border-bottom: 1px solid transparent;
            }

            :is(&.active, &:hover) span {
                color: var(--light-red) !important;
                padding: 7px 0;
                border-top: 1px solid var(--light-red);
                border-bottom: 1px solid var(--light-red);
            }
        }
    }

    header .nav-container .mobile-menu-overlay {
        display: none;
        position: fixed;
        z-index: 2;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
    }

    header .nav-container .mobile-menu-trigger {
        color: white;
        font-size: 40px;
        padding: 20px 20px 20px 50px;
        z-index: 7;
    }

    @media only screen and (min-width: 959px) {
        header .nav-container .mobile-menu-trigger {
            display: none;
        }
    }

    .body-screen-image {
        position: absolute;
        inset-block-start: 0;
    }

    .body-screen-image-menu {
        width: 100%;
        max-height: 580px;
        max-width: 100vw;
        overflow: hidden;
        height: 320px;
    }

    @media only screen and (min-width: 959px) {
        .body-screen-image-menu {
            height: 580px;
        }
    }

    .body-screen-image-menu div {
        background-size: cover;
        width: 100%;
        height: 100%;
        z-index: -1;
    }

    .container {
        max-width: 1280px;
        margin: 0 20px;
    }

    @media only screen and (min-width: 1300px) {
        .container {
            margin: 0 auto;
        }
    }

    .section-title {
        font-family: "Lato Semibold", serif;
        font-size: .58rem;
        text-transform: uppercase;
        letter-spacing: 2px;
        text-align: center;
    }

    .section-title.section-title-margin {
        margin-top: 50px;
        margin-bottom: 10px;
    }

    @media only screen and (min-width: 959px) {
        .section-title.section-title-margin {
            margin-top: 50px;
        }
    }

    .section-title.section-title-margin.main-title {
        font-family: 'Lato-Regular', serif;
        font-size: 25px;
        letter-spacing: 7px;
    }

    .line-separator hr {
        border: none;
        height: 1px;
        background-color: black;
        margin-top: 0;
        margin-bottom: 5px;
    }

    .line-separator hr:nth-child(1) {
        width: 50px;
    }

    .line-separator hr:nth-child(2) {
        width: 40px;
    }

    .line-separator hr:nth-child(3) {
        width: 30px;
        margin-bottom: 50px;
    }

    section.avantages-agence {
        background-image: url("../img/footer-texture-07c6c5f19e50d4bef84ef24a1cb2ac7c.png");
        margin-top: 60px;
        padding-top: 30px;
        padding-bottom: 60px;
    }

    @media only screen and (min-width: 1280px) {
        section.avantages-agence {
            padding-bottom: 90px;
        }
    }

    section.avantages-agence h3 {
        margin: 0 20px;
    }

    section.avantages-agence .line-container {
        display: flex;
        flex-direction: column;
    }

    section.avantages-agence .line-container .line {
        display: grid;
        grid-template-columns: 1fr;
        grid-gap: 50px;
        justify-content: space-around;
        margin-bottom: 70px;
    }

    @media only screen and (min-width: 479px) {
        section.avantages-agence .line-container .line {
            grid-template-columns: 1fr 1fr 1fr;
        }
    }

    section.avantages-agence .line-container .line > div {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    section.avantages-agence .line-container .line > div .num {
        user-select: none;
        width: 30px;
        border: 1px solid black;
        border-radius: 50%;
        padding: 10px;
        font-size: 25px;
        font-family: 'Lato-LightItalic', serif;
    }

    section.avantages-agence .line-container .line > div .title {
        margin-top: 20px;
        text-transform: uppercase;
        font-size: 1.4em;
    }

    section.avantages-agence .line-container .line > div hr {
        color: black;
        position: absolute;
    }

    section.avantages-agence .line-container .line > div .text {
        text-align: center;
        font-size: 1.2em;
    }

    section.avantages-agence .line-container .btn-contact {
        align-self: center;
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: var(--light-red);
        text-transform: uppercase;
        color: white;
        width: 240px;
        height: 60px;
        border: none;
        border-radius: 5px;
        letter-spacing: 2px;
        text-decoration: none;
    }

    section.avantages-agence .line-container .btn-contact:hover {
        background-color: #ea5659;
    }

    footer {
        color: white;
        background-color: var(--light-black);
        min-height: 190px;
        padding: 60px 0;
    }

    @media only screen and (min-width: 959px) {
        footer {
            padding: 0;
            padding-top: 60px;
        }
    }

    footer .container {
        display: grid;
        grid-template-columns: 1fr;
        grid-gap: 50px;
    }

    @media only screen and (min-width: 959px) {
        footer .container {
            grid-template-columns: 1fr 1fr 1fr;
            grid-gap: 0;
        }
    }

    footer .container img {
        max-width: 100px;
        max-height: 50px;
        margin-bottom: 25px;
    }

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

    footer .container a:hover {
        text-decoration: underline;
    }

    footer .container .footer-part {
        position: relative;

        display: flex;
        flex-direction: column;
        align-items: center;
    }

    footer {
        & .footer-part {
            & a::after {
                content: '';
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
            }
        }
    }

    footer .container .footer-part-logo .full-name {
        text-transform: uppercase;
    }

    footer .container .footer-part-logo .job-title {
        color: var(--light-red);
    }

    .alert {
        margin: 50px 10px;
        text-align: center;
        font-size: 20px;
        text-decoration: underline;
    }
}
