@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@400;700&display=swap');

:root {
    --orange: #FF9E36;
    --lightgray: #eeeeee;
    --head-text-ratio: 2.5;
    --interlign: 1.5;
    --logo-ratio: 1.03;
}

body {
    font-family: 'Roboto Slab', sans-serif;
    font-weight: 400;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

#lang {
    position: absolute;
    right: 35vw;
    top: 5px;
}

header {
    background-color: var(--orange);

    margin: 0;
    padding: 0 25vw;
    color: black;
    min-height: 36vh;
    max-height: 36vh;
    min-width: calc(100vw - 50vw);
    max-width: calc(100vw - 50vw);
}

section.link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(6 * 2.6ex) !important;
}

a.entreprise:visited {
    color: black;
}

a.entreprise:hover {
    color: var(--orange);
}
a.entreprise {
    color: black;
    display: block;
    margin-left: calc(18ex + 200px);
    margin-bottom: 2ex;
    min-width: 50vw;
}
button#entreprise {
    cursor: pointer;
}
a.entreprise span {
    margin: 0 1ch 0 1ch;
    font-weight: 400;
}

a.entreprise span.name {
    font-weight: 700;
}


section {
    text-align: center;
    margin: calc(100vh / 16) 25vw;
    min-height: calc(12 * 2.6ex);
}

section p {
    text-align: left;
    line-height: 2.6ex;
    margin: 8ex 0 5.2ex 0;
}

.youplay h1 {
    font-size: 36px;
    margin: 3ex 0 0 0;
}

.youplay p {
    text-align: center;
    min-width: 100% !important;
    max-width: 100% !important;
    padding: 0;
    margin: 3ex 0 !important;
    font-weight: 400;
}
.youplay {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--orange);;
    background-color: black;
    margin: calc(100vh / 16) 0;
    padding: 0.5ex 25vw;
    min-height: 24ex;
    text-align: center;
}

.youplay.second p {
    font-size: 36px;
    font-weight: 700;
}

button {
    font-family: 'Roboto', sans-serif;
    display: block;
    max-width: 22ch;
    min-width: 22ch;
    color: white;
    background-color: black;
    border: black;
    border-radius: 1ex;
    padding: 1ex 1ch;
    margin: 1ex 0;
}

#smartphone {
    float: left;
    margin: 0 64px 0 120px;
    max-height: 36ex;
}

footer {
    background-color: black;
    color: white;
    margin: 0;
    padding: 0 25vw;
    min-height: 24vh;
    min-width: calc(100vw - 50vw);
    max-width: calc(100vw - 50vw);
}

#logo {
    display: block;
    position: relative;
    left: calc(25vw - 40vw);
    bottom: calc((40vw * var(--logo-ratio)) - 40vh);
    height: auto;
    width: 40vw;
}

header p {
    font-family: 'Roboto Slab', serif;
    position: absolute;
    font-size: 36px;
    padding: 0;
    margin: 0;
    left: 42vw;
    top: calc(36vh - (36px * var(--interlign) * var(--head-text-ratio))); 
    font-weight: 700;
}

form button {
    margin: auto;
    margin-top: 3ex;
}

a.button {
    text-align: center;
    background-color: var(--orange);
    color: black;
    text-decoration: none;
    display: inline-block;
    max-width: 22ch;
    min-width: 22ch;
    border: var(--orange);
    border-radius: 1ex;
    padding: 1ex 1ch;
    margin: 1ex 2ch;
}

form .merci {
    font-size: 24px;
    text-align: center;
}

form {
    margin: auto;
    max-width: 30vw;
    
}
#lang a {
    text-decoration: none;
    color: black
}
#lang a:visited {
    text-decoration: none;
    color: black
}
form label {
    display: inline-block;
    min-width: 180px;
    max-width: 180px;
    text-align: right;
}

form input {
    border: 1px solid var(--orange);;
    background-color: var(--lightgray);
    border-radius: 0.5ex;
    margin: 2px 0 2px 1ch;
    width: calc(100% - 200px);
    min-height: 4ex;
}

