/* Wellputt — Bandeau defilant : tout en haut, au-dessus de la topbar blanche.
   Sobre : fond noir, Poppins fine et espacee (comme le kicker de la home),
   l'orange seulement sur les petits losanges separateurs. */
.wp-ticker {
  --wpt-bg: #0a0a0a;
  --wpt-fg: rgba(255, 255, 255, 0.72);
  --wpt-strong: #fff;
  --wpt-accent: #F15A29;
  --wpt-speed: 120s; /* recalcule par wpticker.js : vitesse constante ~28 px/s */
  position: relative;
  display: block;
  overflow: hidden;
  height: 38px;
  background: var(--wpt-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--wpt-fg);
  font-family: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
  font-size: 10.5px;
  font-weight: 300;
  letter-spacing: 0.26em;
  line-height: 38px;
  text-transform: uppercase;
  white-space: nowrap;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 120px, #000 calc(100% - 120px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 120px, #000 calc(100% - 120px), transparent 100%);
}

.wp-ticker__track {
  display: flex;
  width: max-content;
  animation: wp-ticker-scroll var(--wpt-speed) linear infinite;
}
.wp-ticker:hover .wp-ticker__track,
.wp-ticker:focus-within .wp-ticker__track { animation-play-state: paused; }

.wp-ticker__group {
  display: flex;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.wp-ticker__item {
  display: inline-flex;
  align-items: center;
  padding: 0 34px;
}
.wp-ticker__item::after {
  content: "";
  width: 4px;
  height: 4px;
  margin-left: 68px;
  margin-right: -34px;
  background: var(--wpt-accent);
  transform: rotate(45deg);
  opacity: 0.9;
}
.wp-ticker__item strong {
  font-weight: 500;
  color: var(--wpt-strong);
}

/* Compte a rebours : chaque nombre (2 chiffres) a une largeur fixe, sinon le texte bouge
   chaque seconde (le 1 est plus etroit que le 0). */
.wp-ticker__n {
  display: inline-block;
  width: calc(2ch + 0.7em);
  margin-right: 0.3em;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.wp-ticker[hidden],
.wp-ticker__item[hidden] { display: none; }

@keyframes wp-ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (max-width: 767px) {
  .wp-ticker {
    height: 34px;
    line-height: 34px;
    font-size: 10px;
    letter-spacing: 0.2em;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
  }
  .wp-ticker__item { padding: 0 22px; }
  .wp-ticker__item::after { margin-left: 44px; margin-right: -22px; }
}

/* Mouvement reduit (reglage systeme) : les messages une seule fois, fixes, centres */
@media (prefers-reduced-motion: reduce) {
  .wp-ticker { -webkit-mask-image: none; mask-image: none; }
  .wp-ticker__track { animation: none; width: auto; justify-content: center; }
  .wp-ticker__group[aria-hidden],
  .wp-ticker__item--copy { display: none; }
  .wp-ticker__item:has(+ .wp-ticker__item--copy)::after { display: none; }
}
