@font-face {
  font-family: 'LazyDog';
  src: url('/assets/fonts/lazy_dog.ttf') format('truetype');
}

@font-face {
  font-family: 'OctoberCrow';
  src: url('/assets/fonts/October_Crow.ttf') format('truetype');
}

.games-liste {
  padding: 3rem;
  text-align: center;
  margin: 3rem auto;
}

.games-liste h1 {
  color: #1cce5b;
  margin-top: 1rem;
  font-family: 'OctoberCrow', cursive;
  font-size: 3rem;
  text-shadow: 0 0 10px #1cce5b;
  font-weight: lighter;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(430px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.game-card {
  background-color: #110024;
  padding: 1.5rem;
  border-radius: 12px;
  transition: transform 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  border: 1px solid;
  border-image: linear-gradient(to right, #090013, #1cce5b, #090013) 1;
  text-align: left;
  text-decoration: none;
  color: #dbdbdb;
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
  display: block;
  position: relative;
}

.game-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px #1cce5b;
}

.game-card img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 1rem;
  border-bottom: 1px solid;
  border-image: linear-gradient(to right, #090013, #1cce5b, #090013) 1;
}

.game-card h3 {
  font-size: 1.5rem;
  color: #1cce5b;
  font-family: 'LazyDog', cursive;
  margin-bottom: 0.5rem;
  font-weight: lighter;
}

.games-liste h2 {
    color: var(--text-color);
    font-size: 1rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    font-family: 'LazyDog', sans-serif;
    text-shadow: 0 0 10px hsl(141, 76%, 46%);
    font-weight: lighter;
}

.game-card p {
  font-size: 1rem;
  color: #dbdbdb;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}






.games-bg {
  position: fixed;
  inset: 0;
background: url('/assets/images/FONDECRAN15.webp') no-repeat center center;
  background-size: cover;
  z-index: -1;
  animation: fantomeFloat 10s ease-in-out infinite;
  will-change: transform, background-position;
  pointer-events: none;
}

@keyframes fantomeFloat {
  0%   { transform: scale(1); background-position: 50% 50%; }
  50%  { transform: scale(1.05); background-position: 48% 52%; }
  100% { transform: scale(1); background-position: 50% 50%; }
}






/* Responsive */
@media screen and (max-width: 768px) {
  .games-liste {
    padding: 1.5rem;
    margin: 1rem auto;
  }

  .games-liste h2 {
    font-size: 2.2rem;
        font-family: 'LazyDog', sans-serif;

  }

  .grid-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .game-card {
    padding: 1rem;
  }

  .game-card h3 {
    font-size: 1.3rem;
  }

  .game-card p {
    font-size: 0.95rem;
  }
}

@media screen and (max-width: 480px) {
  .games-liste h2 {
    font-size: 2rem;
        font-family: 'LazyDog', sans-serif;

  }

  .grid-container {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .game-card {
    padding: 0.8rem;
  }

  .game-card h3 {
    font-size: 1.2rem;
  }

  .game-card p {
    font-size: 0.9rem;
  }

  #back-to-top {
    right: 20px;
    bottom: 20px;
    padding: 0.5rem 0.8rem;
    font-size: 1rem;
  }
}
