/* Système d'animations web — léger, unifié */

.motion-group > * {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.motion-group.is-visible > * {
  opacity: 1;
  transform: none;
}

.motion-group.is-visible > *:nth-child(1) { transition-delay: 0.04s; }
.motion-group.is-visible > *:nth-child(2) { transition-delay: 0.1s; }
.motion-group.is-visible > *:nth-child(3) { transition-delay: 0.16s; }
.motion-group.is-visible > *:nth-child(4) { transition-delay: 0.22s; }
.motion-group.is-visible > *:nth-child(5) { transition-delay: 0.28s; }
.motion-group.is-visible > *:nth-child(6) { transition-delay: 0.34s; }
.motion-group.is-visible > *:nth-child(7) { transition-delay: 0.4s; }
.motion-group.is-visible > *:nth-child(8) { transition-delay: 0.46s; }

.motion-group--scale > * {
  transform: translateY(28px) scale(0.92);
}

.motion-group--scale.is-visible > * {
  transform: none;
}

.motion-group--bounce > * {
  transform: translateY(24px) scale(0.96);
}

.motion-group--bounce.is-visible > * {
  animation: animCardPop 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.motion-group--bounce.is-visible > *:nth-child(1) { animation-delay: 0.04s; }
.motion-group--bounce.is-visible > *:nth-child(2) { animation-delay: 0.1s; }
.motion-group--bounce.is-visible > *:nth-child(3) { animation-delay: 0.16s; }
.motion-group--bounce.is-visible > *:nth-child(4) { animation-delay: 0.22s; }
.motion-group--bounce.is-visible > *:nth-child(5) { animation-delay: 0.28s; }
.motion-group--bounce.is-visible > *:nth-child(6) { animation-delay: 0.34s; }
.motion-group--bounce.is-visible > *:nth-child(7) { animation-delay: 0.4s; }

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: none;
}

.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.06s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.14s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.22s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.3s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.38s; }

.motion-group--flip > * {
  transform: perspective(700px) rotateX(10deg) translateY(20px);
  transform-origin: center bottom;
}

.motion-group--slide > * {
  transform: translateX(32px);
}

.eyebrow {
  position: relative;
  display: inline-block;
}

.eyebrow::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
  background-size: 200% 100%;
  animation: animShimmer 3s ease-in-out infinite;
  border-radius: 2px;
  opacity: 0.7;
}

.gradient-title,
.strip-title {
  background-size: 200% auto;
  animation: animGradient 6s ease-in-out infinite alternate;
}

.hero-proof span {
  animation: animFloat 4s ease-in-out infinite;
}

.hero-proof span:nth-child(2) { animation-delay: -1s; }
.hero-proof span:nth-child(3) { animation-delay: -2s; }
.hero-proof span:nth-child(4) { animation-delay: -3s; }

.kpi-card strong {
  display: inline-block;
  transition: text-shadow 0.4s ease;
}

.kpi-card.is-counted strong {
  animation: animKpiGlow 1.2s ease-out both;
}

.model-pill i,
.trust-pill i {
  display: inline-block;
  transition: transform 0.3s ease;
}

