/* ============================================================
   ACCUEIL & CARROUSEL — LabGames (coquille www.labgames.io)

   Styles propres à index.html : bandeau de bienvenue et carrousel
   des jeux. S'appuie sur le thème global (fond sombre, en-tête en
   verre dépoli, accent ambre #FFBF00 — voir style.css/navbar.css).
   ============================================================ */

/* ---- Mise en page générale de l'accueil ---- */
.home {
  /* L'en-tête fixe fait 70 px : on décale le contenu en dessous. */
  padding: 110px 20px 40px;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

/* ---- Bandeau de bienvenue ---- */
.hero h1 {
  font-size: 52px;
  letter-spacing: 4px;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.hero p {
  margin-top: 8px;
  font-size: 20px;
  color: #e7dfd3;
  opacity: 0.9;
}

/* ---- Le carrousel ----
   Grille 3 colonnes : flèche | fenêtre | flèche, points en dessous. */
.carousel {
  margin-top: 40px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "prev viewport next"
    ".    dots     .";
  align-items: center;
  gap: 12px;
  outline: none;               /* le focus est signalé sur les vignettes */
}

/* La fenêtre : ne montre qu'une vignette, cache le reste du ruban. */
.carousel-viewport {
  grid-area: viewport;
  overflow: hidden;
  border-radius: 16px;
}

/* Le ruban : les vignettes côte à côte ; il coulisse en translateX
   (piloté par carousel.js), la transition donne le mouvement doux. */
.carousel-track {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  transition: transform 0.5s ease;
}

/* Chaque vignette occupe exactement la largeur de la fenêtre. */
.carousel-slide {
  flex: 0 0 100%;
}

/* ---- La carte d'un jeu : « verre dépoli » comme l'en-tête ---- */
.game-card {
  margin: 4px;
  padding: 28px 40px 34px;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

/* L'illustration SVG du jeu. */
.game-art {
  width: min(320px, 70%);
  height: auto;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.45));
}

.game-card h2 {
  font-size: 30px;
  color: #FFBF00;
  letter-spacing: 2px;
}

.game-card p {
  max-width: 560px;
  font-size: 16px;
  color: #e7dfd3;
}

/* Le bouton « Jouer » : plein ambre, léger relief au survol. */
.play-btn {
  margin-top: 6px;
  padding: 10px 44px;
  border-radius: 999px;
  background: #FFBF00;
  color: #241a10;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 1px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.play-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(255, 191, 0, 0.35);
}

/* ---- Les flèches ---- */
.carousel-arrow {
  width: 48px;
  height: 48px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.carousel-arrow.prev { grid-area: prev; }
.carousel-arrow.next { grid-area: next; }

.carousel-arrow:hover {
  background: rgba(255, 191, 0, 0.25);
  color: #FFBF00;
}

/* ---- Les points de position ---- */
.carousel-dots {
  grid-area: dots;
  margin-top: 16px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.carousel-dot.active {
  background: #FFBF00;
  transform: scale(1.25);
}

/* ---- Adaptation aux petits écrans ---- */
@media (max-width: 640px) {
  .hero h1 { font-size: 36px; }
  .hero p  { font-size: 17px; }

  /* Les flèches passent sous la fenêtre, de part et d'autre des points. */
  .carousel {
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "viewport viewport viewport"
      "prev     dots     next";
  }

  .game-card { padding: 20px 16px 26px; }
  .game-card p { font-size: 15px; }
}
