@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;600&display=swap');

body{
    margin: 0;
    padding: 0;
    font-size: 12px;
    font-family: 'Raleway';
    background-color: #f3f7f4;
    padding-bottom: 3vh;
}
li{
    cursor: pointer;
}

*{
    margin: 0;
    padding: 0;
}

#listConcessionaires{
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    list-style-type: none;
    margin-bottom: 8vh;
}

#listConcessionaires li{
    position: relative;
    width: 20vh;
    height: 20vh;
    border-radius: 7px;
    box-shadow: 0px 1vh 4vh rgba(0,0,0,0.1);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    transition: 0.2s;
    background-color: #FFFFFF;
    background-size: 70% auto;
    background-position-x: center;
    background-position-y: center;
    background-repeat: no-repeat;
    box-sizing: border-box;
}

#listConcessionaires li span{
    display: block;
    width: 100%;
    position: absolute;
    width: 100%;
    bottom: -4vh;
    font-size: 1.6vh;
    text-align: center;
    color: #113D19;
}

#listConcessionaires li:hover{
    box-shadow: 0px 1vh 4vh rgba(0,0,0,0.2);
    border: 3px solid #113D19;
    cursor: pointer;
}

#listVoitures li:hover{
    box-shadow: 0px 1vh 4vh rgba(0,0,0,0.2);
    border: 3px solid #113D19;
    cursor: pointer;
}

#listVoitures{
    width: 100%;
    display: flex;
    margin-bottom: 8vh;
    justify-content: space-around;
    align-items: center;
    list-style-type: none;
}

#listVoitures li{
    position: relative;
    width: 23vh;
    height: 23vh;
    border-radius: 7px;
    box-shadow: 0px 1vh 4vh rgba(0,0,0,0.1);
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    transition: 0.2s;
    box-sizing: border-box;
    background-color: #FFFFFF;
    background-size: 100% auto;
    background-position-x: center;
    background-position-y: center;
    background-repeat: no-repeat;
}

#listVoitures li span{
    display: block;
    width: 100%;
    position: absolute;
    width: 100%;
    bottom: -6vh;
    font-size: 1.6vh;
    text-align: center;
    color: #113D19;
}

#formulaire{
    display: none;
}

#poppin{
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(232,239,235, 0.8);
    justify-content: center;
    align-items: center;
}

#poppin div{
    background-color: #FFFFFF;
    padding: 4vh;
    box-sizing: border-box;
    width: 30%;
    font-size: 2vh;
    box-shadow: 0px 1vh 4vh rgba(0,0,0,0.2);
    border-radius: 7px;
    font-weight: bold;
    text-align: center;
}

#poppin div a{
    display: inline-block;
    margin-left: 2vh;
    margin-right: 2vh;
    margin-top: 4vh;
    text-decoration: none;
    padding: 2vh;
    color: #FFFFFF;
    text-transform: uppercase;
    border-radius: 5px;
    background-color: #113D19;
    width: 10vh;
    box-sizing: border-box;
    text-align: center;
}

#header{
    width: 100%;
    min-height: 62vw;
    background-image: url('img/header.jpg');
    background-position: left top;
    background-size: 100% auto;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
}

h1{
    text-align: center;
    text-transform: uppercase;
    margin-top: 8vh;
    margin-bottom: 6vh;
    font-size: 2.5vh;
}

#listConcessionaires li.active{
    box-shadow: 0px 1vh 4vh rgba(0,0,0,0.2);
    border: 3px solid #113D19;
}

#listConcessionaires li.active span{
    color: #113D19;
    font-weight: bold;
}

#listVoitures li.active{
    box-shadow: 0px 1vh 4vh rgba(0,0,0,0.2);
    border: 3px solid #113D19;
}

#listVoitures li.active span{
    color: #113D19;
    font-weight: bold;
}

li:hover span{
    color: #113D19;
    font-weight: bold;
    cursor: pointer;
}

form{
    width: 100%;
    display: flex;
    flex-flow: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 8vh;
}

form h1{
    font-weight: normal;
    width: 50%;
    text-transform: none;
    text-align: center;
}

form h1 span{
    font-weight: bold;
}

form input[type="text"],form input[type="email"]{
    width: 50%;
    border: 3px solid #FFFFFF;
    font-size: 2vh;
    box-sizing: border-box;
    padding: 1.5vh;
    margin-bottom: 2vh;
    border-radius: 5px;
    box-shadow: 0px 0.5vh 2vh rgba(0,0,0,0.05);
    transition: 0.2s;
}

form input[type="text"]:focus{
    border: 3px solid #F8F8F8;
}

