/* KEPAL Marketing — Landing Page Styles */
:root {
  --navy: #1a2340;
  --orange: #f7941e;
  --blue: #2f6fed;
  --green: #27ae60;
  --gray: #6b7280;
  --light-gray: #f3f4f6;
  --white: #ffffff;
  --shadow: 0 4px 24px rgba(16, 27, 61, 0.08);
  --shadow-lg: 0 12px 48px rgba(16, 27, 61, 0.12);
  --radius: 16px;
  --wa-green: #25D366;
  --wa-green-dark: #128C7E;
  --wa-green-light: #DCF8C6;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--navy);
  line-height: 1.6;
  background: var(--white);
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ═══════════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════════ */

/* Scroll-reveal : éléments qui apparaissent en fondu + léger déplacement
   vers le haut au fur et à mesure qu'ils entrent dans le viewport. */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* Effet cascade : les cards d'une même grille apparaissent l'une après l'autre */
.features-grid .reveal:nth-child(1) { transition-delay: 0.03s; }
.features-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.features-grid .reveal:nth-child(3) { transition-delay: 0.13s; }
.features-grid .reveal:nth-child(4) { transition-delay: 0.18s; }
.features-grid .reveal:nth-child(5) { transition-delay: 0.23s; }
.features-grid .reveal:nth-child(6) { transition-delay: 0.28s; }
.features-grid .reveal:nth-child(7) { transition-delay: 0.03s; }
.features-grid .reveal:nth-child(8) { transition-delay: 0.08s; }
.features-grid .reveal:nth-child(9) { transition-delay: 0.13s; }
.features-grid .reveal:nth-child(10) { transition-delay: 0.18s; }
.features-grid .reveal:nth-child(11) { transition-delay: 0.23s; }
.features-grid .reveal:nth-child(12) { transition-delay: 0.28s; }
.how-steps .reveal:nth-child(1) { transition-delay: 0.05s; }
.how-steps .reveal:nth-child(2) { transition-delay: 0.15s; }
.how-steps .reveal:nth-child(3) { transition-delay: 0.25s; }
.pricing-grid .reveal:nth-child(1) { transition-delay: 0.05s; }
.pricing-grid .reveal:nth-child(2) { transition-delay: 0.15s; }
.pricing-grid .reveal:nth-child(3) { transition-delay: 0.25s; }
.testimonials-grid .reveal:nth-child(1) { transition-delay: 0.05s; }
.testimonials-grid .reveal:nth-child(2) { transition-delay: 0.15s; }
.testimonials-grid .reveal:nth-child(3) { transition-delay: 0.25s; }
.faq-list .reveal:nth-child(1) { transition-delay: 0.02s; }
.faq-list .reveal:nth-child(2) { transition-delay: 0.06s; }
.faq-list .reveal:nth-child(3) { transition-delay: 0.10s; }
.faq-list .reveal:nth-child(4) { transition-delay: 0.14s; }
.faq-list .reveal:nth-child(5) { transition-delay: 0.18s; }
.faq-list .reveal:nth-child(6) { transition-delay: 0.22s; }

/* Entrée du hero au chargement de la page (pas de scroll requis) */
.hero-anim-1 {
  animation: hero-fade-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}
.hero-anim-2 {
  animation: hero-fade-in-scale 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both;
}
@keyframes hero-fade-in {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes hero-fade-in-scale {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Nav qui se resserre légèrement au scroll pour plus de présence */
.header-stack.is-scrolled .nav { box-shadow: 0 4px 20px rgba(16, 27, 61, 0.08); }
.header-stack.is-scrolled .nav-inner { padding-top: 10px; padding-bottom: 10px; }
.nav-inner { transition: padding 0.25s ease; }
.nav { transition: box-shadow 0.25s ease; }

/* Respecte les préférences d'accessibilité : coupe toutes les animations
   pour les utilisateurs qui ont désactivé le mouvement dans leur système. */
@media (prefers-reduced-motion: reduce) {
  .reveal, .hero-anim-1, .hero-anim-2 {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  html { scroll-behavior: auto; }
}

/* NAV */
.header-stack {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
}
.nav {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; }
.logo-img { height: 64px; width: auto; display: block; }
.logo-icon { font-size: 28px; }
.logo-text { color: var(--navy); }
.nav-links { display: flex; gap: 32px; }
.nav-links a { font-weight: 500; color: var(--gray); transition: color 0.2s; }
.nav-links a:hover { color: var(--navy); }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 24px; border-radius: 12px; font-weight: 600;
  font-size: 15px; cursor: pointer; border: none; transition: all 0.2s;
  text-decoration: none;
}
.btn-primary { background: linear-gradient(135deg, var(--orange), var(--blue)); color: white; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; border: 2px solid var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: white; }
.btn-lg { padding: 16px 36px; font-size: 17px; border-radius: 14px; }
.link-secondary {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--navy); font-weight: 600; font-size: 15px;
  padding: 16px 8px; border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}
.link-secondary:hover { border-color: var(--navy); }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--blue); outline-offset: 2px;
}

