/* WebAir movement: crisp horizontal cuts, followed by a short typographic cadence. */
:root { --motion-ease: cubic-bezier(.16, 1, .3, 1); }
@view-transition { navigation: auto; }
::view-transition-group(root) { animation-duration: 560ms; }
::view-transition-old(root) { animation: webair-page-out 560ms var(--motion-ease) both; }
::view-transition-new(root) { animation: webair-page-in 560ms var(--motion-ease) both; mix-blend-mode: normal; }
@keyframes webair-page-out { to { transform: translateX(-5vw); } }
@keyframes webair-page-in {
  from { clip-path: polygon(0 0, 0 0, 0 100%, 0 100%); transform: translateX(35px); }
  to { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); transform: none; }
}

/* One observer owns the entrances, replacing the older nested fade effects. */
.reveal-item, .reveal-item.is-visible { opacity: 1; transform: none; transition: none; will-change: auto; }
.motion-pending { opacity: 0; }
.motion-pending:focus-within { opacity: 1; }
.webair-nav__link { position: relative; }
.webair-nav__link::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: 3px;
  height: 2px; background: #ffe600; transform: scaleX(0); transform-origin: right;
  transition: transform .32s var(--motion-ease); pointer-events: none;
}
.webair-nav__link:is(:hover, :focus-visible)::after { transform: scaleX(1); transform-origin: left; }
.webair-nav__cta-arrow, .subscription-cta i, .subscription-contact i, .back-link > span {
  transition: translate .3s var(--motion-ease);
}
.webair-nav__cta:is(:hover, :focus-visible) .webair-nav__cta-arrow { translate: 2px -2px; }
.subscription-cta:is(:hover, :focus-visible) i, .subscription-contact:is(:hover, :focus-visible) i { translate: 3px 0; }
.back-link:is(:hover, :focus-visible) > span { translate: -3px 0; }
.wa-services__row, .subscription-feature { transition: border-color .3s ease; }
.wa-services__row:hover, .subscription-feature:hover { border-color: #d1ba00; }
@media (hover: hover) and (pointer: fine) {
  #approche img:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  .motion-pending { opacity: 1; }
  #hero .hero-copy { transform: translate(-50%, -50%) !important; opacity: 1 !important; }
  #custom-cursor-dot, #custom-cursor-ring { display: none !important; }
  body, a, button, [role='button'], input, textarea, select { cursor: auto !important; }
}
