.games-back-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.95rem;
}

.games-back-link:hover {
  text-decoration: underline;
}

/* On casse le centrage du container principal uniquement pour la page jeux */
.games-container {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
}

/* Mise en page pleine largeur */
.games-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 0;
  align-items: start;
  min-height: calc(100vh - 150px);
}

/* Colonne de gauche */
.games-sidebar {
  padding: 24px 12px;
  border-right: 1px solid var(--border);
}

.games-sidebar h2 {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 1.1rem;
  font-weight: 600;
}

.games-menu-btn {
  display: block;
  width: 100%;
  margin-bottom: 12px;
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.games-menu-btn:hover {
  transform: translateY(-2px);
  background: var(--card-hover);
  border-color: var(--accent);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34);
}

.games-menu-btn.active {
  background: var(--card-hover);
  border-color: var(--accent);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34);
}

/* Zone de droite */
.games-viewer {
  padding: 24px;
  min-width: 0;
}

.games-viewer-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.games-viewer-topbar {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}

.games-frame {
  display: block;
  width: 100%;
  height: calc(100vh - 220px);
  min-height: 520px;
  border: 0;
  background: #ffffff;
}

/* Mobile */
@media (max-width: 900px) {
  .games-layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .games-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--border);
    padding: 20px 16px 8px;
  }

  .games-viewer {
    padding: 16px;
  }

  .games-frame {
    height: 68vh;
    min-height: 420px;
  }
}

@media (max-width: 640px) {
  .games-frame {
    height: 60vh;
    min-height: 320px;
  }
}
