/* =============================================
   WP Marquee Text — CSS Frontend
   ============================================= */

/* ── Bandeau global (fixé en haut ou bas) ── */
#wmt-bar {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    z-index: 99999;
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

#wmt-bar.wmt-position-top    { top: 0; }
#wmt-bar.wmt-position-bottom { bottom: 0; }

/* ── Bandeau inline (shortcode) ── */
.wmt-bar-inline {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
    border-radius: 4px;
    margin: 12px 0;
}

/* ── Track (le ruban qui défile) ── */
.wmt-track {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    animation: wmt-scroll linear infinite;
    animation-duration: var(--wmt-speed, 40s);
    will-change: transform;
}

/* Chaque copie du texte ── */
.wmt-strip {
    display: inline-block;
    padding: 0 16px;
}

/* Pause au survol ── */
.wmt-pause-hover:hover {
    animation-play-state: paused;
}

/* ── Animation clé ── */
@keyframes wmt-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ── Décalage du contenu pour ne pas être caché par le bandeau ── */
/* Ces classes sont ajoutées dynamiquement via JS selon la position */
body.wmt-has-top    { margin-top: var(--wmt-bar-height, 44px) !important; }
body.wmt-has-bottom { margin-bottom: var(--wmt-bar-height, 44px) !important; }
