/**
 * CSS pour la bande défilante rotative
 * À ajouter dans votre thème Drupal ou fichier CSS principal
 */

/* Container principal de la bande défilante */
.rotating-banner {
    width: 100%;
    background: linear-gradient(135deg, #4a90e2, #5ba3f5);
    color: white;
    overflow: hidden;
    position: relative;
    height: 50px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

/* Container du contenu qui défile */
.banner-content {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: scroll-rtl 30s linear infinite;
    gap: 60px;
    will-change: transform;
}

/* Éléments individuels du message */
.banner-item {
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: 500;
    gap: 10px;
    color: white;
}

/* Icône étoile/plus */
.banner-icon {
    font-size: 18px;
    color: #ffffff;
    opacity: 0.8;
    display: inline-block;
}

/* Animation de défilement de droite à gauche (RTL) */
@keyframes scroll-rtl {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Pause au survol (optionnel) */
.rotating-banner:hover .banner-content {
    animation-play-state: paused;
}

/* Variantes de couleur */
.rotating-banner.blue-theme {
    background: linear-gradient(135deg, #4a90e2, #5ba3f5);
}

.rotating-banner.orange-theme {
    background: linear-gradient(135deg, #ff9a56, #ff6b35);
}

.rotating-banner.green-theme {
    background: linear-gradient(135deg, #4CAF50, #45a049);
}

.rotating-banner.purple-theme {
    background: linear-gradient(135deg, #9c27b0, #e91e63);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .banner-content {
        animation-duration: 28s;
        gap: 50px;
    }
}

@media (max-width: 768px) {
    .rotating-banner {
        height: 45px;
    }
    
    .banner-item {
        font-size: 14px;
    }
    
    .banner-content {
        animation-duration: 25s;
        gap: 40px;
    }
    
    .banner-icon {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .rotating-banner {
        height: 40px;
    }
    
    .banner-item {
        font-size: 13px;
    }
    
    .banner-content {
        animation-duration: 20s;
        gap: 30px;
    }
    
    .banner-icon {
        font-size: 14px;
    }
}

/* Amélioration des performances */
.rotating-banner * {
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Support pour les préférences de mouvement réduit */
@media (prefers-reduced-motion: reduce) {
    .banner-content {
        animation-duration: 60s;
    }
}

/* Styles pour l'accessibilité */
.rotating-banner:focus-within {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Version sans animation (si nécessaire) */
.rotating-banner.no-animation .banner-content {
    animation: none;
    transform: none;
    justify-content: center;
}

/* Effet de dégradé sur les bords (optionnel) */
.rotating-banner::before,
.rotating-banner::after {
    content: '';
    position: absolute;
    top: 0;
    width: 50px;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.rotating-banner::before {
    right: 0;
    background: linear-gradient(to left, rgba(74, 144, 226, 1), transparent);
}

.rotating-banner::after {
    left: 0;
    background: linear-gradient(to right, rgba(74, 144, 226, 1), transparent);
}

/* Ajustements pour l'intégration Drupal */
.region .rotating-banner {
    margin: 0;
}

.block-rotating-banner {
    margin: 0;
    padding: 0;
}

.block-rotating-banner .block-content {
    margin: 0;
    padding: 0;
}

/* Support pour les thèmes Drupal populaires */
.rotating-banner .container,
.rotating-banner .row {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