/* HERO */
.hero {
  padding: 160px 24px 120px;
  background: linear-gradient(135deg, #fef3e7 0%, #e8f0fe 100%);
}
.hero-inner { max-width: 1200px; margin: 0 auto; }
.hero-grid {
  display: grid; grid-template-columns: 1fr 0.85fr; gap: 56px; align-items: center;
}
.hero-text { text-align: left; min-width: 0; }
.hero h1 { font-size: 52px; font-weight: 800; line-height: 1.15; margin-bottom: 20px; }
.hero h1 .accent {
  background: linear-gradient(135deg, var(--orange), var(--blue));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub { font-size: 19px; color: var(--gray); max-width: 560px; margin: 0 0 36px; }
.hero-cta { display: flex; gap: 16px; margin-bottom: 32px; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 20px; flex-wrap: wrap; }
.badge {
  background: var(--white); padding: 8px 18px; border-radius: 100px;
  font-size: 14px; font-weight: 600; box-shadow: var(--shadow);
}
.hero-trust {
  display: flex; align-items: center; gap: 8px; margin-top: 24px;
  font-size: 14px; font-weight: 600; color: var(--gray);
}
.hero-trust-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  flex-shrink: 0; box-shadow: 0 0 0 4px rgba(39, 174, 96, 0.15);
}
.hero-media {
  border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg);
  transform: rotate(1deg);
  aspect-ratio: 4 / 5;
  width: 100%;
}
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 78% center;
  display: block;
}

/* SECTIONS */
.section-inner { max-width: 1200px; margin: 0 auto; padding: 100px 24px; }
.features, .pricing { background: var(--white); }
.section-inner h2 { font-size: 40px; font-weight: 800; text-align: center; margin-bottom: 12px; }
.section-sub { font-size: 18px; color: var(--gray); text-align: center; max-width: 600px; margin: 0 auto 64px; }

/* FEATURES GRID */
.features-showcase {
  max-width: 900px; margin: 0 auto 56px; border-radius: 24px; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.features-showcase img { width: 100%; display: block; max-height: 480px; object-fit: cover; }
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.feature-card {
  background: var(--white); border-radius: var(--radius);
  padding: 36px 28px; box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid rgba(0,0,0,0.04);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.feature-icon { font-size: 40px; margin-bottom: 16px; transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
.feature-card:hover .feature-icon { transform: scale(1.15) rotate(-4deg); }
.feature-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { color: var(--gray); font-size: 15px; }

/* PRICING */
.pricing { background: var(--light-gray); }
.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  max-width: 1000px; margin: 0 auto;
}
.pricing-card {
  background: var(--white); border-radius: var(--radius);
  padding: 40px 32px; box-shadow: var(--shadow);
  text-align: center; position: relative;
  border: 2px solid transparent;
  transition: all 0.2s;
}
.pricing-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.pricing-card-popular { border-color: var(--orange); }
.popular-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--orange), var(--blue));
  color: white; padding: 6px 20px; border-radius: 100px;
  font-size: 13px; font-weight: 700;
}
.pricing-header h3 { font-size: 24px; font-weight: 700; }
.price { font-size: 44px; font-weight: 800; margin: 8px 0 24px; }
.pricing-card:last-child .price { font-size: 28px; white-space: nowrap; }
.price span { font-size: 16px; font-weight: 500; color: var(--gray); }
.pricing-features { list-style: none; text-align: left; margin-bottom: 32px; }
.pricing-features li { padding: 10px 0; border-bottom: 1px solid var(--light-gray); font-size: 15px; }
.pricing-features li:last-child { border-bottom: none; }
.pricing-card .btn { width: 100%; }

