/* Import Google Fonts pour l'arabe */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Arabic:wght@400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;500;700&display=swap');

/* Barre de notification principale */
.notification-bar {
    width: 100%;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-family: 'Tajawal', Arial, sans-serif; /* ✅ police mise à jour */
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative; /* plus de position fixe */
    margin: 0; /* colle bien à la navbar */
    margin-bottom: 10px;
        letter-spacing: 2px; /* ✅ espace entre les lettres */



}

/* Effet de hover */
.notification-bar:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(1px);
}

/* Conteneur du texte défilant */
.scrolling-text {
    display: flex;
    align-items: center;
    height: 100%;
    white-space: nowrap;
    animation: scroll-rtl 30s linear infinite;
    padding: 0 20px;
}

/* Animation de défilement de droite à gauche */
@keyframes scroll-rtl {
     0% {
        transform: translateX(-100%); /* commence à gauche */
    }
    100% {
        transform: translateX(100%); /* finit à droite */
    }
}

/* Icône de promotion */
.promo-icon {
    display: inline-block;
    margin-left: 10px;
    font-size: 20px;
    animation: pulse 2s infinite;
}

/* Animation de pulsation pour l'icône */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Bouton de fermeture optionnel */
.close-btn {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Styles pour les écrans mobiles */
@media (max-width: 768px) {
    .notification-bar {
        height: 50px;
        font-size: 14px;
    }
    
    .scrolling-text {
        animation-duration: 25s;
    }
}

/* Styles pour très petits écrans */
@media (max-width: 480px) {
    .notification-bar {
        height: 45px;
        font-size: 12px;
    }
    
    .scrolling-text {
        animation-duration: 20s;
    }
}


