/* ================================================================
   landing-page.css — styles spécifiques à landing.html
   Dépend de landing.css (variables, classes réutilisables)
   ================================================================ */

/* ── Hero layout ── */
.hero { grid-template-columns: 1fr; }
.hero-left {
  border-right: none;
  padding: 80px 0;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.hero-left h1,
.hero-left p { max-width: 100%; }
.hero-cta   { justify-content: center; }
.hero-trust { justify-content: center; }

/* ── Gradient animé sur le h1 ── */
.hero-left h1 {
  background: linear-gradient(
    90deg,
    #fff 0%, #fff 40%,
    var(--accent) 55%,
    #34c97b 70%,
    #fff 85%, #fff 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-flow 5s linear infinite;
}
@keyframes gradient-flow {
  0%   { background-position: 200% center; }
  100% { background-position: 0%   center; }
}

/* ── Tagline scrollante ── */
.hero-tagline {
  overflow: hidden;
  height: 1.4em;
  position: relative;
  margin-bottom: 4px;
}
.hero-tagline-inner {
  display: flex;
  flex-direction: column;
  animation: tagline-scroll 6s ease-in-out infinite;
}
.hero-tagline-inner span {
  flex-shrink: 0;
  height: 1.4em;
  line-height: 1.4em;
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--accent);
  letter-spacing: .01em;
}
@keyframes tagline-scroll {
  0%,  40% { transform: translateY(0); }
  50%, 90% { transform: translateY(-1.4em); }
  100%     { transform: translateY(0); }
}

/* ── Shimmer sur .btn-p ── */
.btn-p { position: relative; overflow: hidden; }
.btn-p::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
  animation: shimmer-btn 2.8s ease-in-out infinite;
}
@keyframes shimmer-btn {
  0%       { left: -100%; }
  60%, 100% { left: 150%; }
}

/* ── Trust pills flottantes ── */
.trust-pill { animation: trust-float 4s ease-in-out infinite; }
.trust-pill:nth-child(2) { animation-delay: .5s; }
.trust-pill:nth-child(3) { animation-delay: 1s; }
.trust-pill:nth-child(4) { animation-delay: 1.5s; }
@keyframes trust-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}

/* ── Step glow ── */
.step-num { animation: step-glow 4s ease-in-out infinite; }
.step:nth-child(2) .step-num { animation-delay: 1s; }
.step:nth-child(3) .step-num { animation-delay: 2s; }
.step:nth-child(4) .step-num { animation-delay: 3s; }
@keyframes step-glow {
  0%, 100% { box-shadow: 0 0 0 0   rgba(59,130,196,0); }
  50%      { box-shadow: 0 0 0 8px rgba(59,130,196,.18); }
}

/* ── Section Aperçu fonctionnalités ── */
.feat-apercu {
  padding: 80px clamp(16px,4vw,56px);
  background: var(--surf);
  border-top: 1px solid var(--divider);
}
.feat-apercu-inner { max-width: 1400px; margin: 0 auto; }
.feat-apercu-body {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 56px;
  align-items: center;
  margin-top: 40px;
}
.feat-apercu-lottie {
  display: flex;
  justify-content: center;
  align-items: center;
}
.feat-apercu-lottie dotlottie-player {
  width: 100%;
  max-width: 320px;
  height: 320px;
}
.feat-apercu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.feat-apercu-card {
  padding: 20px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--surf-2);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.feat-apercu-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(59,130,196,.12);
}
.feat-apercu-ico {
  width: 38px; height: 38px;
  border-radius: var(--r-md);
  background: var(--accent-muted);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--accent);
  transition: transform .3s, background .3s;
}
.feat-apercu-card:hover .feat-apercu-ico {
  transform: rotate(8deg) scale(1.12);
  background: var(--accent);
  color: #fff;
}
.feat-apercu-card h4 {
  font-size: var(--t-sm);
  font-weight: 700;
  margin-bottom: 4px;
}
.feat-apercu-card p {
  font-size: var(--t-xs);
  color: var(--text-2);
  line-height: 1.55;
  margin: 0;
}

@media (max-width: 1024px) {
  .feat-apercu-body  { grid-template-columns: 1fr; }
  .feat-apercu-lottie { display: none; }
}
@media (max-width: 700px) {
  .feat-apercu-grid { grid-template-columns: 1fr; }
  .feat-apercu-body { gap: 24px; }
  .feat-apercu { padding: 48px clamp(16px, 4vw, 56px); }
}

/* ================================================================
   MOBILE ≤ 480px — styles adaptatifs (desktop non affecté)
   ================================================================ */
@media (max-width: 480px) {
  /* Hero : réduire le padding pour que le CTA soit visible sans scroll */
  .hero-left {
    padding: 36px 0 28px;
    text-align: left;
  }

  /* H1 : taille adaptée petit écran, garde le gradient animé */
  .hero-left h1 {
    font-size: clamp(1.75rem, 8vw, 2.2rem);
  }

  /* Paragraphe : left-align plus lisible sur mobile */
  .hero-left p {
    text-align: left;
  }

  /* Hero subtitle */
  .hero-subtitle {
    text-align: left;
  }

  /* CTA et trust pills : alignés à gauche */
  .hero-cta   { justify-content: flex-start; }
  .hero-trust { justify-content: flex-start; }

  /* Trust pills : touch target 44px minimum (norme Apple HIG / WCAG 2.5.5) */
  .trust-pill {
    min-height: 44px;
    padding: 10px 12px;
  }

  /* Tagline : un peu plus de respiration */
  .hero-tagline {
    margin-bottom: 12px;
  }
}
