/* =========================================
= COMPOSANT — MÉGA-MENU : COLONNE DE LIENS (.nl-mega--menu-*)
= Lien principal + sous-liens, soulignement animé au survol.
= Markup : mega-menu-menu.php. Pas de JS (survol en CSS).
= .nl-mega--col (classe partagée avec les cards) reste dans mega-menu.css.
========================================= */
.nl-mega--menu-link {
  position: relative;
  display: inline-block;
  margin-bottom: 1.25rem;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-style: italic;
  font-weight: 500;
  line-height: 1;
  letter-spacing: var(--ls-tight);
  text-transform: capitalize;
  text-decoration: none;
  color: var(--primary);
}

.nl-mega--menu-sub {
  list-style: none;
  display: grid;
  gap: 0.625rem;
  font-family: var(--SR);
  font-size: var(--text-sm);
}

.nl-mega--menu-sub a {
  position: relative;
  display: inline-block;
  text-decoration: none;
  color: var(--primary);
}

/* Soulignement animé gauche → droite au survol / focus clavier. */
.nl-mega--menu-link::after,
.nl-mega--menu-sub a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.125em;
  width: 100%;
  height: 0.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .35s cubic-bezier(.22, 1, .36, 1);
  pointer-events: none;
}

.nl-mega--menu-link:hover::after,
.nl-mega--menu-link:focus-visible::after,
.nl-mega--menu-sub a:hover::after,
.nl-mega--menu-sub a:focus-visible::after {
  transform: scaleX(1);
}

/* Reduce-motion : soulignement sans animation. */
@media (prefers-reduced-motion: reduce) {
  .nl-mega--menu-link::after,
  .nl-mega--menu-sub a::after { transition: none; }
}
