/* ==========================================================
   FUTURIST GAMES — HERO PREMIUM
   HTML et CSS séparés — aucun framework
   ========================================================== */

:root {
  --fg-bg: #02040b;
  --fg-text: #ffffff;
  --fg-muted: rgba(255,255,255,.78);
  --fg-violet: #d327ff;
  --fg-purple: #7b4dff;
  --fg-cyan: #16c9ff;
  --fg-line: rgba(255,255,255,.16);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  background: var(--fg-bg);
  color: var(--fg-text);
  font-family: Montserrat, Arial, sans-serif;
}

button,
a {
  font: inherit;
}

.fg-hero {
  position: relative;
  isolation: isolate;
  min-height: 920px;
  overflow: hidden;
  background: #03050c;
}

/* L'image de fond est bien placée dans le HTML */
.fg-hero__bg {
  position: absolute;
  z-index: -5;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  user-select: none;
  pointer-events: none;
}

.fg-hero__shade {
  position: absolute;
  z-index: -4;
  inset: 0;
  background:
    linear-gradient(90deg,
      rgba(2,4,11,.98) 0%,
      rgba(2,4,11,.93) 23%,
      rgba(2,4,11,.58) 49%,
      rgba(2,4,11,.12) 72%,
      rgba(2,4,11,.52) 100%),
    linear-gradient(180deg,
      rgba(2,4,11,.05) 0%,
      rgba(2,4,11,.02) 62%,
      rgba(2,4,11,.92) 100%);
}

.fg-hero__glow {
  position: absolute;
  z-index: -3;
  width: 440px;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(100px);
  opacity: .2;
  pointer-events: none;
}

.fg-hero__glow--violet {
  top: 10%;
  left: 34%;
  background: #a826ff;
}

.fg-hero__glow--cyan {
  right: -8%;
  bottom: 4%;
  background: #00c7ff;
}

.fg-hero__container {
  width: min(1440px, calc(100% - 48px));
  min-height: 820px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 620px) minmax(520px, 1fr);
  align-items: center;
  gap: 10px;
  padding: 68px 0 130px;
}

.fg-hero__content {
  position: relative;
  z-index: 5;
  padding-left: clamp(0px, 2vw, 32px);
}

.fg-hero__kicker {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 18px;
  color: rgba(255,255,255,.82);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.fg-hero__kicker-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--fg-cyan);
  box-shadow: 0 0 15px var(--fg-cyan);
}

.fg-hero__title {
  margin: 0;
  max-width: 750px;
  color: #fff;
  font-size: clamp(62px, 4vw, 116px);
  font-weight: 900;
  line-height: .82;
  letter-spacing: -.065em;
  text-transform: uppercase;
  text-wrap: balance;
  text-shadow: 0 8px 36px rgba(0,0,0,.36);
}

.fg-hero__title span {
  display: block;
  width: max-content;
  max-width: 100%;
  color: transparent;
  background:
    linear-gradient(90deg,
      #ef2eff 0%,
      #9d40ff 42%,
      #6e69ff 72%,
      #20ccff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 24px rgba(155,55,255,.18));
}

.fg-hero__intro {
  max-width: 610px;
  margin: 28px 0 24px;
  color: var(--fg-muted);
  font-size: clamp(16px, 1.2vw, 20px);
  font-weight: 500;
  line-height: 1.65;
}

.fg-stats {
  display: grid;
  grid-template-columns: repeat(5, max-content);
  gap: 22px;
  align-items: center;
  margin: 0 0 26px;
}

.fg-stat {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 116px;
}

.fg-stat__icon,
.fg-hours__icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 50%;
  background: rgba(7,8,18,.7);
  box-shadow: inset 0 0 20px rgba(255,255,255,.025);
  backdrop-filter: blur(10px);
}

.fg-stat__icon svg,
.fg-hours__icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fg-stat span:last-child {
  display: grid;
  gap: 2px;
}

.fg-stat strong {
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.1;
}

.fg-stat small {
  color: rgba(255,255,255,.67);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .03em;
  line-height: 1.1;
}

