/* ==========================================================================
   Newsletter. Carte bleu marine, disposition, textes et polices d'origine conservés.
   ========================================================================== */
.newsletter.nl{position:relative;overflow:hidden;isolation:isolate}
.nl-net{position:absolute;inset:0;width:100%;height:100%;z-index:0;pointer-events:none;
  -webkit-mask-image:linear-gradient(100deg,rgba(0,0,0,.45),#000 55%);mask-image:linear-gradient(100deg,rgba(0,0,0,.45),#000 55%)}
.nl>.newsletter-copy,.nl>form{position:relative;z-index:1}
.nl h2>span.dn-w{color:inherit}

/* ----- 4. champ réactif ----- */
.nl .newsletter-input{position:relative;transition:box-shadow .35s ease}
.nl .newsletter-input:focus-within{box-shadow:0 0 0 4px rgba(53,192,214,.45),0 0 28px -4px rgba(53,192,214,.75)}
.nl .newsletter-input input{outline:0;padding-right:44px}
.nl-check{position:absolute;width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:#16a34a;color:#fff;scale:0;opacity:0;pointer-events:none;transition:scale .45s cubic-bezier(.3,1.6,.5,1),opacity .2s}
.nl-check svg{width:13px;height:13px}
.nl-ok .nl-check{scale:1;opacity:1}
.nl-shake{animation:nl-shake .45s ease}
@keyframes nl-shake{20%,60%{translate:-7px 0}40%,80%{translate:7px 0}}

/* ----- 5. bouton « Je m'inscris » ----- */
.nl .newsletter-input button{flex-shrink:0;position:relative;overflow:hidden;isolation:isolate;cursor:pointer;justify-content:center;transition:box-shadow .35s,filter .3s,scale .15s}
.nl .newsletter-input button::after{content:"";position:absolute;top:0;bottom:0;left:-60%;width:40%;z-index:-1;transform:skewX(-20deg);pointer-events:none;background:linear-gradient(100deg,transparent,rgba(255,255,255,.4),transparent)}
.nl .newsletter-input button:hover,.nl .newsletter-input button:focus-visible{filter:brightness(.9);box-shadow:0 10px 20px -8px rgba(0,99,223,.8)}
.nl .newsletter-input button:active{scale:.97}
.nl .newsletter-input button svg{transition:transform .4s var(--dyn-ease)}
.nl .newsletter-input button:hover svg{transform:translateX(5px)}
@media (prefers-reduced-motion:no-preference){.nl .newsletter-input button::after{animation:nl-shine 4.5s ease-in-out 2s infinite}}
@keyframes nl-shine{0%,55%{translate:0 0}85%,100%{translate:520% 0}}

/* ----- 6. confirmation ----- */
.nl>form>.newsletter-input,.nl>form>.consent,.nl>form>.turnstile-widget{transition:opacity .35s,translate .45s var(--dyn-ease),box-shadow .35s ease,visibility 0s}
.nl>form.nl-sent>.newsletter-input,.nl>form.nl-sent>.consent,.nl>form.nl-sent>.turnstile-widget{opacity:0;translate:0 -12px;visibility:hidden;transition:opacity .35s,translate .45s var(--dyn-ease),visibility 0s .4s}
.nl-done{position:absolute;inset:0;display:flex;align-items:center;gap:20px;visibility:hidden;pointer-events:none}
.nl-sent .nl-done{visibility:visible;pointer-events:auto;animation:nl-up .6s var(--dyn-ease) .2s both}
.nl-done>svg{flex:none;width:58px;height:58px;fill:none;stroke:#35c0d6;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.nl-done circle{stroke-dasharray:145;stroke-dashoffset:145}
.nl-done path{stroke:#fff;stroke-width:4;stroke-dasharray:34;stroke-dashoffset:34}
.nl-sent .nl-done circle{animation:nl-draw .7s ease .35s forwards}
.nl-sent .nl-done path{animation:nl-draw .45s ease .95s forwards}
@keyframes nl-draw{to{stroke-dashoffset:0}}
@keyframes nl-up{from{opacity:0;translate:0 18px}to{opacity:1;translate:0 0}}
.nl-done strong{display:block;font-family:var(--font-heading);font-size:19px;line-height:1.35;color:#fff}
.nl-done small{display:block;margin-top:5px;font-size:12px;color:#acbdd3}
.nl-done button{margin-top:8px;padding:0;background:none;border:0;color:#a9cafa;font:600 12.5px var(--font-sans);text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.nl-done button:hover{color:#fff}
@media (prefers-reduced-motion:reduce){.nl-sent .nl-done circle,.nl-sent .nl-done path{animation:none;stroke-dashoffset:0}}

/* ----- 1. entrée au scroll ----- */
.nl .nl-rv{opacity:0;translate:0 20px}
.nl .nl-rv.nl-in{opacity:1;translate:0 0;transition:opacity .65s var(--dyn-ease) calc(var(--nl-i,0)*.14s),translate .65s var(--dyn-ease) calc(var(--nl-i,0)*.14s)}
