:root {
  --bg: #000;
  --text: #f3f3f3;
  --muted: #a7a7a7;
  --line: rgba(255, 255, 255, 0.26);
  --line-focus: rgba(255, 255, 255, 0.62);
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }

.page-shell {
  min-height: 100svh;
  background: #000;
}

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  background: #000;
}

.eye-wrap {
  width: 100%;
  height: min(52vw, 560px);
  min-height: 320px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.eye-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 16%;
  user-select: none;
  pointer-events: none;
}

.hero-content {
  width: min(100% - 40px, 920px);
  text-align: center;
  margin-top: -48px;
  padding: 0 0 72px;
  position: relative;
  z-index: 2;
}

h1 {
  margin: 0;
  font-size: clamp(2.15rem, 4.3vw, 4.15rem);
  line-height: .96;
  letter-spacing: -0.035em;
  font-weight: 900;
  text-transform: uppercase;
  text-shadow: 0 2px 22px rgba(0, 0, 0, .45);
}

.tagline {
  margin: 22px 0 40px;
  color: #c8c8c8;
  font-family: "Courier New", Courier, monospace;
  font-size: clamp(.98rem, 1.55vw, 1.28rem);
  letter-spacing: .02em;
}

.signup {
  width: min(100%, 810px);
  min-height: 80px;
  margin: 0 auto;
  padding: 8px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(5, 5, 5, .82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
}

.email-field {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 0 14px;
}

.mail-icon {
  width: 24px;
  height: 24px;
  color: #d5d5d5;
  flex: 0 0 auto;
}

.mail-icon svg { width: 100%; height: 100%; display: block; }

input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: #fff;
  font-size: 1rem;
}

input::placeholder { color: #5f5f5f; opacity: 1; }

.signup:focus-within { border-color: var(--line-focus); }

button {
  min-width: 306px;
  border: 0;
  border-radius: 15px;
  padding: 0 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  background: #f3f3f3;
  color: #111;
  font-weight: 900;
  font-size: .92rem;
  cursor: pointer;
  transition: transform .16s ease, background .16s ease;
}

button:hover { transform: translateY(-1px); background: #fff; }
button:active { transform: translateY(0); }

.arrow {
  font-size: 1.45rem;
  line-height: 1;
  font-weight: 500;
}

.form-note {
  min-height: 22px;
  margin: 14px auto 0;
  font-family: "Courier New", Courier, monospace;
  font-size: .8rem;
  color: var(--muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 720px) {
  .eye-wrap {
    height: 59vw;
    min-height: 280px;
  }

  .eye-image {
    width: 138%;
    max-width: none;
    object-position: 49% 18%;
  }

  .hero-content {
    width: min(100% - 28px, 560px);
    margin-top: -18px;
    padding-bottom: 44px;
  }

  h1 {
    font-size: clamp(2rem, 11vw, 3.2rem);
  }

  .tagline {
    max-width: 330px;
    margin: 17px auto 28px;
    line-height: 1.55;
  }

  .signup {
    grid-template-columns: 1fr;
    min-height: unset;
    padding: 8px;
    border-radius: 18px;
  }

  .email-field {
    min-height: 58px;
    padding: 0 12px;
  }

  button {
    min-width: 0;
    min-height: 58px;
    width: 100%;
    border-radius: 13px;
  }
}

@media (max-width: 420px) {
  .eye-wrap {
    height: 71vw;
    min-height: 255px;
  }

  .eye-image {
    width: 168%;
    object-position: 48.5% 16%;
  }

  .hero-content { margin-top: -2px; }
}


/* --- Connexion Brevo --- */
.bot-trap {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  border: 0 !important;
  left: -9999px !important;
}

#brevo-submit-frame,
.submit-frame {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  border: 0 !important;
  visibility: hidden !important;
}

button:disabled {
  cursor: wait;
  opacity: .72;
  transform: none;
}

.form-note.is-success,
.form-note.is-error {
  color: #d8d8d8;
}


/* Sécurité de mise en page : le champ anti-bot Brevo ne doit jamais être visible */
input[name="email_address_check"] {
  display: none !important;
  position: absolute !important;
  left: -9999px !important;
  width: 0 !important;
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
}

/* Le champ visible garde exactement la mise en page de la V2 */
#email {
  display: block;
  width: 100%;
}


/* Animation discrète du message de confirmation */
.form-note.is-success {
  animation: jbpSuccessIn .55s ease-out both;
}

@keyframes jbpSuccessIn {
  from {
    opacity: 0;
    transform: translateY(7px);
    filter: blur(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .form-note.is-success {
    animation: none;
  }
}
