/* Police d'écriture et box-sizing pour tout */
* {
    box-sizing: border-box;
    font-family: "Roboto", sans-serif;
}

/* Declaration des variables */
:root {
    --main-color: #0c79e5;
    --BG: #2b2b2b;
    --SelectColor: #d18800;
}

/* Couleur sur la selection */
::selection {
    background-color: var(--SelectColor);
}

/* ScrollBar custom */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #00356e;
}

::-webkit-scrollbar-thumb {
    background: #b97900;
}

html {
    background-color: var(--BG);
    scroll-behavior: smooth;

}


@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

body {
    margin: 0;
    padding: 0;
    animation: fadeIn 1s;
}

/* Si le body n'est pas celui du home alors on mets un margin-top pour que la page prenne en compte la navigation bar */
body.body4NotHome {
    margin: 100px 0 0;
    padding: 0;
}

/* Style des liens */
a {
    text-decoration: none;
    color: var(--main-color);
}

a.sources {
    display: block;
    word-wrap: break-word;
}

/* Une flèche devant tout les a prc c'est cool*/
a.sources::before {
    content: "\021AA  ";
}

/* La bar de navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1;
    animation: navbar 1s ease-in-out;
}

@keyframes FromTheTop {
    from {
opacity: 0;    }
    to {
        opacity: 1;
    }
}

@keyframes navbar {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(0);
    }
}

nav > ul {
    margin: 0;
    padding: 0;
    background-image: linear-gradient(45deg, #0c79e5, #0054ab);
}

nav > ul > li {
    display: inline-block;
    margin: 0;
    padding: 0;
}

nav > ul > li > a {
    display: block;
    padding: 20px;
    text-decoration: none;
    color: #fff;
    border-radius: 5px;
}

nav > ul > li > a:hover {
    background-color: rgba(0, 0, 0, 0.12);
}

nav > ul {
    background-color: var(--main-color);
    list-style-type: none;
}

/* Style pour le checkbox */
nav > input {
    height: 100px;
    width: 100px;
    display: none;
}

/* Retirer la navigation bar quand on est en mode petit écran */
@media screen and (max-width: 1200px) {
    nav > ul > li {
        display: none;
    }

    nav > ul {
        position: absolute;
        width: 100%;
    }

    nav > input:checked + ul > li {
        display: block;
        animation: FromTheTop 0.5s;

    }

}

.homeTextColor {
    color: white;
}

/* Le bouton du menu */
.menu-btn {
    position: fixed;
    display: block;
    top: 40px;
    right: 40px;
    width: 40px;
    height: 40px;
    font-size: 10px;
    text-align: center;
    cursor: pointer;
    z-index: 3;
    visibility: hidden;
    animation: arrive-from-right 0.5s ease-in-out;
}

@keyframes arrive-from-right {
    from {
        transform: translateX(200%);
    }

    to {
        transform: translateX(0);
    }
}

/* Les bars du bouton du menu */
.bar {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 40px;
    height: 1px;
    background: #fff;
}

/* La bar du milieu du bouton du menu */
.bar.middle {
    top: 15px;
    opacity: 1;
}

/* La bar du bas du bouton du menu */
.bar.bottom {
    top: 30px;
    -webkit-transform-origin: left bottom;
    -ms-transform-origin: left bottom;
    transform-origin: left bottom;
}

/* Centre le logo */
.centerLogo {
    float: right;
    margin-right: 100px;
    font-size: 30px;
    color: white;
    margin-top: 5px;
}

li {
    color: white;
    font-size: 15px;
    font-family: 'roboto', sans-serif;
}

.home + iframe {
    width: 120vw;
    height: 80vh;
    border: none;
}


/* Titres et paragraphes */
h1 {
    text-align: center;
    color: #ffffff;
    font-size: 30px;
    font-weight: bold;
}

h2 {
    text-align: left;
    color: #ffffff;
    font-size: 24px;
    font-weight: bold;

}
.mainTitle{
    color: white; font-size: 50px; text-align: center;
}

h3 {
    text-align: left;
    color: #ffffff;
    font-size: 35px;
    font-weight: bold;
}

p {
    text-align: left;
    color: #ffffff;
    font-size: 15px;
}

/* Les embed sont utiliser pour jouer des sons lors d'un clique sur un élément.
Il joue le son quand il est display:block pour éviter que ce dernier soit visible on le mets loin sur la page
On a mis quelque EasterEgg avec des sons*/
embed#logobtc {
    display: none;
    visibility: hidden;
    position: absolute;
    top: -10000vh;
}

embed#bitcon {
    display: none;
    visibility: hidden;
    position: absolute;
    top: -10001vh;
}

img:active + embed#logobtc {
    display: block;
    visibility: hidden;
}