/* HOW IT WORKS */
.how { background: var(--white); border-top: 1px solid var(--light-gray); }
.how-video-wrap {
  max-width: 900px; margin: 0 auto 56px; border-radius: 24px; overflow: hidden;
  box-shadow: var(--shadow-lg); aspect-ratio: 16/9; background: var(--navy);
}
.how-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.how-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; max-width: 1100px; margin: 0 auto; }
.how-step { text-align: center; padding: 24px; }
.how-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--blue));
  color: white; font-size: 24px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.how-step h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.how-step p { color: var(--gray); font-size: 15px; }

/* FAQ */
.faq { background: var(--white); border-top: 1px solid var(--light-gray); }
.faq-list {
  max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px;
}
.faq-item {
  background: var(--light-gray); border-radius: 14px; padding: 4px 24px;
  transition: background 0.2s;
}
.faq-item[open] { background: var(--white); box-shadow: var(--shadow); }
.faq-item summary {
  padding: 20px 0; font-size: 16px; font-weight: 700; color: var(--navy);
  cursor: pointer; list-style: none; display: flex; align-items: center;
  justify-content: space-between; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; font-size: 22px; font-weight: 400; color: var(--gray);
  flex-shrink: 0; transition: transform 0.2s;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item p { padding: 0 0 20px; color: var(--gray); font-size: 15px; line-height: 1.6; }

/* TESTIMONIALS */
.testimonials { background: var(--light-gray); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.testimonial-card {
  background: var(--white); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow);
}
.testimonial-stars { color: var(--orange); font-weight: 700; margin-bottom: 12px; }
.testimonial-text { font-size: 15px; color: var(--navy); margin-bottom: 20px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--blue));
  color: white; font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.author-name { font-weight: 700; font-size: 14px; }
.author-role { color: var(--gray); font-size: 12px; }

/* CTA */
.cta { position: relative; color: white; text-align: center; overflow: hidden; }
.cta-media { position: absolute; inset: 0; z-index: 0; }
.cta-media img { width: 100%; height: 100%; object-fit: cover; }
.cta-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(26,35,64,0.92) 0%, rgba(42,58,106,0.90) 100%);
}
.cta .section-inner { position: relative; z-index: 1; }
.cta .section-inner h2 { color: white; }
.cta .section-sub { color: rgba(255,255,255,0.8); }
.cta-form { display: flex; gap: 12px; justify-content: center; max-width: 560px; margin: 0 auto 24px; flex-wrap: wrap; }
.input-email {
  flex: 1; padding: 16px 20px; border-radius: 12px; border: none;
  font-size: 16px; min-width: 280px; outline: none;
}
.cta-note { color: rgba(255,255,255,0.7); font-size: 15px; }
.cta-note a { color: var(--orange); font-weight: 600; }
.cta-form-status {
  min-height: 24px; font-size: 15px; font-weight: 600; margin-bottom: 8px;
}
.cta-form-status.success { color: #6ee7a8; }
.cta-form-status.error { color: #fca5a5; }

/* FOOTER */
.footer { background: var(--navy); color: rgba(255,255,255,0.7); }
.footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 80px 24px 40px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
}
.footer-col h4 { color: white; font-size: 15px; font-weight: 700; margin-bottom: 16px; }
.footer-col a { display: block; color: rgba(255,255,255,0.6); padding: 6px 0; font-size: 14px; transition: color 0.2s; }
.footer-col a:hover { color: white; }
.footer-col p { font-size: 14px; max-width: 280px; }
.footer .logo-text { color: white; }
.logo-img-footer {
  height: 56px; padding: 14px 18px; background: var(--white);
  border-radius: 12px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 24px; text-align: center; font-size: 14px;
}

/* RESPONSIVE — Tablette (769px – 1024px) : 2 colonnes plutôt que de tout empiler */
@media (max-width: 1024px) and (min-width: 769px) {
  .hero h1 { font-size: 44px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); max-width: 700px; }
  .pricing-card:last-child { grid-column: span 2; max-width: 340px; margin: 0 auto; }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .how-steps { grid-template-columns: repeat(2, 1fr); }
}

