/* ROUXMESNIL – Bandeau d'alerte (tout en haut du site) */
.rb-alerte {
  position: relative;
  z-index: 1000;
  width: 100%;
  color: #fff;
  font-size: 15px;
  line-height: 1.5;
  background: #123e61;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .12);
}
.rb-alerte--info { background: linear-gradient(90deg, #0b2c49, #176b91); }
.rb-alerte--vigilance { color: #1c2b36; background: #f6c916; }
.rb-alerte--urgent { background: #b3261e; }

.rb-alerte-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 11px 20px;
  box-sizing: border-box;
}
.rb-alerte-icon {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
}
.rb-alerte--vigilance .rb-alerte-icon { background: rgba(11, 44, 73, .12); }
.rb-alerte-icon svg { fill: currentColor; }
.rb-alerte--urgent .rb-alerte-icon { animation: rbAlertePulse 1.6s ease-out infinite; }
@keyframes rbAlertePulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .55); }
  70% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.rb-alerte-text { flex: 1; min-width: 0; margin: 0 !important; color: inherit !important; }
.rb-alerte-label {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  vertical-align: 1px;
  border: 1px solid currentColor;
  border-radius: 4px;
}
.rb-alerte-link,
.rb-alerte-link:visited {
  color: inherit !important;
  font-weight: 800;
  text-decoration: underline !important;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.rb-alerte-link:hover { text-decoration-thickness: 2px !important; }
.rb-alerte-link::after { content: " →"; }

.rb-alerte-close {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  color: inherit;
  font-size: 24px;
  line-height: 1;
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
.rb-alerte-close:hover { background: rgba(255, 255, 255, .18); }
.rb-alerte--vigilance .rb-alerte-close:hover { background: rgba(11, 44, 73, .12); }
.rb-alerte a:focus-visible,
.rb-alerte-close:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

@media (max-width: 600px) {
  .rb-alerte { font-size: 14px; }
  .rb-alerte-inner { align-items: flex-start; gap: 10px; padding: 10px 12px; }
  .rb-alerte-icon { width: 30px; height: 30px; }
  .rb-alerte-icon svg { width: 18px; height: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .rb-alerte--urgent .rb-alerte-icon { animation: none; }
}
@media print {
  .rb-alerte-close { display: none; }
}
