/**
 * Feuille de style principale
 *
 * @author Aurélien Monnat
 * @since 03.06.2024
 */

/*Je définis la couleur de fond et de texte du body*/
body {
    background-color: #387595;
    color: black;
    font-family: Arial, Helvetica, sans-serif;
    min-height: 98vh;
    width: 99vw;
    justify-content: center;
    display: flex;
    flex-direction: column;
    cursor: url('../images/ball.png'), default;
    overflow-x: hidden;
}

a, button {
    text-decoration: none;
    color: black;
}

button:not(.OngletActif):hover,
button:hover, a:hover, .lien {
    cursor: url('../images/opened.png') 15 15, pointer;
}


/*---------------------------------------------------
Preloader                                           |
---------------------------------------------------*/

/*je définis l'affichage du preloader tout devant, qu'il prenne
toute la page, que sont contenu soit centré et son fond une animation*/
.preloader {
    z-index: 100;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    animation: fond-preload 2345ms normal;
}

/*Je définis une animation qui rend le background de blanc a transparent*/
@keyframes fond-preload {
    0%, 50% {
        background-color: #ffffff;
    }

    100% {
        background-color: rgba(255, 255, 255, 0.1);
    }
}


/*Je définis l'affichage de ma pokéball*/
.pokeball {
    height: 250px;
    width: 250px;
    border: 7px solid rgb(49, 49, 49);
    border-radius: 50%;
    background-image: linear-gradient(#f51939 125px,
    white 125px);
    position: relative;
    animation: load 1.25s infinite;
}

/*Je définis encore des éléments de la pokéball grace au ::before.
  Ici, il s'agit de la bare grise au milieu*/
.pokeball::before {
    position: absolute;
    content: "";
    height: 15px;
    width: 255px;
    background-color: #313131;
    top: 117px;
    right: 0;
}

/*Je définis encore des éléments de la pokéball grace au ::after.
  Ici, il s'agit des cercles au centre*/
.pokeball::after {
    position: absolute;
    content: "";
    height: 90px;
    width: 90px;
    background-image: radial-gradient(#ffffff 0px, #ffffff 10px,
    #313131 5px, #313131 15px,
    #ffffff 15px, #ffffff 32px,
    #313131 32px);

    border-radius: 50%;
    top: 80px;
    left: 80px;
}

/*Je crée l'animation de rapetissement et de rotation de la pokeball*/
@keyframes load {
    50% {
        transform: scale(0.7);
    }

    60% {
        transform: rotate(-360deg);
    }
}


/*---------------------------------------------------
Header                                              |
---------------------------------------------------*/
#entete {
    display: flex;
    margin: 15px auto 25px auto;
}

#logo {
    margin-left: auto;
    margin-right: auto;
    height: 100px;
}

.menu {
    border-top: 1px solid black;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    width: 100%;
}

.menu > button {
    background-color: rgba(173, 173, 173, 0.348);
    width: 16.66%;
    max-width: 100%;
    text-align: center;
    transition: 0.75s;
    padding-top: 1em;
    padding-bottom: 1em;
}

.menu > button:not(.OngletActif):hover {
    background-color: white;
}

button.OngletActif {
    background-color: rgba(62, 62, 62, 0.764);
    color: white;
    pointer-events: none;
    transition: 0.75s;
}

.contenu {
    display: block;
    text-align: justify;
    font-size: 16pt;
    font-weight: 100;
    width: 65%;
    margin: 25px auto;
    background-color: #6d9fc2;
    padding: 20px;
    border-radius: 50px;
}

.debut {
    text-decoration: underline;
    text-align: center;
}

.lien {
    text-decoration: underline;
    color: aqua;
}


/*---------------------------------------------------
Footer                                              |
---------------------------------------------------*/

footer {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-top: auto;
    position: static;
    right: 0;
    left: 0;
    display: flex;
    align-items: center;
    z-index: 1;
}

#footer {
    border-top: 1px solid black;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    margin-top: auto;
    position: static;
    right: 0;
    left: 0;
    display: flex;
    align-items: center;
    z-index: 1;
}


.logoInsta {
    padding-right: 15px;
    width: 70%;
}

#discord.logoInsta {
    width: 40%;
}

#copyright {
    color: #ffffff;
    padding-left: 30px;
    text-align: left;
    width: 400%;
}


.noBord {
    border-top: none;
    transition: 1s;
}
