/* RESET */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
  font-family: 'Arial', sans-serif;
  background: #111;
  color: #fff;
  height: auto;
  min-height: 100%;
  overflow-y: auto; /* ✅ permet de scroller sur mobile */
}

/* HEADER */
header {
  background: linear-gradient(90deg, #1f1c2c, #928dab);
  padding: 15px 50px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  color: #fff;
  font-size: 26px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 0 8px #f39c12;
}

/* MENU */
.menu {
  list-style: none;
  display: flex;
  gap: 25px;
  align-items: center;
}
.menu li { position: relative; }
.menu a {
  display: block;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  padding: 10px 14px;
  transition: all 0.3s ease;
  border-radius: 6px;
}
.menu a:hover {
  color: #f39c12;
  background: rgba(243,156,18,0.15);
  text-shadow: 0 0 8px #f39c12, 0 0 16px #f39c12;
}

/* Ajout d'un caret ▼ via pseudo-élément */
.has-caret::after {
  content: " ▼";
  font-size: 12px;
  transition: transform 0.3s ease;
}
.deroulant:hover .has-caret::after {
  transform: rotate(180deg);
}

/* SOUS-MENU (desktop) */
.sous-menu {
  display: flex;
  flex-direction: column;
  position: absolute;
  left: 0;
  top: 110%;
  background: rgba(20,20,20,0.95);
  list-style: none;
  min-width: 200px;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(243,156,18,0.3);
  z-index: 20;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.35s ease;
  overflow: hidden;
}
.sous-menu li a {
  color: #fff;
  padding: 12px 16px;
  white-space: nowrap;
  transition: 0.3s;
}
.sous-menu li a:hover {
  background: rgba(243,156,18,0.1);
  padding-left: 22px;
  color: #f39c12;
}

/* Ouverture fluide */
.deroulant:hover > .sous-menu,
.deroulant:focus-within > .sous-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* HERO */
.hero {
  height: 80vh;
  background: url('https://i.postimg.cc/GmsV54rc/creer-pika-theme-gaming.jpg') center/cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
  padding: 20px;
  animation: fadeIn 1.5s ease-in-out;
}
.hero h1 {
  font-size: 52px;
  margin-bottom: 16px;
  animation: glow 2s infinite alternate;
}
.hero p {
  font-size: 22px;
  margin-bottom: 28px;
  opacity: 0.9;
}
.btn {
  background: #f39c12;
  color: #fff;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px #f39c12, 0 0 20px rgba(243,156,18,0.6);
}
.btn:hover {
  background: #e67e22;
  box-shadow: 0 0 15px #e67e22, 0 0 40px #f39c12;
  transform: scale(1.05);
}

/* FOOTER */
footer {
  text-align: center;
  background: #1f1c2c;
  color: #fff;
  padding: 18px;
  font-size: 14px;
  letter-spacing: 1px;
  box-shadow: 0 -4px 15px rgba(0,0,0,0.4);
}

/* ANIMATIONS */
@keyframes glow {
  from { text-shadow: 0 0 10px #f39c12, 0 0 20px #f39c12; }
  to   { text-shadow: 0 0 20px #f39c12, 0 0 40px #f39c12; }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 📱 VERSION MOBILE SIMPLE */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    align-items: center;
  }

  .menu {
    flex-direction: column;  /* ✅ menu vertical sur mobile */
    gap: 8px;
    width: 100%;
    text-align: center;
    margin-top: 10px;
  }

  .menu li {
    width: 100%;
  }

  .menu a {
    font-size: 14px;
    padding: 10px;
    display: block;
    width: 100%;
  }

  /* ✅ Sous-menu vertical qui ne bloque pas le scroll */
  .sous-menu {
    position: relative;
    display: none;
    flex-direction: column;
    width: 100%;
    background: rgba(20,20,20,0.95);
    border-radius: 0;
    padding: 5px 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .deroulant:focus-within > .sous-menu,
  .deroulant:hover > .sous-menu {
    display: flex;
  }
}
