/* =============================================================
   home.css — Design MINIMALISTE ÉLÉGANT — Page d'accueil
   ============================================================= */

/* ---------------------------------------------------------------
   1. HERO — Épuré, centré, beaucoup d'espace
--------------------------------------------------------------- */
.hero {
  background: var(--bg-dark);
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 24px 80px;
  position: relative;
}

/* Ligne décorative subtile en haut */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  opacity: 0.4;
}

.hero-content {
  position: relative;
  max-width: 680px;
}

/* Badge — simple pill */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 5px 14px;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-badge i {
  color: var(--accent);
  font-size: 0.65rem;
}

/* Titre — grand, net, pas de gradient */
.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 800;
}

/* Mot mis en avant en rouge */
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

/* Sous-titre — sobre */
.hero p {
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

/* Boutons CTA */
.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Garanties — ligne simple */
.hero-guarantees {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.hero-guarantees span {
  font-size: 0.78rem;
  color: var(--text-subtle);
  display: flex;
  align-items: center;
  gap: 5px;
}

.hero-guarantees i {
  color: var(--gold);
  font-size: 0.65rem;
}

/* Stats — séparées par bordure fine */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 64px;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: 'Sora', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-subtle);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

/* ---------------------------------------------------------------
   2. SECTION FEATURES — Cartes minimales
--------------------------------------------------------------- */
.features {
  padding: 100px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: border-color 0.2s;
}

.feature-card:hover {
  border-color: var(--text-subtle);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.1rem;
  color: var(--accent);
}

.feature-card h3 {
  font-size: 0.95rem;
  margin-bottom: 8px;
  color: var(--text);
  font-weight: 600;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.7;
}

/* ---------------------------------------------------------------
   3. SECTION COMMENT ÇA MARCHE — Étapes numérotées
--------------------------------------------------------------- */
.how-it-works {
  padding: 100px 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.how-inner {
  max-width: 900px;
  margin: 0 auto;
}

.steps-grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.step-card {
  flex: 1;
  min-width: 200px;
  max-width: 260px;
  text-align: center;
  padding: 24px 20px;
  position: relative;
}

.step-number {
  font-family: 'Sora', sans-serif;
  font-size: 4rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.06);
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  line-height: 1;
  user-select: none;
}

.step-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--accent);
  margin: 16px auto 16px;
  position: relative;
  z-index: 1;
}

.step-card h3 {
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--text);
  font-weight: 600;
}

.step-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.step-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-subtle);
  font-size: 0.9rem;
  padding-top: 50px;
  flex-shrink: 0;
}

/* ---------------------------------------------------------------
   4. SECTION AVIS CLIENTS — Cartes sobres
--------------------------------------------------------------- */
.testimonials {
  padding: 100px 24px;
}

.testimonials-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: border-color 0.2s;
}

.testimonial-card:hover {
  border-color: var(--text-subtle);
}

.stars {
  font-size: 0.8rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
  color: var(--gold-light);
}

.testimonial-card > p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Sora', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
}

.testimonial-author strong {
  display: block;
  font-size: 0.82rem;
  color: var(--text);
  font-weight: 600;
}

.testimonial-author span {
  font-size: 0.72rem;
  color: var(--text-subtle);
}

/* ---------------------------------------------------------------
   5. SECTION FAQ — Accordéon clean
--------------------------------------------------------------- */
.faq {
  padding: 100px 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.faq-inner {
  max-width: 680px;
  margin: 0 auto;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item.open {
  border-color: var(--text-subtle);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: none;
  border: none;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
}

.faq-question i {
  color: var(--text-subtle);
  flex-shrink: 0;
  transition: transform 0.3s;
  font-size: 0.75rem;
}

.faq-item.open .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.2s;
  padding: 0 20px;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 20px 16px;
}

.faq-answer p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.8;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

/* ---------------------------------------------------------------
   6. CTA FINAL — Simple et direct
--------------------------------------------------------------- */
.cta-banner {
  padding: 100px 24px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.cta-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 72px 40px;
}

.cta-box h2 {
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  margin-bottom: 14px;
}

.cta-box p {
  color: var(--text-muted);
  max-width: 440px;
  margin: 0 auto 36px;
  font-size: 0.92rem;
}

/* ---------------------------------------------------------------
   7. RESPONSIVE MOBILE
--------------------------------------------------------------- */
@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: 80px 20px 60px;
  }

  .hero-stats {
    gap: 32px;
    margin-top: 48px;
  }

  .stat-number { font-size: 1.5rem; }

  .hero-guarantees {
    gap: 12px;
    flex-direction: column;
    align-items: center;
  }

  .features, .testimonials, .cta-banner {
    padding: 72px 20px;
  }

  .how-it-works, .faq {
    padding: 72px 20px;
  }

  .steps-grid {
    flex-direction: column;
    align-items: center;
  }

  .step-arrow {
    transform: rotate(90deg);
    padding-top: 0;
  }

  .cta-box {
    padding: 48px 24px;
  }
}
