html,
body {
  margin: 0;
  min-height: 100%;
  background: radial-gradient(circle at 50% 0%, #16202b 0%, #0a0e14 70%);
}

#page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  box-sizing: border-box;
}

/* ---- Bandeau haut : marque + sélecteur de langue ---- */

#top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px clamp(20px, 5vw, 64px);
}

#brand {
  font: 700 22px/1 system-ui, sans-serif;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
}

.brand-globe {
  color: #4fc3f7;
  margin-right: 0.2em;
}

.brand-trip {
  color: #ffcf3f;
}

#lang-switcher {
  position: relative;
  flex: 0 0 auto;
}

#lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font: 600 12px/1 system-ui, sans-serif;
  color: #e6ebf0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 5px 10px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

#lang-toggle:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
}

#lang-toggle img {
  width: 18px;
  height: 12px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
  display: block;
}

#lang-toggle .bi-chevron-down {
  font-size: 9px;
  color: #98a2ae;
  margin-left: 1px;
  transition: transform 0.2s ease;
}

#lang-toggle[aria-expanded="true"] .bi-chevron-down {
  transform: rotate(180deg);
}

#lang-list {
  list-style: none;
  margin: 0;
  padding: 6px;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 112px;
  background: rgba(12, 16, 22, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  z-index: 20;
}

#lang-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 600 12px/1 system-ui, sans-serif;
  color: #e6ebf0;
  padding: 8px 9px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}

#lang-list li img {
  width: 18px;
  height: 12px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
  display: block;
}

#lang-list li:hover {
  background: rgba(255, 255, 255, 0.08);
}

#lang-list li[aria-selected="true"] {
  background: rgba(79, 195, 247, 0.15);
  color: #4fc3f7;
}

/* ---- Contenu principal : titre + grille de jeux ---- */

#games-content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12px clamp(20px, 5vw, 64px) 48px;
}

#games-content h1 {
  margin: 0.2em 0 0;
  font: 700 34px/1.25 system-ui, sans-serif;
  color: #e6ebf0;
}

#games-intro {
  margin: 10px 0 40px;
  max-width: 520px;
  color: #98a2ae;
  font: 15px/1.55 system-ui, sans-serif;
}

#games-grid {
  width: 100%;
  max-width: 1080px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.game-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  padding: 24px 22px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(10, 14, 20, 0.35));
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.game-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.4);
  border-color: var(--accent, rgba(79, 195, 247, 0.6));
}

.game-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  font-size: 20px;
  color: var(--accent, #4fc3f7);
  background: color-mix(in srgb, var(--accent, #4fc3f7) 16%, transparent);
}

.game-card-title {
  font: 700 17px/1.3 system-ui, sans-serif;
  color: #e6ebf0;
}

.game-card-desc {
  font: 13px/1.5 system-ui, sans-serif;
  color: #98a2ae;
}

.game-card[data-accent="gold"] {
  --accent: #ffcf3f;
}

.game-card[data-accent="blue"] {
  --accent: #4fc3f7;
}

.game-card[data-accent="teal"] {
  --accent: #34d399;
}

.game-card[data-accent="orange"] {
  --accent: #fb923c;
}

.game-card[data-accent="purple"] {
  --accent: #a78bfa;
}

.game-card[data-accent="pink"] {
  --accent: #f472b6;
}

/* ---- CTA téléchargement (identique aux autres modules) ---- */

#download-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 32px 20px 40px;
  box-sizing: border-box;
}

.download-text {
  margin: 0;
  text-align: center;
  max-width: 480px;
  color: rgba(230, 235, 240, 0.85);
  font: 13px/1.5 system-ui, sans-serif;
}

.store-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(10, 14, 20, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 8px 12px;
  color: #e6ebf0;
  text-decoration: none;
  backdrop-filter: blur(6px);
  transition: background 0.2s, border-color 0.2s, transform 0.2s ease;
}

.store-btn i {
  font-size: 1.2rem;
  color: #4fc3f7;
}

.store-btn:hover {
  background: rgba(10, 14, 20, 0.75);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.store-sub {
  font-size: 0.6rem;
  color: #98a2ae;
  line-height: 1;
}

.store-name {
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 1px;
}

.store-btn-disabled {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}

@media (max-width: 560px) {
  #games-content h1 {
    font-size: 28px;
  }

  #games-grid {
    grid-template-columns: 1fr;
  }
}
