
/* Bandeau de nouveautés */
.news-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 50px;
  background: linear-gradient(135deg, #7700a7, #980ccf, #620eff, #6264ff, #7e1acf);
  background-size: 400% 100%;
  animation: gradientMove 8s ease-in-out infinite;
  z-index: 9999;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

.news-content {
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  white-space: nowrap !important;
  animation: scrollLeft 90s linear infinite !important;
  font-weight: bold;
  font-size: 1.1rem;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  will-change: transform;
  flex-direction: row !important;
  justify-content: flex-start !important;
  min-width: max-content !important;
}

.news-item {
  padding: 0 3rem;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.1rem;
  flex-shrink: 0 !important;
  min-width: max-content !important;
  white-space: nowrap !important;
}

.news-icon {
  font-size: 1.2rem;
  animation: bounce 2s ease-in-out infinite;
}

.news-text {
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Ajuster le contenu principal pour ne pas être masqué par le bandeau */
body {
  padding-top: 50px !important;
}

/* Animations */
@keyframes gradientMove {
  0%, 100% { 
    background-position: 0% 50%; 
  }
  50% { 
    background-position: 100% 50%; 
  }
}

@keyframes scrollLeft {
  0% {
    transform: translateX(14%);
  }

  100% {
    transform: translateX(-100%);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-3px);
  }
  60% {
    transform: translateY(-1px);
  }
}

/* Effet de survol pour ralentir l'animation */
.news-banner:hover .news-content {
  animation-play-state: paused;
}

/* Design responsive */
@media (max-width: 768px) {
  .news-banner {
    height: 45px;
  }
  
  body {
    padding-top: 45px !important;
  }
  
  .news-content {
    font-size: 1rem;
  }
  
  .news-item {
    padding: 0 2rem;
  }
}

/* Correction spécifique pour les pages de quiz */
.container {
  position: relative;
  z-index: 1;
}

/* S'assurer que le bandeau reste au-dessus */
.news-banner {
  position: fixed !important;
  z-index: 9999 !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  overflow: hidden !important;
}

/* Forcer le contenu à rester dans le bandeau */
.news-content {
  height: 100% !important;
  width: 100% !important;
  position: relative !important;
  overflow: hidden !important;
}

@media (max-width: 480px) {
  .news-banner {
    height: 40px;
  }
  
  body {
    padding-top: 40px !important;
  }
  
  .news-content {
    font-size: 0.9rem;
    animation: scrollLeft 35s linear infinite;
  }
  
  .news-item {
    padding: 0 1.5rem;
  }
}

/* Effet de pulsation pour attirer l'attention */
.news-highlight {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.2rem 0.8rem;
  border-radius: 15px;
  backdrop-filter: blur(5px);
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }
}
