/* ============================================================
 * Audace — Newsletter CTA
 * Bloc de capture email. Charte Audace (cohérent avec audace-article).
 * ============================================================ */

.audace-nl {
  --aa-primary: #11708E;
  --aa-primary-dark: #0c5870;
  --aa-accent: #E44993;
  --aa-ink: #181a1f;
  --aa-paper: #ffffff;

  max-width: 760px;
  margin: 3.5rem auto 1rem;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.audace-nl-inner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--aa-primary) 0%, var(--aa-primary-dark) 100%);
  border-radius: 16px;
  padding: 2.4rem 2rem;
  color: #fff;
  box-shadow: 0 18px 40px -18px rgba(17, 112, 142, 0.55);
  text-align: center;
}

.audace-nl-head { position: relative; z-index: 1; }

.audace-nl-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffd2e6;
  margin-bottom: 0.6rem;
}

.audace-nl .audace-nl-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5rem;
  color: #ffffff !important;
  /* neutralise le "texte transparent en dégradé" imposé par ElementsKit/Elementor */
  -webkit-text-fill-color: #ffffff !important;
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  text-shadow: none !important;
}

.audace-nl-sub {
  font-size: 0.98rem;
  line-height: 1.5;
  margin: 0 auto 1.5rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 46ch;
}

.audace-nl-form { position: relative; z-index: 1; }

.audace-nl-field {
  display: flex;
  gap: 0.5rem;
  background: #fff;
  border-radius: 10px;
  padding: 0.4rem;
  max-width: 460px;
  margin: 0 auto;
}

.audace-nl-field input[type="email"] {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  padding: 0.7rem 0.85rem;
  font-size: 1rem;
  color: var(--aa-ink);
  font-family: inherit;
}

.audace-nl-field button {
  border: 0;
  cursor: pointer;
  background: var(--aa-accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  font-family: inherit;
  padding: 0 1.4rem;
  border-radius: 8px;
  white-space: nowrap;
  transition: transform 0.12s ease, background 0.2s ease;
}

.audace-nl-field button:hover { background: #c93b80; transform: translateY(-1px); }
.audace-nl-field button:disabled { opacity: 0.7; cursor: default; transform: none; }
.audace-nl-field button.is-loading span { opacity: 0.5; }

.audace-nl-legal {
  margin: 0.7rem 0 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}
.audace-nl-legal a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.audace-nl-legal a:hover { color: #ffd2e6; }

/* honeypot : invisible pour humains, présent pour bots */
.audace-nl-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.audace-nl-msg {
  position: relative;
  z-index: 1;
  margin: 0.9rem 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 1.2em;
}
.audace-nl-msg--ok  { color: #d6ffe9; }
.audace-nl-msg--err { color: #ffd9d9; }

/* état "inscrit" : on masque le formulaire */
.audace-nl--done .audace-nl-form { display: none; }
.audace-nl--done .audace-nl-sub { margin-bottom: 0.5rem; }

@media (max-width: 600px) {
  .audace-nl-inner { padding: 1.9rem 1.4rem; }
  .audace-nl-field { flex-direction: column; }
  .audace-nl-field button { padding: 0.8rem; }
}
