:root {
  --bg-dark: #181824;
  --header-dark: #14141c;
  --card-dark: #23233a;
  --accent: #1bc1ee;
  --badge: #ffde55;
  --gold: #c5a94e;
  --text-light: #f7f8fa;
  --radius: 16px;
  --shadow: 0 4px 28px 0 #090f1a40;
  --retro-font: 'Press Start 2P', monospace;
  --modern-font: 'Montserrat', Arial, sans-serif;
  --footer-link: #4bf1f1;
}

/* Body */
body {
  margin: 0;
  padding: 0;
  background: var(--bg-dark);
  font-family: var(--modern-font);
  color: var(--text-light);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* HEADER + MENU BURGER */
header {
  background: var(--header-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 3vw;
  border-bottom: 1.5px solid #23243a;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.logo-img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--accent);
}

.brand-title {
  font-family: var(--retro-font);
  color: var(--gold);
  font-size: 1.12rem;
  letter-spacing: 2px;
  margin-top: 2px;
}

nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  font-family: var(--modern-font);
  font-weight: 600;
  letter-spacing: 0.7px;
  padding-bottom: 2px;
  transition: color 0.16s;
  position: relative;
}

nav a:hover {
  color: var(--accent);
}

/* Hamburger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  justify-content: center;
  align-items: flex-end;
  z-index: 1001;
}
.burger span {
  display: block;
  height: 4px;
  width: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: 0.22s;
}

/* Responsive header + nav */
@media (max-width: 800px) {
  nav {
    position: fixed;
    top: 64px;
    right: 0;
    background: #181824ef;
    flex-direction: column;
    align-items: flex-end;
    gap: 1.8rem;
    width: 74vw;
    max-width: 300px;
    height: calc(100vh - 64px);
    padding: 2.2rem 2.5rem 2.2rem 2rem;
    box-shadow: -10px 0 32px #0003;
    transform: translateX(100%);
    transition: transform 0.22s;
    z-index: 1000;
  }
  nav.open {
    transform: translateX(0);
  }
  .burger {
    display: flex;
  }
}

@media (max-width: 800px) {
  header {
    padding: 0.7rem 2vw;
  }
  .brand-title {
    font-size: 0.95rem;
  }
}

/* HERO Carousel */
.hero-carousel {
  position: relative;
  min-height: 330px;
  height: 39vw;
  background: var(--card-dark);
  border-radius: 0 0 16px 16px;
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  flex-direction: column;
  user-select: none;
  touch-action: pan-y;
}
@media (max-width: 900px) {
  .hero-carousel {
    min-height: 240px;
    height: 46vw;
  }
}
@media (max-width: 600px) {
  .hero-carousel {
    min-height: 160px;
    height: 53vw;
  }
}
.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s cubic-bezier(.61, -0.13, .4, 1.1);
}
.hero-slide.active {
  opacity: 1;
  pointer-events: all;
  transition: opacity 0.5s cubic-bezier(.61, -0.13, .4, 1.1);
}
.hero-img-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: none;
  transition: filter 0.2s;
  user-drag: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
.hero-slide::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 25%;
  background: linear-gradient(to bottom, rgba(24,24,36,0.0) 0%, rgba(24,24,36,0.94) 100%);
  z-index: 2;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 3;
  padding: 2.5rem 3vw 1.5rem 4vw;
  max-width: 510px;
  margin-bottom: 1.3rem;
  color: var(--text-light);
  text-shadow: 0 2px 12px #000c;
}
.hero-title {
  font-family: var(--retro-font);
  font-size: 3.05rem;
  /*color: var(--gold);*/
  color: white;
  font-weight: bold;
  margin-bottom: 1.1rem;
  letter-spacing: 2px;
  text-shadow: 0 3px 16px #000, 0 1px 0 #000a;
}
.hero-desc {
  font-size: 1.15rem;
  font-family: var(--modern-font);
  color: #f7f7fa;
  margin-bottom: 1.7rem;
  text-shadow: 0 1px 8px #0007;
  line-height: 1.5;
  font-weight: bold;
}
.main-cta {
  background: var(--badge);
  color: #101625;
  border: none;
  border-radius: 10px;
  font-size: 1.11rem;
  padding: 0.9rem 2.1rem;
  font-family: var(--modern-font);
  font-weight: 800;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 2px 12px #142c3a80;
  transition: background 0.16s, color 0.13s, transform 0.12s;
  text-decoration: none;
}
.main-cta:hover {
  background: var(--accent);
  color: #101625;
  transform: scale(1.04);
}

