/* Conteneur principal */
.news-ticker-rss-container {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    padding: 12px 20px;
    border-radius: 8px;
    overflow: hidden;
    direction: rtl;
    margin: 20px 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* Label */
.ticker-label {
    font-weight: bold;
    margin-left: 20px;
    color: #343a40;
    white-space: nowrap;
    font-size: 1.1rem;
    background: #d52f26;
    color: white;
    padding: 5px 12px;
    border-radius: 30px;
    flex-shrink: 0;
}

/* Zone de défilement */
.ticker-content-rss {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 32px;
    direction: ltr; /* Forcer LTR pour le défilement */
}

/* Liste des articles */
.ticker-list-rss {
    position: absolute;
    margin: 0;
    padding: 0;
    list-style: none;
    white-space: nowrap;
    /* Animation de défilement de droite à gauche */
    animation: scrollNewsRSS 30s linear infinite;
    left: 100%; /* Commence hors écran à droite */
}

.ticker-list-rss:hover {
    animation-play-state: paused;
}

.ticker-list-rss li {
    display: inline-block;
    margin-right: 45px;
    position: relative;
    padding-left: 20px;
    font-size: 1.1rem;
}

/* Point rouge */
.red-dot {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background-color: #d52f26;
    border-radius: 50%;
    display: inline-block;
}

.ticker-list-rss li a {
    color: #212529;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.ticker-list-rss li a:hover {
    color: #0056b3;
    text-decoration: underline;
}

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

/* Responsive */
@media (max-width: 768px) {
    .news-ticker-rss-container {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
    }
    
    .ticker-label {
        margin: 0 0 12px 0;
    }
    
    .ticker-content-rss {
        width: 100%;
        height: auto;
        max-height: 100px;
        overflow-y: auto;
        direction: rtl; /* Rétablir RTL en responsive */
    }
    
    .ticker-list-rss {
        position: relative;
        animation: none !important;
        left: auto !important;
        transform: none !important;
        white-space: normal;
    }
    
    .ticker-list-rss li {
        display: block;
        margin: 10px 0;
        padding-left: 25px;
    }
}