form input[type="submit"]{
    margin-top: 4vh;
    background-color: #113D19;
    width: 20%;
    border: 3px solid #FFFFFF;
    font-size: 2vh;
    box-sizing: border-box;
    padding: 1.5vh;
    border-radius: 5px;
    box-shadow: 0px 0.5vh 2vh rgba(0,0,0,0.05);
    color: #FFFFFF;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.cta-haut{
    display: inline-block;
    text-decoration: none;
    margin-bottom: 4vh;
    background-color: #113D19;
    width: 40%;
    border: 3px solid #FFFFFF;
    font-size: 2vh;
    box-sizing: border-box;
    padding: 1.5vh;
    border-radius: 5px;
    box-shadow: 0px 0.5vh 2vh rgba(0,0,0,0.05);
    color: #FFFFFF;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

form input[type="submit"]:disabled{
    background-color: #E1E1E1;
    color: #666666;
    cursor: default;
}

#infoConcessionaire{
    width: 100%;
    font-size: 2vh;
    text-align: center;
    margin-bottom: 3vh;
}

#nameConcessionaire{
    font-weight: bold;
}

.rgpd{
    width: 50%;
    font-style: italic;
    margin-top: 4vh;
    text-align: center;
    font-size: 1.3vh;
}

#text-presentation{
    flex-flow: column;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgb(255,255,255);
    background: linear-gradient(90deg, rgba(255,255,255,0) 10%, rgba(255,255,255,0.39959733893557425) 31%, rgba(255,255,255,0.39399509803921573) 70%, rgba(255,255,255,0.007440476190476164) 90%);
    padding: 4vh;
    line-height: 1.3vw;
}

#text-presentation div{
    width: 45%;
    text-align: center;
    flex-flow: column;
    font-size: 1vw;
    color: #113D19;
    text-shadow: 0px 0px 2px rgba(255,255,255,1);
}

#question{
    font-size: 1.2vw;
}

