:root {
    /* font-family: "Titillium Web", Arial, sans-serif; */
    font-family: Optima,Segoe,Segoe UI,Candara,Calibri,Arial,sans-serif; 
    /* Définition de variables de couleur pour les réutiliser tout le long du css*/
    --couleur-gen: #F7931A;
    scroll-behavior:smooth;
}

body,
header,
main {
    border: 0;
    margin: 0;
}

main{
    width:70vw;
    margin:auto;
    z-index:500;
}

html,
body {
    background-color: #202027;
}

footer {
    /* height: 50%;
    width: 100%; */
    padding-top: 15vh;
}

#color {
    position: fixed;
    background: #202027;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
}

nav {
    z-index: 999;
}


#svg {
    margin:0;
    margin-top: 25px;
    width: 100%;
    position: relative;
}

#copyright {
    position: relative;
    bottom:40px;
    color: white;
    /* bottom: 30px; */
}


h1:nth-of-type(1) {
    padding-top: 10%;
}

h1:nth-of-type(2) {
    padding-top: 15%;
}

h1 {
    margin-top: 0;
    position: relative;
    text-align: center;
    color: var(--couleur-gen);
}

iframe {
    position: relative;
    width: 100%;
    height: 200px;
    /* Redéfinition de la border pour l'iframe*/
    border: 1px solid rgba(0, 0, 0, 0.075);
}

#iframelight {
    display: none;
}

#iframebtc {
    margin:auto;
    width: 55vw;
}

header {
    padding-bottom: 100px;
}

#logopng {
    width: 100%;

    max-width: 400px;
    min-width: 200px;
}


/* Barre de navigation */

nav {
    border-top: solid;
    border-color:  var(--couleur-gen);
    width: 100%;
    margin: 0;
    position: sticky;
    top: 5px;
    display:flex;
    width:55vw;
    display:block;
    margin:auto;
}

#Menu {
    display: flex;
    margin: 0px;
    margin-top: 15px;
    padding-left: 40px;
    height: 50px;
    border-top: solid #232937 1px;
    border-bottom: solid #232937 1px;
    padding-bottom: 10px;
}

.petitmenu a {
    text-decoration: none;
    color: var(--couleur-gen)
}

ul[id="Menu"] li.grosmenu>a {
    text-decoration: none;
    display: inline-block;
    height: 30px;
    width: 100px;
    position: relative;
    /* top:-2px; */
    color: var(--couleur-gen);
    text-align: left;
    padding: 10px;
    font-size: 17px;
    margin-left: -7px;
    line-height: 17px;
    cursor: pointer;
}

ul[id="Menu"] li a:hover {
    transition: opacity 0.2s linear;
}

ul[id="Menu"] li a:hover {
    opacity: 50%;
    border-radius: 0px;
}

ul[id="Menu"] li {
    display: inline;
    border-radius: 0;
}

ul[id="Menu"] li.grosmenu>a::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 40px;
    width: 8px;
    height: 5px;
    /* -webkit-transform: translateY(-50%);
    transform: translateY(-50%); */
    background: url(../img/Icon_arrow_down.svg) no-repeat;
    transition: transform .2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

ul[id="Menu"] li :hover:after {
    transform: rotate(180deg);
}

.sousmenu {
    z-index: 1000;
    opacity: 0;
    transition: transform .2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: scale(1, 0);
    display: flex;
    padding: 0;
    padding-top: 10px;
    position: absolute;
    color: var(--couleur-gen);
    font-size: 12px;
    line-height: 15px;
    text-align: left;
}

#Menu li:hover .sousmenu {
    opacity: 1;
    transform: scale(1, 1);
    flex-direction: column;
}

.sousmenu li {
    margin-bottom: 2px;
    padding: 10px;
    background-color: #f7941a15;
    border: 1px solid transparent;
    border-radius: 10px !important;
}



/* Style du main et de ses container */

#description {
    font-size: 20px;
    transition: transform 1s ease-in-out;
}


.container {
    position:relative;
    transition:transform 1s ease-in-out;
    width:55vw;
    margin-bottom:50px;
    margin-left:25vw;
    padding:40px;
    display: flex;  
    background:#232937;
    color:white;
    margin:auto;
    box-shadow:10px 5px 5px rgba(0, 0, 0, 0.2) ;
    margin-top:50px;
    z-index:999;
}

.container1 {
    margin-bottom:50px;
    transition:transform 1s ease-in-out;
    width:55vw;
    margin-left:25vw;
    padding:40px;
    display: flex;  
    font-size:1.2em;
    flex-direction: column;
    background:#232937;
    color:white;
    position:relative;
    z-index:999;
    margin:auto;
    margin-top:50px;
    box-shadow:10px 5px 5px rgba(0, 0, 0, 0.2) ;
}

#logobitcoin{
    width: 10%;
    min-width: 75px;
    margin-left: 10%;
    margin-top: 6%;
    border-radius:50%;
    transition: transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);

}