/* Carousel dots */
.carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  margin: auto;
  z-index: 15;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.65rem;
  pointer-events: none;
}
.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: #2e394d;
  transition: background 0.18s, border 0.13s;
  pointer-events: auto;
  outline: none;
  border: 2px solid transparent;
  opacity: 0.7;
  cursor: pointer;
}
.carousel-dot.active {
  background: var(--accent);
  border: 2px solid var(--gold);
  opacity: 1;
}

/* Jeux section (scroll + flèches: garde ton CSS pour les cartes de jeux) */

/* Footer façon DON'T NOD */
.footer-main {
  background: #14141c;
  color: #f7f8fa;
  padding: 3rem 8vw 2.3rem 8vw;
  border-top: 1px solid #23243a;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 4vw 5vw;
  margin-bottom: 1.8rem;
  justify-content: flex-start;
}
.footer-block {
  min-width: 170px;
  flex: 1 0 170px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
}
.footer-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  object-fit: cover;
}
.footer-brand {
  font-family: var(--retro-font);
  font-size: 1.05rem;
  color: var(--gold);
  letter-spacing: 1.3px;
}
.footer-title {
  font-size: 1.09rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: var(--footer-link);
  letter-spacing: 1.2px;
}
.footer-link-list {
  list-style: none;
  padding: 0;
  margin: 0;
  line-height: 1.85;
}
.footer-link-list a {
  color: #f7f8fa;
  text-decoration: none;
  transition: color 0.17s;
  font-size: 1rem;
}
.footer-link-list a:hover {
  color: var(--accent);
}
.footer-newsletter {
  margin-top: 1.3rem;
}
.footer-newsletter input[type="email"] {
  padding: 0.55rem 1.1rem;
  border-radius: 8px 0 0 8px;
  border: 1px solid #313441;
  outline: none;
  font-size: 1rem;
  margin-right: -3px;
}
.footer-newsletter button {
  padding: 0.58rem 1.13rem;
  border-radius: 0 8px 8px 0;
  border: none;
  background: var(--accent);
  color: #181824;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.13s, color 0.13s;
}
.footer-newsletter button:hover {
  background: var(--badge);
  color: #181824;
}
.footer-bottom {
  text-align: center;
  color: #b9b993;
  font-size: 1rem;
  margin-top: 1.2rem;
  letter-spacing: 1.1px;
}

.games-section {
  margin: 2rem auto;
  max-width: 1100px;
  width: 100%;
  box-sizing: border-box;
  padding: 0;
}
.games-title {
  font-size: 2rem;
  font-family: var(--modern-font);
  font-weight: 800;
  margin-bottom: 2rem;
}

