/*
 * Hero mémoriel de la page racine Commémorations.
 * Le module reste séparé du récit général afin de ne charger la flamme que sur /commemorations.
 */

.gc-comm-flame-hero {
  --comm-flame-core: var(--color-base);
  --comm-flame-middle: var(--accent-on-dark);
  --comm-flame-edge: var(--color-primary);
  --comm-flame-base: var(--color-accent-strong, var(--color-primary));
  border-bottom: 1px solid rgba(201, 165, 109, 0.28);
}

.gc-comm-flame-hero .container,
.gc-comm-flame-hero .row {
  position: relative;
  z-index: 1;
}

.gc-comm-flame {
  position: absolute;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  background: var(--color-ink-deep);
}

.gc-comm-flame__picture,
.gc-comm-flame__picture img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.gc-comm-flame__picture img {
  object-fit: cover;
  object-position: 50% 50%;
}

.gc-comm-flame__svg {
  position: absolute;
  top: 65%;
  left: 81%;
  z-index: 1;
  width: 86px;
  height: 230px;
  opacity: 0.92;
  transform: translate(-50%, -100%);
  transform-origin: 50% 100%;
  pointer-events: none;
}

.gc-comm-flame-hero .gc-comm-landing__hero-shade,
.gc-comm-flame-hero .gc-comm-home__hero-shade {
  background:
    linear-gradient(90deg, rgba(9, 9, 9, 0.98) 0%, rgba(9, 9, 9, 0.91) 34%, rgba(9, 9, 9, 0.5) 59%, rgba(9, 9, 9, 0.12) 78%, rgba(9, 9, 9, 0.35) 100%),
    linear-gradient(0deg, rgba(9, 9, 9, 0.62) 0%, rgba(9, 9, 9, 0) 42%, rgba(9, 9, 9, 0.24) 100%);
}

.gc-comm-flame-hero .gc-comm-landing__hero-content {
  max-width: 690px;
  padding-top: 72px;
  padding-bottom: 58px;
}

.gc-comm-flame-hero .gc-comm-landing__hero-title {
  max-width: 660px;
}

.gc-comm-flame-hero .gc-comm-landing__hero-lead,
.gc-comm-flame-hero .gc-comm-landing__hero-state,
.gc-comm-flame-hero .gc-comm-landing__hero-facts {
  max-width: 620px;
}

.gc-comm-flame-hero .reservation-hero__actions {
  max-width: 620px;
}

@media (max-width: 1199px) {
  .gc-comm-flame-hero .gc-comm-landing__hero-content {
    max-width: 640px;
    padding-top: 130px;
    padding-bottom: 52px;
  }

  .gc-comm-flame__svg {
    left: 85%;
  }
}

@media (max-width: 767px) {
  .gc-comm-flame__picture img {
    object-position: 75% 50%;
  }

  .gc-comm-flame__svg {
    top: 62%;
    left: 93%;
    width: 58px;
    height: 158px;
  }

  .gc-comm-flame-hero .gc-comm-landing__hero-shade,
  .gc-comm-flame-hero .gc-comm-home__hero-shade {
    background:
      linear-gradient(90deg, rgba(9, 9, 9, 0.94) 0%, rgba(9, 9, 9, 0.82) 58%, rgba(9, 9, 9, 0.48) 100%),
      linear-gradient(0deg, rgba(9, 9, 9, 0.88) 0%, rgba(9, 9, 9, 0.32) 52%, rgba(9, 9, 9, 0.5) 100%);
  }

  body.internal-page main .gc-comm-landing .gc-comm-flame-hero[data-commemoration-hero] .gc-comm-landing__hero-content {
    max-width: 600px;
    padding-top: 112px;
    padding-bottom: 42px;
  }
}

@media (max-width: 430px) {
  body.internal-page main .gc-comm-landing .gc-comm-flame-hero[data-commemoration-hero]:not([data-reservation-hero]) .gc-comm-landing__hero-content {
    padding-top: 96px;
    padding-bottom: 30px;
  }

  .gc-comm-flame__svg {
    top: 58%;
    left: 92%;
    width: 52px;
    height: 142px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gc-comm-flame__svg {
    display: none;
    transform: translate(-50%, -100%);
  }

  .gc-comm-flame__picture img {
    transform: none;
  }
}

@media print {
  .gc-comm-flame__svg {
    opacity: 1;
    filter: none;
  }
}