#circulation {
    margin-bottom:5vh;
}

#courbe{
    width:70%;
    /* Pour centrer l'image on utiliser les arguments 'auto' aux margin horizontales */
    margin-right:auto;
    margin-left:auto;
}

.container:hover,
.container1:hover {
    opacity: 0.9;
    transform: scale(1.1);
}

.container:hover #logobitcoin {
    transform: rotate(360deg);
}

/* Définition de la décoration des liens cliquables*/
a {
    color: inherit;
    font-weight: bold;
}

/* Faire en sorte qu'il ne change pas de couleur lorsque celui ci a déjà été cliqué*/
a:visited {
    color: inherit;
}


/* Soleil et Lune cliquable pour changer du mode sombre au mode clair */
#mode {
    display: none;
}

#lbmode {
    position: absolute;
    margin-left: 70vw;
    margin-top: 100px;
    cursor: pointer;
    transition: transform 0.5s ease-in-out;
    z-index: 9999;
}

#toogle {
    position: relative;
    height: 50px;
    width: 50px;
    position: absolute;
    background: #202027;
    z-index: 999;
    display: block;
}

#circle {
    display: block;
    height: 50px;
    width: 50px;
    border-radius: 50% 50%;
    background: var(--couleur-gen);
}

#circle2 {
    display: block;
    position: absolute;
    height: 35px;
    width: 35px;
    border-radius: 50% 50%;
    background: #202027;
    transition: transform 0.5s ease-in-out;
}

.s {
    position: relative;
    display: block;
    background: var(--couleur-gen);
    border-radius: 50%;
    width: 15px;
    height: 5px;
    transform: translate(0, 0) scale(0);
    transition: transform 0.5s ease-in-out;
}


#mode:checked~#lbmode #toggle #circle #s1 {
    transform: translate(41px, 45px) rotate(45deg) scale(1);
}

#mode:checked~#lbmode #toggle #circle #s2 {
    transform: translate(17px, 50px) rotate(90deg) scale(1);
}

#mode:checked~#lbmode #toggle #circle #s3 {
    transform: translate(-6px, 35px) rotate(-45deg) scale(1);
}

#mode:checked~#lbmode #toggle #circle #s4 {
    transform: translate(-15px, 8px) scale(1);
}

#mode:checked~#lbmode #toggle #circle #s5 {
    transform: translate(50px, 3px) scale(1);
}

#mode:checked~#lbmode #toggle #circle #s6 {
    transform: translate(17px, -35px) rotate(90deg) scale(1);
}

#mode:checked~#lbmode #toggle #circle #s7 {
    transform: translate(42px, -30px) rotate(-45deg) scale(1);
}

#mode:checked~#lbmode #toggle #circle #s8 {
    transform: translate(-7px, -35px) rotate(45deg) scale(1);
}

#mode:checked~#lbmode {
    transform: rotate(180deg) scale(1.05);
}

#mode:checked~#lbmode #toggle #circle2 {
    background: white;
    transform: scale(0);
}

#mode:checked~#color,
#mode:checked~header,
#mode:checked~#lbmode {
    background: white;
}

#mode:checked~footer {
    background: transparent;
    z-index: -1;
}

#mode:checked~main .container,
#mode:checked~main .container1 {
    background: white;
    color: black;
    box-shadow: 20px 10px 25px 5px rgb(139 139 139 / 40%);
}

#mode:checked~main #iframedark {
    display: none;
}

#mode:checked~main #iframelight {
    display: inline-block;
}

#mode:checked~main #svg {
    background-color: white;
}

#mode:checked+label #infobulle {
    display: none;

}


/* Définition des svg qui sont dans le background pour donner un univers au site */

.svg {
    position: absolute;
}

#svg1 {
    top: 800px;
    left: -540px;
    color: #9D9D9D;
    z-index: auto;
    transform: rotate(-90deg);
}


#svg2 {
    position: relative;
    clear: right;
    float: right;
    top: 700px;
    left: 800px;
    color: #9D9D9D;
    z-index: auto;
    transform: rotate(-90deg) scaleY(-1);
}


#svg3 {
    display: block;
    position: relative;
    margin-left: auto;
    margin-right: auto;
    width: 30%;
    margin-top: -150px;
    margin-bottom: -100px;
    min-width: 300px;
}

/* Infobulle qui averti l'utilisateur qu'il pleut cliquer sur la lune pour cahgner le mode du site internet */
#infobulle {
    color: white;
    z-index: 9999;
    position: absolute;
    min-width: 200px;
    width: min-content;
    padding: 5px;
    font-size: 0.8em;
    border-radius: 15px;
    left: -13vw;
    animation: infobulle 4s cubic-bezier(0.65, -0.51, 0, 2.13) infinite;
    border: 1px solid white;
    background: #202027c4;
}


/* Animation de l'infobulle pour que celle ci apparaisse et disparaisse en continue pour donner envie à l'utilisateur de cliquer */
@keyframes infobulle {

    from {
        display: block;
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}