.fg-video-card {
  position: relative;
  display: block;
  width: min(100%, 650px);
  aspect-ratio: 16 / 6.75;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  color: #fff;
  border: 1px solid transparent;
  border-radius: 24px;
  background:
    linear-gradient(#0b0c18, #0b0c18) padding-box,
    linear-gradient(120deg, var(--fg-violet), var(--fg-cyan)) border-box;
  box-shadow:
    0 24px 70px rgba(0,0,0,.38),
    0 0 40px rgba(132,45,255,.13);
  transform: translateZ(0);
}

.fg-video-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .55s ease;
}

.fg-video-card__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6,4,18,.05), rgba(6,4,18,.68)),
    linear-gradient(90deg, rgba(118,34,180,.15), rgba(8,177,255,.1));
}

.fg-video-card__play {
  position: absolute;
  inset: 50% auto auto 50%;
  display: grid;
  place-items: center;
  width: 72px;
  aspect-ratio: 1;
  border: 2px solid rgba(255,255,255,.94);
  border-radius: 50%;
  background: rgba(3,4,12,.52);
  box-shadow:
    0 0 0 10px rgba(255,255,255,.04),
    0 0 34px rgba(203,47,255,.32);
  backdrop-filter: blur(10px);
  transform: translate(-50%, -50%);
  transition: transform .25s ease, background .25s ease;
}

.fg-video-card__play svg {
  width: 31px;
  height: 31px;
  fill: #fff;
  transform: translateX(2px);
}

.fg-video-card__label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  text-align: center;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .02em;
}

.fg-video-card:hover img {
  transform: scale(1.025);
}

.fg-video-card:hover .fg-video-card__play {
  background: rgba(136,35,220,.7);
  transform: translate(-50%, -50%) scale(1.06);
}

.fg-video-card:focus-visible,
.fg-btn:focus-visible,
.fg-video-modal button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

.fg-actions {
  display: grid;
  grid-template-columns: 1.18fr .98fr;
  gap: 14px;
  width: min(100%, 650px);
  margin-top: 17px;
}


/* Personnages */
.fg-hero__visual {
  position: relative;
  align-self: stretch;
  min-height: 760px;
  pointer-events: none;
}

.fg-hero__characters {
  position: absolute;
  z-index: 3;
  right: clamp(-170px, -8vw, -70px);
  bottom: 2px;
  width: min(860px, 66vw);
  height: auto;
  max-width: none;
  filter:
    drop-shadow(0 36px 42px rgba(0,0,0,.65))
    drop-shadow(0 0 24px rgba(125,49,255,.18));
}

.fg-hero__portal {
  position: absolute;
  z-index: 1;
  right: 7%;
  top: 13%;
  width: 490px;
  height: 490px;
  border-radius: 50%;
  border: 1px solid rgba(77,206,255,.28);
  background:
    radial-gradient(circle, rgba(80,35,180,.05) 0 44%, transparent 45%),
    conic-gradient(from 50deg,
      transparent 0 9%,
      rgba(197,40,255,.42) 10% 11%,
      transparent 12% 31%,
      rgba(24,204,255,.48) 32% 33%,
      transparent 34% 62%,
      rgba(206,35,255,.35) 63% 64%,
      transparent 65%);
  box-shadow:
    inset 0 0 60px rgba(112,47,255,.15),
    0 0 45px rgba(0,201,255,.08);
  opacity: .72;
}

.fg-hero__floor {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 18px;
  width: 92%;
  height: 110px;
  border-radius: 50%;
  background:
    radial-gradient(ellipse,
      rgba(116,45,255,.33) 0,
      rgba(22,192,255,.13) 38%,
      transparent 70%);
  filter: blur(12px);
}

.fg-hours {
  position: absolute;
  z-index: 7;
  right: 4.5%;
  bottom: 26px;
  width: min(680px, 48vw);
  min-height: 98px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  padding: 20px 29px;
  border: 1px solid rgba(193,46,255,.42);
  border-radius: 999px;
  background:
    linear-gradient(100deg,
      rgba(27,8,51,.9),
      rgba(7,8,25,.9));
  box-shadow:
    0 18px 52px rgba(0,0,0,.42),
    inset 0 0 40px rgba(117,44,255,.06);
  backdrop-filter: blur(18px);
}

