/**
 * Styles pour le bloc Replay Home
 */

.replay-home-block {
  margin-bottom: 2rem;
}

.replay-home-content {
  width: 100%;
}

.replay-home-list {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

/* Responsive grid pour les replays */
@media (min-width: 768px) {
  .replay-home-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .replay-home-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Styles pour les éléments de replay */
.replay-home-item {
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.replay-home-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Style spécial pour le replay prioritaire (position 1) */
.replay-home-item .replay-priority {
  position: relative;
}

.replay-home-item .replay-priority::before {
  content: "★";
  position: absolute;
  top: 10px;
  right: 10px;
  background: #ff6b35;
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Styles pour les positions */
.replay-position-1 {
  order: -1; /* Toujours en premier */
}

/* Message vide */
.replay-home-empty {
  text-align: center;
  padding: 3rem 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  border: 2px dashed #dee2e6;
}

.replay-home-empty-message {
  margin: 0;
  color: #6c757d;
  font-style: italic;
}

/* Lazy loading */
.replay-home-lazy img {
  transition: opacity 0.3s ease;
}

.replay-home-lazy img[data-src] {
  opacity: 0.5;
}

.replay-home-lazy img.loaded {
  opacity: 1;
}

/* Animations de chargement */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.replay-home-item {
  animation: fadeInUp 0.6s ease forwards;
}

.replay-home-item:nth-child(1) { animation-delay: 0.1s; }
.replay-home-item:nth-child(2) { animation-delay: 0.2s; }
.replay-home-item:nth-child(3) { animation-delay: 0.3s; }
.replay-home-item:nth-child(4) { animation-delay: 0.4s; }
.replay-home-item:nth-child(5) { animation-delay: 0.5s; }

/* Styles pour différents nombres de replays */
.replay-count-1 .replay-home-list {
  grid-template-columns: 1fr;
  max-width: 600px;
  margin: 0 auto;
}

.replay-count-2 .replay-home-list {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 767px) {
  .replay-count-2 .replay-home-list,
  .replay-count-3 .replay-home-list,
  .replay-count-4 .replay-home-list,
  .replay-count-5 .replay-home-list {
    grid-template-columns: 1fr;
  }
}

/* Amélioration de l'accessibilité */
.replay-home-item:focus-within {
  outline: 2px solid #007bff;
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .replay-home-block {
    break-inside: avoid;
  }
  
  .replay-home-item {
    break-inside: avoid;
    margin-bottom: 1rem;
  }
}

#ReplayHomeCarousel .owl-carousel button.owl-next span {
    color: #085BAA;
    font-size: 30px;
}

#ReplayHomeCarousel .owl-carousel button.owl-next span {
    color: #F39C12;
    font-size: 30px;
}

#ReplayHomeCarousel .owl-nav button.owl-next span {
    color: #008b9f !important;
}

#ReplayHomeCarousel .owl-nav button.owl-prev span {
    color: #D6D6D6 !important;
}

#ReplayHomeCarousel .owl-theme button.owl-prev {
    font-size: 2rem;
    color: #055BAA;  
}

#ReplayHomeCarousel .owl-theme button.owl-next {
    font-size: 2rem;
    color: #055BAA;
}
#ReplayHomeCarousel .owl-theme .owl-nav button.owl-prev {
    margin-right: 23px;
}

#ReplayHomeCarousel .owl-theme .owl-nav {
    display: inline;
    float: right;
    margin-top: -20px;
}

div#block-replayhomeblock {
    border: none;
}
#ReplayHomeCarousel .owl-theme .owl-dots {
    display: inline;
    margin-top: 47px;
}

#ReplayHomeCarousel .owl-theme button.owl-next:hover {
  background: none;
}