form input.error {
    border: 1px solid red;
    background-color: lightyellow;
}

form input::placeholder {
    color: red;
}

form .input {
    line-height: 3.2ex;
    width: 100%;
}

p {
    font-weight: 700;
    max-width: calc(36ex * 2.1);
}

#down {
    position: relative;
    top: 3ex;
}

.metallogo {
    min-width: calc(8ex * 1.5 + 2ch);
    margin: 20px 20px 20px 20px;
}

.metallogo img {
    max-height: 8ex;
}

address {
    font-style: normal;
}

div#line1, div#line2 {
    padding: 2ex 0 2ex 0;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: last baseline;
}

div#line2 a, div#line2:visited {
    color: white;
}

div#line2 address {
    margin: 0 20px 0 20px;
}

.media-logo img {
    margin: 0 20px 0 20px;
    max-width: 64px;
    height: auto;
}

@media (max-width: 1081px) and (orientation: landscape) {
    header p {
        top: 10px;
    }

    form {
        max-width: 50vw;
    }
    footer {
        margin: 0;
        padding: 0;
        min-width: calc(100vw - 30px);
        max-width: calc(100vw - 30px);
    }
    section {
        margin: calc(100vh / 16) 10vw;
    }

    #lang {
        position: absolute;
        right: 15px;
        top: 15px;
    }

}

@media (max-width: 1081px) and (orientation: portrait) {
    header p {
        top: 10px;
    }

    footer {
        margin: 0;
        min-width: calc(100vw - 30px);
        max-width: calc(100vw - 30px);
        padding: 0;
    }
    header, footer {
        max-height: 20vh;
        min-height: 20vh;
    }

    section {
        margin: calc(100vh / 16) 10vw;
    }

    a.entreprise {
        min-width: calc(40vw - (18ex + 200px));
    }

    #logo {
        bottom: calc((40vw * var(--logo-ratio)) - 24vh);
    }

    form {
        max-width: 50vw;
    }

    #lang {
        position: absolute;
        right: 15px;
        top: 15px;
    }
}

@media (max-height: 800px) {
    :root {
        --head-text-ratio: 1.8;
    }
}

@media (max-width: 800px) {
    .metallogo {
        min-width: 0px;
    }
    #lang {
        position: absolute;
        right: 5px;
        top: 5px;
    }

    header, footer {
        padding: 0 15px;
    }
    .youplay {
        padding: 0.5ex 15px;
    }

    footer {
        min-width: calc(100vw - 30px);
        max-width: calc(100vw - 30px);
    }
    header, footer {
        min-height: 32vh;
        max-height: none;
        min-width: calc(100vw - 30px);
        max-width: calc(100vw - 30px);
    }
    section {
        margin: calc(100vh / 16) 15px;
    }
    #smartphone {
        float: none;
        max-height:none;
        width: 50vw;
        height: auto;
        margin: auto;
        padding: 0;
    }
    #logo {
        display: block;
        position: relative;
        bottom: calc((100vw * var(--logo-ratio)) - 28vh);
        height: auto;
        width: 100vw;
    }
    header p {
        text-align: center;
        position: absolute;
        left: 0;
        font-size: 32px;
        top: calc(100vw * var(--logo-ratio) - 16vh);
        margin: auto;
        width: 100%;
    }
    form label {
        text-align: left;
        max-width: 100%;
        min-width: 100%;
    }
    form input {
        max-width: 100%;
        min-width: 100%;
        margin: 0;
    }
    a.entreprise {
        margin: 0 1ch 2ex 1ch;
        width: cacl(100vw - 4ch);
    }
    .youplay.second p, .youplay h1, header p {
        font-size: 28px;
    }
    section.link {
        flex-direction: column;
    }
    #entreprise {
        margin: auto;
    }
    form {
        max-width: none;
        width: 90vw;
    }    
    div#line2 { 
        flex-direction: column;
     
    }

}
