/** FONT FACE **/
@font-face {
    font-family: 'Grenette Pro';
    src: url('../fonts/grenette/GrenettePro-SemiBold.woff2') format('woff2'),
    url('../fonts/grenette/GrenettePro-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Grenette Pro';
    src: url('../fonts/grenette/GrenettePro-SemiBold.woff2') format('woff2'),
    url('../fonts/grenette/GrenettePro-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Grenette Pro';
    src: url('../fonts/grenette/GrenettePro-SemiBold.woff2') format('woff2'),
    url('../fonts/grenette/GrenettePro-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Circular Std';
    src: url('../fonts/circular/CircularStd-Bold.woff2') format('woff2'),
    url('../fonts/circular/CircularStd-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Circular Std Book';
    src: url('../fonts/circular/CircularStd-Book.woff2') format('woff2'),
    url('../fonts/circular/CircularStd-Book.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/** BASE **/
html {
    height: 100vh;
    overflow: hidden;

    max-height: 870px;
}
body {
    position: relative;
    height: 100vh;
    background-color: white;
    overflow: hidden;

    max-height: 870px;
}
h1 {
    margin-bottom: 30px;

    color: transparent;
    background-image: linear-gradient(90deg, #005198, #A2C717);
    -webkit-background-clip: text;
    background-clip: text;

    font-family: 'Grenette Pro';
    font-size: 55px;
    line-height: 61.5px;
}

.site-wrapper {
    position: relative;
    max-width: 1600px;
    overflow: hidden;
    margin: 0 auto;
    z-index: 3;
}
    .logo {
        position: absolute;
        top: 50px;
        left: 85px;
        height: 100px;
        width: auto;
    }

/** HOME **/
.home {
    position: fixed;
    display: flex;
    height: 100vh;
    width: 100%;
    justify-content: end;
    align-items: end;
    padding-bottom: 100px;
    max-width: 1600px;
    margin: 0 auto;

    z-index: 2;

    background-image: url("/assets/images/background/home.jpg");
    background-size: cover;
}
    .home:after {
        position: absolute;
        content: '';
        background-color: white;
        width: 200vh;
        height: 500px;
        bottom: 0;
        left: 0px;

        z-index: -1;

        transform: rotate(-15deg);
    }

/** QUESTIONS **/
.questions {
    display: none;
    position: fixed;
    height: 100vh;
    width: 100%;
    padding-top: 210px;
    padding-bottom: 100px;
    max-width: 1600px;
    margin: 0 auto;

    z-index: 3;

    background-image: url("/assets/images/background/fond_bleu.jpg");
    background-size: cover;
}
    .questions .image-droite {
        position: relative;
        display: inline-block;
        width: calc( 50% - 15px );
        margin-left: 15px;
    }
    .questions .image-gauche {
        position: relative;
        display: inline-block;
        width: calc( 50% - 15px );
        margin-right: 15px;
    }
    .questions .image-gauche img, .questions .image-droite img {
        position: absolute;
        width: 101%;
        top: 50%;
        left: 50%;
        height: auto;

        transform: translate(-50%, -50%);
    }

/** RESULT **/
.result {
    display: none;
    position: fixed;
    height: 100vh;
    width: 100%;
    justify-content: end;
    align-items: end;
    padding-bottom: 100px;
    max-width: 1600px;
    margin: 0 auto;

    z-index: 4;

    background-image: url("assets/images/background/home.jpg");
    background-size: cover;
}
    .result.employe_commerce {
        background-image: url("/assets/images/background/TL-Employe-de-commerce.jpg");
    }
    .result.agent_relation {
        background-image: url("/assets/images/background/TL_Relations-clientele.jpg");
    }
    .result.agent_transports {
        background-image: url("/assets/images/background/TL_Agent-TP.jpg");
    }
    .result.informaticien {
        background-image: url("/assets/images/background/TL_Informaticien.jpg");
    }
    .result.mecatronicien {
        background-image: url("/assets/images/background/TL_Mecatronicien.jpg");
    }
    .result.mecanicien {
        background-image: url("/assets/images/background/TL_Mecanicien.jpg");
    }
    .result.electronicien {
        background-image: url("/assets/images/background/TL_Electronicienne.jpg");
    }
    .result.automaticien {
        background-image: url("/assets/images/background/TL_Automaticien.jpg");
    }
    .result.vernisseur {
        background-image: url("/assets/images/background/TL_Vernisseur.jpg");
    }
    .result.electricien {
        background-image: url("/assets/images/background/TL_Apprentis-ligne-aerienne-hd-25.jpg");
    }
    .result.agent_exploitation {
        background-image: url("/assets/images/background/TL-Agent-dexploitation.jpg");
    }
    .result.logisticien {
        background-image: url("/assets/images/background/TL_Logisticien.jpg");
    }
    .result:after {
        position: absolute;
        content: '';
        background-color: white;
        width: 250vh;
        height: 650px;
        bottom: -200px;
        left: -100px;

        z-index: -1;

        transform: rotate(-15deg);
    }

    .result h1 {
        font-size: 37px;
        line-height: 61.5px;
    }

/** END **/
.end {
    position: fixed;
    width: 100%;
    display: none;
    height: 100vh;
    max-width: 1600px;
    margin: 0 auto;

    z-index: 5;

    background-image: url("/assets/images/background/end.jpg");
    background-size: cover;
}
    .end .text {
        position: absolute;
        bottom: 0;
        height: 600px;
        width: 450px;
        background-image: url("/assets/images/background/end-text.png");
        background-size: contain;
        background-repeat: no-repeat;

        padding-left: 85px;
        padding-right: 75px;
        padding-top: 150px;

        color: white;
    }
        .end .text h1 {
            font-size: 47px;
            font-family: "Grenette Pro";
            line-height: 53px;
            color: white;
            margin-bottom: 20px;
        }
        .end .text span {
            font-size: 20px;
            line-height: 23px;
            font-family: "Circular Std Book";
            font-weight: 700;
        }

        .end .text p {
            font-size: 22px;
            line-height: 25px;
            font-family: "Circular Std";
            font-weight: 700;
        }

/** ANIMATION BOUTON **/
@-webkit-keyframes hvr-pulse {
    25% {
        -webkit-transform: scale(1.1);
        transform: scale(1.1);
    }
    75% {
        -webkit-transform: scale(0.9);
        transform: scale(0.9);
    }
}
@keyframes hvr-pulse {
    25% {
        -webkit-transform: scale(1.1);
        transform: scale(1.1);
    }
    75% {
        -webkit-transform: scale(0.9);
        transform: scale(0.9);
    }
}

a.button {
    display: inline-block;
    position: relative;
    padding: 19px 176px 18px 15px;

    background-color: #005198;
    color: white;

    font-family: "Circular Std";
    font-weight: bold;
    text-decoration: none;
    font-size: 26px;

    -webkit-animation-name: hvr-pulse;
    animation-name: hvr-pulse;
    -webkit-animation-duration: 1s;
    animation-duration: 1s;
    -webkit-animation-timing-function: linear;
    animation-timing-function: linear;
    -webkit-animation-iteration-count: infinite;
    animation-iteration-count: infinite;

    &:after {
        content: '';
        position: absolute;
        right: 20px;
        top: 50%;
        width: 40px;
        height: 40px;

        background-image: url("../images/fleche.png");
        background-repeat: no-repeat;
        background-size: cover;

        transform: translateY(-50%);
    }
}
a.button.button-return {
    position: absolute;
    right: 85px;
    top: 78px;
    
    -webkit-animation-name: none;
    animation-name: none;
    
    background-color: white!important;
    color: #005198;
    
    &:after {
        background-image: url("../images/fleche-return.png")!important;
    }
}
.touch {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
}

@media (min-height: 990px) {
    .home {
        max-height: 900px;
    }
    .home::after {
        position: absolute;
        content: '';
        background-color: white;
        width: 200vh;
        height: 750px;
        bottom: -200px;
        left: 0px;
        z-index: -1;
        transform: rotate(-15deg);
    }
    
    .result {
        max-height: 900px;
    }
    .result::after {
        position: absolute;
        content: '';
        background-color: white;
        width: 250vh;
        height: 750px;
        bottom: -200px;
        left: 0px;
        z-index: -1;
        transform: rotate(-15deg);
    }
}