/* =========================
   GAMES SECTION
========================= */

.games-carousel {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px 60px; /* ↓ moins de padding en haut */
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* =========================
   TITRE
========================= */

.games-carousel h2 {
  font-size: 36px;
  margin: 0; /* ❗ supprime le gros margin-bottom */
}

/* =========================
   CAROUSEL
========================= */

.carousel {
  width: 100%;
  max-width: 900px;
  margin-top: 80px;
  position: relative;
}

/* =========================
   VIDEO
========================= */

#game-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border-radius: 10px;
  display: block;
  margin-bottom: 40px;
}

/* =========================
   INFOS
========================= */

#game-title {
  font-size: 28px;
  margin-bottom: 10px;
}

#game-desc {
  color: #aaa;
  margin-bottom: 20px;
}

/* =========================
   NAVIGATION
========================= */

.nav {
  position: absolute;
  top: 37%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  font-size: 28px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid red;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
  z-index: 10;
}

/* POSITION */
.left {
  left: -80px;
}

.right {
  right: -80px;
}

/* HOVER */
.nav:hover {
  background: red;
  box-shadow: 0 0 20px red;
  transform: translateY(-50%) scale(1.1);
}

/* CLICK */
.nav:active {
  transform: translateY(-50%) scale(0.9);
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

  .games-carousel {
    padding: 40px 15px;
  }

  .nav {
    display: none;
  }

  .games-carousel h2 {
    font-size: 28px;
  }

  #game-title {
    font-size: 22px;
  }
}

/* =========================
   AUTO - TOGGLE
========================= */

.auto-toggle {
  position: relative;
  margin-top: 10px;
  z-index: 10;
}

.auto-toggle input {
  cursor: pointer;
}

/* =========================
   BUTTONS
========================= */

.btn {
  display: inline-block;
  padding: 12px 30px;
  background: black;
  border: 1px solid red;
  border-radius: 8px;
  color: white;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 10;
}

/* HOVER */
.btn:hover {
  transform: scale(1.08);
  box-shadow: 0 0 15px red, 0 0 40px rgba(255,0,0,0.5);
  background: red;
  box-shadow: 0 0 20px red;
}

/* CLICK */
.btn:active {
  transform: scale(0.95);
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: 0.5s;
}

.btn:hover::before {
  left: 100%;
}