/* SEO GUY — Animations & hero ambiance */

/* ---- Hero background ---- */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-bg__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    #fef9c3 0%,
    #fce7f3 32%,
    #ede9fe 68%,
    #dbeafe 100%
  );
}

.hero-bg__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.65;
  animation: orb-drift 18s ease-in-out infinite;
}

.hero-bg__orb--1 {
  width: min(55vw, 420px);
  height: min(55vw, 420px);
  top: -12%;
  left: -8%;
  background: rgba(254, 249, 195, 0.9);
  animation-duration: 22s;
}

.hero-bg__orb--2 {
  width: min(48vw, 380px);
  height: min(48vw, 380px);
  bottom: -15%;
  right: -5%;
  background: rgba(219, 234, 254, 0.95);
  animation-delay: -6s;
  animation-duration: 20s;
}

.hero-bg__orb--3 {
  width: min(36vw, 280px);
  height: min(36vw, 280px);
  top: 35%;
  right: 28%;
  background: rgba(237, 233, 254, 0.85);
  animation-delay: -12s;
  animation-duration: 16s;
}

.hero-bg__grain {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

@keyframes orb-drift {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(3%, 2%) scale(1.04);
  }
  66% {
    transform: translate(-2%, 4%) scale(0.96);
  }
}

/* ---- Floating UI cards ---- */
.float-a {
  animation: float-y 7s ease-in-out infinite;
}

.float-b {
  animation: float-y 6.2s ease-in-out -1.5s infinite;
}

.float-c {
  animation: float-y 6.8s ease-in-out -3s infinite;
}

.float-d {
  animation: float-y 7.4s ease-in-out -0.8s infinite;
}

.float-e {
  animation: float-y 6.5s ease-in-out -2.2s infinite;
}

@keyframes float-y {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

.ui-card--status.float-a {
  animation-name: float-status;
}

@keyframes float-status {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-5px);
  }
}

.ui-card--status:hover {
  animation-play-state: paused;
}

.ui-card--preview:hover,
.ui-card--traffic:hover,
.ui-card--articles:hover,
.ui-card--schedule:hover {
  animation-play-state: paused;
}

/*
 * Dégradé animé sur les mots d'accent des titres.
 * Le texte reste dans le HTML (span dans h1/h2) — lisible par Google et les lecteurs d'écran.
 */
.text-shimmer,
.hero-content h1 .text-accent,
.section-header h2 .text-accent,
.cta-final h2 .text-accent {
  display: inline;
  background: linear-gradient(
    105deg,
    var(--purple) 0%,
    #a78bfa 38%,
    #c4b5fd 50%,
    var(--purple) 62%,
    var(--purple-light) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: shimmer 6s linear infinite;
}

@keyframes shimmer {
  to {
    background-position: 200% center;
  }
}

/* ---- Scroll reveal (global) ---- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.85s var(--ease-out-expo),
    transform 0.85s var(--ease-out-expo);
  transition-delay: calc(var(--reveal-delay, 0) * 90ms);
}

.reveal-scale {
  opacity: 0;
  transform: translateY(24px) scale(0.96);
  transition:
    opacity 0.9s var(--ease-out-expo),
    transform 0.9s var(--ease-out-expo);
  transition-delay: calc(var(--reveal-delay, 0) * 90ms);
}

.reveal.is-visible,
.reveal-scale.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.hero.is-mounted .reveal {
  transition-delay: calc(var(--reveal-delay, 0) * 100ms + 120ms);
}

/* Sections vivantes au scroll */
.section-live {
  transition: background 0.8s ease;
}

.section-live.is-inview .section-header h2 {
  animation: headline-in 0.9s var(--ease-out-expo) both;
}

@keyframes headline-in {
  from {
    letter-spacing: -0.06em;
    filter: blur(4px);
    opacity: 0.6;
  }
  to {
    letter-spacing: -0.02em;
    filter: blur(0);
    opacity: 1;
  }
}

/* Cartes & blocs interactifs */
.opp-card,
.pricing-card,
.testimonial-card,
.faq-item,
.showcase-visual,
.ui-card,
.video-player {
  transition:
    transform 0.55s var(--ease-out-expo),
    box-shadow 0.55s var(--ease-out-expo),
    border-color 0.4s ease;
}

.opp-card:hover,
.pricing-card:hover:not(.pricing-card--featured) {
  transform: translateY(-8px);
  box-shadow: 0 24px 56px rgba(98, 51, 246, 0.14);
}

.pricing-card--featured {
  transition:
    transform 0.55s var(--ease-out-expo),
    box-shadow 0.55s var(--ease-out-expo);
}

.pricing-card--featured:hover {
  transform: scale(1.04) translateY(-8px);
  box-shadow:
    0 0 0 1px var(--purple),
    0 28px 60px rgba(98, 51, 246, 0.2);
}

.pricing-card .btn {
  transition:
    transform 0.45s var(--ease-out-expo),
    box-shadow 0.45s var(--ease-out-expo);
}

.pricing-card:hover .btn-ghost {
  background: var(--purple-soft);
  color: var(--purple);
}

.testimonial-card {
  transition:
    transform 0.6s var(--ease-out-expo),
    box-shadow 0.6s var(--ease-out-expo);
}

.testimonial-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 20px 48px rgba(98, 51, 246, 0.12);
}

