:root {
    --portal-top-offset: 45px;
}

/* Annonce active : remplace la barre status SAMS */
html.has-portal-live-banner .hrbp-banner {
    background: transparent;
    padding: 0;
    box-shadow: none;
}

html.has-portal-live-banner .hrbp-banner .status-bar {
    display: none;
}

.portal-live-banner {
    width: 100%;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
}

.portal-live-banner--hidden {
    display: none !important;
}

.portal-live-banner__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0.55rem 1.25rem;
    max-width: 1100px;
    margin: 0 auto;
}

.portal-live-banner__content {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    text-align: center;
}

.portal-live-banner__headline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    max-width: 100%;
}

.portal-live-banner__icon {
    width: 24px;
    height: 24px;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.16);
    flex-shrink: 0;
}

.portal-live-banner__icon i {
    width: 15px;
    height: 15px;
}

.portal-live-banner__title {
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.2;
}

.portal-live-banner__message {
    margin-top: 0.15rem;
    font-size: 0.84rem;
    line-height: 1.45;
    opacity: 0.95;
    word-break: break-word;
}

.portal-live-banner__schedule {
    display: inline-flex;
    margin-top: 0.35rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.18);
    font-size: 0.76rem;
    font-weight: 600;
}
.portal-live-banner__link {
    flex-shrink: 0;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.22);
    transition: background 0.2s ease, transform 0.2s ease;
}

.portal-live-banner__link:hover {
    background: rgba(255, 255, 255, 0.24);
    transform: translateY(-1px);
}

.portal-live-banner--info {
    background: linear-gradient(90deg, #2563eb, #3b82f6);
}

.portal-live-banner--warning {
    background: linear-gradient(90deg, #d97706, #f59e0b);
}

.portal-live-banner--danger {
    background: linear-gradient(90deg, #dc2626, #ef4444);
}

.portal-live-banner--accent {
    background: linear-gradient(90deg, #7c3aed, #a855f7);
}

.live-banner-modal-grid {
    display: grid;
    gap: 0.85rem;
}

.live-banner-modal-grid label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.live-banner-modal-grid input,
.live-banner-modal-grid select,
.live-banner-modal-grid textarea {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-darker);
    color: var(--text-primary);
    font: inherit;
}

.live-banner-modal-grid textarea {
    min-height: 88px;
    resize: vertical;
}

.live-banner-modal-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.live-banner-preview {
    margin-top: 0.5rem;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.live-banner-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.65rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .portal-live-banner__inner {
        padding: 0.55rem 0.85rem;
        gap: 0.65rem;
    }

    .live-banner-modal-row {
        grid-template-columns: 1fr;
    }
}