/* ── TSG Announcement Bar — front-end ────────────────────── */
#tsab-bar {
    display: block;
    position: relative;
    z-index: 1;
    /* Pleine largeur, annule tout héritage du thème Tempera */
    width: 100%;
    max-width: 100%;
    left: auto;
    right: auto;
    top: auto;
    float: none;
    clear: both;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    transition: background-color 0.4s ease;
    background-color: #1a5fa8;
    color: #fff;
}

#tsab-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 11px 52px 11px 16px;
    min-height: 44px;
    flex-wrap: wrap;
    text-align: center;
    box-sizing: border-box;
}

#tsab-category-icon {
    font-size: 1.05em;
    flex-shrink: 0;
}

#tsab-text {
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: 0.01em;
}

#tsab-link {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 3px;
    border: 2px solid rgba(255,255,255,0.75);
    text-decoration: none;
    color: inherit;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.2s, border-color 0.2s;
}
#tsab-link:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
    text-decoration: none;
    color: inherit;
}
#tsab-link:empty { display: none; }

#tsab-close {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: inherit;
    opacity: 0.65;
    padding: 4px 8px;
    line-height: 1;
    transition: opacity 0.2s;
}
#tsab-close:hover { opacity: 1; }
#tsab-close.tsab-hidden { display: none; }

/* Dots navigation */
#tsab-dots {
    display: flex;
    justify-content: center;
    gap: 5px;
    padding: 0 0 5px;
}
#tsab-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: background 0.2s;
    display: inline-block;
}
#tsab-dots span.tsab-dot-active { background: rgba(255,255,255,0.95); }
#tsab-dots:empty { display: none; }

/* Couleurs par catégorie */
#tsab-bar.tsab-cat-event { background-color: #1a5fa8; }
#tsab-bar.tsab-cat-info  { background-color: #2e7d32; }

/* Animation */
#tsab-inner.tsab-fade {
    animation: tsabFade 0.3s ease;
}
@keyframes tsabFade {
    from { opacity: 0; transform: translateY(-3px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
    #tsab-text  { font-size: 0.81rem; }
    #tsab-inner { padding: 9px 40px 9px 10px; }
}
