/* Accueil : compteur de joueurs en ligne */
.player-counter-box {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.45);
    padding: 12px 20px;
    border-radius: 12px;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 1.2rem;
    color: #fff;
    margin-top: 10px;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #31ff4e;
    box-shadow: 0 0 10px #31ff4e;
    animation: pulse 1.2s infinite ease-in-out;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.6;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.player-counter-number {
    font-weight: bold;
    color: #4eff79 !important;
}

.player-counter-box.is-loading .status-dot {
    background: #9a9a9a;
    box-shadow: none;
    animation: none;
}

.player-counter-box.is-maintenance .status-dot {
    background: #ffd23f;
    box-shadow: none;
    animation: none;
}

.player-counter-box.is-maintenance .player-counter-text {
    color: #ffa53d !important;
}

/* ---------------------------------------------------------------- News de l'accueil (#news) */
.home-news {
  padding: 3rem 0 1.5rem;
  scroll-margin-top: 4.5rem;
}

.home-news__heading {
  margin-bottom: 1.5rem;
  color: #ffffff;
  text-align: center;
}

.home-news__track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: 14px;
}

.home-news__track::-webkit-scrollbar {
  display: none;
}

.home-news__track:focus-visible {
  outline: 2px solid #2379ee;
  outline-offset: 3px;
}

.home-news__slide {
  flex: 0 0 100%;
  min-width: 0;
  padding: 2rem 2.25rem;
  border-radius: 14px;
  background: #292929;
  font-family: 'Poppins', sans-serif;
  scroll-snap-align: start;
}

.home-news__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 0.9rem;
}

.home-news__heading-block {
  min-width: 0;
}

.home-news__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.9rem;
}

.home-news__category {
  padding: 0.2rem 0.85rem;
  border: 1.5px solid #2379ee;
  border-radius: 100px;
  color: #6aa8ff;
  font-size: 0.8rem;
  font-weight: 600;
}

.home-news__latest {
  padding: 0.2rem 0.85rem;
  border-radius: 100px;
  background: #2379ee;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
}

.home-news__date {
  flex-shrink: 0;
  min-width: 5.25rem;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  background: #1f1f1f;
  color: #ffffff;
  line-height: 1;
  text-align: center;
}

.home-news__date strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
}

.home-news__date span {
  display: block;
  margin-top: 0.35rem;
  color: #a3a3a3;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.home-news__title {
  margin: 0;
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.25;
}

.home-news__content {
  color: #e4e4e4;
  font-size: 1rem;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.home-news__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 1rem;
}

.home-news__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 2px solid #2379ee;
  border-radius: 50%;
  background: transparent;
  color: #6aa8ff;
  transition: background 0.15s, color 0.15s, opacity 0.15s;
}

.home-news__arrow svg {
  width: 1.3rem;
  height: 1.3rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-news__arrow:hover:not(:disabled) {
  background: #2379ee;
  color: #ffffff;
}

.home-news__arrow:disabled {
  opacity: 0.35;
}

.home-news__dots {
  display: flex;
  gap: 0.25rem;
}

.home-news__dot {
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  border: 0;
  background: transparent;
}

.home-news__dot::before {
  content: '';
  display: block;
  width: 0.6rem;
  height: 0.6rem;
  margin: auto;
  border-radius: 50%;
  background: #5a5a5a;
  transition: background 0.15s, transform 0.15s;
}

.home-news__dot[aria-current='true']::before {
  background: #2379ee;
  transform: scale(1.25);
}

@media (max-width: 767px) {
  .home-news {
    padding-top: 2rem;
  }

  .home-news__slide {
    padding: 1.4rem 1.2rem;
  }

  .home-news__title {
    font-size: 1.3rem;
  }

  .home-news__content {
    font-size: 0.95rem;
  }
}
