/* ========== HERO ========== */

.hero {
  padding: var(--space-lg) var(--space-sm) var(--space-xl);
  position: relative;
  overflow: hidden;
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-text-dark);
  line-height: 1.15;
  margin-bottom: var(--space-xs);
}

.hero__divider {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-sm);
}

.hero__divider-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(to right, var(--color-coral), var(--color-peach));
  border-radius: 2px;
}

.hero__divider-heart {
  color: var(--color-coral);
  font-size: var(--text-sm);
}

.hero__subtitle {
  font-size: var(--text-base);
  color: var(--color-text-body);
  line-height: 1.6;
  margin-bottom: var(--space-md);
  max-width: 360px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.hero__illustration {
  margin-top: var(--space-xs);
  text-align: center;
}

.hero__illustration img {
  max-width: 300px;
  height: auto;
  margin: 0 auto;
}

/* Bouton "Écouter le rituel du soir" : garde l'apparence pilule de .btn--secondary,
   annule le style rond de .btn-play (48px, cercle plein) qui s'applique par défaut */
.hero__actions .btn-play {
  width: auto;
  height: auto;
  border-radius: var(--radius-lg);
  background-color: #F3EDF8;
  color: #8B6FB0;
  border-color: #8B6FB0;
  box-shadow: none;
}

.hero__actions .btn-play:hover,
.hero__actions .btn-play.btn-play--playing {
  transform: translateY(-1px);
  background-color: #8B6FB0;
  color: var(--color-white);
}

.hero__actions .btn-play svg {
  width: 16px;
  height: 16px;
  margin-left: 0;
}

/* ========== PARCOURIR PAR ÉMOTION ========== */

.emotions {
  padding: var(--space-xl) var(--space-sm);
}

/* ========== DERNIERS RITUELS ========== */

.derniers-rituels {
  padding: var(--space-xl) var(--space-sm);
}

/* ========== TÉMOIGNAGES ========== */

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

.temoignages .section__label {
  text-align: left;
}

.temoignages .testimonial__author {
  display: block;
  position: relative;
  min-height: 36px;
}

.temoignages .testimonial__avatar {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.temoignages .testimonial__author > div {
  text-align: center;
}

/* ========== NEWSLETTER ========== */

.newsletter-section {
  padding: 0 var(--space-sm) var(--space-xl);
}

/* Bloc désactivé temporairement (voir site_internet_bugs/audit-maquette-index) — supprimer cette règle pour réactiver */
.newsletter-section {
  display: none;
}

/* ========== DESKTOP ========== */

@media (min-width: 768px) {
  .hero {
    display: flex;
    align-items: center;
    min-height: 560px;
    padding: 0 var(--space-lg) 0 max(var(--space-lg), calc((100vw - 1200px) / 2 + var(--space-lg)));
    background-image: url('../../assets/images/hero-banniere-desktop.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
  }

  .hero__content {
    max-width: 600px;
  }

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

  .hero__illustration {
    display: none;
  }

  .emotions,
  .derniers-rituels,
  .temoignages,
  .newsletter-section {
    padding-left: var(--space-lg);
    padding-right: var(--space-lg);
  }
}

@media (min-width: 1024px) {
  .emotions,
  .derniers-rituels,
  .temoignages,
  .newsletter-section {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero {
    background-attachment: scroll;
  }
}
