.adrien-fire-hero {
  position: relative !important;
  min-height: 85vh !important;
  isolation: isolate;
  overflow: hidden !important;
  background: #020100 !important;
}

.adrien-fire-hero > :not(.ath-stage) {
  display: none !important;
}

.adrien-fire-hero .ath-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #000;
}

.adrien-fire-hero .ath-poster,
.adrien-fire-hero .ath-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.adrien-fire-hero .ath-poster {
  /* contain : visuel entier visible, bandes noires de remplissage */
  object-fit: contain;
  object-position: 50% 50%;
}

.adrien-fire-hero .ath-canvas {
  z-index: 1;
  opacity: 0;
  transition: opacity 700ms ease;
}

.adrien-fire-hero .ath-canvas.is-ready {
  opacity: 1;
}

.adrien-fire-hero .ath-embers {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
  mix-blend-mode: screen;
}

.adrien-fire-hero .ath-embers i {
  position: absolute;
  left: var(--ath-left);
  top: var(--ath-top);
  width: var(--ath-size);
  height: calc(var(--ath-size) * 2.2);
  border-radius: 50%;
  opacity: 0;
  background: #fff2b2;
  box-shadow:
    0 0 5px 1px #ff9b22,
    0 0 11px 3px rgba(255, 55, 0, 0.68);
  animation: ath-ember-rise var(--ath-duration) var(--ath-delay) linear infinite;
}

.adrien-fire-hero .ath-vignette {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.18),
      transparent 18%,
      transparent 78%,
      rgba(0, 0, 0, 0.35)
    ),
    radial-gradient(ellipse at center, transparent 52%, rgba(0, 0, 0, 0.4));
}

.adrien-fire-hero .ath-motion-toggle {
  position: absolute;
  z-index: 4;
  right: clamp(12px, 2.2vw, 34px);
  bottom: clamp(12px, 2.2vw, 30px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid rgba(255, 190, 125, 0.36);
  border-radius: 999px;
  color: rgba(255, 245, 233, 0.92);
  background: rgba(9, 4, 1, 0.7);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(11px);
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.adrien-fire-hero .ath-motion-toggle:hover {
  border-color: rgba(255, 179, 94, 0.7);
  background: rgba(31, 11, 1, 0.82);
  transform: translateY(-1px);
}

.adrien-fire-hero .ath-motion-toggle:focus-visible {
  outline: 2px solid #ffd7ab;
  outline-offset: 3px;
}

.adrien-fire-hero .ath-motion-toggle span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffd39a;
  box-shadow: 0 0 8px 2px #ff6a00;
}

.adrien-fire-hero .ath-motion-toggle[aria-pressed="true"] span {
  background: #887c72;
  box-shadow: none;
}

.adrien-fire-hero.ath-is-paused .ath-embers i {
  animation-play-state: paused;
}

@keyframes ath-ember-rise {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(12deg) scale(0.65);
  }
  12% {
    opacity: 0.95;
  }
  62% {
    opacity: 0.55;
  }
  100% {
    opacity: 0;
    transform: translate3d(36px, -50vh, 0) rotate(48deg) scale(0.18);
  }
}

@media (max-width: 767px) {
  .adrien-fire-hero {
    min-height: 0 !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
  }

  .adrien-fire-hero .ath-motion-toggle {
    min-height: 34px;
    padding-inline: 11px;
    font-size: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .adrien-fire-hero .ath-canvas,
  .adrien-fire-hero .ath-embers,
  .adrien-fire-hero .ath-motion-toggle {
    display: none !important;
  }
}
