body{
    background-color: rgb(2, 55, 105);
    font-family: "Verdana", sans-serif;
    margin: auto;
}
#contenu{
    margin-left: 5%;
    margin-right: 5%;
    margin-top: 0;
    background-color: rgb(210,222,236);
}

/* Menu */
nav{
    width: 55%;
}
nav ul{
    display: flex;
    flex-direction: row;
    background-color: rgba(62, 56, 56, 0.7);
    border-radius: 10px 0 0 10px;
    margin-right: 0;
}
nav li{
    font-family: 'kingthings_calligraphica_2Rg', cursive;
    font-size: 1.5em;
    list-style: none;
    padding: 4%;
    display: inline-block;
}
nav a{
    text-decoration: none;
    color: rgb(255,255,255);
}
nav a:hover, h1 a:hover{
    color: rgb(248,211,192);
    transition: all 0.5s;
}
header{
    background-image: url(../images/banniere.jpg);
    background-repeat: no-repeat;
    height: 400px;
    background-color: rgba(0,0,0,0.7);
    color: white;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}
header a{
    color: rgb(255,255,255);
    text-decoration: none;
}
h1{
    font-family: 'kingthings_calligraphica_2Rg', cursive;
    font-size: 3em;
    margin-left: 2%;
}
/* Corps */
h2{
    font-family: 'kingthings_calligraphica_2Rg', cursive;
    text-align: center;
    font-size: 1.5em;
}
h3{
    color: rgba(0,0,0,0.7);
    box-shadow: 6px 6px 6px rgba(62, 56, 56, 0.7);
    transition: all 0.5s ease-out;
    padding: 1%;
}
h3:hover{
    background-color: rgba(62, 56, 56, 0.7);
    color: rgb(255,255,255);
    box-shadow: 6px 6px 6px rgba(255,255,255,0.7);
}
div{
    padding: 1%;
}
a{
    color: rgb(2, 55, 105);
    text-decoration: none;
}

/* Font family */
@font-face {
    font-family: 'kingthings_calligraphica_2Rg';
    src: url('Kingthings_Calligraphica_2-webfont.eot');
    src: url('Kingthings_Calligraphica_2-webfont.eot?#iefix') format('embedded-opentype'),
         url('Kingthings_Calligraphica_2-webfont.woff') format('woff'),
         url('Kingthings_Calligraphica_2-webfont.ttf') format('truetype'),
         url('Kingthings_Calligraphica_2-webfont.svg#kingthings_calligraphica_2Rg') format('svg');
    font-weight: normal;
    font-style: normal;
}

/* Justify */
.justify{
    text-align: justify;
}

/* Float */
.float{
    float: left;
    font-weight: bold;
    margin-right: 1%;
    padding-left: 1%;
}
.clear{
    clear: both;
}

/* Flex */
.flex{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    flex-wrap: wrap;
}

/* Images */
figcaption{
    text-align: center;
    padding-top: 1%;
}
#imgdev{
    height: 210px;
}
.SNS{
    width: 40px;
}
.sakura{
    width: 400px;
}
.sakura figcaption{
    text-align: left;
}

/* Sections */
section{
    padding: 2%;
}

/* Footer */
footer{
    background-color: rgba(34, 32, 32, 0.7);
    color: white;
    text-align: center;
    padding: 1%;
    margin: auto;
}
/* Formulaire de contact */
form{
    display: flex;
    flex-direction: column;
    align-items: center;
}
label, input, textarea{
    padding: 1%;
}
label{
    text-align: left;
}
textarea{
    height: 200px;
}
input, textarea{
    width: 50%;
    border: solid 1px rgb(2, 55, 105);
    border-radius: 0 15px 0 15px;
}
#envoyer{
    margin-top: 1%;
    position: relative;
    left: 21%;
    width: 10%;
}
#cacher{
    display: none;
}
/* Media Queries */
@media all and (orientation: portrait){
    body{
        font-size: 1.2em;
    }
    #contenu{
        margin: 0;
    }
    h1{
        font-size: 4em;
        margin-left: 0;
    }
    header, nav ul{
        flex-direction: column;
    }
    header{
        justify-content: flex-start;
        align-items: center;
        height: auto;
    }
    nav ul{
        background-color: inherit;
        text-align: center;
        margin: 0;
        padding: 0;
    }
    nav li{
        font-family: sans-serif;
    }
    .flex{
        flex-direction: column;
        align-items: center;
    }
    label, input, textarea{
        width: 100%;
        font-size: 1em;
    }
    textarea{
        font-size: 1.3em;
        height: 300px;
    }
    #envoyer{
        width: auto;
        left: 39%;
    }
    h2{
        font-size: 2em;
        font-family: sans-serif;
    }
    h3{
        font-size: 1.5em;
    }
    .SNS{
        width: 80px;
    }
    #cacher{
        display: block;
        width: 50px;
        height: 50px;
        position: absolute;
        top: 0;
        right: 0;
        background-color: rgba(255,255,255,0.8);
        border: none;
        margin: 1%;
    }
    nav{
        display: none;
    }
    div{
        padding: auto;
        margin: auto;
    }
    .sakura{
        width: 100%;
    }
}