/* Container wrap pour gérer le padding des flèches uniquement sur desktop */
.games-carousel-wrap {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

/* Version desktop : cartes centrées si pas de scroll, scroll si trop de cartes */
.games-list {
  display: flex;
  gap: 1.4rem;           /* réduit l'espace entre cartes */
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  width: 100%;
  margin: 0;
  box-sizing: border-box;
  padding: 1rem 120px 1rem 2.5rem;  /* GROS padding à droite ! */
  /* PAS de justify-content ici */
}
.game-entry {
  flex: 0 0 260px;
  min-width: 240px;
  max-width: 280px;
  background: #23233ad4;
  border-radius: 22px;
  box-shadow: 0 2px 12px #0e0e2a36;
  padding: 0 1.1rem 1rem 1.7rem; /* padding droit/gauche équilibré */
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.17s, transform 0.15s, border 0.18s;
  scroll-snap-align: start;
  border: 2px solid transparent;
}
.game-entry:hover, .game-entry:focus-within {
  box-shadow: 0 4px 16px #16c1ee44, 0 0px 8px #0ef4;
  transform: scale(1.027) translateY(-3px);
  border: 2px solid var(--accent);
}
.game-img {
  width: 100%; height: 140px;
  object-fit: contain;
  border-radius: 22px 22px 0 0;
  background: #222233;
}
.game-badge {
  position: absolute; top: 14px; left: 18px;
  background: var(--accent); color: #101625;
  font-family: var(--retro-font); font-size: 0.85rem;
  border-radius: 10px; padding: 6px 16px;
  z-index: 2;
}
.game-title { font-size: 1.05rem; font-weight: bold; margin-left: 18px; margin-top: 0.5rem;}
.game-sub { color: #c6cbe3; font-size: 0.95rem; margin-left: 18px; }
.game-btn {
  background: var(--accent); color: #14141c;
  border-radius: 8px; padding: 0.52rem 1.18rem;
  font-family: var(--modern-font); font-size: 1rem; font-weight: 700;
  border: none; cursor: pointer;
  margin-left: 18px; margin-top: 0.7rem;
  transition: background 0.13s, color 0.13s;
}
.game-btn:hover { background: var(--badge); color: #101625;}
.games-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(30,34,51,0.85);
  border: none;
  border-radius: 50%;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  color: var(--accent); font-size: 2rem;
  cursor: pointer; opacity: 0.96;
  transition: background 0.18s, color 0.14s, opacity 0.18s;
  display: none;
}
.games-arrow.left { left: 0.25rem; }
.games-arrow.right { right: 0.25rem; }
.games-arrow.visible { display: flex; }

/* ------ Responsive Mobile/tablette ------ */
@media (max-width: 900px) {
  .games-list {
    gap: 1rem;
    padding: 1rem 0 1rem 2vw;  /* padding à gauche seulement */
  }
  .game-entry {
    min-width: 90vw;
    max-width: 96vw;
    flex: 0 0 90vw;
    box-sizing: border-box;
    margin: 0;
  }
  .game-img { height: 120px; }
}
@media (max-width: 600px) {
  .games-list {
    padding-left: 3vw;
  }
  .game-entry {
    min-width: 97vw;
    max-width: 98vw;
    flex: 0 0 97vw;
  }
  .game-img { height: 90px; }
}

/* ----- Flèches de scroll (desktop only) ----- */
@media (min-width: 800px) {
  .games-list::-webkit-scrollbar { display: none; }
  .games-list { scrollbar-width: none; }
}
@media (max-width: 800px) {
  .games-arrow { display: none !important; }
}

/* ----- Burger menu bien centré ----- */
@media (max-width: 800px) {
  nav {
    position: fixed;
    z-index: 1100;
    top: 0;
    right: 0;
    width: 80vw;          /* ou max-width: 320px */
    max-width: 320px;
    height: 100vh;
    background: #181824f6;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1.5rem;
    padding: 80px 2.5rem 2.2rem 2rem; /* 80px selon la hauteur du header, ajuste à ta convenance */
    box-shadow: -12px 0 30px #0007;
    transform: translateX(100%);
    transition: transform 0.24s cubic-bezier(.5,0,.35,1.2);
  }
  nav.open {
    transform: translateX(0);
  }
  .burger {
    display: flex;
    z-index: 1200;
    position: fixed;
    top: 16px;
    right: 20px;
  }
  /* Un fond assombri sous le menu, optionnel pour UX : */
  body.menu-open::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 1090;
    background: #181824b2;
    pointer-events: all;
  }
}
