/* ── Pop-up d'inscription newsletter ───────────────────────────────────── */
.nl-popup {
  position: fixed;
  inset: 0;
  z-index: 1600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.nl-popup.is-visible { opacity: 1; }

.nl-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 28, 24, 0.62);
  backdrop-filter: blur(2px);
}

.nl-popup__dialog {
  position: relative;
  width: min(460px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(10, 30, 25, 0.4);
  padding: 38px 34px 30px;
  font-family: var(--font-body, "Outfit", system-ui, sans-serif);
  color: #1c2b27;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}
.nl-popup.is-visible .nl-popup__dialog { transform: translateY(0) scale(1); }

.nl-popup__close {
  position: absolute;
  top: 14px;
  right: 16px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  color: #9aa8a3;
  padding: 6px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nl-popup__close:hover { color: #1c2b27; background: rgba(20, 40, 35, 0.06); }

.nl-popup__eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold, #c79a3a);
  margin-bottom: 10px;
}

.nl-popup__title {
  margin: 0 0 10px;
  font-size: 1.55rem;
  line-height: 1.2;
  font-weight: 700;
  color: #14302a;
}

.nl-popup__subtitle {
  margin: 0 0 18px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #5c6b66;
}

.nl-popup__benefits {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 9px;
}
.nl-popup__benefit {
  position: relative;
  padding-left: 28px;
  font-size: 0.92rem;
  line-height: 1.4;
  color: #2b3a35;
}
.nl-popup__benefit::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -1px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1f7a5f, #14624b);
  color: #fff;
  font-size: 0.7rem;
  line-height: 19px;
  text-align: center;
  font-weight: 700;
}

.nl-popup__form { display: grid; gap: 12px; }

.nl-popup__input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(20, 40, 35, 0.18);
  border-radius: 12px;
  padding: 13px 15px;
  font-size: 1rem;
  font-family: inherit;
  color: #1c2b27;
}
.nl-popup__input:focus {
  outline: none;
  border-color: var(--gold, #c79a3a);
  box-shadow: 0 0 0 3px rgba(199, 154, 58, 0.16);
}

.nl-popup__cta {
  width: 100%;
  padding: 13px 18px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
}
.nl-popup__cta[disabled] { opacity: 0.6; cursor: default; }

.nl-popup__consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.78rem;
  line-height: 1.4;
  color: #6b7a75;
}
.nl-popup__consent input { margin-top: 2px; flex: 0 0 auto; }
.nl-popup__consent a { color: #1f7a5f; }

.nl-popup__error {
  margin: 12px 0 0;
  font-size: 0.85rem;
  color: #c0392b;
}

.nl-popup__dismiss {
  display: block;
  width: 100%;
  margin-top: 14px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 0.8rem;
  font-family: inherit;
  color: #9aa8a3;
  text-decoration: underline;
  transition: color 0.2s;
}
.nl-popup__dismiss:hover { color: #5c6b66; }

.nl-popup__thanks {
  margin: 0;
  padding: 28px 0;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 600;
  color: #1f7a5f;
}

/* Bloque le scroll de l'arrière-plan quand le pop-up est ouvert */
.nl-popup-lock { overflow: hidden; }

/* Retours inline du formulaire de pied de page (mode AJAX) */
.newsletter__inline-ok,
.newsletter__inline-err {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}
.newsletter__inline-ok { color: #1f7a5f; }
.newsletter__inline-err { color: #c0392b; }

@media (max-width: 600px) {
  .nl-popup { padding: 12px; }
  .nl-popup__dialog { padding: 32px 22px 24px; border-radius: 18px; }
  .nl-popup__title { font-size: 1.35rem; }
}

@media (prefers-reduced-motion: reduce) {
  .nl-popup,
  .nl-popup__dialog { transition: none; }
}
