/* Header collant, ombré au scroll */
.site-header.is-scrolled {
  box-shadow: 0 12px 32px rgba(33, 30, 27, 0.08);
}

/* Apparition au scroll */
.will-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 750ms cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 750ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.will-reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Décalage léger dans les grilles */
.offers-grid .offer-card:nth-child(2),
.creation-options .creation-option:nth-child(2),
.process-list .process-step:nth-child(2) {
  transition-delay: 110ms;
}

.process-list .process-step:nth-child(3) {
  transition-delay: 220ms;
}

/* Cartes flottantes : respiration lente */
@keyframes float-soft {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

.hero-visual .floating-card,
.about-card {
  animation: float-soft 6s ease-in-out infinite;
}

.card-semi-measure,
.about-card {
  animation-delay: 1.4s;
}

/* FAQ : ouverture animée (navigateurs récents, dégradation silencieuse ailleurs) */
@supports (interpolate-size: allow-keywords) {
  :root {
    interpolate-size: allow-keywords;
  }

  .faq-item::details-content {
    block-size: 0;
    overflow: hidden;
    transition:
      block-size 320ms cubic-bezier(0.22, 0.61, 0.36, 1),
      content-visibility 320ms allow-discrete;
    transition-behavior: allow-discrete;
  }

  .faq-item[open]::details-content {
    block-size: auto;
  }
}

/* Barre WhatsApp fixe sur mobile */
.mobile-cta {
  display: none;
}

@media (max-width: 620px) {
  .mobile-cta {
    position: fixed;
    z-index: 60;
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: rgba(246, 241, 233, 0.94);
    backdrop-filter: blur(10px);
  }

  .mobile-cta .button {
    width: 100%;
    justify-content: center;
  }

  body {
    padding-bottom: 76px;
  }
}

/* Accessibilité : on désactive tout pour ceux qui le demandent */
@media (prefers-reduced-motion: reduce) {
  .will-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .floating-card,
  .about-card {
    animation: none;
  }
}