/******************GENERAL******************/

/*Réinitialisation des marges, du padding et utilisation de la box-sizing border-box pour tous les éléments */

*,
::after
*::before {
    margin: 0;
    padding: 0;
    box-sizing: border-box;

}

/* Import des polices Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@700&family=Pixelify+Sans&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Calligraffitti&family=Dancing+Script:wght@700&family=Pixelify+Sans&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Calligraffitti&family=Dancing+Script:wght@700&family=Notable&family=Pixelify+Sans&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Calligraffitti&family=Dancing+Script:wght@700&family=Notable&family=Nova+Square&family=Pixelify+Sans&display=swap');

/* Style général du corps de la page */
body {
    padding: 0;
    margin: 0;
    font-family: 'Dancing Script', cursive;
    background-image: url(Img/space.jpg);
    background-size:cover;
    background-attachment: fixed;
    cursor: url("img/aiguille.png"), auto;
/*Provenance de l'îcone du curseur :"https://www.flaticon.com/fr/icones-gratuites/clic-de-souris", créées par Awicon - Flaticon*/

}

/*Définit la position verticale du header*/
header {  
    margin: 5px;
    margin-bottom: 520px;
}

/*position et style du texte des textes contenus dans div et des sections d'analogie*/
div {
    margin-left: auto;
    margin-right: auto;
    color: aliceblue;
    font-size: xx-large;

}

/*caractéristiques du titre h1*/
h1 {
    text-transform: uppercase;
    font-weight: bold;
    margin: 50px 0;
    padding: 0;
    text-align: center;

}

/*position du titre h2*/
h2 {
    margin: 0;
    padding: 0;
    text-align: center;

}

