/* --- Variables de couleurs ludiques --- */
:root {
  --line: #1a1a1a;
  --bg-main: #f0f3f4;
  --yellow: #ffd32a;
  --orange: #ff9f1a;
  --blue: #38ada9;
  --purple: #a29bfe;
  --pink: #ff4757;
  --green: #2ed573;
}

/* --- Hero Section --- */
.hero {
  padding: 60px 0 50px;
  background: radial-gradient(circle at top left, #fff9db, #ffeaa7);
  border-bottom: 6px solid var(--line);
  position: relative;
  overflow: hidden;
}

/* Petit effet de motif en arrière-plan pour le côté arcade */
.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  opacity: 0.3;
  background-image: radial-gradient(var(--orange) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 32px;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Le Kicker (Badge) */
.kicker {
  display: inline-block;
  padding: 8px 16px;
  background: var(--yellow);
  border: 3px solid var(--line);
  border-radius: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  transform: rotate(-2deg); /* Effet penché ludique */
  box-shadow: 4px 4px 0 var(--line);
}

.hero h1 {
  font-size: clamp(2.3rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  margin: 24px 0;
  color: var(--line);
  text-shadow: 2px 2px 0px #fff;
}

.hero p {
  max-width: 720px;
  font-size: 1.2rem;
  line-height: 1.5;
  color: #333;
  margin-bottom: 28px;
}

/* Bouton principal */
.btn.primary {
  display: inline-block;
  padding: 14px 28px;
  background: var(--pink);
  color: white;
  text-decoration: none;
  font-weight: 900;
  font-size: 1.2rem;
  text-transform: uppercase;
  border: 4px solid var(--line);
  border-radius: 16px;
  box-shadow: 6px 6px 0 var(--line);
  transition: all 0.2s ease;
}

.btn.primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--line);
  background: #ff6b81;
}

.btn.primary:active {
  transform: translate(4px, 4px);
  box-shadow: 2px 2px 0 var(--line);
}

/* Encart Projet */
.hero-card {
  background: var(--purple);
  color: var(--line);
  border: 4px solid var(--line);
  border-radius: 24px;
  box-shadow: 8px 8px 0 var(--line);
  padding: 28px;
  transform: rotate(1deg);
}

.hero-card h2 {
  font-size: 1.8rem;
  font-weight: 900;
  margin-top: 0;
  text-transform: uppercase;
}

.hero-card p {
  color: var(--line);
  font-size: 1.05rem;
  font-weight: 600;
}

/* --- Section Liste des Jeux --- */
.games-section {
  padding: 60px 0;
}

.games-section h2 {
  font-size: 2.5rem;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 30px;
  position: relative;
  display: inline-block;
}

/* Barre de surlignage sous le titre */
.games-section h2::after {
  content: "";
  position: absolute;
  bottom: -5px; left: 0;
  width: 100%; height: 8px;
  background: var(--green);
  z-index: -1;
  border-radius: 4px;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

/* Cartes des jeux */
.game-card {
  text-decoration: none;
  color: var(--line);
  min-height: 160px;
  padding: 24px;
  border: 4px solid var(--line);
  border-radius: 20px;
  box-shadow: 6px 6px 0 var(--line);
  display: grid;
  align-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Couleurs uniques et pop pour chaque carte */
.game-card:nth-child(1) { background: #fffa85; } /* Jaune */
.game-card:nth-child(2) { background: #ff9ff3; } /* Rose */
.game-card:nth-child(3) { background: #7ed6df; } /* Turquoise */
.game-card:nth-child(4) { background: #badc58; } /* Vert pré */

/* Effet au survol : la carte se soulève et l'ombre grandit */
.game-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 10px 10px 0 var(--line);
}

.game-card strong {
  font-size: 1.5rem;
  font-weight: 900;
  text-transform: uppercase;
  display: block;
}

.game-card span {
  font-size: 0.95rem;
  color: #333;
  font-weight: 700;
  margin-top: 12px;
  line-height: 1.3;
}

/* --- Responsive --- */
@media (max-width: 992px) {
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .games-grid {
    grid-template-columns: 1fr;
  }
  .hero-card {
    transform: none;
  }
}