/* ==========================================================
   FUTURIST GAMES
   SLIDERS D'ACTIVITÉS PREMIUM ET OPTIMISÉS
========================================================== */

.fg-activity-showcase {
  --fg-white: #ffffff;
  --fg-muted: #aeb6c8;

  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  padding: 26px 18px;

  color: var(--fg-white);

  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  contain: layout paint;
}

.fg-activity-showcase,
.fg-activity-showcase * {
  box-sizing: border-box;
}


/* ==========================================================
   GRILLE PRINCIPALE
========================================================== */

.fg-activity-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 32px);
  align-items: start;
}


/* ==========================================================
   COULEURS PAR ACTIVITÉ
========================================================== */

.fg-activity {
  --accent: #13a9e8;
  --accent-soft: rgba(19, 169, 232, 0.22);

  min-width: 0;
}

.fg-activity--arena {
  --accent: #3d67ff;
  --accent-soft: rgba(61, 103, 255, 0.22);
}

.fg-activity--virtual {
  --accent: #8d2cff;
  --accent-soft: rgba(141, 44, 255, 0.22);
}

.fg-activity--outdoor {
  --accent: #ff6b21;
  --accent-soft: rgba(255, 107, 33, 0.22);
}


/* ==========================================================
   TITRES
========================================================== */

.fg-activity-title {
  min-height: 2.6em;
  margin: 0 0 14px;

  color: var(--accent);

  font-size: clamp(0.9rem, 1.15vw, 1.18rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.055em;

  text-align: center;
  text-transform: uppercase;
}


/* ==========================================================
   CARTE CLIQUABLE
========================================================== */

.fg-activity-card {
  position: relative;

  display: block;

  color: inherit;
  text-decoration: none;

  border-radius: 28px;

  outline: none;
  isolation: isolate;
}

.fg-activity-card::before {
  content: "";

  position: absolute;
  inset: -1px;
  z-index: -1;

  border-radius: inherit;

  background:
    linear-gradient(
      145deg,
      var(--accent),
      rgba(255, 255, 255, 0.1) 43%,
      transparent 73%
    );

  opacity: 0.42;

  transition:
    opacity 250ms ease,
    transform 250ms ease;
}


/* ==========================================================
   ZONE IMAGE
========================================================== */

.fg-activity-viewport {
  position: relative;

  overflow: hidden;

  width: 100%;
  aspect-ratio: 4 / 5.35;

  border-radius: inherit;
  background: #090c12;

  box-shadow:
    0 20px 55px rgba(0, 0, 0, 0.48),
    0 0 30px var(--accent-soft);

  transform: translateZ(0);
}


/* ==========================================================
   PISTE DU SLIDER
========================================================== */

.fg-activity-track {
  display: flex;

  width: 100%;
  height: 100%;

  transform:
    translate3d(
      calc(var(--fg-index, 0) * -100%),
      0,
      0
    );

  transition:
    transform 650ms cubic-bezier(0.22, 0.61, 0.36, 1);

  will-change: transform;
}


/* ==========================================================
   SLIDES
========================================================== */

.fg-activity-slide {
  flex: 0 0 100%;

  width: 100%;
  min-width: 100%;
  height: 100%;

  margin: 0;
}

.fg-activity-slide img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  filter:
    saturate(1.05)
    contrast(1.04);

  transform: scale(1.001) translateZ(0);

  transition:
    transform 5.5s ease-out,
    filter 300ms ease;
}


/* Effet de zoom léger sur l'image active */

.fg-activity-slide.is-active img {
  transform: scale(1.045) translateZ(0);
}


/* ==========================================================
   DÉGRADÉ SUR LES IMAGES
========================================================== */

.fg-activity-overlay {
  position: absolute;
  inset: 0;

  pointer-events: none;

  background:
    linear-gradient(
      to top,
      rgba(2, 3, 7, 0.97) 0%,
      rgba(2, 3, 7, 0.55) 22%,
      rgba(2, 3, 7, 0.14) 48%,
      transparent 68%
    ),
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.18),
      transparent 25%
    );
}


/* ==========================================================
   BAS DE LA CARTE
========================================================== */

.fg-activity-bottom {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;

  padding: 18px;
}


/* ==========================================================
   POINTS DU SLIDER
========================================================== */

.fg-activity-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;

  min-height: 9px;
  margin-bottom: 14px;
}

.fg-activity-dot {
  display: block;

  width: 7px;
  height: 7px;

  border-radius: 999px;

  background: rgba(255, 255, 255, 0.48);

  transition:
    width 220ms ease,
    background-color 220ms ease,
    transform 220ms ease;
}

