body{
    background-image: url("../img/briques.jpg") ;
    background-position: 15% 10%;
    background-size: cover;
    background-repeat: no-repeat;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    margin:0;
    flex-flow: column;
    min-height: 100vh;
}
header{
    text-align: center;
}
h1{
    color:rgb(245, 8, 8) ;
}
main{
    display: flex;
    flex-flow: column;
}
.navbar{ /*mise en page de la barre de menu*/
    width: 100%;
    background-color:rgb(152, 63, 15) ;
    overflow: auto;
    margin: 0 auto;
}
.navbar a {
    text-align: center;
    color: white;
    text-decoration: none;
    font-size: 17px;
    padding: 1em;
}
.navbar a:hover{
    background-color: white;
    color: rgb(152, 63, 15);
    transition-duration: 0.5s;
}
nav ul {
    list-style-type: none;
    display: -webkit-flex ;
    display: flex;
    justify-content: center;
    padding-left: 0;
    margin: auto;
}
nav ul li a{
    display: block;
}
nav ul li{
    flex: 1 1 1%;
    border-right:1px solid white; 
}
nav ul li:last-child{
    border-right: none;
}
main{
    padding: 1em;
    display: flex;
    flex-flow: row wrap;
    gap: 5px;
}
main > section{
    padding: 1em;
    flex: 1;
    flex-basis: 100%;
}
section > form{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-flow: column;
    color: black;
    background-color: bisque;
    border-radius: 15px;
    margin-left: auto;
    margin-right: auto;
    width: 40%;
} 

input, textarea, label{
    margin: 0.5em 0 0.5em 0;
    font-size: 16px;
}
textarea{
    padding: 0 4px 0 4px;
    font-size: 24px;
    text-align: center;
    border-radius: 8px 0 8px 0;
}
.submit{
    padding: 0.75em;
    font-size: 14px;
    border:2px solid rgb(152, 63, 15) ;
    border-radius: 8px;
    cursor: pointer;
    width: 130px;
}
.submit:hover{
    background-color: rgb(25, 174, 25);
    color: white;
}
.tableau {
    width: 40%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 2em;
    background-color: bisque;
    text-align: center;
}
.message{
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: rgb(245, 8, 8);
    text-align: center;
}
.message p{
    background-color: bisque;
    padding: 0.5em;
}

@media screen and (max-width:600px){
    main{
        display: block;
        margin: 0;
    }
    nav ul{
        justify-content: space-around;
        text-align: center;
        align-items: center;
        flex: 1;
        flex-flow: column;
        text-align: center;  
    }
    nav ul li a{
        border-top: 1px solid white;  
        width: 100vw;
    }
    section > form{
        width: 100%;
    }
    footer{
        position: relative;
        bottom: 0;
    }
}

