/* ================================================================
   Bannière top — partagée sur toutes les pages
   Chargée avec assets/js/banner.js
   ================================================================ */

/* Thèmes couleur (type dans banner.json) */
.np-theme-info    { background: linear-gradient(90deg, #0284c7 0%, #0ea5e9 60%, #38bdf8 100%); }
.np-theme-success { background: linear-gradient(90deg, #16a34a 0%, #22c55e 60%, #4ade80 100%); }
.np-theme-warning { background: linear-gradient(90deg, #b45309 0%, #d97706 60%, #fbbf24 100%); }
.np-theme-urgent  { background: linear-gradient(90deg, #b91c1c 0%, #ef4444 60%, #fca5a5 100%); }

.nouveaux-patients-banner {
  position: relative;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 11px 48px 11px 20px;
  font-size: 0.95rem;
  font-weight: 500;
  flex-wrap: wrap;
  box-shadow: 0 2px 12px rgba(14, 165, 233, 0.35);
  animation: np-slide-down 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes np-slide-down {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}

.nouveaux-patients-banner p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.np-sep { opacity: 0.6; }

/* Point pulsant */
.np-pulse {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
  position: relative;
}

.np-pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.6);
  animation: np-ping 1.6s ease-out infinite;
}

@keyframes np-ping {
  0%        { transform: scale(1); opacity: 0.7; }
  80%, 100% { transform: scale(2); opacity: 0; }
}

/* Lien CTA */
.np-cta {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  color: #fff;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,0.55);
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s;
  text-decoration: none;
  font-size: 0.9rem;
}

.np-cta:hover {
  background: rgba(255,255,255,0.35);
  border-color: #fff;
}

/* Bouton fermer */
.np-close {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,0.75);
  font-size: 1rem;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  transition: color 0.15s;
}

.np-close:hover { color: #fff; }

@media (max-width: 640px) {
  .nouveaux-patients-banner { display: none; }
  .np-cta { font-size: 0.85rem; }
}

/* Défilement (isMoving: true) */
.np-banner--moving {
  overflow: hidden;
  padding-left: 20px;
  padding-right: 48px;
}

.np-ticker-wrap {
  flex: 1;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

.np-ticker-track {
  display: flex;
  width: max-content;
  animation: np-ticker 22s linear infinite;
}

.np-ticker-track:hover { animation-play-state: paused; }

.np-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 3rem;
  white-space: nowrap;
}

.np-divider {
  opacity: 0.45;
  margin: 0 0.5rem;
}

@keyframes np-ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
