/* Utilisation de la variable globale déjà configurée pour body.sportsenv (--section-bg: #fba137) */

.sports-actions-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* ==========================================================
   GRILLE & CARTES : LES CHOCS DU JOUR
   ========================================================== */

.matchs-du-jour-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 15px;
  max-width: 1100px;
  margin: 20px auto 0 auto;
}

.match-card-choc {
  background-color: var(--card-bg);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
}

.match-card-choc:hover {
  transform: translateY(-3px);
}

.match-time {
  font-weight: bold;
  font-size: 0.85rem;
  opacity: 0.8;
  margin-bottom: 8px;
}

.match-teams {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 100%;
  margin-bottom: 10px;
}

.match-teams .team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  text-align: center;
}

/* LOGOS ÉQUIPES BRIDÉS */
.team-logo {
  width: 40px;
  height: 40px;
  max-width: 40px;
  max-height: 40px;
  object-fit: contain;
  display: block;
}

.player-name {
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  color: inherit;
  line-height: 1.2;
}

.player-name:hover {
  text-decoration: underline;
}

.vs-badge {
  font-weight: 900;
  font-style: italic;
  font-size: 0.85rem;
  padding: 4px 8px;
  background: var(--section-bg);
  border-radius: 6px;
  margin: 0 5px;
}

.match-importance-tag {
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0.7;
  border-top: 1px dashed var(--border-color);
  width: 100%;
  text-align: center;
  padding-top: 6px;
}

.match-importance-tag a {
  color: inherit;
  text-decoration: none;
}

.match-importance-tag a:hover {
  text-decoration: underline;
}

/* ==========================================================
   ANIMATION SPORTS & LOISIRS : MORPHING SILHOUETTES OLYMPIQUES
   ========================================================== */

.sports-anim-container {
  width: 100%;
  max-width: 900px;
  height: 320px;
  margin: 20px auto;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* === ÉLÉMENT CENTRAL (MORPHING SILHOUETTES) === */
.olympic-morph-hub {
  position: relative;
  width: 220px;
  height: 220px;
  z-index: 10;
}

.sports-anim-container .sport-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(0.9) translateY(8px);
  filter: drop-shadow(0 6px 10px rgba(0,0,0,0.15));
  animation: morphSequence 42s infinite ease-in-out;
}

.sports-anim-container svg {
  width: 100%;
  height: 100%;
  fill: var(--text-color, #222222);
}

.sports-anim-container svg path[stroke] {
  stroke: var(--text-color, #222222);
}

/* Calcul des délais pour 14 pictogrammes (cycle de 42s = 3s chacun) */
.sports-anim-container .sport-item:nth-child(1)  { animation-delay: 0s; }
.sports-anim-container .sport-item:nth-child(2)  { animation-delay: 3s; }
.sports-anim-container .sport-item:nth-child(3)  { animation-delay: 6s; }
.sports-anim-container .sport-item:nth-child(4)  { animation-delay: 9s; }
.sports-anim-container .sport-item:nth-child(5)  { animation-delay: 12s; }
.sports-anim-container .sport-item:nth-child(6)  { animation-delay: 15s; }
.sports-anim-container .sport-item:nth-child(7)  { animation-delay: 18s; }
.sports-anim-container .sport-item:nth-child(8)  { animation-delay: 21s; }
.sports-anim-container .sport-item:nth-child(9)  { animation-delay: 24s; }
.sports-anim-container .sport-item:nth-child(10) { animation-delay: 27s; }
.sports-anim-container .sport-item:nth-child(11) { animation-delay: 30s; }
.sports-anim-container .sport-item:nth-child(12) { animation-delay: 33s; }
.sports-anim-container .sport-item:nth-child(13) { animation-delay: 36s; }
.sports-anim-container .sport-item:nth-child(14) { animation-delay: 39s; }

@keyframes morphSequence {
  0% {
    opacity: 0;
    transform: scale(0.9) translateY(8px);
  }
  2% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
  7% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
  9% {
    opacity: 0;
    transform: scale(1.05) translateY(-8px);
  }
  100% {
    opacity: 0;
    transform: scale(0.9) translateY(8px);
  }
}

/* === PETITES ICÔNES AUTOUR : APPARITION, DÉPLACEMENT PUIS DISPARITION === */
.floating-pop-icon {
  position: absolute;
  font-size: 1.6rem;
  user-select: none;
  pointer-events: none;
  z-index: 6;
  opacity: 0;
  animation: popMoveDisappear 4s infinite ease-in-out;
}

/* Positionnements d'origine */
.pop-1 { top: 15%; left: 15%; animation-delay: 0s; }
.pop-2 { top: 18%; right: 15%; animation-delay: 0.7s; }
.pop-3 { bottom: 20%; left: 18%; animation-delay: 1.4s; }
.pop-4 { bottom: 22%; right: 18%; animation-delay: 2.1s; }
.pop-5 { top: 50%; left: 8%; animation-delay: 2.8s; }
.pop-6 { top: 48%; right: 8%; animation-delay: 3.5s; }

@keyframes popMoveDisappear {
  0% {
    opacity: 0;
    transform: scale(0.5) translate(0, 10px);
  }
  20% {
    opacity: 1;
    transform: scale(1.1) translate(5px, -5px);
  }
  70% {
    opacity: 1;
    transform: scale(1) translate(15px, -20px);
  }
  100% {
    opacity: 0;
    transform: scale(0.6) translate(20px, -30px);
  }
}

/* === OBJETS SATELLITES EN ORBITE / FLOTTANTS === */
.sports-sat {
  position: absolute;
  font-size: 1.6rem;
  user-select: none;
  pointer-events: none;
  z-index: 5;
  animation: floatOrbit 6s infinite ease-in-out alternate;
}

.sat-1 { top: 12%; left: 8%; animation-delay: 0s; }
.sat-2 { top: 18%; right: 10%; animation-delay: 1.2s; }
.sat-3 { bottom: 25%; left: 5%; animation-delay: 2.5s; }
.sat-4 { bottom: 20%; right: 6%; animation-delay: 0.7s; }
.sat-5 { top: 45%; left: 2%; animation-delay: 1.8s; }
.sat-6 { top: 42%; right: 3%; animation-delay: 3s; }
.sat-7 { top: 8%; left: 35%; animation-delay: 2.1s; }
.sat-8 { top: 10%; right: 33%; animation-delay: 0.4s; }

@keyframes floatOrbit {
  0% { transform: translateY(0) rotate(-12deg) scale(0.95); }
  100% { transform: translateY(-20px) rotate(12deg) scale(1.1); }
}

/* === PARTICULES GÉOMÉTRIQUES D'AMBIANCE === */
.sports-particle {
  position: absolute;
  font-weight: bold;
  opacity: 0.25;
  user-select: none;
  pointer-events: none;
  animation: particleDrift 8s infinite linear;
}

.p1 { top: 20%; left: 22%; font-size: 1.2rem; animation-delay: 0s; }
.p2 { top: 65%; left: 18%; font-size: 1.4rem; animation-delay: 2s; }
.p3 { top: 25%; right: 20%; font-size: 1rem; animation-delay: 4s; }
.p4 { top: 70%; right: 24%; font-size: 1.1rem; animation-delay: 1s; }

@keyframes particleDrift {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(180deg); }
  100% { transform: translateY(0) rotate(360deg); }
}