@media only screen and (max-width: 800px) {
    body{
        margin: 0;
        padding: 0;
        font-size: 12px;
        font-family: 'Raleway';
        background-color: #f3f7f4;
        padding-bottom: 3vh;
    }
    li{
        cursor: pointer;
    }

    *{
        margin: 0;
        padding: 0;
    }

    #listConcessionaires{
        width: 100%;
        display: flex;
        flex-flow: wrap;
        justify-content: space-around;
        align-items: center;
        list-style-type: none;
        margin-bottom: 8vh;
        padding-left: 8vh;
        padding-right: 8vh;
        box-sizing: border-box;
    }

    #listConcessionaires li{
        position: relative;
        width: 30vw;
        height: 30vw;
        border-radius: 7px;
        margin-bottom: 8vh;
        box-shadow: 0px 1vh 4vh rgba(0,0,0,0.1);
        display: flex;
        justify-content: center;
        align-items: flex-end;
        transition: 0.2s;
        background-color: #FFFFFF;
        background-size: 70% auto;
        background-position-x: center;
        background-position-y: center;
        background-repeat: no-repeat;
        box-sizing: border-box;
    }

    #listConcessionaires li span{
        display: block;
        width: 100%;
        position: absolute;
        width: 100%;
        bottom: -4vh;
        font-size: 1.6vh;
        text-align: center;
        color: #113D19;
    }

    #listConcessionaires li:hover{
        box-shadow: 0px 1vh 4vh rgba(0,0,0,0.2);
        border: 3px solid #113D19;
        cursor: pointer;
    }

    #listVoitures li:hover{
        box-shadow: 0px 1vh 4vh rgba(0,0,0,0.2);
        border: 3px solid #113D19;
        cursor: pointer;
    }

    #listVoitures{
        width: 100%;
        display: flex;
        flex-flow: wrap;
        justify-content: space-around;
        align-items: center;
        list-style-type: none;
        padding-left: 8vh;
        padding-right: 8vh;
        box-sizing: border-box;
    }

    #listVoitures li{
        position: relative;
        width: 30vw;
        height: 30vw;
        border-radius: 7px;
        box-shadow: 0px 1vh 4vh rgba(0,0,0,0.1);
        margin-bottom: 8vh;
        display: flex;
        flex-flow: column;
        justify-content: center;
        align-items: center;
        transition: 0.2s;
        box-sizing: border-box;
        background-color: #FFFFFF;
        background-size: 100% auto;
        background-position-x: center;
        background-position-y: center;
        background-repeat: no-repeat;
    }

    #listVoitures li span{
        display: block;
        width: 100%;
        position: absolute;
        width: 100%;
        bottom: -6vh;
        font-size: 1.3vh;
        text-align: center;
        color: #113D19;
    }

    #formulaire{
        display: none;
    }

    #poppin{
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(232,239,235, 0.8);
        justify-content: center;
        align-items: center;
    }

    #poppin div{
        background-color: #FFFFFF;
        padding: 4vh;
        box-sizing: border-box;
        width: 90%;
        font-size: 2vh;
        box-shadow: 0px 1vh 4vh rgba(0,0,0,0.2);
        border-radius: 7px;
        font-weight: bold;
        text-align: center;
    }

    #poppin div a{
        display: inline-block;
        margin-left: 2vh;
        margin-right: 2vh;
        margin-top: 4vh;
        text-decoration: none;
        padding: 2vh;
        color: #FFFFFF;
        text-transform: uppercase;
        border-radius: 5px;
        background-color: #113D19;
        width: 10vh;
        box-sizing: border-box;
        text-align: center;
    }

    #header{
        width: 100%;
        min-height: 131vh;
        background-image: url('img/header-mobile.jpg');
        background-position: left top;
        background-size: 100% auto;
        background-repeat: no-repeat;
        display: flex;
        align-items: flex-end;
    }

    h1{
        text-align: center;
        text-transform: uppercase;
        margin-top: 0vh;
        margin-bottom: 6vh;
        font-size: 2.5vh;
        padding-left: 3vh;
        padding-right: 3vh;
    }

    #listConcessionaires li.active{
        box-shadow: 0px 1vh 4vh rgba(0,0,0,0.2);
        border: 3px solid #113D19;
    }

    #listConcessionaires li.active span{
        color: #113D19;
        font-weight: bold;
    }

    #listVoitures li.active{
        box-shadow: 0px 1vh 4vh rgba(0,0,0,0.2);
        border: 3px solid #113D19;
    }

    #listVoitures li.active span{
        color: #113D19;
        font-weight: bold;
    }

    li:hover span{
        color: #113D19;
        font-weight: bold;
        cursor: pointer;
    }

    form{
        width: 100%;
        display: flex;
        flex-flow: column;
        align-items: center;
        justify-content: center;
        margin-bottom: 8vh;
    }

    form h1{
        font-weight: normal;
        width: 80%;
        text-transform: none;
        text-align: center;
    }

    form h1 span{
        font-weight: bold;
    }

    form input[type="text"],form input[type="email"]{
        appearance: none;
        -moz-appearance: none;
        -webkit-appearance: none;
        width: 80%;
        border: 3px solid #FFFFFF;
        font-size: 2vh;
        box-sizing: border-box;
        padding: 1.5vh;
        margin-bottom: 2vh;
        border-radius: 5px;
        box-shadow: 0px 0.5vh 0vh rgba(0,0,0,0.05);
        transition: 0.2s;
    }

    form input[type="text"]:focus{
        appearance: none;
        -moz-appearance: none;
        -webkit-appearance: none;
        border: 3px solid #F8F8F8;
    }

    form input[type="submit"]{
        appearance: none;
        -moz-appearance: none;
        -webkit-appearance: none;
        margin-top: 4vh;
        background-color: #113D19;
        width: 70%;
        border: 3px solid #FFFFFF;
        font-size: 2vh;
        box-sizing: border-box;
        padding: 1.5vh;
        border-radius: 5px;
        box-shadow: 0px 0.5vh 0vh rgba(0,0,0,0.05);
        color: #FFFFFF;
        font-weight: bold;
        cursor: pointer;
        transition: 0.2s;
    }

    form input[type="submit"]:disabled{
        appearance: none;
        -moz-appearance: none;
        -webkit-appearance: none;
        background-color: #E1E1E1;
        color: #666666;
        cursor: default;
    }

    .cta-haut{
        appearance: none;
        -moz-appearance: none;
        -webkit-appearance: none;
        background-color: #113D19;
        width: 70%;
        border: 3px solid #FFFFFF;
        font-size: 2vh;
        box-sizing: border-box;
        padding: 1.5vh;
        border-radius: 5px;
        box-shadow: 0px 0.5vh 0vh rgba(0,0,0,0.05);
        color: #FFFFFF;
        font-weight: bold;
        cursor: pointer;
        transition: 0.2s;
    }

    #infoConcessionaire{
        width: 100%;
        font-size: 2vh;
        text-align: center;
        margin-bottom: 3vh;
    }

    #nameConcessionaire{
        font-weight: bold;
    }

    .rgpd{
        width: 80%;
        font-style: italic;
        margin-top: 4vh;
        text-align: center;
        font-size: 0.9vh;
    }

    #text-presentation{
        flex-flow: column;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        background: rgb(255,255,255);
        background: linear-gradient(90deg, rgba(255,255,255,0) 10%, rgba(255,255,255,0.39959733893557425) 31%, rgba(255,255,255,0.39399509803921573) 70%, rgba(255,255,255,0.007440476190476164) 90%);
        padding: 4vh;
        line-height: normal;
    }

    #text-presentation div{
        width: 90%;
        text-align: center;
        flex-flow: column;
        font-size: 2vh;
        color: #113D19;
        text-shadow: 0px 0px 2px rgba(255,255,255,1);
    }

    #question{
        font-size: 2.1vh;
    }
}