/* Barres d’info sous le menu — motif type DSFR (fond clair, filet coloré). */

.navbar-info-banners {
  position: relative;
  z-index: 94;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
  font-family: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}

.bo-shell-row .navbar-info-banners,
.bo-shell-row .alert-banners-stack,
.bo-shell-row .ds-alert-banners {
  z-index: 1;
}

.navbar-info-banners .mini-banner,
.navbar-info-banners .nib-breaking,
.navbar-info-banners .nib-important {
  width: 100%;
  border-radius: 0;
  max-width: none;
  margin: 0;
}

.mini-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: #e8edff;
  color: #161616;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 0.85rem 1rem 0.85rem 1.15rem;
  position: relative;
  box-shadow: inset 4px 0 0 0 #0063cb;
}

.banner-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0;
  padding: 0;
  margin: 0 0.25rem 0 0;
  text-transform: none;
  flex-shrink: 0;
  background: none !important;
  border: 0 !important;
  color: inherit;
}

.banner-content {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex-grow: 1;
  min-width: 0;
}

.banner-title {
  color: #161616;
  font-size: 1rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.3;
}

.banner-desc {
  color: #3a3a3a;
  font-size: 0.875rem;
  font-weight: 400;
}

.banner-cta {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: #0b3d38;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.banner-cta:hover {
  color: #062824;
}

.banner-close {
  background: none;
  border: none;
  color: #3a3a3a;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0 0.25rem;
  margin-left: auto;
  line-height: 1;
}

.banner-close:hover {
  color: #161616;
}

.mini-banner.info { background: #e8edff; box-shadow: inset 4px 0 0 0 #0063cb; }
.mini-banner.info .banner-tag { color: #0063cb; }
.mini-banner.success { background: #b8fec9; box-shadow: inset 4px 0 0 0 #18753c; }
.mini-banner.success .banner-tag { color: #18753c; }
.mini-banner.warning { background: #fee7a0; box-shadow: inset 4px 0 0 0 #b34000; }
.mini-banner.warning .banner-tag { color: #716043; }
.mini-banner.danger { background: #ffe9e9; box-shadow: inset 4px 0 0 0 #ce0500; }
.mini-banner.danger .banner-tag { color: #ce0500; }

.nib-breaking {
  display: flex;
  align-items: stretch;
  min-height: 2.75rem;
  background: #ffe9e9;
  box-shadow: inset 4px 0 0 0 #ce0500;
  border-bottom: 1px solid rgba(206, 5, 0, 0.12);
  overflow: hidden;
}

.nib-breaking-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  padding: 0 1rem;
  background: transparent;
  color: #ce0500;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.nib-live-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #ce0500;
}

@keyframes nib-pulse {
  0% { box-shadow: 0 0 0 0 rgba(248, 113, 113, 0.65); }
  70% { box-shadow: 0 0 0 8px rgba(248, 113, 113, 0); }
  100% { box-shadow: 0 0 0 0 rgba(248, 113, 113, 0); }
}

.nib-breaking-ticker {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
}

.nib-ticker-track {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  animation: nib-ticker 40s linear infinite;
  will-change: transform;
}

.nib-ticker-track span {
  color: #161616;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0 4px;
}

.nib-ticker-sep {
  color: #ce0500;
  padding: 0 14px !important;
  font-size: 0.75rem !important;
}

@keyframes nib-ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.nib-breaking:hover .nib-ticker-track {
  animation-play-state: paused;
}

/* --- Important (tenant yellow) --- */
.nib-important {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  background: #fee7a0;
  box-shadow: inset 4px 0 0 0 #b34000;
  border-bottom: 1px solid rgba(179, 64, 0, 0.12);
  color: #161616;
}

.nib-important-icon {
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 0.15rem;
  color: #b34000;
}

.nib-important-icon svg {
  width: 100%;
  height: 100%;
}

.nib-important-body {
  flex: 1;
  min-width: 0;
}

.nib-important-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: #161616;
  letter-spacing: 0;
}

.nib-important-badge {
  display: inline-flex;
  align-items: center;
  padding: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  background: none;
  color: #716043;
  border: 0;
}

.nib-important-desc {
  margin-top: 0.2rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: #3a3a3a;
}

.nib-important-cta {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: #0b3d38;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.nib-important .banner-close {
  color: #3a3a3a;
  margin-left: auto;
}

.nib-important .banner-close:hover {
  color: #161616;
}

.nib-verified {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 0.35rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: #0b3d38;
}

@media (max-width: 480px) {
  .banner-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
  .banner-desc { font-size: 11px; }
  .nib-breaking-pill { padding: 0 10px; }
  .nib-important { padding: 10px 12px; }
}
