.split-text__word {
  display: inline-block;
}

.has-hero-text-motion [data-split-ready]:not(.is-split-revealed)
  .split-text__word {
  opacity: 0;
  translate: 0 0.16em;
}

.has-hero-text-motion [data-split-ready].is-split-revealed
  .split-text__word {
  animation: hero-split-word 620ms var(--ease-cinematic)
    calc(var(--split-index) * 42ms) both;
}

@keyframes hero-split-word {
  from {
    opacity: 0;
    translate: 0 0.16em;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

.headline-rotator[data-text-rotate] {
  position: relative;
  display: inline-block;
  width: var(--rotator-width, 5.5em);
  min-width: 0;
  overflow: hidden;
  line-height: 1;
  vertical-align: baseline;
}

.headline-rotator[data-text-rotate]::after {
  content: "M";
  display: inline-block;
  visibility: hidden;
  padding-block: 0.15em 0.3em;
}

.headline-rotator[data-text-rotate].is-resizing {
  transition: width 520ms var(--ease-cinematic);
}

.headline-rotator[data-text-rotate] .headline-rotator__word {
  position: absolute;
  top: 0;
  left: 50%;
  display: block;
  width: max-content;
  padding-block: 0.15em 0.3em;
  opacity: 0;
  filter: blur(4px);
  transform: translateX(-50%);
  translate: 0 0.24em;
  animation: none;
  transition:
    opacity 380ms var(--ease-cinematic),
    translate 520ms var(--ease-cinematic),
    filter 420ms var(--ease-cinematic);
}

.headline-rotator[data-text-rotate] .headline-rotator__word.is-current {
  opacity: 1;
  filter: blur(0);
  translate: 0 0;
}

.headline-rotator[data-text-rotate] .headline-rotator__word.is-leaving {
  opacity: 0;
  filter: blur(4px);
  translate: 0 -0.24em;
}

#accueil .hero-signature {
  flex-wrap: nowrap;
  align-items: baseline;
  white-space: nowrap;
}

@media (max-width: 991.98px), (max-height: 620px), (pointer: coarse) {
  .headline-rotator[data-text-rotate] .headline-rotator__word {
    display: block;
  }
}

.animations-paused [data-split-ready] .split-text__word,
.animations-paused .headline-rotator[data-text-rotate] {
  animation: none !important;
  transition: none !important;
}

@media (prefers-reduced-motion: reduce), print {
  [data-split-ready] .split-text__word {
    opacity: 1 !important;
    translate: none !important;
    animation: none !important;
  }

  .headline-rotator[data-text-rotate],
  .headline-rotator[data-text-rotate] .headline-rotator__word {
    filter: none !important;
    transition: none !important;
  }
}
