/* modules/promobar/views/css/front.css */
#promobar {
  width: 100%;
  z-index: 1000;
  font-size: 14px;
}
.promobar__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: .6rem 1rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  justify-content: center;
  text-align: center;
  line-height: 1.4;
  flex-wrap: wrap;
}
.promobar__message {
  display: inline-block;
  overflow: hidden;
  max-width: 100%;
}
.promobar__cta {
  display: inline-block;
  padding: .35rem .75rem;
  border-radius: 9999px;
  border: 1px solid currentColor;
  text-decoration: none;
  font-weight: 600;
}
.promobar__cta:focus { outline: 2px solid currentColor; outline-offset: 2px; }

.promobar__close {
  margin-left: .25rem;
  background: transparent;
  border: 0;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: inherit;
}

/* Animations (accessibilité : respecte prefers-reduced-motion) */
@media (prefers-reduced-motion: reduce) {
  .promobar--scroll .promobar__marquee,
  .promobar--pulse .promobar__message,
  .promobar--blink .promobar__message {
    animation: none !important;
  }
}

/* Défilement horizontal sur (quasi) toute la largeur d'écran */
.promobar--scroll .promobar__marquee {
  display: inline-block;
  white-space: nowrap;
  will-change: transform;
  /* Départ à droite hors écran, arrivée à gauche + un peu au-delà du contenu */
  animation: promobar-marquee 15s linear infinite;
}

/* Utilise la largeur de la fenêtre pour une traversée "longue" */
@keyframes promobar-marquee {
  0%   { transform: translate3d(100vw, 0, 0); }
  100% { transform: translate3d(-100%, 0, 0); } /* -100% = largeur propre du contenu */
}

/* Pulse doux */
.promobar--pulse .promobar__message {
  animation: promobar-pulse 2.5s ease-in-out infinite;
}
@keyframes promobar-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .7; }
}

/* Blink léger */
.promobar--blink .promobar__message {
  animation: promobar-blink 1.2s steps(2, start) infinite;
}
@keyframes promobar-blink {
  to { visibility: hidden; }
}
 