/* RESPONSIVE — Mobile (≤768px) */
@media (max-width: 768px) {
  .logo-img { height: 40px; }
  .nav-inner { padding: 12px 20px; }
  .nav-links { display: none; }
  .nav .btn-primary { padding: 10px 16px; font-size: 14px; }
  .hero { padding: 175px 20px 80px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-text { text-align: center; }
  .hero-cta, .hero-badges { justify-content: center; }
  .hero-media { order: -1; transform: none; max-width: 240px; margin: 0 auto; }
  .hero h1 { font-size: 32px; }
  .hero-sub { font-size: 17px; }
  .section-inner { padding: 64px 20px; }
  .section-inner h2 { font-size: 28px; }
  .section-sub { margin-bottom: 40px; }
  .features-grid, .pricing-grid, .testimonials-grid, .how-steps { grid-template-columns: 1fr; }
  .pricing-card:last-child { grid-column: auto; max-width: none; }
  .hero-cta { flex-direction: column; align-items: center; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; padding: 56px 20px 32px; }
  .how-video-wrap { margin-bottom: 40px; }
  .essai-card { padding: 24px; }
}

@media (max-width: 400px) {
  .hero h1 { font-size: 28px; }
  .logo-img { height: 36px; }
}


/* ═══════════════════════════════════════════════
   WHATSAPP — Bouton flottant, inline, bandeau
═══════════════════════════════════════════════ */

/* Bouton inline hero */
.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--wa-green) 0%, var(--wa-green-dark) 100%);
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
  padding: 16px 32px;
  border-radius: 50px;
  box-shadow: 0 6px 24px rgba(37,211,102,.35);
  transition: transform .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn-wa:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(37,211,102,.45); }
.btn-wa svg { flex-shrink: 0; }

/* Bandeau urgence */
.wa-banner {
  background: linear-gradient(90deg, #1E3A5F 0%, #2E86AB 100%);
  color: #fff;
  font-family: inherit;
  padding: 12px 44px 12px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 14px;
  flex-wrap: wrap;
  text-align: center;
  position: relative;
  z-index: 1000;
}
.wa-banner__text strong { color: var(--wa-green-light); }
.wa-banner__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--wa-green);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  padding: 7px 18px;
  border-radius: 50px;
  transition: background .2s;
  white-space: nowrap;
}
.wa-banner__btn:hover { background: var(--wa-green-dark); }
.wa-banner__btn svg { width: 16px; height: 16px; fill: #fff; }
.wa-banner__close {
  position: absolute;
  right: 12px;
  top: 12px;
  background: none;
  border: none;
  color: rgba(255,255,255,.7);
  font-size: 16px;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}
.wa-banner__close:hover { color: #fff; }

/* Bouton flottant (remplace .whatsapp-float) */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  animation: wa-slideIn .4s ease .5s both;
}
@keyframes wa-slideIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.wa-float__tooltip {
  background: #fff;
  color: #1E3A5F;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 14px;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
  border-left: 4px solid var(--wa-green);
}
.wa-float__tooltip.visible { opacity: 1; transform: translateX(0); }
.wa-float__btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--wa-green);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(37,211,102,.4);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
  position: relative;
}
.wa-float__btn:hover {
  background: var(--wa-green-dark);
  transform: scale(1.08);
  box-shadow: 0 12px 40px rgba(37,211,102,.5);
}
.wa-float__btn svg { width: 30px; height: 30px; fill: #fff; }
.wa-float__badge {
  position: absolute;
  top: -4px; right: -4px;
  width: 20px; height: 20px;
  background: #FF3B3B;
  border-radius: 50%;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  animation: wa-pulse 2s infinite;
}
@keyframes wa-pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.2); }
}
@media (max-width: 768px) {
  .wa-banner { font-size: 12px; padding: 10px 40px 10px 12px; }
  .wa-banner__close { top: 8px; right: 8px; }
  .wa-float { bottom: 18px; right: 18px; }
  .btn-wa { padding: 14px 22px; font-size: 14px; }
}
@media (max-width: 400px) {
  .btn-wa { white-space: normal; text-align: center; }
}
