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-x: hidden;
  overflow-y: auto; 
}
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;
}
body.contact-page {
  margin: 0;
  padding: 0;
  height: 100vh;
  font-family: 'Poppins', sans-serif;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
}

.scroll-indicator {
  position: absolute;
  top: 20px;              /* place en haut */
  left: 50%;              /* centre horizontalement */
  transform: translateX(-50%);
  text-align: center;
  cursor: pointer;
  z-index: 10;
  user-select: none;
}

.scroll-indicator .scroll-text {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  color: white;
  margin-bottom: 5px;
}

.scroll-indicator .scroll-lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}

.scroll-indicator .scroll-lines span {
  display: block;
  width: 4px;
  height: 10px;
  background: white;
  border-radius: 2px;
  animation: scrollPulse 1s infinite;
}

.scroll-indicator .scroll-lines span:nth-child(2) {
  animation-delay: 0.2s;
}

.scroll-indicator .scroll-lines span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes scrollPulse {
  0% { transform: translateY(0); opacity: 0.3; }
  50% { transform: translateY(10px); opacity: 1; }
  100% { transform: translateY(0); opacity: 0.3; }
}


/* Sections */
section { width: 100vw; min-height: 100vh; display: flex; align-items: center; justify-content: center; }

.intro-section {
  background-color: #000;  /* noir opaque */
  color: #fff;
  flex-direction: column;
  text-align: center;
}


.intro-section h1 { font-size: 3rem; margin-bottom: 00px; }
.intro-btn {
  padding: 15px 30px;
  font-size: 1.2rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  background: rgba(255,255,255,0.2);
  color: rgb(97, 96, 96);
  transition: all 0.3s ease;
}
.intro-btn:hover { background: rgba(255,255,255,0.35); color: #000; }

/* ---------- CENTRAGE FORMULAIRE ---------- */
.form-section {
  display: flex;
  justify-content: center; /* centre horizontalement */
  align-items: center;     /* centre verticalement */
  min-height: 100vh;
}

.contact-container {
  background: rgba(0, 0, 0, 0.15); /* léger effet glass */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 40px;
  border-radius: 20px;
}


/* Les lignes restent horizontales mais centrées */
.contact-container .form-row {
  display: flex;
  gap: 16px;
  justify-content: center; /* centre les colonnes de chaque ligne */
  width: 100%;
  max-width: 850px;        /* largeur max du formulaire */
}

/* Chaque colonne garde sa largeur proportionnelle */
.contact-container .form-row .form-group {
  flex: 1;
  min-width: 0; /* évite overflow */
}

/* Bouton centré sous le formulaire */
.contact-container .submit-btn {
  display: block;
  margin: 10px auto 0 auto; /* top auto, centré horizontalement */
  padding: 6px 20px;
  font-size: 0.9rem;
  align-self: center;
}


.contact-container input,
.contact-container textarea {
  background: rgba(255, 255, 255, 0.85); /* plus opaque */
    width: 100%;      /* s’adapte à la colonne */
  border: none; /* ✅ supprime le contour gris */
  border-radius: 8px;
  padding: 10px;
  font-size: 0.9rem;
  font-style: italic; /* italique à l’intérieur */
  color: #111;
  width: 100%;
  box-sizing: border-box;
}


/* ligne horizontale pour 2 ou 3 champs */
.contact-container .form-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 12px;
}

/* chaque colonne dans la ligne */
.contact-container .form-row .form-group {
  flex: 1;
  min-width: 0; /* important pour éviter overflow dans flex */
}

/* si tu veux forcer une colonne plus petite */
.contact-container .form-group.small {
  flex: 0 0 35%; /* exemple */
}

/* responsive : empile sur mobile */
@media (max-width: 768px) {
  .contact-container .form-row {
    flex-direction: column;
    gap: 10px;
  }
}

/* Restaurer le style du bouton (forte spécificité) */
.contact-container .submit-btn,
.contact-container button[type="submit"] {
  display: inline-block;
  padding: 10px 26px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.18);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.18s ease, color 0.18s ease;
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
  position: relative;
  z-index: 70; /* au-dessus du canvas */
}

/* hover du bouton */
.contact-container .submit-btn:hover,
.contact-container button[type="submit"]:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.32);
  color: #c9c9c9;
}



/* Labels = texte hors des champs */
.contact-container label {
  font-size: 1.2rem;      /* normal */
  font-weight: 600;
  font-style: normal;   /* bien droit */
  color: #ddd;
}

.contact-container .form-row .form-group {
  flex: 1;          /* prend toute la place possible horizontalement */
  min-width: 0;     /* évite overflow dans flex */
}




/* Agrandir la zone Message */
.contact-container textarea {
  width: 820px;     /* même largeur que les autres */
  height: 100px;    /* beaucoup plus grand verticalement */
  resize: vertical; /* permet à l'utilisateur de l'agrandir si besoin */
  font-size: 0.9rem;
  font-style: italic;
  padding: 8px 10px;
  box-sizing: border-box;
}


/* Placeholder (texte d’exemple) aussi en italique et plus doux */
.contact-container input::placeholder,
.contact-container textarea::placeholder {
  font-size: 0.9rem;
  font-style: italic;
  color: rgba(0, 0, 0, 0.6);
}


.contact-container h1 {
  margin-bottom: 20px;
  font-size: 2rem; /* taille originale conservée */
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 15px;
}



textarea {
  height: 60px;
  resize: none;
}

.submit-btn {
  padding: 6px 20px;
  border-radius: 12px;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: #222; /* texte gris/noir */
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  background: rgba(255, 255, 255, 0.35);
  color: #000;
}

.popup-message {
  margin-top: 15px;
  backdrop-filter: blur(10px);
  padding: 10px 15px;
  border-radius: 12px;
  display: none;
  font-size: 1rem;
  text-align: center; /* centré */
  color: #ffffff;     /* blanc */
}


input::placeholder,
textarea::placeholder {
  color: rgba(34, 34, 34, 0.6);
}


.submit-btn:hover {
  background: rgba(255,255,255,0.35);
  color: #000;
}


#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1; /* Derrière tout */
  background: transparent;
}



/* Fond noir derrière le formulaire */
.form-section {
  position: relative;
  background: rgba(0, 0, 0, 1); /* noir avec légère transparence */
  padding: 60px 20px;
  border-radius: 20px;
  z-index: 1;
}

/* Garde le formulaire (glassmorphism) au-dessus du noir */
.contact-container {
  position: relative;
  z-index: 2;
}

/* Social icons avec webp */
.social-link img {
  width:30px;         /* nouvelle taille réduite */
  height: 30px;
  border-radius: 5px;  /* arrondi si PNG transparent */
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

/* Hover : zoom + ombre blanche */
.social-link:hover img {
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.6); /* halo blanc */
}

/* Hover : zoom + ombre blanche */
.social-link:hover img {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.6); /* halo blanc */
}
.social-icons {
  display: flex;
  gap: 50px; /* augmente l’espace entre les pictos */
  justify-content: center;
  align-items: center;
}
.social-icons a {
  margin-top: 20px; /* augmente la distance depuis le haut de la section */
}
