@import url('https://fonts.googleapis.com/css2?family=Carter+One&family=Montserrat:wght@700&family=Sriracha&display=swap');

html {
    font-size: calc(13px + var(--vw, 1vw) * 0.6);
}

html, body {
    height: 100%;
    margin: 0;
    font-family: sans-serif;
    overflow: hidden;
}

.page-wrapper {
    display: flex;
}

.link {
    width: 50%;
    height: 100vh;
    text-decoration: none;
    position: relative;
}

.link .textual-content {
    width: 80%;
    margin-left: 10%;
}

.link h1 {
    font-size: 5vw;
    margin-block-end: 0;
    line-height: 5vw;
    font-weight: normal;

}
.link h2 {
    font-size: 2vw; 
}

.link .decorative-image {
    position: absolute;
}

.link .arrow {
    width: 10%;
    transition: width 0.3s, margin-top 0.3s, right 0.3s;
}

.link:hover .arrow {
    width: 12.5%;
    margin-top: -0.8vw;
}


/*======= PRIMAIRE ============*/

#button-primaire {
    background: #457D92;
    color: #fff;
}

#button-primaire .textual-content {
    margin-top: 13rem;
    position: relative;
}

#button-primaire h1 {
    font-family: Carter One;
}

#button-primaire h2 {
    font-family: Montserrat;
}

#button-primaire .arrow {
    position: absolute;
    top: 5vw;
    right: 8%;
}

#button-primaire:hover .arrow {
    right: 7%;
}

#button-primaire .new {
    position: absolute;
    width: 25%;
    top: -3.5vw;
    right: 20%;
    font-family: Carter One;
}

#button-primaire .decorative-image {
    top: 0;
    width: 100%;
    left: 0;
}

/*======= SECONDAIRE ============*/

#button-secondaire {
    background: #dad3c4;
    color: #775597;
    text-align: center;
}

#button-secondaire .textual-content {
    margin-top: 20vh;
}

#button-secondaire .logo {
    width: 50%;
}

#button-secondaire h1 {
    font-family: Sriracha;
    font-size: 4vw;
    line-height: 3.5vw;
}

#button-secondaire h1 span {
    font-size: 3.5vw;
}

#button-secondaire h2 {
    font-family: Sriracha;
    font-weight: normal;
    font-size: 2.25vw;
}

#button-secondaire .decorative-image {
    bottom: -0.1rem;
    right: -2vw;
    height: 50%;
    width: auto;
}

@media screen and (orientation: portrait) {
    .page-wrapper {
        flex-direction: column;
    }

    .link {
        width: 100%;
        height: 50vh;
        text-decoration: none;
        position: relative;
    }

    #button-primaire .decorative-image {
        width: 50vh;
        left: -20vh;
        top: -50vh;
    }

    #button-primaire .textual-content {
        margin-top: 20vh;
    }

    #button-primaire h1 {
        font-size: 10vw;
        line-height: 10vw;
    }

    #button-primaire h2 {
        font-size: 4vw;
    }

    #button-primaire .arrow {
        top: 11vw;
        right: 8%;
    }

    #button-primaire .new {
        width: 25vw;
        top: -10vw;
        right: 16%;
    }

    #button-secondaire .logo {
        width: 60%;
    }

    #button-secondaire h1 {
        width: 60%;
        margin-left: 20%;
        font-size: 6vw;
        line-height: 5vw;
    }

    #button-secondaire h1 span {
        font-size: 5vw;
    }

    #button-secondaire .textual-content {
        margin-top: 12vh;
    }

    #button-secondaire h2 {
        font-size: 4vw;
    }
}

