/* ============================================================
   FOLIA — enhancements.css — Améliorations visuelles T1–T7
   ============================================================ */

/* ---- Global : overflow-x hidden ---- */
html, body { overflow-x: hidden; }

/* ---- T6 : Transitions globales ---- */
.btn, .cta-button, button, a.ghost-link, .nav-link {
  transition: all 0.2s cubic-bezier(0.4,0,0.2,1) !important;
}

/* ---- T1 : Hero – titre ---- */
section.hero h1, .hero h1, .hero-content h1 {
  font-size: clamp(2.8rem, 7vw, 4rem) !important;
  font-weight: 900 !important;
}

/* Sous-titre */
section.hero p, .hero-content p {
  color: #374151 !important;
  font-size: 1.1rem !important;
}

/* Padding hero desktop */
section.hero {
  padding: 100px 0 60px !important;
}

/* CTA pulse */
@keyframes pulse-green {
  0%, 100% { box-shadow: 0 4px 20px rgba(45,122,79,0.4); }
  50% { box-shadow: 0 4px 32px rgba(45,122,79,0.65), 0 0 0 6px rgba(45,122,79,0.12); }
}
.cta-button, .js-diagnostic-trigger {
  box-shadow: 0 4px 20px rgba(45,122,79,0.4) !important;
  animation: pulse-green 2.4s ease-in-out infinite !important;
}
.cta-button:hover, .js-diagnostic-trigger:hover {
  transform: translateY(-2px) !important;
  animation: none !important;
  box-shadow: 0 8px 32px rgba(45,122,79,0.55) !important;
}

/* ---- T2 : Comment ca marche – numéros 01/02/03 ---- */
#how-it-works .card { position: relative; overflow: hidden; }
#how-it-works .card:nth-child(1)::before { content: "01"; }
#how-it-works .card:nth-child(2)::before { content: "02"; }
#how-it-works .card:nth-child(3)::before { content: "03"; }
#how-it-works .card::before {
  position: absolute; top: -0.5rem; right: 0.75rem;
  font-size: 3rem; font-weight: 900; color: #e8f5e9;
  line-height: 1; pointer-events: none; z-index: 0;
}
#how-it-works .card > * { position: relative; z-index: 1; }
#how-it-works .card {
  transition: transform 0.25s cubic-bezier(0.4,0,0.2,1),
              box-shadow 0.25s cubic-bezier(0.4,0,0.2,1) !important;
}
#how-it-works .card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 12px 40px rgba(0,0,0,0.1) !important;
}
#how-it-works .card-icon { font-size: 2.5rem !important; }

/* ---- T3 : Pricing – gap + shimmer Botaniste ---- */
@media (min-width: 768px) {
  .pricing-grid { gap: 24px !important; }
}
.pricing-card--popular { position: relative !important; overflow: hidden !important; }
@keyframes shimmer-green {
  0%   { transform: translateX(-120%) rotate(25deg); }
  100% { transform: translateX(280%) rotate(25deg); }
}
.pricing-card--popular::before {
  content: "" !important;
  position: absolute !important; top: -50% !important; left: -50% !important;
  width: 40% !important; height: 200% !important;
  background: linear-gradient(105deg,
    transparent 20%, rgba(255,255,255,0.18) 40%,
    rgba(255,255,255,0.32) 50%, rgba(255,255,255,0.18) 60%,
    transparent 80%) !important;
  animation: shimmer-green 3s ease-in-out infinite !important;
  pointer-events: none !important; z-index: 1 !important;
}
.pricing-card--popular > * { position: relative; z-index: 2; }

/* ---- T4 : Testimonials – guillemets ---- */
.testimonial-card { position: relative !important; }
.testimonial-card::before {
  content: "\201C" !important;
  position: absolute !important; top: -0.5rem !important; left: 1rem !important;
  font-size: 4rem !important; line-height: 1 !important;
  color: #e8f5e9 !important; font-family: Georgia, serif !important;
  pointer-events: none !important; z-index: 0 !important;
}
.testimonial-card > * { position: relative; z-index: 1; }
.testimonial-meta, .testimonial-author { font-weight: 700 !important; }
.testimonial-author span:last-child, .testimonial-card span:last-child {
  color: #6b7280 !important; font-weight: 400 !important;
}

/* ---- T5 : Footer ---- */
.footer { padding: 40px 24px !important; }
.footer-inner { border-top: 1px solid #e0ece4; padding-top: 1.5rem; }
.footer-social {
  display: flex; align-items: center; gap: 0.75rem; margin-top: 0.5rem;
}
.footer-social-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem; border-radius: 50%;
  background: rgba(45,106,79,0.08); color: #2d6a4f;
  transition: all 0.2s cubic-bezier(0.4,0,0.2,1); text-decoration: none;
}
.footer-social-link:hover { background: rgba(45,106,79,0.18); transform: translateY(-2px); }
.footer-social-link svg { width: 1.1rem; height: 1.1rem; }

/* ---- T6 : Nav underline animé ---- */
.nav-link { position: relative; }
.nav-link::after {
  content: ""; position: absolute; bottom: 2px; left: 50%;
  transform: translateX(-50%); width: 0; height: 2px;
  background: #2d6a4f; border-radius: 2px;
  transition: width 0.25s cubic-bezier(0.4,0,0.2,1);
}
.nav-link:hover::after { width: calc(100% - 1.6rem); }

/* ---- T6 : Hover boutons ---- */
.btn:hover, a.ghost-link:hover { transform: translateY(-2px) !important; }

/* ---- T6 : Scroll indicator ---- */
@keyframes bounce-down {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(8px); opacity: 1; }
}
.scroll-indicator {
  display: flex; flex-direction: column; align-items: center; gap: 0.3rem;
  margin-top: 2rem; color: #5f7468; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.04em; animation: bounce-down 2s ease-in-out infinite;
  cursor: pointer; text-decoration: none;
}
.scroll-indicator svg { width: 1.4rem; height: 1.4rem; color: #2d6a4f; }

/* ---- T7 : Mobile polish ---- */
@media (max-width: 390px) {
  .section, section, .container, .hero-card,
  .footer-inner, .cta-banner-inner, .section-card {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}
.btn, .cta-button, button { min-height: 48px; }
.nav-link, a.ghost-link, .footer-social-link { min-height: 44px; }
@media (max-width: 767px) {
  section.hero { padding: 80px 0 40px !important; }
}
