/* 🔹 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;
}

h1 {
    display: flex;
    justify-content: center; /* Centers horizontally */
    align-items: center; /* Centers vertically */
    text-align: center; /* Ensures text is centered inside the element */
    height: 100%; /* Optional: If you want it to take the full height of its container */
}


/* 🔹 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 auto;
    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;
}

/* 🔹 Styles généraux pour les sections */
section {
    background-color: #252525;
    color: white;
    padding: 20px;
    margin: 20px 0;
    border-radius: 10px;
    max-width: 100%; /* Assure que les sections ne sont pas trop larges */
}

/* Style pour les titres */
h2 {
    color: #45a049;
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 15px; /* Ajout d'un espacement après le titre */
}

/* Désactive le flex sur les <p> pour éviter le centrage forcé */
p {
    display: block; /* Retirer le display: flex */
    text-align: justify; /* Justifier le texte */
    line-height: 1.6; /* Améliorer l'interligne */
    margin-bottom: 20px; /* Ajouter un espacement sous le texte */
}

/* Style spécifique pour chaque texte de section */
#overview-text, #format-text, #cashprize-text, #format-des-jeux-text {
    font-size: 1.2rem;
    padding: 10px;
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.1); /* Définir une couleur d'arrière-plan claire */
    border-left: 4px solid transparent; /* Bords de couleur selon chaque section */
}

/* Couleurs et styles propres à chaque section */
#overview-text {
    background-color: rgba(69, 160, 73, 0.1);
    border-left: 4px solid #45a049;
}

#format-text {
    background-color: rgba(255, 193, 7, 0.1);
    border-left: 4px solid #ffc107;
}

#cashprize-text {
    background-color: rgba(220, 53, 69, 0.1);
    border-left: 4px solid #dc3545;
}

#format-des-jeux-text {
    background-color: rgba(41, 128, 185, 0.1); /* Couleur différente pour la section Format des jeux */
    border-left: 4px solid #2980b9;
}

/* Liens */
a {
    color: #ffcc00;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}



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

