.nl8 {
  /* Palette résolue selon le style : surface, encre, bouton, contour. */
  --nl8-surface: var(--nl8-accent); --nl8-ink: var(--nl8-on-accent);
  --nl8-muted: color-mix(in srgb, var(--nl8-on-accent) 80%, transparent);
  --nl8-stroke: var(--nl8-on-accent); --nl8-btn-bg: var(--nl8-on-accent); --nl8-btn-fg: var(--nl8-accent);
  position: relative; overflow: hidden; background: var(--nl8-surface); color: var(--nl8-ink); font-family: var(--nl8-text-font);
}
.nl8-outline {
  --nl8-surface: var(--nl8-bg); --nl8-ink: var(--nl8-title-color); --nl8-muted: var(--nl8-text-color);
  --nl8-stroke: var(--nl8-accent); --nl8-btn-bg: var(--nl8-accent); --nl8-btn-fg: var(--nl8-on-accent);
}
.nl8-ink {
  --nl8-surface: var(--nl8-dark); --nl8-ink: #ffffff; --nl8-muted: rgba(255, 255, 255, .74);
  --nl8-stroke: var(--nl8-accent); --nl8-btn-bg: var(--nl8-accent); --nl8-btn-fg: var(--nl8-on-accent);
}

.nl8-inner { position: relative; padding: var(--nl8-pad); display: flex; flex-direction: column; align-items: center; text-align: center; }
.nl8-align-left .nl8-inner { align-items: flex-start; text-align: left; }
.nl8-align-right .nl8-inner { align-items: flex-end; text-align: right; }

.nl8-kicker {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: clamp(18px, 3vw, 30px);
  font-family: var(--fx-font-accent); font-size: 13px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--nl8-ink);
}
.nl8-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--nl8-highlight); box-shadow: 0 0 0 4px color-mix(in srgb, var(--nl8-highlight) 30%, transparent); }

.nl8 .nl8-title {
  display: flex; flex-direction: column; align-items: inherit;
  font-family: var(--nl8-title-font); font-weight: var(--nl8-title-weight);
  font-size: clamp(52px, 11.5vw, var(--nl8-title-size)); line-height: .9; letter-spacing: var(--nl8-title-tracking);
  color: var(--nl8-ink); text-wrap: balance;
}
.nl8-upper .nl8-title { text-transform: uppercase; }
.nl8-line { display: block; max-width: 100%; overflow-wrap: anywhere; }
.nl8-line.is-outline { color: transparent; -webkit-text-stroke: max(1.5px, .018em) var(--nl8-stroke); paint-order: stroke; }
@supports not (-webkit-text-stroke: 1px black) { .nl8-line.is-outline { color: var(--nl8-stroke); } }

.nl8-text { margin-top: clamp(20px, 3vw, 32px); max-width: 52ch; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.55; color: var(--nl8-muted); }

/* Formulaire */
.nl8-form { display: grid; gap: 16px; width: min(100%, var(--nl8-form-w)); margin-top: clamp(32px, 5vw, 52px); text-align: left; }
.nl8-flash { margin: 0; text-align: center; }
.nl8-name { display: grid; gap: 6px; }
.nl8-name label { font-size: 13px; font-weight: 600; color: var(--nl8-ink); }
.nl8-name label span { font-weight: 400; color: var(--nl8-muted); }
.nl8-name input {
  height: 54px; padding: 0 22px; font-size: 16px; color: var(--nl8-ink); background: transparent;
  border: 2px solid color-mix(in srgb, var(--nl8-ink) 45%, transparent); border-radius: min(var(--nl8-btn-radius), 16px);
}
.nl8-name input:focus { outline: none; border-color: var(--nl8-ink); }
.nl8-bar {
  display: flex; align-items: stretch; gap: 8px; height: var(--nl8-field-h); padding: 6px 6px 6px 22px;
  border: 2px solid var(--nl8-ink); border-radius: var(--nl8-btn-radius); background: color-mix(in srgb, var(--nl8-ink) 6%, transparent);
  transition: box-shadow .2s, background .2s;
}
.nl8-bar:focus-within { background: color-mix(in srgb, var(--nl8-ink) 10%, transparent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--nl8-ink) 22%, transparent); }
.nl8-at { display: grid; place-items: center; color: var(--nl8-ink); opacity: .75; }
.nl8-email {
  flex: 1 1 0; min-width: 0; padding: 0 8px; border: 0; background: transparent; color: var(--nl8-ink);
  font-size: clamp(16px, 1.6vw, 20px); font-weight: 500;
}
.nl8-email::placeholder { color: color-mix(in srgb, var(--nl8-ink) 60%, transparent); }
.nl8-email:focus { outline: none; }
.nl8-btn {
  display: inline-flex; align-items: center; gap: 12px; flex: none; padding: 0 clamp(20px, 2.4vw, 32px); cursor: pointer;
  border: 0; border-radius: var(--nl8-btn-radius); background: var(--nl8-btn-bg); color: var(--nl8-btn-fg);
  font-family: var(--nl8-text-font); font-size: clamp(15px, 1.4vw, 17px); font-weight: 800; letter-spacing: .01em; white-space: nowrap;
  transition: transform .2s, gap .2s;
}
.nl8-btn:hover { gap: 18px; }
.nl8-btn:active { transform: scale(.98); }
.nl8-btn:focus-visible { outline: 3px solid var(--nl8-highlight); outline-offset: 3px; }
.nl8-consent { display: flex; align-items: flex-start; justify-content: center; gap: 10px; font-size: 13px; line-height: 1.45; color: var(--nl8-muted); }
.nl8-align-left .nl8-consent { justify-content: flex-start; }
.nl8-align-right .nl8-consent { justify-content: flex-end; }
.nl8-consent input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--nl8-btn-bg); cursor: pointer; }
.nl8-consent label { cursor: pointer; max-width: 60ch; }

/* Bandeau défilant (décoratif) */
.nl8-band { border-top: 2px solid var(--nl8-ink); overflow: hidden; white-space: nowrap; }
.nl8-track { display: flex; width: max-content; }
.nl8-motion .nl8-track { animation: nl8-marquee var(--nl8-speed) linear infinite; }
.nl8-run { display: flex; align-items: center; flex: none; }
.nl8-word {
  padding: 18px 26px; font-family: var(--nl8-title-font); font-weight: var(--nl8-title-weight);
  font-size: clamp(22px, 2.6vw, 34px); line-height: 1; letter-spacing: -.01em; text-transform: uppercase; color: var(--nl8-ink);
}
.nl8-sep { color: var(--nl8-highlight); font-size: 22px; line-height: 1; }
.nl8-filled .nl8-sep { color: var(--nl8-ink); opacity: .55; }
@keyframes nl8-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) { .nl8-motion .nl8-track { animation: none; } }
@media (max-width: 980px) {
  .nl8 .nl8-title { font-size: clamp(48px, 13vw, var(--nl8-title-size)); }
}
@media (max-width: 620px) {
  .nl8 .nl8-title { font-size: clamp(44px, 15vw, var(--nl8-title-size)); line-height: .92; }
  .nl8-bar { flex-wrap: wrap; height: auto; padding: 6px; border-radius: min(var(--nl8-btn-radius), 22px); }
  .nl8-at { display: none; }
  .nl8-email { flex: 1 1 100%; height: 54px; padding: 0 14px; }
  .nl8-btn { flex: 1 1 100%; height: 54px; justify-content: center; border-radius: min(var(--nl8-btn-radius), 16px); }
  .nl8-consent { justify-content: flex-start; text-align: left; }
  .nl8-word { padding: 14px 18px; }
}
