/* Style général pour le body */
html,
body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  background-color: #2c2c2c;
  color: #fff;
  font-family: Arial, sans-serif;
}

/* Conteneur principal */
#content {
  flex: 1;
  display: flex;
  align-items: flex-start;
  width: 80%;
  max-width: 1200px;
  margin: 20px auto;
}

/* Contenu central - 2 colonnes sur grand écran, 1 colonne sur petit écran */
#content-center {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  padding: 20px;
  width: 100%;
  max-width: 900px;
}

#content-center-game {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  padding: 20px;
  width: 100%;
  max-width: 900px;
}

/* Partie droite du contenu */
#content-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-left: 20px;
  gap: 20px;
  align-items: center;
  max-width: 300px;
  min-width: 300px;
}

#content-right-boxes {
  display: inline-block;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
}

#content-right-boxes .game-box {
  max-width: 300px;
  margin: auto;
}

#content-right-boxes img {
  max-width: 100%;
  border-radius: 8px;
}

/* Responsive pour les écrans plus petits */
@media (max-width: 560px) {
  #content-right {
    display: none;
  }
}

@media (max-width: 780px) {
  #content-center {
    grid-template-columns: 1fr;
  }
}


/* Game box (style général) */
.game-box,
.game-box-right {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  transition: transform 0.3s ease, background-color 0.3s ease;
  padding: 5px;
  box-sizing: border-box;
  overflow: hidden;
}

a {
  text-decoration: none;
  color: #fff;
}

.game-box {
  max-height: 350px;
  height: 350px;
}

.game-box-right {
  max-height: 280px;
  height: 280px;
  margin-bottom: 10px;
}

/* Image dans game-box et game-box-right */
.game-box img,
.game-box-right img {
  width: 100%;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
}

/* Titre */
.game-box h3,
.game-box-right h3 {
  font-size: 18px;
  margin: 5px 0;
}

/* Description (limite à 3 lignes) */
.game-box p,
.game-box-right p {
  font-size: 14px;
  opacity: 0.8;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Assurer que la date reste en bas */
.last-update {
  font-size: 12px;
  color: #ccc;
  font-style: italic;
  margin-top: auto;
}

/* Effet au survol */
.game-box:hover,
.game-box-right:hover {
  transform: scale(1.05);
  background-color: rgba(255, 255, 255, 0.2);
}

/* Section Discord */
.discord iframe {
  width: 100%;
  border-radius: 10px;
}

/* Section Les Plus Vus */
.most-viewed h1 {
  font-size: 24px;
  margin-bottom: 20px;
  font-weight: bold;
}

/* Bannière */
#banner {
  width: 100%;
  background-color: rgb(135, 173, 255);
  display: flex;
  justify-content: center;
}

#banner-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 80%;
  max-width: 1200px;
  height: 80px;
}

#banner-top img {
  margin-left: 20px;
  width: 80px;
}

/* Boutons dans la bannière */
#banner-top-right button {
  background-color: #fff;
  color: #2c2c2c;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 5px;
}

#banner-top-right button:hover {
  background-color: #ddd;
}

/* Footer */
#footer {
  width: 100%;
  padding: 15px 0;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.1);
  position: relative;
}

/* Genres */
.genres span {
  font-weight: bold;
  background-color: rgb(63, 63, 63);
  padding: 5px;
}

/* Centrage */
.center {
  text-align: center;
}

/* Images et vidéos de jeu */
.image-jeu,
.video-jeu {
  margin-top: 50px;
  width: 700px;
  height: 393.75px;
  border-radius: 10px;
}

/* Sections spécifiques */
.game-details,
.system-requirements,
.download {
  margin-top: 50px;
}

.center h1 {
  margin-top: 30px;
}

h3,
h5 {
  font-weight: bold;
  margin-bottom: 30px;
}

.system-requirements span,
.game-details span {
  font-weight: bold;
}

.system-requirements li,
.game-details p {
  font-size: 1.2em;
}

/* Bouton de téléchargement */
.download a {
  color: #fff;
  text-decoration: none;
  padding: 10px;
  background-color: rgb(91, 91, 255);
  margin: 10px;
  display: inline-block;
  border-radius: 5px;
  transition: background 0.3s;
}

.download a:hover {
  background-color: rgb(63, 63, 255);
}
