/* =====================================================================
   LOU GERS — Newsletter (accueil)
   Inscriptions fermées : formulaire visible mais désactivé (« bientôt »).
   Animations : transform / opacity uniquement, en pause hors écran,
   coupées si « réduire les animations ». Aucune dépendance.
   ===================================================================== */

.nl { padding-bottom: 0; }
.nl__card {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; gap: clamp(2.4rem, 5vw, 4.5rem); align-items: center;
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1.4rem, 5.5vw, 5rem);
  border: 1px solid rgba(210, 187, 134, .3);
  background:
    radial-gradient(70% 90% at 0% 0%, rgba(210, 187, 134, .11), rgba(210, 187, 134, 0) 65%),
    radial-gradient(60% 80% at 100% 100%, rgba(184, 121, 74, .10), rgba(184, 121, 74, 0) 70%),
    var(--bg-2);
}
/* Double filet doré, comme les encadrés du site */
.nl__card::before { content: ""; position: absolute; inset: 6px; z-index: -1; border: 1px solid rgba(210, 187, 134, .1); pointer-events: none; }
@media (min-width: 960px) { .nl__card { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); } }

/* Coins dorés */
.nl__corner { position: absolute; width: 2.4rem; height: 2.4rem; pointer-events: none; }
.nl__corner::before, .nl__corner::after { content: ""; position: absolute; background: var(--gold); opacity: .55; }
.nl__corner::before { inset: 0 0 auto 0; height: 1px; transform-origin: left; }
.nl__corner::after { inset: 0 auto 0 0; width: 1px; transform-origin: top; }
.nl__corner--tl { top: 14px; left: 14px; }
.nl__corner--tr { top: 14px; right: 14px; transform: scaleX(-1); }
.nl__corner--bl { bottom: 14px; left: 14px; transform: scaleY(-1); }
.nl__corner--br { bottom: 14px; right: 14px; transform: scale(-1); }

/* Lion du site en filigrane */
.nl__lion {
  position: absolute; z-index: -1; right: -4%; bottom: -8%;
  width: clamp(16rem, 42vw, 36rem); height: clamp(10.3rem, 27vw, 23.15rem);
  color: var(--gold); opacity: .055; pointer-events: none;
}

/* Texte */
.nl__title { font-size: clamp(2.2rem, 1.4rem + 3vw, 3.8rem); }
.nl__accent { display: block; color: var(--gold-soft); }
.nl__lead { margin-top: 1.6rem; max-width: 34rem; font-family: var(--serif); font-size: clamp(1.2rem, 1.08rem + .5vw, 1.45rem); line-height: 1.45; color: var(--cream); }
.nl__topics { display: flex; flex-wrap: wrap; gap: .7rem 1.6rem; margin-top: 2rem; }
.nl__topics li { display: inline-flex; align-items: center; gap: .65rem; font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.nl__topics li::before { content: ""; width: 5px; height: 5px; background: var(--gold); opacity: .8; transform: rotate(45deg); }

/* Panneau du formulaire */
.nl__panel {
  position: relative;
  padding: clamp(1.6rem, 3.5vw, 2.6rem);
  border: 1px solid rgba(210, 187, 134, .28);
  background: rgba(13, 14, 12, .6);
}
/* Halo doré autour du formulaire */
.nl__panel::before { content: ""; position: absolute; inset: -1px; z-index: -1; box-shadow: 0 0 70px rgba(213, 162, 73, .13); opacity: .7; pointer-events: none; }
/* Reflet qui parcourt les filets haut et bas */
.nl__sweep { position: absolute; left: 0; right: 0; height: 1px; overflow: hidden; pointer-events: none; }
.nl__sweep--top { top: -1px; }
.nl__sweep--bottom { bottom: -1px; }
.nl__sweep::after { content: ""; position: absolute; inset: 0; width: 45%; background: linear-gradient(90deg, rgba(213, 162, 73, 0), rgba(236, 211, 150, .95), rgba(213, 162, 73, 0)); transform: translateX(-110%); }

/* « Bientôt disponible » */
.nl__soon { display: flex; align-items: baseline; gap: .85rem; margin-bottom: 1.8rem; padding-bottom: 1.4rem; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: clamp(1.2rem, 1.1rem + .4vw, 1.4rem); line-height: 1.35; color: var(--cream); }
.nl__soon strong { display: inline-block; font-weight: 500; color: var(--gold-soft); }
.nl__dot { position: relative; flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); transform: translateY(-.15em); }
.nl__dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--gold); opacity: 0; }

