/* ============================================================
   BANDEAU COUNTDOWN COUPE DU MONDE 2026
   Couleurs officielles CDM26 : vert (MEX), bleu (USA), rouge (CAN)
   ============================================================ */

#wc-banner {
  position: relative;
  width: 100%;
  height: 48px;
  background: linear-gradient(
    90deg,
    #1b6b3a 0%,
    #1a5c34 12%,
    #162d5e 30%,
    #1e3a7a 50%,
    #6b1828 70%,
    #8b1a2b 85%,
    #1b6b3a 100%
  );
  background-size: 200% 100%;
  animation: wc-bg-shift 12s ease-in-out infinite;
  overflow: hidden;
  z-index: 60;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  user-select: none;
}

/* --- Reflets lumineux animés --- */
#wc-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(60, 172, 59, .15) 0%,
    rgba(255,255,255,.04) 15%,
    rgba(42, 57, 141, .18) 35%,
    rgba(255,255,255,.04) 50%,
    rgba(230, 29, 37, .18) 70%,
    rgba(255,255,255,.04) 85%,
    rgba(60, 172, 59, .15) 100%
  );
  background-size: 300% 100%;
  animation: wc-shimmer 6s ease-in-out infinite;
}
#wc-banner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, #3CAC3B, #2A398D, #E61D25, #3CAC3B);
  background-size: 200% 100%;
  animation: wc-bg-shift 8s ease-in-out infinite;
  opacity: .6;
}
@keyframes wc-bg-shift {
  0%, 100% { background-position: 0% 0; }
  50%      { background-position: 100% 0; }
}
@keyframes wc-shimmer {
  0%, 100% { background-position: 0% 0; }
  50%      { background-position: 100% 0; }
}

/* --- Layout principal --- */
.wc-banner__inner {
  display: flex;
  align-items: center;
  height: 100%;
  position: relative;
  z-index: 1;
}

/* --- Countdown (fixé à gauche) --- */
.wc-banner__countdown {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px 0 20px;
  height: 100%;
  background: rgba(0,0,0,.3);
  border-right: 1px solid rgba(255,255,255,.12);
  white-space: nowrap;
}

.wc-banner__logo-text {
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  letter-spacing: .03em;
  text-transform: uppercase;
  line-height: 1.15;
}
.wc-banner__logo-full span {
  display: block;
  font-size: 8px;
  font-weight: 600;
  color: rgba(255,255,255,.55);
  letter-spacing: .06em;
}

.wc-banner__timer {
  display: flex;
  align-items: center;
  gap: 2px;
}

.wc-banner__time-unit {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
}
.wc-banner__time-value {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -.02em;
}
.wc-banner__time-label {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,.5);
  text-transform: lowercase;
  line-height: 1;
}
.wc-banner__time-sep {
  width: 6px;
  display: inline-block;
}

/* --- Zone groupes (défilement) --- */
.wc-banner__groups-wrapper {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 100%;
}

/* Fade-out aux bords */
.wc-banner__groups-wrapper::before,
.wc-banner__groups-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 30px;
  z-index: 2;
  pointer-events: none;
}
.wc-banner__groups-wrapper::before {
  left: 0;
  background: linear-gradient(90deg, #16213e, transparent);
}
.wc-banner__groups-wrapper::after {
  right: 0;
  background: linear-gradient(270deg, #16213e, transparent);
}

.wc-banner__groups-track {
  display: flex;
  align-items: center;
  gap: 0;
  height: 100%;
  animation: wc-scroll 45s linear infinite;
  width: max-content;
}
.wc-banner__groups-track:hover {
  animation-play-state: paused;
}

@keyframes wc-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- Groupe individuel --- */
.wc-banner__group {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 22px;
  height: 100%;
  text-decoration: none;
  border-right: 1px solid rgba(255,255,255,.08);
  transition: background .2s ease;
  cursor: pointer;
  white-space: nowrap;
}
.wc-banner__group:hover {
  background: rgba(255,255,255,.1);
}

.wc-banner__group-label {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,.9);
  text-transform: uppercase;
  letter-spacing: .03em;
  white-space: nowrap;
}

.wc-banner__group-flags {
  display: flex;
  align-items: center;
  gap: 4px;
}

.wc-banner__flag {
  width: 22px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid rgba(255,255,255,.2);
  transition: transform .15s ease;
}
.wc-banner__group:hover .wc-banner__flag {
  transform: scale(1.12);
}

/* Dot séparateur entre groupes */
.wc-banner__dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  flex-shrink: 0;
  margin: 0 2px;
}

/* --- Live badge (quand la CDM a commencé) --- */
.wc-banner__live {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(230, 29, 37, .9);
  font-size: 9px;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.wc-banner__live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  animation: wc-pulse 1.5s ease-in-out infinite;
}
@keyframes wc-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: .3; }
}

/* --- Responsive --- */
/* --- Logo mobile/desktop toggle --- */
.wc-banner__logo-short { display: none; }

@media (max-width: 767px) {
  #wc-banner {
    height: 36px;
  }
  .wc-banner__countdown {
    padding: 0 6px 0 8px;
    gap: 5px;
  }
  .wc-banner__logo-full {
    display: none;
  }
  .wc-banner__logo-short {
    display: inline;
    font-size: 10px;
    font-weight: 800;
    color: #fff;
  }
  .wc-banner__timer {
    gap: 1px;
  }
  .wc-banner__time-value {
    font-size: 11px;
  }
  .wc-banner__time-label {
    font-size: 7px;
  }
  .wc-banner__time-sep {
    width: 3px;
  }
  .wc-banner__group {
    padding: 0 10px;
    gap: 4px;
  }
  .wc-banner__group-label {
    font-size: 8px;
  }
  .wc-banner__flag {
    width: 16px;
    height: 11px;
  }
}

/* Cache le bandeau quand data-hidden */
#wc-banner[data-hidden] {
  display: none;
}
