/**
 * CAROUSEL STYLES - BANDEAU EXTERNE + CAROUSEL PROPRE
 * Bandeau temporel au-dessus + carousel sans badge intégré
 */

/* ================================
   BANDEAU OFFRES LIMITÉES - EXTERNE AU CAROUSEL
   ================================ */
.offres-bandeau {
  background: #4CAF50;
  color: var(--neutral-white);
  padding: var(--spacing-sm) var(--spacing-lg) var(--spacing-md) var(--spacing-lg);
  margin: 0 auto var(--spacing-lg) auto;
  max-width: 800px;
  border-radius: var(--radius-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
  
  /* ANIMATION CLIGNOTANTE SUBTILE */
  animation: bandeauPulse 3s ease-in-out infinite alternate;
  
  /* OMBRES PREMIUM */
  box-shadow: 
    0 8px 25px rgba(255, 107, 53, 0.4),
    0 4px 15px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

@keyframes bandeauPulse {
  0% {
    background: #4CAF50;
    transform: scale(1);
    box-shadow: 
      0 8px 25px rgba(255, 107, 53, 0.4),
      0 4px 15px rgba(0, 0, 0, 0.2);
  }
  100% {
    background: #4CAF50;
    transform: scale(1.02);
    box-shadow: 
      0 12px 35px rgba(255, 107, 53, 0.5),
      0 6px 20px rgba(0, 0, 0, 0.3);
  }
}


.offres-bandeau::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: bandeauShine 4s ease-in-out infinite;
}

@keyframes bandeauShine {
  0%, 100% { left: -100%; }
  50% { left: 100%; }
}

.offres-bandeau-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
  flex-wrap: nowrap; /* FORCE INLINE TOUJOURS */
}

.offres-bandeau-icon {
  font-size: var(--text-lg);
  color: #ffd700;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  animation: iconBounce 2s ease-in-out infinite;
}

