/* =========================
   HOME – Spotlight activités
   (chargé uniquement sur l'accueil)
========================= */

/* Objectif : réduire l'espace pour que "Qui sommes-nous" + spotlight tiennent
   plus facilement sur un seul écran */

.home-hero{
  padding: 16px;
}

.home-hero h1{
  margin-bottom: 4px;
}

.home-hero__lead{
  margin: 0 0 10px;
  color: #0b1b2b;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: baseline;
}

.home-hero__hint{
  color: #475569;
  font-weight: 500;
}

.home-hero__placeholder{
  margin-top: 6px;
  color: #334155;
}

.home-hero__actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.home-activities-spotlight{
  margin-top: 12px;
  padding: 0 0 8px;
}

.home-activities-spotlight .section-title{
  margin: 12px 0 10px;
}

.home-activities-spotlight__note{
  margin: 0 0 10px;
  color: #475569;
  max-width: 75ch;
}

.spotlight-cards{
  display: flex;
  gap: 14px;
  align-items: stretch;
  height: 280px;
}

/* Pagination (points) */
.spotlight-pagination{
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.spotlight-dot{
  position: relative;
  width: 34px;
  height: 8px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,.28);
  background: rgba(15,23,42,.08);
  padding: 0;
  cursor: pointer;
  overflow: hidden;
}

.spotlight-dot__progress{
  position: absolute;
  inset: 0;
  width: 0%;
  background: rgba(14,165,233,.55);
}

.spotlight-dot.is-active{
  border-color: rgba(14,165,233,.55);
  background: rgba(14,165,233,.14);
}

.spotlight-dot:focus-visible{
  outline: 3px solid rgba(14,165,233,.35);
  outline-offset: 3px;
}

.spotlight-card{
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: #ffffff;

  border: 1px solid rgba(148,163,184,.22);
  background: #0f172a;
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.10);

  transform: translateY(0) scale(1);
  filter: saturate(.92);
  transition:
    flex .55s ease,
    transform .55s ease,
    filter .55s ease,
    border-color .55s ease,
    box-shadow .55s ease;
}

.spotlight-card__media{
  position: absolute;
  inset: 0;
}

.spotlight-card__img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .86;
}

.spotlight-card__fallback{
  width: 100%;
  height: 100%;
  background:
    radial-gradient(800px 320px at 20% 10%, rgba(14,165,233,.55), transparent 60%),
    radial-gradient(700px 280px at 80% 30%, rgba(186,230,253,.55), transparent 58%),
    linear-gradient(135deg, rgba(15,23,42,1), rgba(2,132,199,.55));
}

.spotlight-card__overlay{
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 380px at 50% 0%, rgba(14,165,233,.18), transparent 60%),
    linear-gradient(to top, rgba(11,27,43,.92), rgba(11,27,43,.18));
}

.spotlight-card__content{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px 16px 22px;
  z-index: 1;
}

.spotlight-card__title{
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0,0,0,.35);
}

.spotlight-card__desc{
  margin: 8px 0 0;
  font-size: 14px;
  color: rgba(255,255,255,.90);
  text-shadow: 0 2px 10px rgba(0,0,0,.35);

  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transform: translateY(6px);
  transition: opacity .35s ease, transform .35s ease, max-height .35s ease;
}

/* Timer (barre sous la carte) */
.spotlight-card__timer{
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 10px;
  height: 4px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,.22);
  z-index: 2;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .35s ease, transform .35s ease;
}

.spotlight-card__timer span{
  display: block;
  height: 100%;
  width: 0%;
  background: rgba(255,255,255,.92);
}

/* Carte mise en avant */
.spotlight-card.is-active,
.spotlight-card:hover,
.spotlight-card:focus-visible{
  flex: 2.4;
  transform: translateY(-6px) scale(1.02);
  filter: saturate(1.08);
  border-color: rgba(14,165,233,.55);
  box-shadow: 0 22px 60px rgba(2, 6, 23, 0.16);
}

.spotlight-card.is-active .spotlight-card__desc,
.spotlight-card:hover .spotlight-card__desc,
.spotlight-card:focus-visible .spotlight-card__desc{
  opacity: 1;
  max-height: 84px;
  transform: translateY(0);
}

.spotlight-card.is-active .spotlight-card__timer,
.spotlight-card:hover .spotlight-card__timer,
.spotlight-card:focus-visible .spotlight-card__timer{
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px){
  .spotlight-cards{
    height: auto;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
  }

  .spotlight-card{
    flex: 0 0 78%;
    min-width: 260px;
    height: 260px;
    scroll-snap-align: center;
  }

  .spotlight-card.is-active,
  .spotlight-card:hover,
  .spotlight-card:focus-visible{
    flex-basis: 78%;
    transform: translateY(-4px) scale(1.01);
  }

  .spotlight-pagination{
    margin-top: 8px;
  }

  .spotlight-dot{
    width: 28px;
    height: 7px;
  }
}

/* Accessibilité : limiter les animations si l'utilisateur le souhaite */
@media (prefers-reduced-motion: reduce){
  .spotlight-card{
    transition: none;
    transform: none !important;
  }

  .spotlight-card__desc,
  .spotlight-card__timer{
    transition: none;
  }

  .spotlight-dot__progress{
    transition: none;
  }
}
