/* Bandeau fil info — home site (même source que la PWA) */
.site-breaking-news {
  display: none;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 11px 16px;
  background: #b51f2a;
  color: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.site-breaking-news.is-visible {
  display: flex;
}

.site-breaking-news__label {
  flex: 0 0 auto;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff;
  color: #b51f2a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.site-breaking-news__window {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 1.55em;
  overflow: hidden;
  white-space: nowrap;
}

.site-breaking-news__track {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  display: inline-flex;
  align-items: center;
  width: max-content;
  white-space: nowrap;
  will-change: transform;
  animation: site-breaking-news-scroll var(--ticker-duration, 35s) linear infinite;
}

.site-breaking-news__message {
  display: inline-block;
  flex: 0 0 auto;
  white-space: nowrap;
  padding-right: 80px;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.35;
  color: #fff;
  text-decoration: none;
}

a.site-breaking-news__message {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-breaking-news__separator {
  flex: 0 0 auto;
  padding-right: 80px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
}

.site-breaking-news__close {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.site-breaking-news__close:hover,
.site-breaking-news__close:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

@keyframes site-breaking-news-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(0px - var(--ticker-distance, 1000px))); }
}

@media (prefers-reduced-motion: reduce) {
  .site-breaking-news__track {
    animation: none;
    position: relative;
    white-space: normal;
    flex-wrap: wrap;
  }
}