@keyframes iconBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.offres-bandeau-text {
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.offres-bandeau-dates {
  font-size: var(--text-sm);
  background: rgba(255, 255, 255, 0.2);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-weight: var(--weight-semibold);
}

/* ================================
   CAROUSEL STRUCTURE GLOBALE - NETTOYÉE
   ================================ */

.carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.carousel-container {
  position: relative;
  width: 100%;
  max-width: 90vw;
  margin: 0 auto;
  padding: 0;
  min-width: 320px;
  max-width: 800px;
}

/* HAUTEURS CAROUSEL - DESKTOP FIXE */
.hero-carousel,
.carousel {
  height: 342px;
  position: relative;
  width: 100%;
}

.carousel-card {
  height: 342px;
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

/* ================================
   CARTES PARALLAX CAROUSEL UNIQUEMENT - BADGE SUPPRIMÉ
   ================================ */

.carousel-card {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: none;
  border-radius: var(--radius-xl);
  clip-path: inset(0 round var(--radius-xl));
  
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.15),
    0 10px 30px rgba(237, 31, 36, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  
  overflow: hidden;
  will-change: transform, opacity;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

/* OVERLAY GRADIENT CAROUSEL */
.carousel-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.05) 0%,
    rgba(0, 0, 0, 0.15) 60%,
    rgba(0, 0, 0, 0.4) 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* ================================
   ÉTATS PARALLAX - TIMING RAPIDE
   ================================ */

.carousel-card {
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
              opacity 0.3s ease !important;
}

.carousel-transitioning-in {
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
              opacity 0.3s ease !important;
}

.carousel-transitioning-out {
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
              opacity 0.3s ease !important;
}

/* CARTE ACTIVE - VISIBLE AU CENTRE */
.carousel-active {
  transform: translateX(0%) !important;
  opacity: 1 !important;
  z-index: 10 !important;
  pointer-events: auto !important;
}

/* CARTE SUIVANTE - DROITE CACHÉE */
.carousel-next {
  transform: translateX(100%) !important;
  opacity: 0 !important;
  z-index: 1 !important;
  pointer-events: none !important;
}

/* CARTE PRÉCÉDENTE - GAUCHE CACHÉE */
.carousel-prev {
  transform: translateX(-100%) !important;
  opacity: 0 !important;
  z-index: 1 !important;
  pointer-events: none !important;
}

/* CARTES CACHÉES - TRÈS À DROITE */
.carousel-hidden {
  transform: translateX(200%) !important;
  opacity: 0 !important;
  z-index: 1 !important;
  pointer-events: none !important;
}

/* ================================
   TITRE CAROUSEL - GLASSMORPHISM BLANC UNIFIÉ (SANS DÉCALAGE)
   ================================ */

.carousel .card-title-first {
  position: absolute;
  top: var(--spacing-lg); /* SUPPRESSION DÉCALAGE BADGE */
  left: var(--spacing-lg);
  right: var(--spacing-lg);
  z-index: 100;
  
  /* GLASSMORPHISM BLANC SUR TOUT LE BLOC */
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 2px solid rgba(255, 255, 255, 1);
  border-radius: var(--radius-xl);
  
  /* LAYOUT SIMPLE - BADGE SUPPRIMÉ */
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
  text-align: center;
  flex-wrap: nowrap;
  padding: var(--spacing-md) var(--spacing-lg);
  
  /* OMBRE GLASSMORPHISM GLOBALE */
  box-shadow: 
    0 0 15px rgba(237, 31, 36, 0.3),
    0 4px 15px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

/* SUPPRESSION BADGE ÉTÉ DU CAROUSEL */
.badge-ete-2025 {
  display: none;
}

/* ICÔNE TITRE CAROUSEL */
.carousel .card-icon-title {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 40px;
  background: none;
  border: none;
  box-shadow: none;
}

.carousel .card-icon-title i {
  font-size: var(--text-lg);
  color: #ed1f24;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

/* TEXTE TITRE CAROUSEL */
.carousel .card-title-first h3 {
  font-size: var(--text-xl);
  color: #ed1f24;
  margin: 0;
  padding: 0;
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  line-height: 1.2;
  letter-spacing: 0.3px;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
  background: none;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* ================================
   CONTENU CENTRÉ CAROUSEL
   ================================ */

.carousel .card-content-wrapper {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  z-index: 50;
  padding: 0 var(--spacing-xl);
  text-align: center;
}

.carousel .card-highlight-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-bottom: var(--spacing-lg);
}

.carousel .card-highlight-text {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: var(--radius-xl);
  font-weight: var(--weight-bold);
  color: var(--neutral-white);
  font-size: var(--text-lg);
  line-height: 1.4;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  position: relative;
  z-index: 51;
  max-width: 360px;
  
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(255, 255, 255, 0.2);
}

.carousel .card-highlight-text::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
  box-shadow: 0 0 15px rgba(237, 31, 36, 0.6);
}

/* ================================
   BOUTON CTA CAROUSEL
   ================================ */

.carousel .card-cta-fake {
  position: absolute;
  bottom: var(--spacing-xl);
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  margin: 0;
}

.carousel .btn-card-fake {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: var(--neutral-white);
  padding: var(--spacing-md) var(--spacing-xl);
  border-radius: var(--radius-xl);
  font-weight: var(--weight-bold);
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: var(--text-base);
  z-index: 61;
  position: relative;
  white-space: nowrap;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.3px;
  
  box-shadow: 
    0 12px 35px rgba(0, 0, 0, 0.2),
    0 4px 15px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -1px 0 rgba(255, 255, 255, 0.2);
  
  pointer-events: none;
}

.carousel .btn-card-fake i {
  font-size: var(--text-base);
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

/* ================================
   FLÈCHES NAVIGATION CAROUSEL
   ================================ */

.carousel-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: var(--radius-lg);
  border: none;
  
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--neutral-white);
  font-size: var(--text-lg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0.9;
  
  transition: all 0.2s cubic-bezier(0.23, 1, 0.32, 1);
  
  box-shadow: 
    0 8px 25px rgba(0, 0, 0, 0.15),
    0 3px 12px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -1px 0 rgba(255, 255, 255, 0.2);
  
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  outline: none;
}

@media (hover: hover) and (pointer: fine) {
  .carousel-arrow:hover {
    background: rgba(237, 31, 36, 0.9);
    border-color: rgba(255, 255, 255, 0.8);
    color: var(--neutral-white);
    opacity: 1;
    transform: translateY(-50%) scale(1.15);
    transition: all 0.15s ease;
  }
}

.carousel-arrow-prev {
  left: 20px;
}

.carousel-arrow-next {
  right: 20px;
}

/* ================================
   RESPONSIVE BANDEAU + FLÈCHES
   ================================ */

@media (max-width: 768px) {
  .offres-bandeau {
    margin: 0 var(--spacing-md) var(--spacing-lg) var(--spacing-md);
    padding: var(--spacing-sm) var(--spacing-md);
  }
  
  .offres-bandeau-content {
    gap: var(--spacing-sm); /* RÉDUIT GAP MOBILE */
  }
  
  .offres-bandeau-text {
    font-size: var(--text-sm);
  }
  
  .offres-bandeau-dates {
    font-size: var(--text-xs);
    padding: var(--spacing-xs); /* RÉDUIT PADDING */
  }
  
  .offres-bandeau-icon {
    font-size: var(--text-base); /* RÉDUIT ICÔNE */
  }
  
  .carousel-arrow {
    width: 45px;
    height: 45px;
    font-size: var(--text-base);
  }
  
  .carousel-arrow-prev {
    left: 15px;
  }
  
  .carousel-arrow-next {
    right: 15px;
  }
}

@media (max-width: 480px) {
  .offres-bandeau {
    margin: 0 var(--spacing-sm) var(--spacing-md) var(--spacing-sm);
    padding: var(--spacing-xs) var(--spacing-sm);
  }
  
  .offres-bandeau-content {
    gap: var(--spacing-xs); /* GAP TRÈS RÉDUIT */
  }
  
  .offres-bandeau-text {
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold); /* RÉDUIT WEIGHT */
  }
  
  .offres-bandeau-dates {
    font-size: 0.65rem; /* TRÈS PETIT */
    padding: 2px 6px; /* PADDING MINIMAL */
  }
  
  .offres-bandeau-icon {
    font-size: var(--text-sm); /* ICÔNE PLUS PETITE */
  }
  
  .carousel-arrow {
    width: 40px;
    height: 40px;
    font-size: var(--text-sm);
  }
  
  .carousel-arrow-prev {
    left: 10px;
  }
  
  .carousel-arrow-next {
    right: 10px;
  }
}

@media (max-width: 425px) {
  .carousel-arrow {
    top: 75%;
    width: 35px;
    height: 35px;
    font-size: var(--text-sm);
  }
  
  .carousel-arrow-prev {
    left: 15px;
  }
  
  .carousel-arrow-next {
    right: 15px;
  }
}

@media (max-width: 320px) {
  .carousel-arrow {
    top: 85%;
    width: 35px;
    height: 35px;
    font-size: var(--text-xs);
  }
  
  .carousel-arrow-prev {
    left: 5px;
  }
  
  .carousel-arrow-next {
    right: 5px;
  }
}

/* ================================
   PERFORMANCE
   ================================ */