:root {
  --bg: #e7dfc8;
  --panel: #efe6cf;
  --panel-2: #ead9a1;
  --gold: #d5b13a;
  --gold-hover: #c59d24;
  --brown: #9a6b46;
  --brown-dark: #5b3a21;
  --text: #1f140d;
  --shadow: rgba(80, 50, 20, 0.18);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* HEADER */
.site-header {
  background: var(--panel);
  border-bottom: 2px solid var(--brown);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
}

.site-header h1 {
  font-size: 2rem;
  color: var(--text);
}

.home-btn {
  display: inline-block;
  background: var(--gold);
  color: var(--text);
  text-decoration: none;
  font-weight: bold;
  padding: 12px 18px;
  border: 2px solid var(--brown);
  border-radius: 12px;
  transition: 0.2s ease;
  box-shadow: 0 2px 6px var(--shadow);
}

.home-btn:hover {
  background: var(--gold-hover);
  transform: translateY(-1px);
}

/* CONTENU */
.games-page {
  width: min(1200px, 92%);
  margin: 32px auto;
  flex: 1;
}

.games-intro {
  text-align: center;
  margin-bottom: 30px;
}

.games-intro h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: var(--brown-dark);
}

.games-intro p {
  font-size: 1.05rem;
}

/* GRILLE */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}

/* CARTES */
.game-card {
  background: var(--panel);
  border: 2px solid var(--brown);
  border-radius: 18px;
  padding: 24px 18px;
  text-align: center;
  box-shadow: 0 4px 10px var(--shadow);
  transition: 0.2s ease;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px var(--shadow);
}

.game-icon {
  font-size: 3rem;
  margin-bottom: 14px;
}

.game-card h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--brown-dark);
}

.game-card p {
  font-size: 1rem;
  min-height: 48px;
  margin-bottom: 18px;
}

/* BOUTON */
.play-btn {
  display: inline-block;
  background: var(--gold);
  color: var(--text);
  text-decoration: none;
  font-weight: bold;
  padding: 12px 22px;
  border-radius: 14px;
  border: 2px solid var(--brown);
  transition: 0.2s ease;
}

.play-btn:hover {
  background: var(--gold-hover);
  transform: scale(1.03);
}

/* FOOTER */
.site-footer {
  background: var(--panel);
  border-top: 2px solid var(--brown);
  text-align: center;
  padding: 18px;
  font-size: 1rem;
  color: var(--brown-dark);
}

/* RESPONSIVE */
@media (max-width: 700px) {
  .site-header {
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }

  .site-header h1 {
    font-size: 1.7rem;
  }

  .games-intro h2 {
    font-size: 1.6rem;
  }
}