.fg-activity-dot.is-active {
  width: 20px;

  background: var(--accent);

  box-shadow:
    0 0 12px var(--accent);

  transform: scaleY(1.08);
}


/* ==========================================================
   BOUTON DÉCOUVRIR
========================================================== */

.fg-activity-discover {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  width: max-content;
  max-width: 100%;

  margin: 0 auto;
  padding: 9px 15px;

  color: #ffffff;
  background: rgba(4, 6, 12, 0.74);

  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;

  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.24);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.035em;

  text-transform: uppercase;
}

.fg-activity-discover svg {
  width: 16px;
  height: 16px;

  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;

  transition: transform 250ms ease;
}


/* ==========================================================
   INFORMATIONS SOUS LA CARTE
========================================================== */

.fg-activity-information {
  padding: 20px 6px 0;

  text-align: center;
}


/* ==========================================================
   BADGES
========================================================== */

.fg-activity-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px;

  min-height: 38px;
}

.fg-activity-badges span {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 36px;
  padding: 8px 14px;

  color: #ffffff;
  background:
    linear-gradient(
      135deg,
      var(--accent),
      color-mix(in srgb, var(--accent) 72%, #05060a)
    );

  border: 1px solid
    color-mix(in srgb, var(--accent) 64%, white);

  border-radius: 999px;

  box-shadow:
    0 8px 24px var(--accent-soft);

  font-size: 0.73rem;
  font-weight: 800;
  line-height: 1.1;

  text-transform: uppercase;
  white-space: nowrap;
}


/* ==========================================================
   PRIX
========================================================== */

.fg-activity-price {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: center;
  align-items: baseline;
  column-gap: 8px;

  margin-top: 18px;
}

.fg-activity-price small {
  color: #ffffff;

  font-size: 0.69rem;
  font-weight: 900;
  line-height: 1;

  text-transform: uppercase;
}

.fg-activity-price strong {
  color: var(--accent);

  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.04em;

  text-shadow:
    0 0 24px var(--accent-soft);
}

.fg-activity-price em {
  grid-column: 1 / -1;

  margin-top: 7px;

  color: #ffffff;

  font-size: 0.9rem;
  font-style: normal;
  font-weight: 650;
}


/* ==========================================================
   EFFETS SOURIS
========================================================== */

@media (hover: hover) {

  .fg-activity-card:hover::before {
    opacity: 0.95;
    transform: scale(1.014);
  }

  .fg-activity-card:hover .fg-activity-viewport {
    box-shadow:
      0 28px 76px rgba(0, 0, 0, 0.62),
      0 0 42px var(--accent-soft);
  }

  .fg-activity-card:hover .fg-activity-discover svg {
    transform: translateX(4px);
  }

}


/* ==========================================================
   ACCESSIBILITÉ CLAVIER
========================================================== */

.fg-activity-card:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}


/* ==========================================================
   TABLETTE
========================================================== */

@media (max-width: 1180px) {

  .fg-activity-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fg-activity-title {
    min-height: auto;
  }

}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 640px) {

  .fg-activity-showcase {
    padding-right: 14px;
    padding-left: 14px;
  }

  .fg-activity-grid {
    display: flex;

    gap: 16px;

    overflow-x: auto;
    overflow-y: hidden;

    padding:
      2px
      8vw
      18px
      0;

    scroll-snap-type: x mandatory;
    scrollbar-width: none;

    overscroll-behavior-inline: contain;

    -webkit-overflow-scrolling: touch;
  }

  .fg-activity-grid::-webkit-scrollbar {
    display: none;
  }

  .fg-activity {
    flex: 0 0 min(84vw, 360px);

    scroll-snap-align: start;
  }

  .fg-activity-viewport {
    aspect-ratio: 4 / 5.15;
  }

  .fg-activity-title {
    font-size: 0.95rem;
  }

  .fg-activity-discover {
    font-size: 0.7rem;
  }

}


/* ==========================================================
   PETITS MOBILES
========================================================== */

@media (max-width: 380px) {

  .fg-activity {
    flex-basis: 87vw;
  }

  .fg-activity-badges span {
    padding-right: 11px;
    padding-left: 11px;

    font-size: 0.68rem;
  }

}


/* ==========================================================
   RÉDUCTION DES ANIMATIONS
========================================================== */

@media (prefers-reduced-motion: reduce) {

  .fg-activity-showcase *,
  .fg-activity-showcase *::before,
  .fg-activity-showcase *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

}