.showcase-visual:hover img {
  transform: scale(1.03) translateY(-4px);
  filter: drop-shadow(0 28px 48px rgba(98, 51, 246, 0.18));
}

.showcase-visual img {
  transition:
    transform 0.7s var(--ease-out-expo),
    filter 0.7s var(--ease-out-expo);
}

.showcase-step .num {
  transition: transform 0.5s var(--ease-spring), color 0.3s ease;
}

.showcase-step:hover .num {
  transform: scale(1.08);
  color: var(--purple-light);
}

.faq-item {
  transition:
    transform 0.45s var(--ease-out-expo),
    box-shadow 0.45s ease,
    border-color 0.35s ease;
}

.faq-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(98, 51, 246, 0.08);
}

.faq-item.is-open {
  box-shadow: 0 16px 40px rgba(98, 51, 246, 0.1);
}

.faq-question {
  transition: background 0.35s ease;
}

.faq-question:hover {
  background: rgba(237, 233, 254, 0.6);
}

.video-player:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 32px 64px rgba(98, 51, 246, 0.25);
}

.video-play {
  transition:
    transform 0.5s var(--ease-spring),
    box-shadow 0.5s ease;
}

.video-play:hover,
.video-play.is-pulsing {
  transform: scale(1.1);
  box-shadow: 0 0 0 12px rgba(98, 51, 246, 0.15);
}

.pricing-toggle button {
  transition:
    color 0.35s ease,
    background 0.35s ease,
    transform 0.4s var(--ease-out-expo);
}

.pricing-toggle button:hover {
  transform: translateY(-2px);
}

.toggle-switch {
  transition: transform 0.4s var(--ease-spring), background 0.35s ease;
}

.toggle-switch:hover {
  transform: scale(1.05);
}

.btn-opp {
  transition:
    transform 0.4s var(--ease-out-expo),
    background 0.35s ease,
    box-shadow 0.4s ease;
}

.btn-opp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(98, 51, 246, 0.2);
}

.nav-main a {
  position: relative;
  transition: color 0.3s ease;
}

.nav-main a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--purple);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease-out-expo);
}

.nav-main a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.social-links a {
  transition:
    transform 0.45s var(--ease-spring),
    background 0.35s ease,
    color 0.35s ease;
}

.social-links a:hover {
  transform: translateY(-4px) scale(1.08);
}

.footer-col a {
  transition: color 0.3s ease, transform 0.35s var(--ease-out-expo);
}

.footer-col a:hover {
  color: var(--purple);
  transform: translateX(4px);
}

.newsletter-form input {
  transition:
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    transform 0.35s var(--ease-out-expo);
}

.newsletter-form input:focus {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(98, 51, 246, 0.12);
}

.logo--animated {
  transition: transform 0.5s var(--ease-out-expo);
}

.logo--animated:hover {
  transform: scale(1.02);
}

/* Figure entrance */
.hero.is-mounted .hero-mascot {
  animation: figure-enter 1.1s var(--ease-out-expo) 0.15s backwards;
}

@keyframes figure-enter {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }
}

/* Header scroll */
.site-header {
  transition:
    background 0.4s ease,
    box-shadow 0.4s ease,
    border-color 0.4s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.06);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal,
  .reveal-scale {
    opacity: 1;
    transform: none;
  }

  .section-live.is-inview .section-header h2 {
    animation: none;
  }

  .hero-bg__orb,
  .float-a,
  .float-b,
  .float-c,
  .float-d,
  .float-e,
  .text-shimmer,
  .hero-mascot {
    animation: none;
  }

  .text-shimmer,
  .hero-content h1 .text-accent,
  .section-header h2 .text-accent,
  .cta-final h2 .text-accent {
    animation: none;
    color: var(--purple);
    background: none;
    -webkit-text-fill-color: currentColor;
  }
}

/* Hero responsive */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content .lead,
  .hero-tags,
  .hero-cta,
  .hero-shopify,
  .hero-eyebrow {
    margin-inline: auto;
    justify-content: center;
  }

  .hero-eyebrow {
    display: inline-flex;
  }

  .hero-composition {
    max-width: 480px;
    min-height: 400px;
    margin-top: 1rem;
  }

  .hero-mascot {
    height: 92%;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
  }

  .ui-card--traffic,
  .ui-card--articles {
    display: none;
  }

  .ui-card--status {
    top: 4%;
    right: 4%;
    font-size: 0.75rem;
    padding: 0.4rem 0.75rem;
  }

  .hero-composition {
    min-height: 380px;
  }

  .hero-mascot {
    height: 88%;
  }

  .ui-card--preview {
    width: min(200px, 52%);
    bottom: 10%;
  }

  .ui-card--schedule {
    font-size: 0.6875rem;
    max-width: 160px;
  }

  .ui-card--status {
    font-size: 0.6875rem;
    padding: 0.35rem 0.7rem;
  }
}
