/* ============================================
   PAGE ACCUEIL
   ============================================ */

/* --- Hero --- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, var(--color-accent-subtle) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 80%, rgba(201, 168, 76, 0.05) 0%, transparent 60%),
    var(--color-bg);
  z-index: 0;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* Hero split layout */

.hero__split {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3xl);
  padding-top: var(--header-height);
  min-height: calc(100vh - var(--header-height));
}

.hero__content {
  text-align: left;
  flex: 1 1 0;
  min-width: 0;
}

.hero__content h1 {
  margin-bottom: var(--space-lg);
}

.hero__subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  max-width: 560px;
  margin: 0 0 var(--space-xl);
  line-height: 1.7;
}

.hero__cta {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero__image {
  flex: 0 0 auto;
}

.hero__image img {
  display: block;
  height: 520px;
  width: auto;
  border-radius: var(--radius-xl);
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

.hero__scroll {
  position: relative;
  z-index: 1;
  margin-top: var(--space-xl);
  padding-bottom: var(--space-2xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  animation: hero-bounce 2s ease-in-out infinite;
}

.hero__scroll svg {
  opacity: 0.5;
}

@keyframes hero-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* --- Section alt background --- */

.section--alt {
  background: var(--color-bg-alt);
}

/* --- Offre cards --- */

.offre-card {
  display: flex;
  flex-direction: column;
}

.offre-card .badge {
  margin-bottom: var(--space-md);
  align-self: flex-start;
}

.offre-card .card__title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-md);
}

.offre-card .card__text {
  margin-bottom: var(--space-lg);
}

.offre-card__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
  flex-grow: 1;
}

.offre-card__list li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.offre-card__list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
}

/* --- Steps (Comment ca marche) --- */

.steps {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  left: 32px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--color-accent), var(--color-border));
}

.step {
  display: flex;
  gap: var(--space-xl);
  padding: var(--space-xl) 0;
  position: relative;
}

.step__number {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-accent);
  border-radius: var(--radius-lg);
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--color-accent);
  position: relative;
  z-index: 1;
}

.step__title {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-xs);
}

.step__text {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  line-height: 1.7;
}

/* --- Stats --- */

.stats-grid {
  margin-bottom: var(--space-3xl);
}

.stat {
  text-align: center;
  padding: var(--space-xl);
}

.stat__number {
  font-family: var(--font-heading);
  font-size: var(--text-5xl);
  font-weight: var(--weight-bold);
  color: var(--color-accent);
  line-height: 1;
  display: inline;
}

.stat__unit {
  font-size: var(--text-2xl);
  font-weight: var(--weight-semibold);
  color: var(--color-accent);
  display: inline;
}

.stat__unit.special {
  font-size: var(--text-lg);
  display: block;
  margin-top: var(--space-xs);
}

.stat__label {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-top: var(--space-sm);
}

/* --- Features --- */

.feature {
  text-align: center;
  padding: var(--space-xl);
}

.feature__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-subtle);
  border-radius: var(--radius-lg);
  margin: 0 auto var(--space-lg);
  color: var(--color-accent);
}

.feature__title {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-sm);
}

.feature__text {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  line-height: 1.7;
}

/* --- CTA Block --- */

.section--cta {
  padding: var(--space-5xl) 0;
}

.cta-block {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl) var(--space-2xl);
  position: relative;
  overflow: hidden;
}

.cta-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}

.cta-block h2 {
  margin-top: var(--space-md);
}

.cta-block__text {
  color: var(--color-text-secondary);
  font-size: var(--text-lg);
  max-width: 500px;
  margin: var(--space-lg) auto var(--space-xl);
  line-height: 1.7;
}

.cta-block__buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Responsive accueil --- */

@media (max-width: 991px) {
  .hero__image img {
    height: 400px;
  }
}

@media (max-width: 767px) {
  .hero__split {
    flex-direction: column;
    text-align: center;
    gap: var(--space-xl);
    min-height: auto;
    padding-bottom: var(--space-xl);
  }

  .hero__content {
    text-align: center;
  }

  .hero__cta {
    justify-content: center;
  }

  .hero__image {
    order: -1;
  }

  .hero__image img {
    height: auto;
    width: 260px;
  }

  .hero__subtitle {
    font-size: var(--text-base);
    margin: 0 auto var(--space-xl);
  }

  .hero__scroll {
    margin-top: var(--space-lg);
  }

  .steps::before {
    left: 24px;
  }

  .step {
    gap: var(--space-lg);
  }

  .step__number {
    width: 48px;
    height: 48px;
    font-size: var(--text-base);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat__number {
    font-size: var(--text-4xl);
  }

  .cta-block {
    padding: var(--space-2xl) var(--space-lg);
  }

  .cta-block__buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-block__buttons .btn {
    width: 100%;
  }
}
