/* Importation des polices */
@font-face {
    font-family: 'Sackers-Gothic-Std-Heavy';
    src: url('css/fonts/Sackers-Gothic-Std-Heavy.woff') format('woff'),
         url('css/fonts/Sackers-Gothic-Std-Heavy.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Curseurs personnalisés */
body {
    cursor: url('css/cursors/default_cursor.png'), auto; /* Curseur classique personnalisé */
    font-family: 'Gotham', sans-serif;
    background-color: #1e1e1e;
    color: #e0e0e0;
    line-height: 1.6;
    padding-top: 120px; /* Ajouté pour l'espace entre le header et la présentation */
}

a, .btn, .reseaux a {
    cursor: url('css/cursors/pointer_cursor.png'), pointer; /* Curseur pointer personnalisé */
}

p, h1, h2, h3 {
    cursor: url('css/cursors/text_cursor.png'), text; /* Curseur texte personnalisé */
}

/* Styles généraux pour le header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #292929;
    border-bottom: 2px solid #7e579d;
    box-shadow: 0 0 15px rgba(78, 39, 95, 0.7);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

header img {
    height: 70px;
}

header nav a {
    text-decoration: none;
    color: #e0e0e0;
    margin-left: 20px;
    margin-right: 10px;
    font-family: 'Sackers-Gothic-Std-Heavy';
    transition: color 0.3s ease, transform 0.3s ease;
}

header nav a:hover {
    color: #7e579d;
    transform: scale(1.1);
}

/* Styles généraux pour la présentation */
.presentation {
    text-align: center;
    padding: 50px 20px;
    background-color: #292929;
    margin: 30px auto 20px; /* Ajouté de la marge supérieure */
    max-width: 800px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(78, 39, 95, 0.7);
}

.presentation h1 {
    font-size: 2.5em;
    color: #e0e0e0;
    font-family: 'Sackers-Gothic-Std-Heavy';
}

.presentation p {
    font-size: 1.2em;
    margin-top: 20px;
    color: #cccccc;
}

/* Styles pour les sections */
section {
    padding: 50px 20px;
    margin: 30px 0;
    background-color: #292929;
    border-radius: 10px;
    background: 50%;
    backdrop-filter: blur(7px); /* Effet de flou */
    box-shadow: 0 0 15px rgba(78, 39, 95, 0.7);
}

section section {
    background-color: #1e1e1e;
}

section h2 {
    font-size: 2em;
    color: #e0e0e0;
    text-align: center;
    margin-bottom: 20px;
    font-family: 'Sackers-Gothic-Std-Heavy';
}

/* Styles pour la section des jeux vidéo */
#jeux-video .jeu {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    background-color: #383838;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(78, 39, 95, 0.5);
}

#jeux-video .jeu img {
    width: 40%;
    height: auto;
    border-radius: 10px;
    margin-right: 20px;
}

#jeux-video .jeu-details {
    width: 60%;
}

#jeux-video .jeu-details h3 {
    font-size: 2em;
    color: #e0e0e0;
    margin-bottom: 20px;
    font-family: 'Sackers-Gothic-Std-Heavy';
}

#jeux-video .jeu-details p {
    font-size: 1.2em;
    color: #cccccc;
    margin-bottom: 20px;
}

/* Styles généraux pour les boutons */
.jeu-details .btn {
    display: inline-block;
    padding: 10px 20px;
    margin-top: 10px;
    background-color: #7e579d;
    color: #e0e0e0;
    text-decoration: none;
    font-weight: bold;
    transform: skew(-20deg);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.jeu-details select {
    font-size: 1em;
}

/* Styles pour les boutons désactivés avec l'id #vide */
.jeu-details .btn#vide-1, .jeu-details .btn#vide-2, .jeu-details .btn#vide-3 {
    background-color: #5c5c5c; /* Couleur grise pour le bouton désactivé */
    pointer-events: none; /* Empêche le clic */
    cursor: not-allowed; /* Change le curseur pour indiquer que le bouton est désactivé */
}

/* Styles de survol pour les boutons */
.jeu-details .btn:hover {
    background-color: #482f5f; /* Couleur de survol */
    transform: skew(0deg);
}

/* Pour les boutons avec l'id #vide, pas de changement au survol */
.jeu-details .btn#vide-1:hover, .jeu-details .btn#vide-2:hover, .jeu-details .btn#vide-3:hover {
    background-color: #5c5c5c; /* Garde la couleur grise au survol */
    transform: skew(-20deg); /* Conserver le style de transformation */
}

