/* Solid section colors, with luminous echoes of the neighbouring palette. */
main.home-page .home-section {
  --surface: #fff;
  --glow-one: rgba(33, 163, 158, 0.28);
  --glow-two: rgba(255, 186, 74, 0.32);
  --glow-top-x: 16%;
  --glow-bottom-x: 84%;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--surface) !important;
}

/* Keep the decoration still while the content animates into view. */
main.home-page .home-section.reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

main.home-page .home-section::before {
  content: '';
  display: block;
  position: absolute;
  inset: 0;
  z-index: 0;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  transform: none;
  background:
    radial-gradient(ellipse 480px 280px at var(--glow-top-x) 0%, var(--glow-one), transparent 100%),
    radial-gradient(ellipse 440px 260px at var(--glow-bottom-x) 100%, var(--glow-two), transparent 100%);
  pointer-events: none;
}

main.home-page .home-section > .container,
main.home-page .home-section > .container-fluid {
  position: relative;
  z-index: 1;
}

main.home-page .process-section {
  --glow-one: rgba(33, 163, 158, 0.28);
  --glow-two: rgba(33, 163, 158, 0.28);
}

main.home-page .audio-section {
  --surface: var(--bleu-action);
  --glow-top-x: 84%;
  --glow-bottom-x: 16%;
  --glow-one: rgba(255, 255, 255, 0.36);
  --glow-two: rgba(255, 186, 74, 0.30);
}

main.home-page .benefits-section {
  --surface: var(--bleu-fonce);
  --glow-one: rgba(33, 163, 158, 0.46);
  --glow-two: rgba(255, 186, 74, 0.34);
}

main.home-page .catalogue-section {
  --surface: var(--jaune-minodio);
  --glow-top-x: 84%;
  --glow-bottom-x: 16%;
  --glow-one: rgba(255, 255, 255, 0.60);
  --glow-two: rgba(255, 255, 255, 0.64);
}

/* Remove the old outlined ornament at the bottom-right of the catalogue. */
main.home-page .catalogue-section::after {
  content: none;
}

main.home-page .production-section {
  --glow-one: rgba(33, 163, 158, 0.28);
  --glow-two: rgba(33, 163, 158, 0.28);
}

main.home-page .pricing-section {
  --surface: var(--bleu-fonce);
  --glow-top-x: 84%;
  --glow-bottom-x: 16%;
  --glow-one: rgba(33, 163, 158, 0.46);
  --glow-two: rgba(255, 186, 74, 0.32);
}

main.home-page .avis-section {
  --surface: #f8f9fa;
  --glow-one: rgba(255, 186, 74, 0.32);
  --glow-two: rgba(33, 163, 158, 0.28);
}

main.home-page + footer {
  margin-top: 0 !important;
  background:
    radial-gradient(ellipse 440px 220px at 84% 0%, rgba(33, 163, 158, 0.38), transparent 100%),
    var(--bleu-fonce) !important;
}

@media (min-width: 1201px) {
  main.home-page .hero-home {
    background: var(--bleu-fonce);
  }

  main.home-page .hero-home::before {
    background: var(--jaune-minodio);
    right: 90%;
    left: -100%;
    transform: skewX(-22deg);
    transform-origin: right bottom;
  }

}

@media (max-width: 1200px) {
  /* A long, eased dark fade above; a shorter fade into the next section below. */
  main.home-page .hero-visual::before,
  main.home-page .hero-visual::after {
    content: '';
    position: absolute;
    right: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
  }

  main.home-page .hero-visual::before {
    top: 0;
    height: 38%;
    background: linear-gradient(to bottom,
      var(--bleu-fonce) 0%,
      rgba(0, 0, 54, 0.94) 12%,
      rgba(0, 0, 54, 0.77) 30%,
      rgba(0, 0, 54, 0.50) 50%,
      rgba(0, 0, 54, 0.24) 70%,
      rgba(0, 0, 54, 0.07) 87%,
      rgba(0, 0, 54, 0) 100%);
  }

  main.home-page .hero-visual::after {
    bottom: 0;
    height: 12%;
    background:
      radial-gradient(ellipse 480px 280px at 16% 100%, rgba(33, 163, 158, 0.28), transparent 100%),
      #fff;
    -webkit-mask-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.15) 25%, rgba(0, 0, 0, 0.65) 65%, #000);
    mask-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.15) 25%, rgba(0, 0, 0, 0.65) 65%, #000);
  }
}

@media (max-width: 768px) {
  main.home-page .hero-visual::after {
    background:
      radial-gradient(ellipse 230px 190px at 16% 100%, rgba(33, 163, 158, 0.28), transparent 100%),
      #fff;
  }

  main.home-page .home-section::before {
    background:
      radial-gradient(ellipse 230px 190px at var(--glow-top-x) 0%, var(--glow-one), transparent 100%),
      radial-gradient(ellipse 210px 180px at var(--glow-bottom-x) 100%, var(--glow-two), transparent 100%);
  }
}
