/* =========================
   RESET
   ========================= */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: Arial, sans-serif;
  background: #050b0f;
}

/* =========================
   GLOW ANIMÉ BACKGROUND
   ========================= */
body::before {
  content: "";
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;

  background: radial-gradient(circle, rgba(0,200,255,0.08), transparent 70%);
  animation: glowMove 12s linear infinite;

  z-index: 0;
}

@keyframes glowMove {
  0% { transform: translate(0,0); }
  50% { transform: translate(10%,10%); }
  100% { transform: translate(0,0); }
}

/* =========================
   MENU GLOBAL
   ========================= */
.menu {
  position: relative;
  z-index: 2;

  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* =========================
   MENU ITEM
   ========================= */
.menu-item {
  width: calc(100% - 40px);
  max-width: 600px;

  margin: 10px auto;
  padding: 16px 20px;

  border-radius: 18px;

  color: #e6fbff;
  font-size: 18px;

  background: rgba(0, 200, 255, 0.05);
  border: 1px solid rgba(0, 200, 255, 0.15);

  box-shadow:
    0 0 6px rgba(0, 200, 255, 0.12),
    inset 0 0 6px rgba(0, 200, 255, 0.04);

  backdrop-filter: blur(8px);

  transition: all 0.25s ease;
  cursor: pointer;
}

/* effet click */
.menu-item:active {
  transform: scale(0.98);
}

/* hover (PC) */
.menu-item:hover {
  transform: translateY(-2px);

  box-shadow:
    0 0 12px rgba(0,200,255,0.2),
    inset 0 0 8px rgba(0,200,255,0.05);
}

/* =========================
   STRUCTURE TEXTE
   ========================= */
.menu-item span {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  position: relative;

  text-align: center;
  padding-right: 30px;
}

/* =========================
   FLÈCHE
   ========================= */
.has-sub span::after {
  content: "›";

  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);

  font-size: 18px;
  color: rgba(0,255,200,0.7);

  transition: transform 0.3s ease;
}

.has-sub.open span::after {
  transform: translateY(-50%) rotate(90deg);
}

/* =========================
   SUBMENU CONTAINER (FIX MAJEUR)
   ========================= */
.sub-menu {
  max-height: 0;
  overflow: hidden;

  display: flex;
  flex-direction: column;

  margin-top: 8px;

  opacity: 0;
  transform: translateY(-10px) scale(0.98);

  transition:
    max-height 0.35s ease,
    opacity 0.25s ease,
    transform 0.25s ease;
}

/* ouverture */
.has-sub.open .sub-menu {
  max-height: 400px;
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* =========================
   ITEMS SOUS MENU
   ========================= */
.sub-menu a {
  display: block;

  padding: 14px;
  margin-bottom: 8px;

  border-radius: 14px;

  font-size: 16px;
  color: #c9f6ff;

  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(0, 200, 255, 0.12);

  box-shadow: 0 0 4px rgba(0, 200, 255, 0.1);

  transition: all 0.25s ease;

  opacity: 0;
  transform: translateY(10px);
}

/* animation entrée */
.has-sub.open .sub-menu a {
  opacity: 1;
  transform: translateY(0);
}

/* effet touch */
.sub-menu a:active {
  transform: scale(0.96);

  border: 1px solid rgba(0, 200, 255, 0.4);

  box-shadow:
    0 0 10px rgba(0, 200, 255, 0.3);
}

/* =========================
   STAGGER (animation progressive)
   ========================= */
.sub-menu a:nth-child(1) { transition-delay: 0.05s; }
.sub-menu a:nth-child(2) { transition-delay: 0.1s; }
.sub-menu a:nth-child(3) { transition-delay: 0.15s; }
.sub-menu a:nth-child(4) { transition-delay: 0.2s; }

/* =========================
   RESPONSIVE MOBILE
   ========================= */
@media (max-width: 600px) {

  .menu-item {
    width: calc(100% - 20px);
    padding: 14px 16px;
    font-size: 16px;
    border-radius: 16px;
  }

  .menu-item span {
    padding-right: 28px;
  }

  .has-sub span::after {
    right: 8px;
    font-size: 16px;
  }
}

/* =========================
   BOUTON DISCORD
   ========================= */
.discord-btn {
  position: relative;
}

.discord-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 25px;
  background: radial-gradient(circle, rgba(0,255,255,0.2), transparent);
  opacity: 0.3;
}

.discord-btn:active {
  transform: scale(0.97);
}
/* ESPACE ENTRE LES BLOCS */
.sub-menu {
  padding: 10px; /* 🔥 espace intérieur */
  gap: 12px;     /* 🔥 espace entre les items */
}

/* ITEM SOUS MENU */
.sub-menu a {
  margin: 0; /* ❌ enlève margin-bottom */
}
/* =========================
   FIX SCROLL MENU (IMPORTANT)
   ========================= */
.nav {
  position: fixed;
  top: 0;
  right: 0;

  width: 100%;
  height: 100vh;

  display: flex;
  flex-direction: column;

  overflow-y: auto; /* 🔥 PERMET DE SCROLLER */
  -webkit-overflow-scrolling: touch; /* 🔥 FLUIDE SUR MOBILE */

  padding-bottom: 20px;
}
/* ICÔNES GLOBALES */
.icon {
  width: 20px;
  height: 20px;
  margin-right: 10px;

  fill: rgba(0,255,200,0.8);

  transition: all 0.3s ease;
}

/* HOVER */
.menu-item:hover .icon {
  fill: #00fff0;
  transform: scale(1.1);
  filter: drop-shadow(0 0 6px rgba(0,255,200,0.6));
}

/* DISCORD SPÉCIAL */
.discord-icon {
  fill: #5865F2;
}

.discord-btn:hover .discord-icon {
  fill: #7c87ff;
  filter: drop-shadow(0 0 10px rgba(88,101,242,0.8));
}