@font-face{
    font-family: "Open-Sans";
    src : url("../fonts/OpenSans-VariableFont_wdth,wght.ttf");
}

@font-face{
    font-family: "Bitcoin";
    src : url("../fonts/Bitcoin.otf");
}

:root{
    --text_titre_color: #000066;
    --text_color: #000066; 
    --fond_color: #8ca6d9; 
    --text_menu_color : #ffffff;
    --border_menu_color : var(--fond_logo_color);
    --bouton_hover_color : #f3cf59;
    --fond_menu_color : var(--fond_color);
    --fond_logo_color : #e0b629  ;
    --bouton_color : var(--fond_logo_color);
}
*{
    padding: 0px;
    font-size: 18px;
}

body{
    background-color: var(--fond_color);
    display: flex;
    flex-flow: column wrap;
    font-family:"Open-Sans", sans-serif;
    color: var(--text_color);
    margin: 0px;
    background-attachment: fixed;
}

main{
    padding: 5px;
    border-radius: 10px;
    min-height: 80vh;
    margin: 17vh auto;
    width: 70%;
    text-align: justify
}

header{
    position: relative;
    display: flex;
    flex-flow: column;
    align-content: space-between;
}

@keyframes rotation {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(375deg);
  }
}

#logo{
    font-family: "Bitcoin";
    position: absolute;
    font-size: 8vh;
    top :1.4%;
    left: 4%;
    color: white;
    background-color: var(--fond_logo_color);
    padding: 0.5vh 3vh;
    border-radius: 6vh;
    position: fixed;
    animation-name: rotation;
    animation-duration: 0.8s;
    transform: rotate(15deg);
    transition-timing-function: ease-out;
}

#fond_header{
    position: fixed;
    z-index: 11;
    width: 100%;
    height: 14vh;
    background-color: var(--fond_color);
}

h1{
    margin: 4vh 20%;
    position: fixed;
    font-size: 4vh;
    color: var(--text_titre_color);
}

h2{
    font-size: 3vh;
}

nav {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    margin-bottom: 2%;
    padding: 5px 0px;
    position: fixed;
    top: 13vh;
    width: 100%;
    background-color : var(--fond_menu_color);
    border-top: hidden var(--border_menu_color) 2px;
    border-bottom: solid var(--border_menu_color) 3px;
    border-radius: 0px;
}

nav a {
    text-decoration: none;
    padding: 2px 10px;
    border-radius: 4px;
    background-color: var(--bouton_color);
    color: var(--text_menu_color);
}

nav a:hover{
    background-color: var(--bouton_hover_color);
    transition-duration: 0.2s; 
}

@keyframes elargissement {
  from {
    width: 0%;
  }
  to {
    width: 100%;
  }
}

hr{
    border-color: var(--detail_color);
    animation-name: elargissement;
    animation-duration: 1s;
    border-color: var(--border_menu_color);
    border-style: solid;
}

.nomics-ticker-widget{
    min-width: 90px;
}

p{
    margin-bottom: 12px;
}

img{
    width: 100%;
}

#graphique{
    width: 70%;
    margin: 0px auto;
    z-index: 0;
}

main a:visited{
    color :#dab22f
}

@media screen and (max-width: 850px) {
    main{
        margin-top: 12vh;
    }
    #fond_header{
        border-bottom: solid var(--border_menu_color);
    }
    h1{
        margin-left: 35%;
    }
    nav a:last-child{
        margin-bottom: 0px;
    }
    #logo{
        position: relative;
    }
    #logo div::before{
        content: "";
        font-size: 8vh;
    }
    #logo:hover {
        transform: rotate(375deg);
        transition-duration: 0.5s;
    }
    #cadre_logo{
        padding: 1vw 3vw;
        top :1.4%;
        left: 4%;
        color: white;
        position: fixed;
        border-radius: 40px 40px 0px 0px
    } 
    nav{
        display: none;
        flex-direction: column;
        top: 13vh;
    }
    nav a{
        width: 80%;
        margin: auto;
        margin-bottom: 2vh;
    }
    @keyframes deroulement {
        from {
            
            height: 0px;
        }
        to {
            height: 210px;
        }
    }
    #logo_large:hover nav{
        display: flex; 
        animation-name:  deroulement;
        animation-duration: .5s;
        overflow: hidden;
    }
    #graphique{
        margin: 0px 0px;
    }
}