/* PhotoSharing – Alerte réseau FAI, autonome et compatible mobile */
.pshg-fai-banner {
  --pshg-fai-red: #a5223d;
  position: relative;
  z-index: 15;
  width: 100%;
  box-sizing: border-box;
  color: #fff;
  background: linear-gradient(105deg, #8e1935 0%, #b33337 52%, #aa451d 100%);
  box-shadow: 0 5px 18px rgb(77 19 33 / 13%);
  font-family: inherit;
}

.pshg-fai-banner[hidden] { display: none !important; }
.pshg-fai-banner,
.pshg-fai-banner * { box-sizing: border-box; }

.pshg-fai-banner__inner {
  max-width: 1500px;
  min-height: 48px;
  margin: 0 auto;
  padding: 7px 20px;
  display: flex;
  align-items: center;
  column-gap: 18px;
}

.pshg-fai-banner__badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 11px;
  border: 1px solid rgb(255 255 255 / 24%);
  border-radius: 7px;
  background: rgb(255 255 255 / 15%);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: .065em;
  white-space: nowrap;
}

.pshg-fai-banner__pulse {
  position: relative;
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #ffdd8b;
  box-shadow: 0 0 0 3px rgb(255 221 139 / 16%);
  animation: pshg-fai-pulse 1.8s ease-in-out infinite;
}

.pshg-fai-banner__marquee {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent);
}

.pshg-fai-banner__track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: pshg-fai-marquee 36s linear infinite;
  will-change: transform;
}

.pshg-fai-banner__message {
  flex: 0 0 auto;
  display: block;
  padding-right: 72px;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}

.pshg-fai-banner__marquee:hover .pshg-fai-banner__track {
  animation-play-state: paused;
}

.pshg-fai-banner__link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 7px;
  padding: 6px 10px;
  color: #fff !important;
  background: rgb(255 255 255 / 14%);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background-color .2s ease;
}

.pshg-fai-banner__link:hover,
.pshg-fai-banner__link:focus-visible {
  background: rgb(255 255 255 / 28%);
  color: #fff !important;
  text-decoration: none !important;
}
.pshg-fai-banner__link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.pshg-fai-banner__link svg { flex: 0 0 auto; }

.pshg-fai-banner__sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@keyframes pshg-fai-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes pshg-fai-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .55; transform: scale(.8); }
}

@media (max-width: 700px) {
  .pshg-fai-banner__inner { padding: 6px 10px; column-gap: 8px; min-height: 44px; }
  .pshg-fai-banner__badge { font-size: 9px; letter-spacing: .02em; padding: 6px 7px; gap: 6px; }
  .pshg-fai-banner__message { font-size: 12px; padding-right: 46px; }
  .pshg-fai-banner__link { padding: 6px 7px; font-size: 11px; gap: 4px; }
  .pshg-fai-banner__link svg { width: 12px; height: 12px; }
  .pshg-fai-banner__track { animation-duration: 30s; }
}

@media (prefers-reduced-motion: reduce) {
  .pshg-fai-banner__pulse,
  .pshg-fai-banner__track { animation: none !important; }
  .pshg-fai-banner__marquee { mask-image: none; -webkit-mask-image: none; }
  .pshg-fai-banner__marquee { overflow-x: auto; }
}
