/* CSS pour le bandeau de news en frontend */

.news-banner-container {
    background: transparent;
    color: #000;
    overflow: hidden;
    position: relative;
    white-space: nowrap;
    font-size: 44px;
    font-weight: 500;
    font-style: italic;
    z-index: 1000;
}

.news-banner-scroll {
    width: 100%;
    overflow: hidden;
}

.news-banner-track {
    display: flex;
    width: fit-content;
}

.news-banner-content {
    display: flex;
    white-space: nowrap;
    flex-shrink: 0;
    align-items: center;
    animation: scroll-left 10s linear infinite;
    background:white;
}

.news-banner-content .news-item {
    margin-inline: 30px;
    flex-shrink: 0;
    padding-bottom: 0;
    line-height: 1.3;
}

/* Animation de défilement horizontal */
@keyframes scroll-left {
    0% {
        transform: translate3d(0%, 0, 0);
    }
    100% {
        transform: translate3d(-100%, 0, 0);
    }
}

/* Variantes de couleur */
.news-banner-container.red {
    background: #dc3545;
}

.news-banner-container.green {
    background: #28a745;
}

.news-banner-container.orange {
    background: #fd7e14;
}

.news-banner-container.dark {
    background: #343a40;
}

/* Responsive */
@media (max-width: 768px) {
    .news-banner-content {
        animation-duration: 25s;
    }
	.news-banner-container {
		font-size: 24px;
	}
}

@media (max-width: 480px) {
    
    .news-banner-content {
        animation-duration: 20s;
    }
}

/* Animation plus fluide sur les appareils performants */
@media (prefers-reduced-motion: no-preference) {
    .news-banner-content {
        will-change: transform;
    }
}

/* Réduction des animations pour les utilisateurs qui préfèrent moins d'animations */
@media (prefers-reduced-motion: reduce) {
    .news-banner-content {
        animation-duration: 60s;
    }
}


/* Version avec bordure */
.news-banner-container.bordered {
    border-top: 3px solid rgba(255, 255, 255, 0.3);
    border-bottom: 3px solid rgba(255, 255, 255, 0.3);
}

/* Version avec ombre */
.news-banner-container.shadow {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}