/* ——— Ambient leaves ——— */
.leaves-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.leaves-bg span {
  position: absolute;
  width: clamp(10px, 1.6vw, 18px);
  height: clamp(10px, 1.6vw, 18px);
  background: var(--accent);
  opacity: 0.07;
  border-radius: 2px 70% 2px 70%;
  animation: leaf-drift 28s ease-in-out infinite;
}

.leaves-bg span:nth-child(odd) {
  border-radius: 70% 2px 70% 2px;
  background: var(--accent-dark);
}

.leaves-bg span:nth-child(1) { left: 6%; top: 12%; animation-duration: 26s; }
.leaves-bg span:nth-child(2) { left: 18%; top: 48%; animation-duration: 32s; animation-delay: -4s; }
.leaves-bg span:nth-child(3) { left: 34%; top: 18%; animation-duration: 29s; animation-delay: -8s; }
.leaves-bg span:nth-child(4) { left: 52%; top: 72%; animation-duration: 34s; animation-delay: -2s; }
.leaves-bg span:nth-child(5) { left: 68%; top: 22%; animation-duration: 27s; animation-delay: -6s; }
.leaves-bg span:nth-child(6) { left: 82%; top: 58%; animation-duration: 31s; animation-delay: -10s; }
.leaves-bg span:nth-child(7) { left: 12%; top: 78%; animation-duration: 30s; animation-delay: -3s; }
.leaves-bg span:nth-child(8) { left: 90%; top: 14%; animation-duration: 28s; animation-delay: -7s; }
.leaves-bg span:nth-child(9) { left: 44%; top: 40%; animation-duration: 33s; animation-delay: -5s; }
.leaves-bg span:nth-child(10) { left: 76%; top: 84%; animation-duration: 25s; animation-delay: -9s; }

@keyframes leaf-drift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(12px, -18px) rotate(18deg); }
}

.page-home {
  position: relative;
  z-index: 1;
}

/* ——— Hero ——— */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 0 0;
  min-height: min(88vh, 940px);
}

.hero__brand {
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 1;
  opacity: 0;
  animation:
    hero-enter 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.05s forwards,
    hero-float 5.5s ease-in-out 0.7s infinite;
}

.hero__brand img {
  width: min(92vw, 820px);
  height: auto;
  filter: drop-shadow(0 10px 24px rgba(11, 26, 18, 0.12));
}

.hero__visual {
  width: min(98vw, 1140px);
  /* Chevauche le titre : preview devant, titre légèrement derrière */
  margin-top: -12%;
  position: relative;
  z-index: 2;
  opacity: 0;
  animation: hero-enter 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.18s forwards;
}

.hero__visual img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 30px rgba(20, 50, 34, 0.14));
}

.hero__copy {
  max-width: 36rem;
  margin: 0.25rem auto 0;
  opacity: 0;
  animation: hero-enter 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.32s forwards;
}

.hero__tagline {
  margin: 0 0 0.35rem;
  font-weight: 800;
  font-size: clamp(1.35rem, 3vw, 2rem);
  letter-spacing: -0.02em;
  color: var(--text-ink);
}

.hero__support {
  margin: 0 0 1.35rem;
  font-weight: 400;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.45;
  color: var(--text-muted);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  align-items: center;
}

.hero__cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.55rem 1.5rem;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #fff !important;
  font-weight: 600;
  font-size: var(--text-5-size);
}

.hero__cta-primary:hover {
  background: var(--accent-hover);
  color: #fff !important;
}

.hero__cta-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.55rem 1.35rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-soft);
  background: #fff;
  color: var(--text-ink);
  font-weight: 600;
  font-size: var(--text-5-size);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.hero__cta-ghost:hover {
  color: var(--accent);
  border-color: var(--accent);
}

@keyframes hero-enter {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

/* ——— Audience ——— */
.audience {
  width: 100%;
  margin-top: 2.5rem;
  padding: 2.75rem 0 2rem;
  background: #ffffff;
}

.audience__inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  width: min(100% - 2rem, 820px);
  margin-inline: auto;
}

.audience__panel {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1.1rem;
  padding: 1.6rem 1.25rem 1.5rem;
  background: #fff;
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 16px rgba(45, 37, 91, 0.08);
  opacity: 0;
  animation: hero-enter 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.audience__panel--viewer { animation-delay: 0.4s; }
.audience__panel--streamer { animation-delay: 0.52s; }

.audience__panel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 -50%;
  width: 40%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  animation: shine 6s ease-in-out infinite;
  pointer-events: none;
}

.audience__panel--streamer::before { animation-delay: 3s; }

@keyframes shine {
  0% { left: -50%; opacity: 0; }
  20% { opacity: 0.7; }
  100% { left: 120%; opacity: 0; }
}

.audience__label {
  margin: 0;
  text-align: center;
  color: var(--text-ink);
  line-height: 1.15;
}

.audience__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #fff !important;
  font-weight: 600;
  font-size: var(--text-5-size);
  border: none;
  cursor: pointer;
}

.audience__cta:hover {
  background: var(--accent-hover);
  color: #fff !important;
}

.audience__cta--dark {
  background: var(--bg-ink);
}

.audience__cta--dark:hover {
  background: #1a3324;
}

.audience__compat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin: 1.5rem 0 0;
  color: var(--text-muted);
  font-weight: 400;
  font-size: var(--text-5-size);
}

.audience__compat img {
  width: 118px;
  height: auto;
  opacity: 0.92;
}

/* ——— How it works ——— */
.how {
  padding: 4rem 0 2.5rem;
}

.how__head {
  text-align: center;
  margin-bottom: 2rem;
}

.how__title {
  color: var(--text-ink);
}

.how__sub {
  margin: 0.4rem 0 0;
  color: var(--text-muted);
  font-size: var(--text-5-size);
  font-weight: 400;
}

.how__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.how__step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.25rem;
  align-items: start;
  padding: 0.35rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--border-soft) 70%, transparent);
}

.how__step:last-child { border-bottom: none; }

.how__num {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--text-on-color);
  font-weight: 800;
  font-size: 1.15rem;
  box-shadow: 0 4px 0 color-mix(in srgb, var(--accent) 76%, black);
}

.how__step h3 {
  margin: 0.15rem 0 0.35rem;
  font-weight: 800;
  font-size: 1.35rem;
}

.how__step p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 38rem;
  font-weight: 400;
}

/* ——— Ticker ——— */
.ticker {
  overflow: hidden;
  margin-top: 1rem;
  background: var(--accent-gradient);
  background-size: 200% 200%;
  animation: accent-flow 3s ease infinite;
}

.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 40s linear infinite;
  padding: 0.85rem 0;
  white-space: nowrap;
}

.ticker__track span {
  padding-right: 2.5rem;
  color: var(--text-on-color);
  font-weight: 600;
  font-size: 1.05rem;
}

@keyframes ticker-scroll {
  to { transform: translateX(-50%); }
}

@media (max-width: 720px) {
  .hero {
    min-height: auto;
    padding-top: 1rem;
  }

  .hero__visual { margin-top: -9%; }

  .audience__inner {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .leaves-bg span,
  .hero__brand,
  .hero__visual,
  .hero__copy,
  .audience__panel,
  .ticker,
  .ticker__track,
  .audience__panel::before {
    animation: none !important;
    opacity: 1;
    filter: none;
    transform: none;
  }
}
