@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat&family=Roboto&display=swap');

/*Feuille de style principale*/
* {
    /*On met le box-sizing en border-box afin que tous les containers enfants soient contenus dans les containers parents*/
    box-sizing: border-box;
    /*Police du texte en "Monserrat, et si il y a un problème dans l'importation de cette police le texte sera en sans-serif*/
    font-family: 'Montserrat', sans-serif;
    color: black;
    /*Taille du texte en medium"*/
    margin: 0;
}

body {
    background-attachment:fixed;
    font-family: "Roboto";
    font-size: medium;
    display: flex;
    padding-left: 1
}

/*met l'image de fond en mode*/
#image_de_fond{
    background-attachment:fixed;
    background-image: url(../img/bitcoinLogoWallpaper.png);
}

main {
    box-shadow: 1px 1px 40px rgb(211, 188, 161);
    margin-top: 2%;
    background: white;
    position: relative;
    width: 60%;
    margin-left: 20%;
    margin-right: 20%;
    padding: 2%;
    border-radius: 20px;
    padding-left: 5vw;
    padding-right: 5vw;
}

h1 {
    text-align: center;
    background-color: #F7931A;
    color: white;
    padding: 0.5em;
    border-radius: 0.5em;
    margin-bottom: 4%;
    font-weight: bold;
}

h2 {
    text-align: left;
    margin-bottom: 3%;
}

p {
    text-align: justify;
    padding-bottom: 1em;
}

a {
    display: block;
}

/*classe pour sélectionner toutes les images qui sont dans le main sauf celle du logo du bitcoin*/
.main_img {
    display: block;
    margin: auto;
    border: 0.3em solid #066CDB;
    border-radius: 1em;
    width: 40vw;
    margin-bottom: 3%;
    margin-top: 3%;
}

/* Menu */

nav{
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

#menu {
    display: flex;
    position: fixed;
    z-index: 1;
    height: 98VH;
    min-width: 400px;
    width: 400px;
}


.menu {
    list-style-type: none;
}

#menu ul li.menu {
    text-align: left;
    margin-left: 2em;
}

#menu ul li.menu:first-child {
    margin-top: 1em;
}

li.menu {
    margin-top: 1em;
    padding: 0em;
    border-radius: 0.7em;
    margin-right: 1em;
    background: white;
    color: #F7931A;
}

li.menu:not(:hover){
    background: #F7931A;
}

a:hover {
    color: #F7931A;
}

#menu > ul {
    background: #F7931A;
    border-top-right-radius: 1em;
    border-bottom-right-radius: 1em;
    width: 4em;
}

/*Taille du menu quand il est déplié (quand le bouton est appuyé)*/
input[type="checkbox"]:checked + label + #menu > ul{
    height: 98VH;
    min-width: 25em;
    max-width: 25em;
    box-shadow: 3px 3px 15px rgb(224, 224, 224);
}


li.menu:hover > a {
    transition:opacity 2s;
    background: transparent;
    color:  #F7931A;
    /*transition de 0.5*/
    transition: background 0.5s;
}

li.menu a {
    display: none;
    padding: 1em;
    color: white;
    background:  #F7931A;
    text-decoration: none;
    text-align: center;
    /*transition de 0.5*/
    transition: background 0.5s;
}

/*met le menu en display flex quand le bouton est coché, le menu est maintenant visible*/
input[type="checkbox"]:checked + label + #menu > ul > li.menu a{
    display: flex;
}

#logobitcoin {
    position: relative;
    float: right;
    padding: 0 1em;
}

#logobitcoin > img {
    width: 8em;
    border-width: 0;
}

#logobitcoin > p {
    text-align: center;
}

#logobitcoin + h2 + p{
    margin-bottom: 3em;
}

cite a {
    width: 50%;
    margin: 0 25%;
}

/*bouton menu*/

#image_bouton {
    left: 0;
    position: fixed;
    /*z-index en 2 pour qu'il passe devant le menu*/
    z-index: 2;
    width: 3em;
    background-color: #F7931A;
    border-width: 0;
}

#bouton{
    display: none;
}

label:hover{
    cursor: pointer;
}

label > img{
    margin-left: 0.5em;
    margin-top: 0.5em;
}

main a:last-child#haut_page{
    text-align: center;
}