span:active + embed#bitcon {
    display: block;
    visibility: hidden;
}

.clickable {
    cursor: pointer;
}

.LogoNav{
    position: absolute; margin-left: 15px;
}

/* Le parallax du home */
.parallax {
    height: 100vh;
    font-size: 200%;
    overflow-x: hidden;
    overflow-y: auto;
    perspective: 300px; /* C'est la que la magie opère*/
}

.parallax .homeTextColor {
    position: absolute;
    left: 50%;
    top: 50%;
    text-align: center;
    transform: translate(-50%, -50%); /* centre l'element */
}

.parallax .g_main {
    z-index: 3;
}

.parallax .g_main .back {
    background: #212121;
}

.parallax .g_book {
    z-index: 4;
}

.parallax .g_book .main {
    background: #313131;
}

.parallax .g_planete {
    z-index: 3;
}

.parallax .g_planete .back {
    background: #21315a;
}

.parallax .g_blockchain {
    z-index: 3;
}

.parallax .g_blockchain .main {
    background: #283440;
}

.parallax .g_trad {
    z-index: 2;
}

.parallax .g_trad .back {
    background: #cccccc;
}

.parallax .groupe {
    position: relative;
    height: 120vh;
    transform-style: preserve-3d;
}

.parallax .groupe .layer {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

/* Disposition des layers dans le fond*/
.parallax .groupe .layer.front {
    transform: translateZ(90px) scale(0.7);
    z-index: 1;
}

.parallax .groupe .layer.main {
    transform: translateZ(0);
    z-index: 4;
}

.parallax .groupe .layer.back {
    transform: translateZ(-300px) scale(2.1);
    z-index: 3;
}

/* Repositionnement des images */
.g_blockchain .layer img.blockchain {
    margin-left: calc(50% - 400px);
    opacity: 0.4;
}

.g_book .layer img.livre {
    margin-left: calc(50% - 350px);
}
.livre{
    height: 100%; opacity: 0.4;
}
.ecohome {
    margin-left: calc(50% - 550px);
    height: 100%; opacity: 0.4;
}
.trading{
    width: 1920px; height: 1080px; opacity: 0.4;
}
.btchome {
    margin-left: calc(50% - 950px);
    width: 1920px; position: absolute; left: 0; opacity: 0.4;
}


/* Le bouton */
.btn {
    display: block;
    color: #fff;
    background-color: transparent;
    cursor: pointer;
    font-size: 0.5em;
    transition: background-color 0.2s;
    padding: 10px;
    margin: 10px;
}

.btn:hover {
    color: #fff;
    background-color: #0c79e5;
    cursor: pointer;
    font-size: 0.5em;

}

/* Style du footer */
#footer {
    text-align: center;
    color: #fff;
    margin-top: 10px;
    padding: 20px;
    background-image: linear-gradient(45deg, #0c79e5, #0054ab);
    font-size: 16px;
}

/* Style pour le tableau */
table {
    border-collapse: collapse;
    width: 80%;
    margin-left: 10%;
}

tr:nth-child(even) {
    background-color: #252525;
}

tr:nth-child(odd) {
    background-color: #202020;
}

th,
td {
    text-align: left;
    padding: 8px;
    color: white;
}

tr:hover {
    background-color: #313131;
}

th {
    background-image: linear-gradient(45deg, #0c79e5, #0054ab);
    color: white;
}

/* Style des logos dans le tableau */
.table-comparaison tbody tr > td > img {
    top: 15px;
    position: relative;
    width: 40px;
}

/* Style pour le main sauf celui du menu home (parallax) */
main {
    margin-left: 10%;
    width: 80%;
}

main.parallax {
    margin-left: 0;
    width: 100%;
}

/* Style pour le menu en mode téléphone */
@media screen and  (max-width: 1200px) {

    .navbar ul {
        position: relative;
        width: 25em;

    }

    .menu-btn {
        visibility: visible;

    }

    .centerLogo {

        margin-right: 40vw;
        font-size: 30px;
        color: white;
        margin-top: 5px;
    }
}

@media screen and  (max-width: 800px) {
    .navbar ul {
        position: fixed;
        flex-direction: column;
        justify-content: center;
        padding: 0 0 4em 0;
        top: 5em;
        right: -150%;
        height: 100vh;
        width: 100vw;
        background: #071831;
        transition: all .4s ease-in;

    }

    .navbar ul li {

        display: block;
        margin: 0 auto;
        opacity: 0;
        transition: opacity .4s;
        animation: fadeIn .4s ease-in;

    }
}

/* Centrer un element sur la page (text-align) */
.center {
    text-align: center;
}

caption {
    color: white;
}

iframe {
    border: 0;
}

.iframeHome{
    border: 0; width: 100%; height: 500px;
}

.w100{
    width: 100%;
    }