/* canvas en background, non interactif */
canvas#background {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  display: block;
}

/* évite la répétition de canvas{...} ailleurs */

/* main : le faire participer au flux normal (scroll) */
main {
  position: relative;        /* <-- important : ne pas rester absolute */
  z-index: 1;
  width: 100%;
  color: white;
  margin: 0 auto;
  padding: 120px 0;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  /* si tu veux forcer du scroll pendant les tests : */
  /* min-height: 200vh; */
}

/* le reste de ton CSS peut rester identique */

html, body {
    height: 400vh; /* 4 fois la hauteur de la fenêtre */
    margin: 0;
    padding: 0;
}


#toggleModeBtn {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 10;
  padding: 8px 12px;
  background: rgba(0,0,0,0.7);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

#planet-info {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  color: white;
  text-shadow: rgba(255,255,255,1) 0px 0px 47px; 
  z-index: 10; /* index de l'empilement dans le canva */

}

#scroll-info{
  position: fixed; 
  top : 10%;
  right : 10%;
  z-index : 11;
  color : white;

}

#planet-data {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  color: white;
  text-shadow: rgba(255,255,255,1) 0px 0px 47px; 
  z-index: 10; /* index de l'empilement dans le canva */

}



