/* 🔹 Reset général */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 🔹 Styles de base */
body {
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f9;
    color: #ffffff;
    margin: 0;
    padding: 0;
}

/* 🔹 Navigation */
nav {
    background-color: #444;
    padding: 10px 0;
    text-align: center;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    padding: 10px 15px;
    transition: background-color 0.3s ease;
}

nav ul li a:hover {
    background-color: #555;
    border-radius: 5px;
}

/* 🔹 Arrière-plan vidéo */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(8px);
}

.video-background .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

/* Main Content */
main {
    padding: 20px;
    max-width: 900px;
    margin: 20px 0 20px 300px;
    background: rgb(69, 66, 66);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 🔹 Conteneur de la liste des jeux */
.game-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

/* 🔹 Grille des jeux (3 colonnes x 4 lignes) */
.games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 colonnes */
    grid-template-rows: repeat(3, auto);  /* 3 lignes */
    gap: 20px; /* Espacement entre les jeux */
    justify-content: center;
    width: 80%;
    margin: auto;
    list-style: none;
    padding: 0;
}

/* 🔹 Boutons des jeux */
.game {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}

/* 🔹 Images des jeux */
.game img {
    width: 200px;
    height: 200px;
    border-radius: 20px; /* Coins arrondis */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5); /* Ombre portée */
    transition: transform 0.3s ease-in-out;
}

/* 🔹 Effet au survol */
.game img:hover {
    transform: scale(1.1); /* Agrandissement de 10% */
}

/* 🔹 Détails du jeu */
#game-details {
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    width: 700px;
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 10px;
    transition: left 0.5s ease, opacity 0.5s ease;
    opacity: 0;
}

#game-details.show {
    left: 63%;
    opacity: 1;
}

#game-image {
    width: 200px;
    height: 200px;
    border-radius: 20px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease-in-out;
}

#game-image:hover {
    transform: scale(1.15);
}

/* Footer Styling */
footer {
    text-align: center;
    padding: 10px 0;
    background-color: #333;
    color: white;
    margin-top: 20px;
    font-size: 0.9rem;
    margin-top: auto;
}

.green-link {
    color: rgb(21, 238, 21);
    text-decoration: none; /* Pour enlever le soulignement */
}