.motion-group.is-visible .model-pill i,
.motion-group.is-visible .trust-pill i,
[data-scroll-stagger].is-animated .trust-pill i {
  animation: animIconPop 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.timeline li span {
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.motion-group.is-visible.timeline li span {
  animation: animStep 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.chip {
  transition: transform 0.2s ease, box-shadow 0.25s ease;
}

.chip:hover:not(.active) {
  transform: translateY(-2px);
}

.chip.active {
  animation: animChipPulse 2.5s ease-in-out infinite;
}

.btn-primary,
.btn-hero-cta {
  position: relative;
  overflow: hidden;
}

.btn-primary::after,
.btn-hero-cta::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: linear-gradient(120deg, transparent 35%, rgba(255, 255, 255, 0.22) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: animBtnSheen 4.5s ease-in-out infinite;
}

.site-nav a {
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

@keyframes animFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes animRing {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes animShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes animGradient {
  from { background-position: 0% center; }
  to { background-position: 100% center; }
}

@keyframes animKpiGlow {
  0% { text-shadow: 0 0 0 rgba(47, 178, 255, 0); transform: scale(0.92); }
  60% { text-shadow: 0 0 28px rgba(47, 178, 255, 0.55); transform: scale(1.04); }
  100% { text-shadow: 0 0 12px rgba(47, 178, 255, 0.25); transform: scale(1); }
}

@keyframes animIconPop {
  0% { transform: scale(0.5); opacity: 0; }
  70% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes animStep {
  0% { transform: scale(0.75); box-shadow: 0 0 0 rgba(47, 178, 255, 0); }
  65% { transform: scale(1.1); box-shadow: 0 0 22px rgba(47, 178, 255, 0.4); }
  100% { transform: scale(1); box-shadow: 0 0 10px rgba(47, 178, 255, 0.18); }
}

@keyframes animChipPulse {
  0%, 100% { box-shadow: 0 6px 20px rgba(47, 178, 255, 0.3); }
  50% { box-shadow: 0 8px 26px rgba(233, 30, 140, 0.28); }
}

@keyframes animBtnSheen {
  0%, 75%, 100% { transform: translateX(-120%); }
  40% { transform: translateX(120%); }
}

@keyframes animCardPop {
  0% { opacity: 0; transform: translateY(24px) scale(0.96); }
  70% { transform: translateY(-4px) scale(1.02); }
  100% { opacity: 1; transform: none; }
}

@keyframes animKickerPulse {
  0%, 100% { transform: scaleX(1); opacity: 1; }
  50% { transform: scaleX(1.35); opacity: 0.75; }
}

@keyframes animProofFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes animRingPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(47, 178, 255, 0.45); }
  50% { box-shadow: 0 0 0 8px rgba(47, 178, 255, 0); }
}

@keyframes animBorderGlow {
  0%, 100% { border-color: rgba(47, 178, 255, 0.2); }
  50% { border-color: rgba(233, 30, 140, 0.35); }
}

@keyframes animImgFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes animTitleGlow {
  0%, 100% { text-shadow: 0 0 0 transparent; }
  50% { text-shadow: 0 0 24px rgba(47, 178, 255, 0.25); }
}

/* Hero landing */
.hero-kicker span {
  transform-origin: left center;
}


.brand-aris,
.brand-concept {
  display: inline-block;
}

/* Cartes & sections */
.advantage-card .advantage-img-wrap img {
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.advantage-card:hover .advantage-img-wrap img {
  transform: scale(1.08);
}

.trust-pill {
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.trust-pill:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(47, 178, 255, 0.15);
}

.lp-steps.is-visible li span {
  animation: animStep 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.lp-steps.is-visible li:nth-child(1) span { animation-delay: 0.05s; }
.lp-steps.is-visible li:nth-child(2) span { animation-delay: 0.15s; }
.lp-steps.is-visible li:nth-child(3) span { animation-delay: 0.25s; }
.lp-steps.is-visible li:nth-child(4) span { animation-delay: 0.35s; }
.lp-steps.is-visible li:nth-child(5) span { animation-delay: 0.45s; }

.lp-steps.is-visible li {
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.lp-steps.is-visible li:hover {
  transform: translateY(-4px);
  border-color: rgba(47, 178, 255, 0.35);
}

.lp-expertise-card .cv-dl i {
  display: inline-block;
  transition: transform 0.25s ease;
}

.lp-expertise-card:hover .cv-dl i {
  transform: translateY(-2px) scale(1.1);
}

.faq details summary {
  transition: color 0.25s ease, padding-left 0.25s ease;
}

.faq details[open] summary {
  color: var(--primary);
  padding-left: 0.35rem;
}

.faq details p {
  animation: heroFadeUp 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.brand-logo {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.brand:hover .brand-logo {
  transform: rotate(-6deg) scale(1.06);
}

.site-header {
  transition: background 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.hero-scroll--landing {
  z-index: 4;
}

body.is-preloading .hero-scroll--landing {
  opacity: 0;
}

body.intro-done .hero-scroll--landing {
  animation: heroFadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 1s both;
}

@media (prefers-reduced-motion: reduce) {
  .motion-group > * {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-proof span,
  .chip.active,
  .btn-primary::after,
  .btn-hero-cta::after,
  .eyebrow::after,
  .gradient-title,
  .strip-title,
  .lp-steps.is-visible li span,
  .motion-group--bounce.is-visible > * {
    animation: none;
  }

  .reveal-stagger > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
