/* ============================================================================
 * topbar.css — Bandeau fin en haut d'écran
 * Contenu : horaires d'ouverture (gauche) + icônes réseaux sociaux (droite)
 * Zone optionnelle : activer via la classe .has-topbar sur .webcore
 * Requiert : webcore.css (--wc-*, --font-*), dark.css (--color-*)
 * ==========================================================================*/
.webcore-topbar {
    grid-area: topbar;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    height: var(--wc-topbar-h);
    padding: 0 1rem;
    position: sticky;
    top: 0;
    z-index: var(--wc-z-topbar);
    background: var(--color-surface);
    color: var(--color-text-muted);
    border-bottom: 1px solid var(--color-border);
    font-size: var(--font-xs);
}
.webcore.has-topbar .webcore-topbar {
    display: flex;
}

/* --- Horaires d'ouverture (partie gauche) --- */
.webcore-topbar-hours {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}
.webcore-topbar-hours-icon {
    flex: 0 0 auto;
    width: 0.9rem;
    height: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.webcore-topbar-hours-status {
    font-weight: 600;
}
.webcore-topbar-hours-status.open   { color: var(--color-success); }
.webcore-topbar-hours-status.closed { color: var(--color-error); }

/* --- Réseaux sociaux (partie droite) --- */
.webcore-topbar-social {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex: 0 0 auto;
}
.webcore-topbar-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    color: var(--color-text-muted);
    transition: color var(--wc-transition);
}
.webcore-topbar-social a:hover {
    color: var(--color-text);
}
.webcore-topbar-social svg {
    width: 1rem;
    height: 1rem;
    fill: currentColor;
}

/* --- Mobile : version compacte --- */
@media (max-width: 768px) {
    .webcore-topbar {
        padding: 0 0.75rem;
        gap: 0.5rem;
    }
    /* Le statut ouvert/fermé disparaît, on garde juste l'horaire brut */
    .webcore-topbar-hours-status {
        display: none;
    }
    /* Réduit le nombre d'icônes visibles si besoin via cette classe utilitaire */
    .webcore-topbar-social a.hide-on-mobile {
        display: none;
    }
}