@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: linear-gradient(135deg, #fdfaf6, #fff);
  color: #333;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  flex-direction: column;
  text-align: center;
  padding: 1rem;
}

/* Container max width */
.container {
  max-width: 500px;
  margin: auto;
}

/* Fade-in + slide-up */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease forwards;
}
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Logo avec effet gradient */
.logo {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 0.3rem;
  background: linear-gradient(90deg, #b0ab9b, #c49a6c, #f1e4c3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.slogan {
  font-size: 1rem;
  color: #666;
  margin-bottom: 1rem;
}

/* Texte */
p {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

/* Input avec icône */
.input-group {
  position: relative;
  width: 100%;
  max-width: 350px;
  margin: auto;
}
.icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
}
.email-input {
  padding: 0.8rem 1rem 0.8rem 2.2rem;
  border-radius: 999px;
  border: 1.2px solid #bbb;
  width: 100%;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}
.email-input:focus {
  border-color: #c49a6c;
  box-shadow: 0 0 10px rgba(196, 154, 108, 0.4);
  outline: none;
}

/* Bouton dynamique */
.notify-btn {
  margin-top: 1.2rem;
  padding: 0.9rem 2rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #c49a6c, #a47c52);
  color: white;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}
.notify-btn:hover {
  background: linear-gradient(135deg, #d4b07d, #b18558);
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}
.notify-btn:active {
  transform: scale(0.96);
}

/* Message après envoi */
#message {
  margin-top: 1rem;
  font-size: 0.95rem;
}
.success { color: green; }
.error { color: red; }

/* Footer */
footer {
  position: absolute;
  bottom: 10px;
  width: 100%;
  font-size: 0.75rem;
  color: #666;
  text-align: center;
}
footer hr {
  width: 90%;
  margin: 0 auto 8px;
  border: none;
  border-top: 1px solid #ddd;
}
footer a {
  text-decoration: none;
  color: inherit;
}
footer a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 600px) {
  body {
    padding: 1rem;
    justify-content: center; /* ⬅️ garde le centrage */
  }

  .container {
    max-width: 95%;
  }

  .logo {
    font-size: 1.8rem; /* réduit le logo */
  }

  .slogan {
    font-size: 0.9rem;
  }

  .email-input {
    width: 100%; /* occupe toute la largeur dispo */
    font-size: 0.85rem;
    padding: 0.7rem 1rem 0.7rem 2.2rem;
  }

  .notify-btn {
    width: 40%; /* bouton pleine largeur */
    font-size: 0.9rem;
    padding: 0.8rem;
    margin-top: 1rem;
  }

  footer {
    font-size: 0.65rem;
    bottom: 5px;
  }
}

