@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');


body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  background: #000;
  color: #fff;
  text-align: center;
}

header {
  background: #000;
  color: #f5f5f5;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid #222;
  position: relative;
  z-index: 10;
  padding: 10px 0;
}

.header-inner {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 16px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-title {
  font-size: 30px;
  font-weight: 600;
  text-transform: uppercase;
  color: #ffffff;
  letter-spacing: 1px;
  pointer-events: none;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #ccc;
  font-size: 26px;
  cursor: pointer;
  z-index: 2;
  position: absolute;
  left: 16px;
}

nav {
  margin-top: 10px;
}

nav ul {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}

nav ul.active {
  display: flex;
}

nav a {
  color: white;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.2s ease;
}

nav a:hover {
  color: #fff;
}

main h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 54px;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;

  background: linear-gradient(90deg, #ffffff 70%, #ff0000 70%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;

  text-shadow:
    1px 1px 0 #ffffff,
    0 0 3px rgba(179, 165, 165, 0.4); /* effet sanglant subtil */
}


.games-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 50px auto;
  padding: 0 20px;
}

.game-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.game {
  background: #111;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  animation: fadeIn 0.6s ease-in-out;
}

.game:hover {
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
}

.game-image-container {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.game img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.75);
  transition: filter 0.3s ease, box-shadow 0.3s ease;
}

.game:hover img {
  filter: brightness(1);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
}

.game-title {
  margin: 15px 0 10px;
  font-size: 1.2rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.game button,
.game a.button {
  display: inline-block;
  font-size: 14px;
  padding: 10px 20px;
  margin-bottom: 20px;
  background: #000;
  color: #fff;
  border: 2px solid #555;
  border-radius: 4px;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.3s ease;
  text-decoration: none;
}

.game button:hover,
.game a.button:hover {
  background: #111;
  border-color: #e00;
  color: #e00;
  box-shadow: 0 0 10px #e00;
}

@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* === Responsive === */
@media (max-width: 600px) {
  .menu-toggle {
    display: block;
    top: 50%;
    transform: translateY(-50%);
  }

  nav ul {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
  }

  main h1 {
    display: none;
  }

  main h2 {
    font-size: 18px;
    margin-top: 8px;
    color: #d0d0d0;
  }

  .games-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 0 12px;
    margin-top: 30px;
  }

  .game-image-container {
    aspect-ratio: 3 / 4;
  }

  .game button,
  .game a.button {
    width: 90%;
    font-size: 14px;
    padding: 12px 0;
    margin: 14px auto 20px;
    border-radius: 6px;
  }
}