.fg-hours__item {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.fg-hours__item span:last-child {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.fg-hours small {
  color: #e932ff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
}

.fg-hours strong {
  overflow: hidden;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.fg-hours__icon svg {
  stroke: var(--fg-cyan);
}

.fg-hours__divider {
  width: 1px;
  height: 50px;
  background: rgba(255,255,255,.22);
}

/* Modal vidéo */
.fg-modal-open {
  overflow: hidden;
}

.fg-video-modal[hidden] {
  display: none;
}

.fg-video-modal {
  position: fixed;
  z-index: 999999;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.fg-video-modal__backdrop {
  position: absolute;
  inset: 0;
  cursor: pointer;
  border: 0;
  background: rgba(0,0,0,.86);
  backdrop-filter: blur(14px);
}

.fg-video-modal__dialog {
  position: relative;
  z-index: 2;
  width: min(1100px, 100%);
  border: 1px solid rgba(151,51,255,.6);
  border-radius: 24px;
  background: #03040a;
  box-shadow: 0 30px 100px rgba(0,0,0,.7);
}

.fg-video-modal__frame {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: inherit;
}

.fg-video-modal iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.fg-video-modal__close {
  position: absolute;
  z-index: 3;
  top: -16px;
  right: -16px;
  width: 48px;
  height: 48px;
  cursor: pointer;
  color: #fff;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;
  background: #15101e;
  font-size: 31px;
  line-height: 1;
}

/* Tablette */
@media (max-width: 1180px) {
  .fg-hero {
    min-height: 1020px;
  }

  .fg-hero__container {
    grid-template-columns: minmax(0, 56%) minmax(420px, 44%);
    padding-top: 60px;
  }

  .fg-stats {
    grid-template-columns: repeat(3, max-content);
    row-gap: 14px;
  }

  .fg-hero__characters {
    right: -230px;
    width: 800px;
  }

  .fg-hours {
    width: min(700px, calc(100% - 48px));
    right: 24px;
  }
}

/* Mobile */
@media (max-width: 820px) {
  .fg-hero {
    min-height: auto;
  }

  .fg-hero__shade {
    background:
      linear-gradient(180deg,
        rgba(2,4,11,.94) 0%,
        rgba(2,4,11,.77) 44%,
        rgba(2,4,11,.12) 66%,
        rgba(2,4,11,.94) 100%);
  }

  .fg-hero__bg {
    object-position: 64% center;
  }

  .fg-hero__container {
    width: min(100% - 28px, 680px);
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 48px 0 22px;
  }

  .fg-hero__content {
    width: 100%;
    padding: 0;
  }

  .fg-hero__title {
    font-size: clamp(50px, 15vw, 78px);
    line-height: .87;
  }

  .fg-hero__intro {
    margin-top: 22px;
    font-size: 16px;
    line-height: 1.55;
  }

  .fg-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px 10px;
  }

  .fg-stat {
    min-width: 0;
  }

  .fg-video-card {
    aspect-ratio: 16 / 9;
    border-radius: 19px;
  }

  .fg-actions {
    grid-template-columns: 1fr;
  }

  .fg-hero__visual {
    width: 100%;
    min-height: 500px;
    margin-top: -10px;
  }

  .fg-hero__characters {
    left: 50%;
    right: auto;
    bottom: -1px;
    width: min(780px, 148vw);
    transform: translateX(-50%);
  }

  .fg-hero__portal {
    top: 8%;
    left: 50%;
    right: auto;
    width: min(430px, 92vw);
    height: min(430px, 92vw);
    transform: translateX(-50%);
  }

  .fg-hours {
    position: relative;
    right: auto;
    bottom: auto;
    width: calc(100% - 28px);
    margin: -10px auto 22px;
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 22px;
    border-radius: 26px;
  }

  .fg-hours__divider {
    width: 100%;
    height: 1px;
  }

  .fg-hours strong {
    white-space: normal;
  }
}

@media (max-width: 480px) {
  .fg-hero__kicker {
    font-size: 10px;
    letter-spacing: .13em;
  }

  .fg-hero__title {
    font-size: clamp(44px, 14.8vw, 66px);
  }

  .fg-stat__icon {
    width: 34px;
    height: 34px;
  }

  .fg-video-card__play {
    width: 60px;
  }

  .fg-video-card__label {
    bottom: 16px;
    font-size: 10px;
  }

  .fg-btn {
    min-height: 56px;
  }

  .fg-hero__visual {
    min-height: 420px;
  }
}

/* Accessibilité / performances */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
