/* ------------------------------------------------------------------
   1.  Polices & reset
------------------------------------------------------------------ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&family=Poppins:wght@700&display=swap');

*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  font-family: "Inter", sans-serif;
  color: #000000;
}

/* ------------------------------------------------------------------
   2.  Fond animé Vanta
------------------------------------------------------------------ */
#bg {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
}



/* ------------------------------------------------------------------
   4.  Layout principal
------------------------------------------------------------------ */
.wrapper {
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}

.page-title {
  margin: 0;
  font: 700 2.5rem "Poppins", sans-serif;
  text-align: center;
}

/* Dégradé texte */
.gradient-title {
  background: linear-gradient(90deg, #00E5E5 0%, #A6FF00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ------------------------------------------------------------------
   5.  Carte d’intro
------------------------------------------------------------------ */
.intro-card {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.664);
  backdrop-filter: blur(4px);
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.25);
}

.intro-icon {
  font-size: 1.5rem;
  color: #A6FF00;
}

/* ------------------------------------------------------------------
   6.  Formulaire
------------------------------------------------------------------ */
.note {
  opacity: 0.85;
  font-size: 0.9rem;
  text-align: center;
}

.form-label {
  font-weight: 600;
}

.form-row {
  width: 100%;
  display: flex;
  gap: 0.75rem;
}

.input {
  flex: 1 1 auto;
  padding: 0.7rem 1rem;
  border: solid 2px #02ce50;
  border-radius: 0.75rem;
  font-size: 1rem;
  color: #0A0A0A;
  
}

.input:focus {
  outline: 3px solid #00E5E5;
}

.btn-send {
  padding: 0.7rem 1.6rem;
  border: solid 2px #02ce50;
  border-radius: 0.75rem;
  font-weight: 600;
  background: #ffffff;
  color: #0A0A0A;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.btn-send:hover   { background: #f1f1f1; transform: translateY(-2px); }
.btn-send:active  { background: #eaeaea; transform: translateY(0);   }

/* ------------------------------------------------------------------
   7.  Loader + messages
------------------------------------------------------------------ */
.hidden { display: none; }

.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.loader {
  width: 48px; height: 48px;
  border: 5px solid #ffffff;
  border-top-color: #051789;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------------
   8.  Zone de réponse + bouton copier
------------------------------------------------------------------ */
.response-wrapper {
  width: 100%;
  position: relative;
}

.response {
  min-height: 110px;
  white-space: pre-line;
  padding: 1rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
}

.btn-copy {
  position: absolute;
  top: 8px; right: 8px;
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  border: none;
  border-radius: 0.5rem;
  background: #051789;
  color: #ffffff;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
  z-index: 100;
}

.btn-copy:hover  { background: #2e30c9; transform: translateY(-2px); }
.btn-copy:active { background: #2426a4; transform: translateY(0);    }

/* ------------------------------------------------------------------
   9.  Logo décoratif
------------------------------------------------------------------ */
.footer-logo {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  width: 112px;
  opacity: 0.8;
  pointer-events: none;
}

/* ------------------------------------------------------------------
   10.  Media queries
------------------------------------------------------------------ */
@media (max-width: 480px) {
  .page-title { font-size: 2rem; }
  .intro-icon { font-size: 1.3rem; }
  .form-row   { flex-direction: column; }
  .btn-send   { width: 100%; }
}

/* ------------------------------------------------------------------
   11.  Préférence « réduit les animations »
------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