/*caractéristiques des titres h4 de sections d'analogie*/
h4 {
    font-family: 'Notable', sans-serif;
    background: linear-gradient(225deg, #c625d0 0%, #26caf8 50%, #27d86c 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/*caractéristiques du titre h5 des mentions légales*/
h5{
    margin: 0;
    padding: 0;
    text-align: center;
    font-size: xx-large;
}

/*positionnement et fond noir du footer*/
footer{
    background-color: black;
    padding: 10px;
}

/*réinitialisation des marges et du padding*/
.bottom{
    margin: 0;
    padding: 0;
}

/********SCROLLBAR*********/

/*définition de la largeur de la scrollbar*/
::-webkit-scrollbar {
    width: 12px;

}

/*personalisation du bouton de scroll*/
::-webkit-scrollbar-thumb {
    background: linear-gradient(225deg, #c625d0 0%, #26caf8 50%, #27d86c 100%);
    border-radius: 10px;
    transition: background-color 1s;
}

/*personalisation du fond de la scrollbar*/
::-webkit-scrollbar-track {
    background-color: black;
}

/*apparition d'une ombre sur le bouton de scroll au passage de la souris (se voit pas beaucoup...) */
::-webkit-scrollbar-thumb:hover {
    box-shadow: 10px -10px 25px 0 rgba(143, 64, 248, .99), -10px 10px 25px 0 rgba(39, 200, 255, .99)
}


/********IMAGE DU MENU*********/

/*personalisation de l'apparition des images qui apparaissent au passage de la souris sur les boutons du menu*/
img {
    max-width: 650px;
    max-height: 350px;
    position: relative;
    left: 650px;
    bottom: -70px;
    border: solid 6px #26caf7;
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    animation: float 3s infinite;
}


/***********MENU*************/

/*suppression de l'apparance de liste et définition des marges et du padding du menu*/
ul {
    list-style-type: none;
    margin-left: 100px;
    margin-right: 15px;
    padding: 15px;
}

/*personnalisation de l'apparence des liens des boutons du menu*/
a {
    text-decoration: none;
    color: rgb(255, 255, 255);

}

/*ajustement de la position du menu de haut de page*/
.menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    padding: 15px;
    width: 90%;
    z-index: 1000;
}

/*ajustement de l'apparence des boutons*/
button {
    font-family: 'Nova Square', sans-serif;
    width: 160px;
    display: inline-block;
    background: transparent;
    border: none;
    color: rgb(255, 255, 255);
    margin: 10px;
    padding: 10px 20px;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    font-size: 1.5rem;
    transition: all .2s;
    z-index: 2;
    cursor: url("img/aiguille2.png"), auto;

}
/*ajout de contenu de couleur aux boutons*/
button::after {
    content: "";
    width: 400px;
    height: 400px;
    background: linear-gradient(225deg, #27d86c 0%, #26caf8 50%, #c625d0 100%);
    position: absolute;
    top: -10px;
    left: -120px;
    z-index: -1;
    transition: all .5s;

}

/*ajout d'un effet de rotation accompagnant cet élément lors de son survol par la souris*/
button:hover::after {
    transform: rotate(150deg);
}

/*ajout d'un effet de couleur lors du passage de la souris sur les boutons*/
button:hover {
    transform: translate(0, -6px);
    box-shadow: 10px -10px 25px 0 rgba(143, 64, 248, .50), -10px 10px 25px 0 rgba(39, 200, 255, .50);

}

.content {
    position: relative;
    padding-top: 60px;
}

/*apparence et positionnement du bouton de mentions légales*/
.BdePage {
    font-family: 'Nova Square', sans-serif;
    width: 250px;
    display: inline-block;
    background: transparent;
    border: none;
    color: rgb(255, 255, 255);
    margin: 10px;
    padding: 10px 20px;
    position: relative;
    left: 820px;
    overflow: hidden;
    border-radius: 20px;
    font-size: 1.5rem;
    transition: all .2s;
    z-index: 2;
    cursor: url("img/aiguille2.png"), auto;

}

/*ajout de contenu de couleur au bouton*/
.BdePage::after {
    content: "";
    width: 600px;
    height: 600px;
    background: linear-gradient(225deg, #27d86c 0%, #26caf8 50%, #c625d0 100%);
    position: absolute;
    top: -25px;
    left: -170px;
    z-index: -1;
    transition: all .5s;
}

/***************SECTIONS**************/

/*ajustement du positionnement des boites de textes des sections d'analogies*/

article {
    padding: 20px;
    width: 50%;
    margin-left: 100px;
    display: flex;
    flex-direction: column;
    border: solid 6px #26caf7;
    border-radius: 10px;
    box-shadow: 0px -10px 30px 0 rgba(41, 214, 107), 0px 10px 30px 0 rgba(38, 202, 247);
    animation: float 3s infinite;

}


/*personalisation du texte des sections d'analogies*/
section {
    color: white;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: 2rem;

}

/*fond noir derrière le texte*/
.objet {
    background-color: hsl(0, 0%, 0%, 70%);
}

/*paramètres de l'image de fond de la section d'analogie couleur*/
#couleur {
    background-image: url("img/violet.jpg");
    min-height: 500px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/*paramètres de l'image de fond de la section d'analogie paysage*/
#paysage {
    background-image: url(img/mer.jpg);
    min-height: 500px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/*paramètres de l'image de fond de la section d'analogie saison*/
#saison {
    background-image: url(img/automne.jpg);
    min-height: 500px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/*paramètres de l'image de fond de la section d'analogie film*/
#film {
    background-image: url(img/star\ wars\ 3.jpg);
    min-height: 500px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/*paramètres de l'image de fond de la section d'analogie jeu*/
#jeu {
    font-family: 'Pixelify Sans', sans-serif;
    background-image: url(img/zelda\ tp.jpg);
    min-height: 500px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/*paramètres de l'image de fond de la section d'analogie manga*/
#manga {
    background-image: url(img/berserk2.jpg);
    min-height: 500px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/*paramètres de l'image de fond de la section d'analogie element*/
#element {
    background-image: url(img/feu.jpg);
    min-height: 500px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/*paramètres de l'animation de "flottement" des boites de texte des sections d'analogies*/

@keyframes float {
    0% {
        box-shadow: 0 15px 20px 10px rgba(38, 202, 247), 0 0 20px rgb(41, 214, 107);

        transform: translateY(0px);
    }

    50% {
        box-shadow: 0 25px 30px 5px rgba(38, 202, 247), 0 0 30px rgb(41, 214, 107);

        transform: translateY(20px);
    }

    100% {
        box-shadow: 0 15px 20px 10px rgba(38, 202, 247), 0 0 20px rgb(41, 214, 107);

        transform: translateY(0px);
    }
}


/***************FORMULAIRE**************/

/*apparence et positionnement de la boite contenant le formulaire*/
form {
    border: solid 6px #26caf8;
    border-radius: 10px;
    background-color: rgb(0, 0, 0, 80%);
    margin: 0;
    padding: 10px;
    padding-bottom: 35px;
    width: 700px;
    height: 650px;
  
}

/*apparence et positionnement des textes "p" dans le formulaire */
form p{
    position: relative;
    top: -15px;
    font-size: larger;
    text-align: center;
    margin:0;
    padding: 0%;
}

/*apparence et positionnement du titre h3 du formulaire */
h3 {
    font-family: 'Notable', sans-serif;
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 0;
    margin-bottom: 0;

/*paramètre spécifique à la couleur du titre h3 du formulaire */
    background: linear-gradient(225deg, #c625d0 0%, #26caf8 50%, #27d86c 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

}

/*apparence et positionnement des étiquettes label des champs à remplir*/
label {
    color: white;
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
    margin: 0;
}

/*apparence et positionnement des champs à remplir*/
input {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 5px;
    margin-bottom: 0;
    padding: 0;
    height: 40px;
    width: 80%;

    border: solid 5px #26caf8;
    border-radius: 15px;
    background-color: black;

    color: white;
    text-align: center;
}

/*apparence et positionnement spécifique au champ de type textarea*/
textarea {
    display: block;
    resize : none;
    display: flex;
    margin-left: auto;
    margin-right: auto; 
    padding: 0;
    height: 50px;
    width: 80%;

    border: solid 5px #26caf8;
    border-radius: 15px;
    background-color: black;

    color: white;
    text-align: center;
}

/*apparence et positionnement du bouton de validation*/
#valider {
    display: block;
    font-family: 'Nova Square', sans-serif;
    font-size: x-large;
    color: white;

    margin-top: 10px;
    margin-bottom: 20px;
    padding: 10;
    width: 50%;
   
    border: none;
    border-radius: 15px;
    background: linear-gradient(225deg, #27d86c 0%, #26caf8 50%, #c625d0 100%);
    transition: all .2s;
}

/*effet de grossissement au survole de la souris sur le bouton de validation*/
#valider:hover {
    transform: scale(150%);
    box-shadow: 10px -10px 25px 0 rgba(143, 64, 248, .70), -10px 10px 25px 0 rgba(39, 200, 255, .70);
}

/***************MENTIONS LEGALES**************/

/*positionnement et apparition dans la page de la fenêtre de mentions légales*/
.fenetreLegal {
    display: none;
    position: fixed;
    z-index: 99999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow:auto;
    background-color: rgba(0, 0, 0, 0.8);
}

/*apparence et positionnement du texte contenu dans la fenêtre*/
.contenu {
    position: absolute;
    top: 50%;
    left: 50%;
    color: white;
    font-size:larger;
    font-family: 'Times New Roman', Times, serif;
    transform: translate(-50%, -50%);
    padding: 30px;
    border: 1px solid #888;
    width: 80%;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10.1px);
    border: solid 5px #26caf8;
    border-radius: 16px;
}

/*réinitialisation des marges et du padding du tableau*/
table {
    margin: 0;
    padding: 0;
}

/*positionnement spécifique de certaines cases du tableau*/
td:nth-child(2) {
    text-align: left;
    padding-left: 35px;
}

/*apparence spécifique des liens du tableau*/
table a{
    cursor: url("img/aiguille2.png"), auto;
    text-decoration:underline;
}

/*effet de couleur au survole des liens avec la souris*/
table a:hover {
    background: linear-gradient(#26caf8 50%, #27d86c 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/*Bouton de fermeture de la fenêtre et apparence spécifique*/
.Btferme {
    background: linear-gradient(#26caf8 50%, #27d86c 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    float: right;
    font-size: 40px;
    font-weight: bold;
    transition: transform 0.3s ease-in-out;
}

/*effet de grossissement du bouton de fermuture de la fenêtre au survole de la souris*/
.Btferme:hover {
    text-decoration: none;
    cursor: url("img/aiguille2.png"), auto;
    transform: scale(3);
}