@charset "UTF-8";
/* CSS Document */

/* Fond complet avec SVG */
body {
  margin: 0;
  padding: 0;
  background: url('img/bg_spiral.svg') no-repeat center center fixed;
  background-size: cover;
  background-color: black;
  font-family: 'Arial', sans-serif;
  color: white;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Logo */
.logo {
  max-width: 550px;
  margin-bottom: 1rem;
}

.logo_name {
  position: absolute;
  top: 40px;
  width: 100%;
  text-align: center;
  z-index: 20;
}

.logo-large {
  max-width: 200px;
  height: auto;
}

/* Nouveau bloc d'abonnement stylisé */
.subscribe-box {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: flex-start;
  text-align: left;
  color: black;
  font-family: sans-serif;
  background: transparent;
}

.subscribe-box h2 {
  font-size: 2.5rem;
  line-height: 1.1;
  font-weight: 900;
  color: white;
  margin: 0;
  border-top: 4px solid white;
  border-bottom: 4px solid white;
  padding: 1rem 0;
}

.subscribe-form {
  display: flex;
  width: 100%;
  max-width: 500px;
  background: white;
  border-radius: 0;
  overflow: hidden;
}

.subscribe-form input[type="email"] {
  flex: 1;
  padding: 1rem;
  border: none;
  font-size: 1rem;
  text-transform: uppercase;
  color: black;
}

.subscribe-form button {
  position: relative;
  overflow: hidden;
  padding: 1rem 2rem;
  background: black;
  color: white;
  font-weight: bold;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  transition: background-color 0.3s ease;
  z-index: 0;
}

.subscribe-form button::before {
  content: "";
  position: absolute;
  top: 0;
  right: 100%;
  width: 100%;
  height: 100%;
  background: blue;
  transition: right 0.5s ease;
  z-index: -1;
}

.subscribe-form button:hover::before {
  right: 0;
}

.subscribe-form button:hover {
  color: white;
}

/* Unified message style for success & error */
.form-message {
  height: 1.5rem; /* Reserve space to prevent layout shift */
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: white;
  background: none;
  padding: 0;
  display: block; /* Always takes space */
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  text-align: left;
}
