/* Flash News Bar Styles */

/* Masquer sur mobile et tablette */
@media (max-width: 1024px) {
    .flash-news-bar {
        display: none !important;
    }
}

/* Barre principale */
.flash-news-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background-color: #000;
    height: 40px;
    display: flex;
    align-items: center;
    font-family: Arial, sans-serif;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

/* Horloge à gauche */
.flash-news-clock {
    background-color: #fff;
    color: #000;
    font-weight: 900;
    font-size: 20px;
    padding: 0 20px;
    height: 40px;
    display: flex;
    align-items: center;
    min-width: 80px;
    border-right: 2px solid #333;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Animation de clignotement pour les deux-points */
.flash-news-clock .blink {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

/* Container de défilement */
.flash-news-container {
    flex: 1;
    height: 40px;
    overflow: hidden;
    position: relative;
    background-color: #000;
}

/* Contenu qui défile */
.flash-news-scroll {
    display: flex;
    align-items: center;
    height: 40px;
    animation: scroll-left 60s linear infinite;
    white-space: nowrap;
    /* Supprimer la largeur fixe pour permettre au contenu de définir sa propre largeur */
}

/* Animation de défilement - améliorée */
@keyframes scroll-left {
    0% {
        transform: translateX(100vw);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Items de news */
.flash-news-item {
    color: #fff !important;
    text-decoration: none !important;
    font-weight: bold;
    font-size: 18px;
    text-transform: uppercase;
    padding: 0 15px;
    white-space: nowrap;
    display: inline-block;
    transition: color 0.3s ease;
    letter-spacing: 0.5px;
}

.flash-news-item:hover,
.flash-news-item:focus {
    color: #ee142c !important;
    text-decoration: none !important;
}

.flash-news-item:visited {
    color: #fff !important;
}

/* Séparateur entre les news - SUPPRIMÉ */
/* .flash-news-item:not(:last-child):after {
    content: "•";
    color: #666;
    margin-left: 30px;
    font-weight: normal;
} */

/* Ajustement pour les très longs textes - SUPPRIME L'ARRET AU HOVER */
/* .flash-news-scroll:hover {
    animation-play-state: paused;
} */

/* Style pour les écrans très larges */
@media (min-width: 1920px) {
    .flash-news-bar {
        height: 45px;
    }
    
    .flash-news-clock {
        height: 45px;
        font-size: 22px;
        padding: 0 25px;
        min-width: 90px;
        font-weight: 900;
    }
    
    .flash-news-container {
        height: 45px;
    }
    
    .flash-news-scroll {
        height: 45px;
    }
    
    .flash-news-item {
        font-size: 20px;
        padding: 0 20px;
    }
}

/* Assurer que la barre reste au-dessus de tout */
.flash-news-bar * {
    box-sizing: border-box;
}

/* Compensation pour le contenu de la page */
body.has-flash-news-bar {
    padding-bottom: 40px;
}

@media (min-width: 1920px) {
    body.has-flash-news-bar {
        padding-bottom: 45px;
    }
}
