@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@600&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Black+Ops+One&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Righteous&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Bad+Script&family=Righteous&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Heebo:wght@400");

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  overflow: hidden; /* Cache les scrollbars */
  background: #0d1117; /* Couleur de fond sombre pour l'effet des particules */
  color: #c9d1d9; /* Couleur de texte */
}

header {
  position: sticky;
  top: 0;
  background: #161b22;
  color: #fff;
  padding: 20px 0;
  margin-right: 25px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

img {
  max-width: 200px;
  z-index: 5;
}

nav.modern-nav {
  position: sticky;
  top: 0;
  background: #21262d;
  padding: 0;
  box-shadow: 0 4px 6px rgba(95, 86, 86, 0.3);
  z-index: 5;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 20px;
}

nav ul li {
  margin-top: 5px;
}

nav ul li a {
  color: #c9d1d9;
  text-decoration: none;
  font-size: 1em;
  padding: 20px 10px;
  display: inline-block;
  transition: background-color 0.3s, color 0.3s;
}

nav ul li a:hover {
  background-color: #58a6ff;
  color: #fff;
  border-radius: 5px;
}

.liste1 {
  border: 2px solid rgb(0, 255, 221);
  width: 40%;
  margin: auto;
  margin-top: 2%;
  padding-top: 2%;
  padding-bottom: 2%;
}
.liste1 > li {
  margin-left: 5%;
  list-style: circle;
  color: #e6f1e8;
  font-family: "Roboto";
  font-size: large;
}

li {
  font-family: "Roboto";
  font-size: 20px;
  font-weight: 900;
  color: red;
}

.container {
  width: 80%;
  height: 100vh;
  margin: auto auto;
  margin-top: 140px;
}

main {
  display: flex;
  flex-direction: column;
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
}

section {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

section h2 {
  text-align: center;
  font-size: 2em;
  margin-bottom: 20px;
  color: #58a6ff;
}

form {
  max-width: 500px;
  margin: 0 auto;
  margin-top: 50px;
  text-align: left;
  background: #161b22;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

form label {
  display: block;
  margin: 10px 0 5px;
}

form input,
form textarea,
form button {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #30363d;
  border-radius: 5px;
  background: #0d1117;
  color: #c9d1d9;
}

form button {
  background: #58a6ff;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
}

form button:hover {
  background: #1f6feb;
}

footer {
  background: #161b22;
  color: #c9d1d9;
  text-align: center;
  padding: 10px 0;
  margin-top: 20px;
}

canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; /* Place derrière tout le contenu */
}

span {
  color: #ffffff;
  opacity: 0;
  font-size: x-large;
}

.opa {
  opacity: 1;
}

.anim {
  animation-duration: 1.2s;
  animation-iteration-count: 1;
  animation-name: point;
}

@keyframes point {
  from {
    opacity: 0.5;
  }
  to {
    opacity: 1;
  }
}

#s1,
#s2,
#s3 {
  opacity: 1;
}

.animletter {
  animation-duration: 3s;
  animation-iteration-count: infinite;
  animation-name: jump;
  animation-timing-function: ease-in-out;
}

@keyframes jump {
  from {
    transform: translateY(0);
  }
  25% {
    transform: translateY(-10px);
  }
  75% {
    transform: translateY(20px);
  }
  to {
    transform: translateY(0px);
  }
}
