/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', 'Roboto', sans-serif;
  background-color: #0a0a0a;
  color: #e0e0e0;
  line-height: 1.6;
}

/* HEADER */
header {
  width: 100%;
  background: linear-gradient(to right, #000, #0a0a0a);
  padding: 20px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 0 10px #00c8ff33;
  overflow: visible; /* IMPORTANT */
}

/* LOGO */
.logo {
  font-size: 24px;
  font-weight: 700;
  color: #00c8ff;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow: 0 0 5px #00c8ff;
}

/* NAVIGATION */
nav {
  flex-shrink: 0; /* EMPÊCHE LE NAV DE SE COMPRESSER */
}

nav ul {
  list-style: none;
  display: flex;
  gap: 25px; /* LÉGÈRE RÉDUCTION POUR ÉVITER LE WRAP */
  position: relative;
  white-space: nowrap; /* EMPÊCHE LE MENU DE PASSER À LA LIGNE */
}

nav ul li {
  position: relative;
}

/* LIENS PRINCIPAUX */
nav ul li > a {
  color: #e0e0e0;
  text-decoration: none;
  font-size: 15px;
  letter-spacing: 1px;
  padding: 8px 0;
  display: inline-block;
  transition: color 0.3s ease;
}

nav ul li > a:hover {
  color: #00c8ff;
}

/* BARRE SOUS LES LIENS */
nav ul li > a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: #00c8ff;
  transition: width 0.3s ease;
}

nav ul li > a:hover::after {
  width: 100%;
}

/* SOUS-MENUS */
nav ul li ul {
  position: absolute;
  top: 40px;
  left: 0;
  background: #0f0f0f;
  padding: 15px 0;
  border-radius: 6px;
  min-width: 180px;
  box-shadow: 0 0 15px #00c8ff33;
  display: none;
  flex-direction: column;
  gap: 0;
  z-index: 999;

  /* ANIMATION XR */
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* ITEMS DU SOUS-MENU */
nav ul li ul li a {
  padding: 10px 20px;
  font-size: 14px;
  color: #ccc;
  display: block;
  transition: background 0.2s ease, color 0.2s ease;
}

nav ul li ul li a:hover {
  background: #00c8ff22;
  color: #00c8ff;
}

/* AFFICHAGE AU SURVOL */
nav ul li:hover > ul {
  display: flex;
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* MAIN */
main {
  padding: 60px;
  min-height: 70vh;
}

/* FOOTER */
footer {
  width: 100%;
  padding: 30px;
  text-align: center;
  background: #000;
  box-shadow: 0 -2px 10px #00c8ff33;
}

/* BOUTON SCROLL TOP */
#scrollTop {
  background: #00c8ff;
  color: #000;
  border: none;
  padding: 12px 24px;
  cursor: pointer;
  font-weight: bold;
  border-radius: 30px;
  font-size: 14px;
  box-shadow: 0 0 10px #00c8ff;
  transition: background 0.3s ease, transform 0.2s ease;
}

#scrollTop:hover {
  background: #0099cc;
  transform: scale(1.05);
}

/* BURGER MENU (MOBILE) */
.burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 10000;
}

.burger span {
  width: 28px;
  height: 3px;
  background: #00c8ff;
  border-radius: 3px;
  transition: 0.35s ease;
}

/* État "croix" quand le menu est ouvert */
.burger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ========================= */
/* === MOBILE ONLY (<=900) === */
/* ========================= */
@media (max-width: 900px) {

  nav ul {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(8px);
    display: none;
    flex-direction: column;
    padding: 100px 30px 40px;
    gap: 0;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 9999;
  }

  nav ul.show {
    display: flex;
  }

  /* Liens principaux */
  nav ul li > a {
    padding: 18px 0;
    width: 100%;
    display: block;
    font-size: 22px;
  }

  /* Sous-menus */
  nav ul li ul {
    display: none;
    position: static;
    background: transparent;
    padding-left: 20px;
    margin-bottom: 10px;
    border-left: 2px solid #00c8ff33;
    width: 100%;
  }

  nav ul li ul li a {
    padding: 12px 0;
    font-size: 18px;
  }

  /* Burger visible */
  .burger {
    display: flex;
  }
}


