body {
  margin: 0;
  height: 100vh;
  background: url('../img/background.webp') center center / cover no-repeat fixed;
  font-family: 'Brandon Grotesque', Arial, sans-serif;
  color: white;
  overflow: hidden;
}
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

header {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 10;
}

.logo {
  height: 50px;
  width: auto;
}

.menu-button {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

#burger {
  background-color: rgba(0,0,0,0.7);
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  color: white;
  padding: 8px 20px;
  white-space: nowrap;
  user-select: none;
  overflow: hidden;
  position: relative;
  transition: background-color 0.3s ease;
  z-index: 11000; /* Pour s’assurer qu’il soit toujours au-dessus */
}

.menu-text {
  font-family: 'Poppins', sans-serif;
  font-weight: 500; /* medium */
  color: white;
  user-select: none;
  cursor: pointer;
  margin-right: 12px;
  font-size: 1rem;
  letter-spacing: 0.05em;
}

/* 3 traits hamburger */
.burger-traits {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px; /* espace entre les traits */
}

.burger-traits span {
  display: block;
  width: 24px;      /* largeur fixe des traits */
  height: 2px;      /* épaisseur fine */
  background-color: white;
  border-radius: 1px; /* coins arrondis */
}

/* Hacker text styling */
.hacker-text-container {
  position: fixed;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  letter-spacing: 0.05em;
  white-space: normal;
  user-select: none;
  color: white;
  max-width: 600px;
  text-align: left;
  z-index: 20;
}

.hacker-text-container.left {
  position: fixed;
  left: 20px;
  top: auto;
  bottom: 20px;
  margin: 0;
  padding: 0;
}

.hacker-text-container.right {
  bottom: 20px;
  right: 20px;
  font-size: 1rem;
  text-align: right;
  max-width: 350px;
}
.hacker-text-container.top-right {
  position: fixed;
  top: 20px;
  right: 20px;
  max-width: 350px;
  font-size: 1.2rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: white;
  text-align: right;
  user-select: none;
  z-index: 20;
}

.letter.glitch {
  color: white;
  text-shadow: none;
  animation: none;
}
#fullscreen-menu .category {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  user-select: none;
  cursor: default;
  /* Ombre floutée plus douce et diffuse */
  text-shadow:
    0 0 0px rgba(0, 0, 0, 0.8),
    0 0 0px rgba(0, 0, 0, 0.6),
    0 0 10px rgba(0, 0, 0, 0.5);
  transition: color 0.3s ease;
}

#fullscreen-menu .category:hover {
  color: #f3f3f3;

}
.category a {
  color: white;
  text-decoration: none;
  cursor: pointer;
  display: inline-block;
  padding: 4px 8px;
  /* garde l’ombre floutée que tu avais */
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.39);
  transition: color 0.3s ease;
}
a {
  text-decoration: none;
}
.category a:hover,
.category a:focus {
  color: #ddd;
  outline: none;
}


/* Plein écran menu avec glassmorphism */
#fullscreen-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10000;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  display: flex;
  justify-content: center;
  align-items: center;
  /* SUPPRIME LES mask-image ICI pour éviter de casser le glassmorphism */
}

/* Quand actif */
#fullscreen-menu.active {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

/* effet hover fluide */
.fluid-hover {
  position: absolute;
  pointer-events: none;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
  backdrop-filter: blur(25px);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.fluid-hover.active {
  opacity: 1;
}

/* On remplit tout l'écran et on enlève le border-radius */
.glassmorphism-menu {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  padding: 60px;
  box-sizing: border-box;

  /* On supprime le mask-image */
  mask-image: none;
  -webkit-mask-image: none;
}

.glassmorphism-menu::before {
  content: '';
  position: absolute;
  top: var(--mask-y, 50%);
  left: var(--mask-x, 50%);
  width: 140px;
  height: 140px;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.6) 0%, transparent 90%);
  transform: translate(-50%, -50%);
  transition: background 0.2s ease;
  mix-blend-mode: screen;
  filter: blur(25px);
  z-index: 10;
}

/* POur le bouton burger (déjà défini plus haut mais ici en rappel si besoin) */
#burger {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 11000; /* Toujours au-dessus du menu */
  background-color: rgba(0,0,0,0.7);
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  color: white;
  padding: 8px 20px;
  white-space: nowrap;
  user-select: none;
  overflow: hidden;
  transition: background-color 0.3s ease;
}

/* Transformation des traits en croix */
#burger.active .burger-traits span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
  background-color: white;
}

#burger.active .burger-traits span:nth-child(2) {
  opacity: 0;
}

#burger.active .burger-traits span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
  background-color: white;
}

#close-menu {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 18px;       /* Taille de la croix */
  line-height: 18px;     /* Aligne verticalement la croix */
  width: 40px;           /* Cercle un peu plus grand que les traits */
  height: 40px;
  color: white;
  cursor: pointer;
  user-select: none;
  z-index: 12000;        /* Au-dessus de tout */
  background: rgba(92, 92, 92, 0.6);
  border-radius: 50%;    /* Cercle */
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  transition: background-color 0.3s ease, color 0.3s ease;
}

#close-menu:hover,
#close-menu:focus {
  background: rgba(255, 255, 255, 0.8);
  color: rgb(0, 0, 0);
  outline: none;
}
#close-menu {
  display: none;
}