/* Formulaire */
.nl__form { display: grid; gap: 1.2rem; }
.nl__fieldset { display: grid; gap: 1.4rem; min-width: 0; margin: 0; padding: 0; border: 0; }
.nl__row { display: grid; gap: 1.2rem; align-items: end; }
@media (min-width: 560px) { .nl__row { grid-template-columns: minmax(0, 1fr) auto; } }
.nl__field input::placeholder { color: rgba(245, 241, 232, .4); opacity: 1; }
.nl__btn { white-space: nowrap; }
.nl__consent { font-size: .82rem; line-height: 1.55; color: var(--muted); }
.nl__privacy { margin-top: 1.4rem; padding-top: 1.1rem; border-top: 1px solid var(--line); font-size: .8rem; line-height: 1.55; color: var(--muted); }
.nl__privacy a { color: var(--gold-soft); text-decoration: none; border-bottom: 1px solid rgba(210, 187, 134, .35); transition: color .3s var(--ease), border-color .3s var(--ease); }
.nl__privacy a:hover { color: var(--cream); border-color: var(--cream); }
.nl__form .form__status:empty { display: none; }
.nl__done { font-family: var(--serif); font-size: 1.35rem; line-height: 1.4; color: var(--ivory); }

/* État fermé : champs visiblement inactifs */
.nl__fieldset:disabled .field label { color: rgba(210, 187, 134, .6); }
.nl__fieldset:disabled input[type="email"] { cursor: not-allowed; color: var(--muted); border-bottom-style: dashed; }
.nl__fieldset:disabled .btn { cursor: not-allowed; opacity: .42; }
.nl__fieldset:disabled .btn--solid:hover { background: var(--cream); border-color: var(--cream); }
.nl__fieldset:disabled .consent { cursor: not-allowed; opacity: .7; }
.nl__fieldset:disabled .consent input { cursor: not-allowed; }

@media (max-width: 559px) {
  .nl__btn { width: 100%; }
  .nl__lion { right: -18%; bottom: auto; top: -2%; opacity: .045; }
  .nl__corner { width: 1.6rem; height: 1.6rem; }
  .nl__topics { gap: .6rem 1.2rem; }
}

/* ---------- Animations (JS présent + mouvement autorisé) ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* Apparition progressive au défilement */
  .nl--anim [data-rise] { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 120ms); }
  .nl--anim.is-in [data-rise] { opacity: 1; transform: none; }
  .nl--anim .nl__corner::before, .nl--anim .nl__corner::after { transform: scale(0); transition: transform 1.2s .3s var(--ease); }
  .nl--anim.is-in .nl__corner::before, .nl--anim.is-in .nl__corner::after { transform: none; }
  .nl--anim .nl__lion { opacity: 0; transition: opacity 2.4s .2s var(--ease); }
  .nl--anim.is-in .nl__lion { opacity: .055; }

  /* Mouvements lents, seulement quand la section est à l'écran */
  .nl.is-active .nl__lion { animation: nl-drift 18s ease-in-out infinite alternate; }
  .nl.is-active .nl__panel::before { animation: nl-breathe 5.5s ease-in-out infinite alternate; }
  .nl.is-active .nl__sweep::after { animation: nl-sweep 7s 1.2s var(--ease) infinite; }
  .nl.is-active .nl__sweep--bottom::after { animation-delay: 4.7s; animation-direction: reverse; }
  .nl.is-active .nl__dot::after { animation: nl-pulse 2.8s ease-out infinite; }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 559px) {
  .nl--anim.is-in .nl__lion { opacity: .045; }
}
@keyframes nl-drift { from { transform: translate3d(0, 0, 0) rotate(0); } to { transform: translate3d(-12px, -14px, 0) rotate(-1.5deg); } }
@keyframes nl-breathe { from { opacity: .45; } to { opacity: 1; } }
@keyframes nl-sweep { 0% { transform: translateX(-110%); } 45%, 100% { transform: translateX(240%); } }
@keyframes nl-pulse { 0% { opacity: .7; transform: scale(1); } 100% { opacity: 0; transform: scale(3.2); } }
