html, body {
  margin: 0;
  height: 100%;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0b0d17;
  overflow: hidden;
}

/* Canvas particles */
#particles-js {
  position: fixed;
  inset: 0;
  z-index: 1;
}

/* IMPORTANT : le canvas doit capter la souris */
#particles-js canvas {
  pointer-events: auto;
}

/* Contenu visuel au-dessus */
.content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #eaeaf0;

  /* ⛔ empêche le bloc content de voler les events */
  pointer-events: none;
}

/* Texte : purement visuel */
h1,
p {
  pointer-events: none;
}

h1 {
  font-weight: 600;
  letter-spacing: 0.5px;
}

p {
  opacity: 0.85;
  line-height: 1.6;
  max-width: 420px;
}

/* Formulaire : réactiver les interactions */
form,
input,
button {
  pointer-events: auto;
}

input {
  margin-top: 20px;
  padding: 12px 14px;
  width: 260px;
  border-radius: 6px;
  border: none;
}

button {
  margin-top: 12px;
  padding: 12px 22px;
  border: none;
  border-radius: 6px;
  background: #9aa0ff;
  color: #0b0d17;
  font-weight: 600;
  cursor: pointer;
}
#form-message {
  margin-top: 30px;
  font-size: 0.95rem;
  opacity: 0.9;
}
.link-button {
  margin: 18px 0 10px;
  background: none;
  border: none;
  color: #9aa0ff;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: underline;
}

#modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 13, 23, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.modal {
  background: #11142a;
  padding: 28px 26px;
  max-width: 420px;
  border-radius: 10px;
  text-align: left;
  color: #eaeaf0;
}

.modal h2 {
  margin-top: 0;
  font-size: 1.1rem;
}

.modal p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 14px;
}

#close-modal {
  background: #9aa0ff;
  color: #0b0d17;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  cursor: pointer;
}
.form-note {
  margin-top: 10px;
  font-size: 0.85rem;
  color: #aaa;
}

.form-note a {
  color: #aaa;
  text-decoration: underline;
}

.form-note a:hover {
  color: #fff;
}
.form-note,
.form-note a {
  pointer-events: auto;
}