/* Styles pour la grille */
.grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.grid-element {
    background-color: #383838;
    padding: 20px;
    margin: 10px;
    width: calc(33% - 40px);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(78, 39, 95, 0.5);
    transition: transform 0.3s ease;
}

section section .grid-element {
    background-color: #292929;
}

.grid-element:hover {
    transform: scale(1.05);
}

.grid-element img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.grid-element h3 {
    font-size: 1.5em;
    color: #e0e0e0;
    margin-top: 10px;
    font-family: 'Sackers-Gothic-Std-Heavy';
}

.grid-element p {
    font-size: 1em;
    color: #cccccc;
    margin-top: 10px;
}

/* Styles généraux pour les liens dans .grid-element */
.grid-element a {
    display: inline-block;
    padding: 10px 20px;
    margin-top: 10px;
    background-color: #7e579d;
    color: #e0e0e0;
    text-decoration: none;
    font-weight: bold;
    transform: skew(-20deg);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

/* Styles pour le lien avec l'id #vide à l'intérieur de .grid-element */
.grid-element a#vide {
    background-color: #5c5c5c; /* Couleur grise pour le lien désactivé */
    pointer-events: none; /* Empêche le clic */
    cursor: not-allowed; /* Change le curseur pour indiquer que le lien est désactivé */
}

/* Styles de survol pour les liens */
.grid-element a:hover {
    background-color: #482f5f; /* Couleur de survol */
    transform: skew(0deg);
}

/* Pour le lien avec l'id #vide, pas de changement au survol */
.grid-element a#vide:hover {
    background-color: #5c5c5c; /* Garde la couleur grise au survol */
    transform: skew(-20deg); /* Conserver le style de transformation */
}

/* Style pour le footer*/
footer {
    background-color: #292929;
    padding: 20px;
    border-top: 2px solid #7e579d;
    box-shadow: 0 0 15px rgba(78, 39, 95, 0.7);
}

footer h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #e0e0e0;
    font-family: 'Sackers-Gothic-Std-Heavy';
}

/* Catégorie réseau du footer*/
.reseaux {
    display: flex;
    justify-content: center;
    align-items: center;
}

.reseaux div {
    margin: 0 20px;
    text-align: center;
}

.reseaux img {
    height: 30px;
}

.reseaux a {
    display: block;
    margin-top: 10px;
    color: #e0e0e0;
    text-decoration: none;
    font-weight: bold;
    font-family: 'Sackers-Gothic-Std-Heavy';
    transition: color 0.3s ease, transform 0.3s ease;
}

.reseaux a:hover {
    color: #7e579d;
    transform: scale(1.1);
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    background-color: #1e1e1e;
}

.message-404 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 0 auto;
    width: 50%;
    max-width: 600px;
    padding: 20px;
    background-color: #292929;
    background: 50%;
    border-radius: 10px;
    backdrop-filter: blur(7px);
    box-shadow: 0 0 15px rgba(78, 39, 95, 0.7);
    z-index: 10;
}

.message-404 h1 {
    font-size: 8em;
    font-family: 'Sackers-Gothic-Std-Heavy';
    color: #7e579d;
    margin-bottom: 20px;
}

.message-404 p {
    font-size: 1.2em;
    color: #cccccc;
    margin-bottom: 30px;
}

.message-404 .btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #7e579d;
    color: #e0e0e0;
    text-decoration: none;
    font-weight: bold;
    transform: skew(-20deg);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.message-404 .btn:hover {
    background-color: #482f5f;
    transform: skew(0deg);
}

/* Responsiveness */
@media only screen and (max-width: 768px) {
    header nav a {
        margin-left: 5px;
        margin-right: 10px;
    }

    #jeux-video .jeu {
        flex-direction: column;
    }

    #jeux-video .jeu img {
        width: 100%;
        margin-bottom: 20px;
    }

    #jeux-video .jeu select {
        display : none;
    }

    #jeux-video .jeu-details {
        width: 100%;
    }

    .grid-element {
        width: calc(50% - 40px);
    }

    footer h2 {
        font-size: 1.2em; /* Réduire la taille du texte dans le footer */
    }

    .reseaux div {
        margin: 0 10px; /* Réduction des marges entre les éléments */
    }

    .reseaux img {
        height: 20px; /* Réduire la taille des icônes */
    }

    .reseaux a {
        font-size: 0.5em; /* Réduire la taille du texte des liens */
    }
}

@media only screen and (max-width: 480px) {
    .grid-element {
        width: calc(100% - 40px);
    }
}