/* NOVA 12.5.131 — balayage couleur visible, overlay sans casser le texte */
.nova-sweep-title > span,
.nova-sweep-title > em {
  position: relative !important;
  display: block !important;
  isolation: isolate;
  background: none !important;
  background-image: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  -webkit-text-fill-color: currentColor !important;
  opacity: 1 !important;
  filter: none !important;
  overflow: visible !important;
  will-change: text-shadow;
}

/* Texte réel toujours visible : l'animation ne peut donc pas le tronquer. */
.nova-sweep-title > span {
  color: #f7f7f8 !important;
  text-shadow: 0 0 0 rgba(255, 25, 72, 0);
  animation: nova-base-pulse 4.6s ease-in-out infinite !important;
}

.nova-sweep-title > em {
  color: #ff3158 !important;
  font-style: normal;
  text-shadow: 0 0 10px rgba(255, 20, 70, .12);
  animation: nova-base-pulse-red 4.6s ease-in-out .18s infinite !important;
}

/* Copie visuelle superposée : seul ce calque utilise le gradient. */
.nova-sweep-title > span::after,
.nova-sweep-title > em::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  color: transparent;
  -webkit-text-fill-color: transparent;
  background-image: linear-gradient(
    100deg,
    transparent 0%,
    transparent 26%,
    #ff174d 39%,
    #ff5b7d 46%,
    #ffffff 50%,
    #ff9caf 54%,
    #ff174d 62%,
    transparent 74%,
    transparent 100%
  );
  background-size: 240% 100%;
  background-position: 130% 0;
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 8px rgba(255, 23, 77, .32));
  opacity: 0;
  animation: nova-color-sweep 3.8s cubic-bezier(.4,0,.2,1) infinite;
  will-change: background-position, opacity, filter;
}

.nova-sweep-title > em::after {
  animation-delay: .42s;
}

@keyframes nova-color-sweep {
  0% {
    background-position: 130% 0;
    opacity: 0;
    filter: drop-shadow(0 0 4px rgba(255, 23, 77, .08));
  }
  12% { opacity: .18; }
  25% { opacity: .82; }
  48% {
    opacity: 1;
    filter: drop-shadow(0 0 12px rgba(255, 23, 77, .58)) drop-shadow(0 0 26px rgba(255, 23, 77, .20));
  }
  76% { opacity: .86; }
  90% { opacity: .20; }
  100% {
    background-position: -130% 0;
    opacity: 0;
    filter: drop-shadow(0 0 4px rgba(255, 23, 77, .08));
  }
}

@keyframes nova-base-pulse {
  0%,100% { text-shadow: 0 0 0 rgba(255,23,77,0); }
  48% { text-shadow: 0 0 16px rgba(255,23,77,.13); }
}

@keyframes nova-base-pulse-red {
  0%,100% { text-shadow: 0 0 8px rgba(255,23,77,.12); }
  48% { text-shadow: 0 0 18px rgba(255,23,77,.28); }
}

@media (max-width: 700px) {
  .nova-sweep-title > span::after,
  .nova-sweep-title > em::after {
    animation-duration: 3.4s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nova-sweep-title > span,
  .nova-sweep-title > em {
    animation: none !important;
  }
  .nova-sweep-title > span::after,
  .nova-sweep-title > em::after {
    display: none !important;
    animation: none !important;
  }
}
