/* Mosquée Chevilly-Larue - Bandeau Information */
/* Fully Responsive CSS */

.mosquee-bandeau-wrapper {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 999999;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    /* Visible immédiatement - pas d'animation */
    opacity: 1;
}

/* Mode inline (pour shortcode) - sans position fixed */
.mosquee-bandeau-wrapper.mosquee-bandeau-inline {
    position: relative;
    margin: 20px 0;
    border-radius: 8px;
}

.mosquee-bandeau-wrapper.position-top {
    top: 0;
}

.mosquee-bandeau-wrapper.position-bottom {
    bottom: 0;
}

.mosquee-bandeau-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 20px;
    position: relative;
    min-height: 60px;
    /* Visible immédiatement */
    opacity: 1 !important;
    visibility: visible !important;
}

.mosquee-bandeau-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    flex-wrap: wrap;
    /* Visible immédiatement */
    opacity: 1 !important;
    visibility: visible !important;
}

.mosquee-bandeau-icon {
    flex-shrink: 0;
    font-size: 24px;
    animation: pulse 2s infinite;
    /* Visible immédiatement */
    opacity: 1 !important;
    visibility: visible !important;
}

.mosquee-bandeau-text-wrapper {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Visible immédiatement */
    opacity: 1 !important;
    visibility: visible !important;
}

.mosquee-bandeau-text {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    margin: 0;
    text-align: center;
    white-space: nowrap;
    animation: scrollText linear infinite;
    /* Texte visible immédiatement */
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

/* Force la couleur héritée du style inline */
.mosquee-bandeau-wrapper .mosquee-bandeau-text,
.mosquee-bandeau-wrapper .mosquee-bandeau-text * {
    color: inherit !important;
}

.mosquee-bandeau-text.no-scroll {
    white-space: normal;
    animation: none;
}

.mosquee-bandeau-link {
    flex-shrink: 0;
    padding: 8px 20px;
    border: 2px solid currentColor;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
}

.mosquee-bandeau-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    opacity: 0.9;
}

.mosquee-bandeau-close {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: inherit;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
    padding: 0;
    line-height: 1;
}

.mosquee-bandeau-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) rotate(90deg);
}

.mosquee-bandeau-close:focus {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* Animations */
@keyframes fadeInBandeau {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes scrollText {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Responsive Design */

/* Tablettes et petits écrans */
@media screen and (max-width: 1024px) {
    .mosquee-bandeau-container {
        padding: 12px 15px;
        min-height: 55px;
    }
    
    .mosquee-bandeau-content {
        gap: 12px;
    }
    
    .mosquee-bandeau-icon {
        font-size: 22px;
    }
    
    .mosquee-bandeau-text {
        font-size: 15px;
    }
    
    .mosquee-bandeau-link {
        padding: 7px 16px;
        font-size: 13px;
    }
}

/* Mobile */
@media screen and (max-width: 768px) {
    .mosquee-bandeau-wrapper {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }
    
    .mosquee-bandeau-container {
        padding: 10px 45px 10px 15px;
        min-height: 50px;
    }
    
    .mosquee-bandeau-content {
        gap: 10px;
    }
    
    .mosquee-bandeau-icon {
        font-size: 20px;
    }
    
    .mosquee-bandeau-text {
        font-size: 14px;
        /* Le texte continue de défiler sur mobile */
    }
    
    .mosquee-bandeau-link {
        padding: 6px 14px;
        font-size: 12px;
    }
    
    .mosquee-bandeau-close {
        width: 28px;
        height: 28px;
        font-size: 18px;
        right: 10px;
    }
}

/* Très petits mobiles */
@media screen and (max-width: 480px) {
    .mosquee-bandeau-container {
        padding: 8px 40px 8px 10px;
        min-height: auto;
    }
    
    .mosquee-bandeau-content {
        gap: 8px;
    }
    
    .mosquee-bandeau-icon {
        font-size: 18px;
    }
    
    .mosquee-bandeau-text {
        font-size: 13px;
        line-height: 1.4;
        /* Le texte continue de défiler sur mobile */
    }
    
    .mosquee-bandeau-link {
        padding: 5px 12px;
        font-size: 11px;
    }
    
    .mosquee-bandeau-close {
        width: 26px;
        height: 26px;
        font-size: 16px;
        right: 8px;
    }
}

/* Accessibilité - Mode réduit de mouvements */
@media (prefers-reduced-motion: reduce) {
    .mosquee-bandeau-wrapper.position-top,
    .mosquee-bandeau-wrapper.position-bottom {
        animation: none;
    }
    
    .mosquee-bandeau-icon {
        animation: none;
    }
    
    .mosquee-bandeau-text {
        animation: none;
        white-space: normal;
    }
    
    .mosquee-bandeau-close:hover {
        transform: translateY(-50%);
    }
    
    .mosquee-bandeau-link:hover {
        transform: none;
    }
}

/* Mode sombre (si supporté par le thème) */
@media (prefers-color-scheme: dark) {
    .mosquee-bandeau-wrapper {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
    
    .mosquee-bandeau-close {
        background: rgba(255, 255, 255, 0.15);
    }
    
    .mosquee-bandeau-close:hover {
        background: rgba(255, 255, 255, 0.25);
    }
}

/* Compatibilité Elementor */
.elementor-widget-mosquee-bandeau .mosquee-bandeau-wrapper {
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Compatibilité impression */
@media print {
    .mosquee-bandeau-wrapper {
        display: none !important;
    }
}
