/* ========================================
   RL ARTTECH — Bandeau de réassurance
   Affiché sous le menu sur toutes les pages
   ======================================== */

.reassurance-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9980; /* sous le header (9999) mais au-dessus du contenu */
    background: var(--color-primary, #F5901E);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    overflow: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease;
    height: 36px;
    display: flex;
    align-items: center;
}

.reassurance-bar.hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.reassurance-bar__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 100%;
    height: 100%;
    padding: 0 1rem;
}

.reassurance-bar__items {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: nowrap;
}

.reassurance-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    padding: 0 1.5rem;
}

.reassurance-item svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    opacity: 0.95;
}

.reassurance-sep {
    color: rgba(255,255,255,0.4);
    font-size: 1rem;
    line-height: 1;
    user-select: none;
}

/* Bouton fermeture */
.reassurance-bar__close {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    padding: 0.2rem 0.4rem;
    transition: color 0.2s;
}

.reassurance-bar__close:hover {
    color: #fff;
}

/* Décale le header vers le bas quand la barre est visible */
.header {
    top: 36px !important;
    transition: top 0.3s ease;
}

.header.bar-hidden {
    top: 0 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .reassurance-bar {
        height: auto;
        min-height: 32px;
        padding: 4px 0;
    }

    .reassurance-bar__items {
        flex-wrap: wrap;
        gap: 0.25rem 0;
        justify-content: center;
    }

    .reassurance-item {
        padding: 0.1rem 0.75rem;
        font-size: 0.72rem;
    }

    .reassurance-sep {
        display: none;
    }

    .header {
        top: auto !important;
    }
}

@media (max-width: 480px) {
    /* Sur très petit écran : défilement horizontal automatique */
    .reassurance-bar__items {
        flex-wrap: nowrap;
        animation: scroll-bar 12s linear infinite;
        padding-left: 100%;
    }

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

    .reassurance-sep {
        display: inline;
        margin: 0 0.5rem;
    }

    .reassurance-bar {
        overflow: hidden;
    }
}
