/*
 * UVEA — Bloc cadeau "Sac UVEA offert" sur fiche produit
 * Carrousel CSS pur 4 slides + captions sync (5s/slide, 20s cycle).
 * Couleur de marque : --uvea-blue (#0E2B50). Police manuscrite : Caveat (Google Fonts).
 */
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@500&display=swap');

.uvea-gift-block {
  padding: 100px 40px;
  background: #ffffff;
}

.uvea-gift-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* === IMAGE ROTATOR ============================================ */
.uvea-gift-image-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 4px;
  overflow: hidden;
  background: #e8eaef;
}

.uvea-gift-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: uveaRotateFade 20s infinite;
}

.uvea-gift-slide img,
.uvea-gift-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.uvea-gift-placeholder {
  background: #e8eaef;
  color: #5a6477;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.uvea-gift-slide:nth-child(1) { animation-delay: 0s; }
.uvea-gift-slide:nth-child(2) { animation-delay: 5s; }
.uvea-gift-slide:nth-child(3) { animation-delay: 10s; }
.uvea-gift-slide:nth-child(4) { animation-delay: 15s; }

@keyframes uveaRotateFade {
  0%   { opacity: 0; }
  2%   { opacity: 1; }
  23%  { opacity: 1; }
  26%  { opacity: 0; }
  100% { opacity: 0; }
}

/* === CAPTION ROTATOR ========================================== */
.uvea-gift-caption-rotator {
  position: relative;
  height: 32px;
  margin: 0 0 18px;
}

.uvea-gift-caption {
  position: absolute;
  inset: 0;
  opacity: 0;
  font-family: 'Caveat', cursive;
  font-size: 26px;
  font-weight: 500;
  color: #0E2B50;
  animation: uveaRotateFade 20s infinite;
  white-space: nowrap;
}

.uvea-gift-caption:nth-child(1) { animation-delay: 0s; }
.uvea-gift-caption:nth-child(2) { animation-delay: 5s; }
.uvea-gift-caption:nth-child(3) { animation-delay: 10s; }
.uvea-gift-caption:nth-child(4) { animation-delay: 15s; }

/* === CONTENT ================================================== */
.uvea-gift-content {
  font-family: 'Manrope', sans-serif;
  color: #0E2B50;
}

.uvea-gift-label {
  font-size: 12px;
  letter-spacing: 2px;
  font-weight: 700;
  margin: 0 0 28px;
  text-transform: uppercase;
}

.uvea-gift-title {
  font-size: 38px;
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 18px;
  letter-spacing: -0.3px;
}

.uvea-gift-body {
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 14px;
  max-width: 440px;
}

.uvea-gift-signature {
  font-family: 'Caveat', cursive;
  font-size: 20px;
  font-weight: 500;
  margin: 24px 0 0;
  opacity: 0.7;
}

/* === REDUCED MOTION =========================================== */
@media (prefers-reduced-motion: reduce) {
  .uvea-gift-slide,
  .uvea-gift-caption {
    animation: none;
  }
  .uvea-gift-slide:first-child,
  .uvea-gift-caption:first-child {
    opacity: 1;
  }
}

/* === MOBILE =================================================== */
@media (max-width: 900px) {
  .uvea-gift-block {
    padding: 60px 24px;
  }
  .uvea-gift-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .uvea-gift-title {
    font-size: 28px;
  }
  .uvea-gift-caption {
    white-space: normal;
    font-size: 22px;
    line-height: 1.2;
  }
  .uvea-gift-caption-rotator {
    height: 56px;
  }
}
