:root {
  --main-bg-color: #050d1e;
  --main-text-color: #ffffff;
  --highlight-color: #ddd;
  --transition-fast: 0.3s;
  --transition-slow: 0.7s;
}
/* ------------------------ GENERAL ------------------------------------------- */
html,
body {
  font-family: "Figtree", sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  background-color: var(--main-bg-color);
  scroll-behavior: smooth;
  scrollbar-width: none;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  width: 100%;
  overflow-x: hidden;
  /* scrollbar-color: var(--main-bg-color) var(--main-bg-color); */
}
button{
  background-color: transparent;
  border: none;
  padding: 0; /* Réinitialise l'espacement interne */
  margin: 0; /* Réinitialise les marges externes */
  font-family: inherit; /* Fait hériter la police du parent */
  color: inherit; /* Fait hériter la couleur du parent */
  cursor: pointer; /* Assure que le curseur est une main */
  text-align: inherit; /* Fait hériter l'alignement du texte */
}
/* -------------------------- Transition --------------------------  */
#transition-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--main-bg-color);
  opacity: 1; /* Commence visible */
  pointer-events: all;
  z-index: 99999;
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
#transition-overlay.active {
  opacity: 1;
  pointer-events: all;
}
#transition-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
/* --------------------------- INTRO -------------------- */
.page-intro {
  width: 90vw;
  max-width: 900px;
  margin: 10vh auto 3vh auto;
  color: #fff;
  text-align: center;
  font-family: "Figtree", sans-serif;
}
h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 0.5em;
  font-family: "Libre Baskerville", serif;
  font-weight: normal;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.page-intro h2 {
  /* font-size: 2.2em; */
  font-size: clamp(1.8rem, 3vw, 2.5rem); /* Exemple avec clamp */
  margin-bottom: 0.5em;}


p {
  font-size: clamp(0.9rem, 1.6vw, 1.1rem);
  font-weight: 400;
  opacity: 0.85;
  margin: 0;
}
/* -------------- animation text  ----------------- */

.content-anim {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s, transform 1.2s;
}
.content-anim.visible {
  opacity: 1;
  transform: none;
}
/* halo */
/* Effet halo brumeux au clic */
.halo-click {
  position: fixed;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.25) 0%,
    rgba(255, 255, 255, 0.1) 60%,
    rgba(255, 255, 255, 0) 100%
  );
  box-shadow: 0 0 40px 20px rgba(255, 255, 255, 0.15);
  width: 180px;
  height: 180px;
  left: 0;
  top: 0;
  opacity: 0.7;
  transform: scale(0.5);
  filter: blur(2px);
  z-index: 99999;
  animation: halo-fade 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes halo-fade {
  to {
    opacity: 0;
    transform: scale(1.5);
    filter: blur(12px);
  }
}
.preserve-lines{
  white-space: pre-wrap
}

#notification-popup {
  position: fixed;
  /* MODIFIÉ : Positionné en haut */
  top: 20px; 
  left: 50%;
  /* MODIFIÉ : Commence au-dessus de l'écran */
  transform: translate(-50%, -150%); 
  /* MODIFIÉ : Couleurs assorties aux boutons */
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px); /* Effet de verre pour la lisibilité */
  color: #fff;
  padding: 12px 25px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  font-family: 'Figtree', sans-serif;
  font-size: 0.9rem;
  opacity: 0;
  visibility: hidden;
  transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.5s, visibility 0.5s;
}

#notification-popup.show {
  opacity: 1;
  visibility: visible;
  /* MODIFIÉ : Glisse vers le bas pour apparaître */
  transform: translate(-50%, 0); 
}