/**
 * Flow44 Pre-Header Bar - Styles
 */

/* Barre principale */
#flow44-preheader {
    position: relative;
    width: 100%;
    text-align: center;
    line-height: 1.4;
    z-index: 9999;
    overflow: hidden;
    box-sizing: border-box;
}

#flow44-preheader a {
    color: inherit;
    text-decoration: underline;
}

#flow44-preheader a:hover {
    opacity: 0.85;
}

/* Mode statique (texte fixe) */
.flow44-preh-static {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding-right: 30px;
}

/* Mode défilant */
.flow44-preh-scroll-wrapper {
    overflow: hidden;
    width: 100%;
    padding-right: 30px;
}

.flow44-preh-scroll-content {
    display: inline-flex;
    white-space: nowrap;
    animation: flow44-scroll-left linear infinite;
    will-change: transform;
}

.flow44-preh-scroll-content:hover {
    animation-play-state: paused;
}

.flow44-preh-text {
    display: inline-block;
    padding: 0 50px;
}

@keyframes flow44-scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Bouton fermer */
.flow44-preh-close {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.4em;
    cursor: pointer;
    opacity: 0.7;
    padding: 0 5px;
    line-height: 1;
    transition: opacity 0.2s ease;
}

.flow44-preh-close:hover {
    opacity: 1;
}

/* Animation de fermeture */
#flow44-preheader.flow44-preh-closing {
    transition: all 0.3s ease;
    max-height: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    opacity: 0;
    overflow: hidden;
}

/* Responsive */
@media (max-width: 767px) {
    #flow44-preheader {
        font-size: 12px !important;
    }

    .flow44-preh-static {
        padding-right: 25px;
    }
}
