/* ============================================
   ShopLink - Home Page Styles
   frontend/src/styles/home.css
   ============================================ */

.container { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  transition: var(--transition);
  padding: 1rem 0;
}
.navbar.scrolled {
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  padding: .6rem 0;
}
.nav-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: 1.3rem;
  font-weight: 700;
  flex-shrink: 0;
}
.logo-icon { font-size: 1.5rem; }
.nav-links {
  display: flex;
  gap: 1.8rem;
  flex: 1;
}
.nav-links a {
  font-size: .9rem;
  color: var(--text-secondary);
  transition: var(--transition);
  font-weight: 500;
}
.nav-links a:hover { color: var(--green-wa); }
.nav-actions { display: flex; align-items: center; gap: .75rem; margin-left: auto; }
.hamburger { display: none; flex-direction: column; gap: 5px; padding: .4rem; min-width: 40px; min-height: 40px; align-items: center; justify-content: center; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: var(--transition); }

/* HERO */
.hero {
  min-height: 100vh;
  min-height: calc(var(--vh, 1vh) * 100);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .35;
  animation: float 8s ease-in-out infinite;
}
.blob-1 { width: 500px; height: 500px; background: #25D366; top: -100px; right: -100px; }
.blob-2 { width: 300px; height: 300px; background: #FF6B35; bottom: 50px; left: -50px; animation-delay: -3s; }
.blob-3 { width: 200px; height: 200px; background: #DCF8C6; top: 40%; left: 30%; animation-delay: -6s; }
@keyframes float { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(20px,-20px) scale(1.05); } }

.hero-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
  flex: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--green-light);
  color: var(--green-dark);
  padding: .4rem 1rem;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.hero-title {
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: 1.25rem;
}
.gradient-text {
  background: linear-gradient(135deg, #25D366, #128C7E);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin-bottom: 2rem;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 1.5rem;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  width: fit-content;
  max-width: 100%;
  box-shadow: var(--shadow-sm);
}
.stat { display: flex; flex-direction: column; }
.stat strong { font-size: 1.4rem; font-weight: 800; color: var(--green-wa); }
.stat span { font-size: .75rem; color: var(--text-muted); }
.stat-divider { width: 1px; height: 40px; background: var(--border); flex-shrink: 0; }

/* PHONE MOCKUP */
.hero-visual {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
}
.phone-mockup {
  width: 260px;
  background: #1a1a2e;
  border-radius: 36px;
  padding: 12px;
  box-shadow: 0 30px 80px rgba(0,0,0,.3);
  animation: phoneFloat 4s ease-in-out infinite;
}
.phone-screen {
  background: #fff;
  border-radius: 28px;
  overflow: hidden;
  min-height: 420px;
}
.mock-shop { padding: 12px; }
.mock-header { display: flex; gap: 10px; margin-bottom: 12px; align-items: center; }
.mock-logo { width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, #25D366, #128C7E); flex-shrink: 0; }
.mock-info { flex: 1; }
.mock-name { height: 10px; background: #E2E8F0; border-radius: 4px; margin-bottom: 6px; }
.mock-desc { height: 8px; background: #F1F5F9; border-radius: 4px; width: 70%; }
.mock-products { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.mock-product { display: flex; gap: 8px; padding: 8px; background: #F8FAFC; border-radius: 10px; }
.mock-img { width: 50px; height: 50px; border-radius: 8px; background: linear-gradient(135deg, #DCF8C6, #25D366); flex-shrink: 0; }
.mock-product-info { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.mock-line { height: 8px; background: #E2E8F0; border-radius: 4px; }
.mock-price { height: 8px; background: #25D366; border-radius: 4px; width: 50%; }
.mock-wa-btn {
  background: #25D366;
  color: white;
  text-align: center;
  padding: 10px;
  border-radius: 10px;
  font-size: .7rem;
  font-weight: 600;
}
@keyframes phoneFloat { 0%,100% { transform: translateY(-50%) rotate(-2deg); } 50% { transform: translateY(calc(-50% - 12px)) rotate(2deg); } }

/* SOCIAL PROOF */
.social-proof { padding: 3rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); }
.proof-stats { display: flex; justify-content: center; gap: 4rem; margin-top: 1.5rem; flex-wrap: wrap; }
.proof-item { text-align: center; }
.proof-number { font-size: 2rem; font-weight: 800; color: var(--green-wa); }
.proof-label { font-size: .85rem; color: var(--text-muted); margin-top: .25rem; }

/* SECTIONS */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-tag {
  display: inline-block;
  background: var(--green-light);
  color: var(--green-dark);
  padding: .35rem .9rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 1rem;
}
.section-title { font-size: clamp(1.6rem, 4vw, 2.5rem); font-weight: 800; line-height: 1.2; margin-bottom: .75rem; }
.section-subtitle { color: var(--text-secondary); max-width: 540px; margin: 0 auto; }

/* HOW IT WORKS */
.how-section { padding: 6rem 0; background: var(--surface); }
.steps { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .75rem;
  max-width: 160px;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition-slow);
}
.step.visible { opacity: 1; transform: translateY(0); }
.step-number {
  width: 32px; height: 32px;
  background: var(--green-wa);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 800;
}
.step-icon { font-size: 2rem; }
.step h3 { font-size: .95rem; font-weight: 700; }
.step p { font-size: .8rem; color: var(--text-secondary); }
.step-arrow { font-size: 1.5rem; color: var(--gray-300); flex-shrink: 0; }

/* FEATURES */
.features-section { padding: 6rem 0; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.feature-card {
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: var(--transition);
  opacity: 0;
  transform: translateY(20px);
}
.feature-card.visible { opacity: 1; transform: translateY(0); }
.feature-card:hover { border-color: var(--green-wa); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.feature-card--highlight { background: linear-gradient(135deg, #25D366 0%, #128C7E 100%); color: white; border-color: transparent; }
.feature-card--highlight p { color: rgba(255,255,255,.85); }
.feature-icon { font-size: 2rem; margin-bottom: 1rem; }
.feature-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; }
.feature-card p { font-size: .875rem; color: var(--text-secondary); line-height: 1.6; }
.feature-card--highlight p { color: rgba(255,255,255,.85); }

/* CATEGORIES */
.categories-section { padding: 4rem 0; background: var(--surface); }
.categories-grid { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 2rem; }
.category-pill {
  padding: .6rem 1.2rem;
  background: var(--gray-100);
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 500;
  border: 1px solid var(--border);
  transition: var(--transition);
  cursor: default;
}
.category-pill:hover { background: var(--green-light); border-color: var(--green-wa); color: var(--green-dark); }

/* PRICING */
.pricing-section { padding: 6rem 0; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; max-width: 720px; margin: 0 auto; }
.pricing-card {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  position: relative;
  transition: var(--transition);
  opacity: 0;
  transform: translateY(20px);
}
.pricing-card.visible { opacity: 1; transform: translateY(0); }
.pricing-card:hover { box-shadow: var(--shadow-lg); }
.pricing-card--featured {
  border-color: var(--green-wa);
  box-shadow: 0 0 0 2px var(--green-wa);
}
.popular-badge {
  background: var(--green-wa);
  color: white;
  text-align: center;
  padding: .4rem;
  font-size: .8rem;
  font-weight: 700;
}
.pricing-header { padding: 1.75rem 1.75rem 1rem; }
.plan-name { font-size: 1rem; font-weight: 700; color: var(--text-secondary); margin-bottom: .5rem; }
.plan-price { display: flex; align-items: baseline; gap: .3rem; margin-bottom: .5rem; flex-wrap: wrap; }
.price-amount { font-size: 2.5rem; font-weight: 900; }
.price-currency { color: var(--text-secondary); font-size: .9rem; }
.plan-desc { font-size: .85rem; color: var(--text-muted); }
.plan-features {
  list-style: none;
  padding: 0 1.75rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.plan-features li { font-size: .875rem; }
.plan-ad { color: var(--text-muted); font-style: italic; }
.pricing-card .btn { margin: 0 1.75rem 1.75rem; }

/* TESTIMONIALS */
.testimonials-section { padding: 6rem 0; background: var(--surface); }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }
.testimonial-card {
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg);
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition-slow);
}
.testimonial-card.visible { opacity: 1; transform: translateY(0); }
.stars { font-size: 1rem; margin-bottom: .75rem; }
.testimonial-card p { font-size: .9rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 1rem; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: .75rem; }
.author-avatar {
  width: 40px; height: 40px;
  background: var(--green-wa);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .85rem;
  flex-shrink: 0;
}
.testimonial-author strong { display: block; font-size: .9rem; }
.testimonial-author span { font-size: .8rem; color: var(--text-muted); }

/* FAQ */
.faq-section { padding: 6rem 0; }
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: .75rem; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; background: var(--surface); }
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 1.5rem;
  font-weight: 600;
  font-size: .95rem;
  text-align: left;
  background: var(--surface);
  color: var(--text-primary);
  transition: var(--transition);
  gap: 1rem;
}
.faq-question:hover { background: var(--gray-50); }
.faq-icon { font-size: 1.2rem; font-weight: 400; flex-shrink: 0; }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
  font-size: .9rem;
  color: var(--text-secondary);
  padding: 0 1.5rem;
  line-height: 1.7;
}
.faq-item.open .faq-answer { padding: .75rem 1.5rem 1.25rem; }

/* CTA */
.cta-section { padding: 6rem 0; }
.cta-box {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  border-radius: var(--radius-xl);
  padding: 4rem 2rem;
  text-align: center;
  color: white;
}
.cta-box h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 1rem; }
.cta-box p { opacity: .9; margin-bottom: 2rem; font-size: 1rem; }
.cta-box .btn-primary { background: white; color: var(--green-dark); }
.cta-box .btn-primary:hover { background: var(--gray-100); }

/* FOOTER */
.footer { background: var(--gray-900); color: var(--gray-300); padding: 4rem 0 2rem; }
.footer .nav-logo { color: white; margin-bottom: 1rem; }
.footer .nav-logo strong { color: var(--green-wa); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 3rem; }
.footer-brand p { font-size: .875rem; color: var(--gray-400); line-height: 1.7; }
.footer-links { display: flex; flex-direction: column; gap: .6rem; }
.footer-links h4 { color: white; font-size: .9rem; margin-bottom: .25rem; }
.footer-links a { font-size: .875rem; color: var(--gray-400); transition: var(--transition); }
.footer-links a:hover { color: var(--green-wa); }
.footer-bottom { border-top: 1px solid var(--gray-700); padding-top: 1.5rem; text-align: center; font-size: .85rem; color: var(--gray-500); }

/* ─────────────────────────── RESPONSIVE ─────────────────────────── */

/* Grands tablettes / petits laptops (≤1100px) : le mockup téléphone empiète sur le texte */
@media (max-width: 1100px) {
  .hero-visual { right: 1%; transform: translateY(-50%) scale(.85); }
}

/* Tablettes (≤900px) */
@media (max-width: 900px) {
  .hero-visual { display: none; }
  .hero { min-height: auto; padding: 110px 0 4rem; }
  .nav-links { display: none; flex-direction: column; position: fixed; top: 64px; left: 0; right: 0; background: var(--surface); padding: 1rem 1.5rem; border-bottom: 1px solid var(--border); max-height: calc(100vh - 64px); overflow-y: auto; gap: .25rem; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .6rem 0; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .step-arrow { display: none; }
  .steps { gap: 1.5rem; }
  .how-section, .features-section, .pricing-section, .testimonials-section, .faq-section, .cta-section { padding: 4rem 0; }
}

/* Tablettes portrait / grands mobiles (≤768px) */
@media (max-width: 768px) {
  .nav-actions .btn-outline { display: none; } /* garde uniquement "Créer gratuitement" pour économiser la place */
  .hero-stats { padding: .85rem 1.1rem; gap: 1rem; }
  .proof-stats { gap: 2.5rem; }
}

/* Mobiles (≤600px) */
@media (max-width: 600px) {
  .proof-stats { gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; align-items: flex-start; width: 100%; }
  .stat-divider { width: 100%; height: 1px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .cta-box { padding: 2.5rem 1.5rem; }
  .pricing-header { padding: 1.5rem 1.25rem .75rem; }
  .plan-features { padding: 0 1.25rem 1.25rem; }
  .pricing-card .btn { margin: 0 1.25rem 1.25rem; }
}

/* Très petits mobiles (≤380px) */
@media (max-width: 380px) {
  .container, .nav-container, .hero-container { padding: 0 1rem; }
  .proof-stats { gap: 1.25rem; }
  .proof-number { font-size: 1.6rem; }
}