/* ===== Page Home : Maisons des Moments ===== */
.home-main {
  display: block;
  width: 100%;
  min-width: 0;
}

/* ===== Hero ===== */
.home-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 80vh;
  overflow: hidden;
  background-color: var(--color-encre-nuit);
}

.home-hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.home-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.home-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 12, 20, 0.35) 0%, rgba(18, 12, 20, 0.75) 60%, var(--color-encre-nuit) 100%);
}

.home-hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-24);
  width: 100%;
  max-width: 600px;
  padding: var(--space-64) var(--space-16);
  text-align: center;
}

.home-hero__title {
  font-size: clamp(2.25rem, 5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--color-champagne);
  margin: 0;
  max-width: 60ch;
}

.home-hero__subtitle {
  font-size: var(--text-body-large-size);
  line-height: var(--text-body-large-line-height);
  color: var(--color-texte-clair);
  margin: 0;
  max-width: 70ch;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-16);
  width: 100%;
  min-width: 0;
}

.home-hero__primary,
.home-hero__secondary {
  min-width: 0;
  flex-shrink: 1;
}

@media (max-width: 767px) {
  .home-hero {
    min-height: 70vh;
  }

  .home-hero__content {
    padding: var(--space-48) var(--space-16);
  }

  .home-hero__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .home-hero__primary,
  .home-hero__secondary {
    width: 100%;
    justify-content: center;
  }
}

/* ===== Sections communes ===== */
.home-section {
  padding-block: var(--space-64);
}

.home-section__header {
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
  margin-block-end: var(--space-48);
}

.home-section__title {
  margin: 0;
  color: var(--color-champagne);
}

@media (min-width: 768px) {
  .home-section {
    padding-block: var(--space-96);
  }
}

/* ===== Aperçu du jeu ===== */
.home-overview__intro {
  max-width: 65ch;
  margin: 0;
  color: var(--color-texte-clair);
}

.home-overview__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-32);
  width: 100%;
  min-width: 0;
}

.home-feature-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
  min-width: 0;
  background-color: var(--surface-card);
  border: var(--border-subtle);
  border-radius: var(--radius-8);
  padding: var(--space-24);
  transition: border-color var(--transition-base);
}

.home-feature-card:hover {
  border-color: var(--color-rose-poudre);
}

.home-feature-card__title {
  margin: 0;
  font-size: var(--text-h3-size);
  line-height: var(--text-h3-line-height);
  color: var(--color-champagne);
}

.home-feature-card__text {
  margin: 0;
  font-size: var(--text-body-size);
  line-height: var(--text-body-line-height);
  color: var(--color-texte-clair);
  max-width: 60ch;
}

@media (max-width: 1023px) {
  .home-overview__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .home-overview__grid {
    grid-template-columns: 1fr;
    gap: var(--space-24);
  }

  .home-feature-card {
    padding: var(--space-24);
  }
}

/* ===== Style et personnalisation ===== */
.home-style {
  background-color: var(--color-encre-nuit);
}

.home-style__container {
  display: grid;
  grid-template-columns: 40% 60%;
  gap: var(--space-48);
  align-items: start;
  width: 100%;
  min-width: 0;
}

.home-style__media {
  width: 100%;
  min-width: 0;
  border: var(--border-image);
  border-radius: var(--radius-8);
  overflow: hidden;
}

.home-style__media img {
  width: 100%;
  height: auto;
  display: block;
}

.home-style__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
  min-width: 0;
}

.home-style__lead {
  margin: 0;
  max-width: 65ch;
  color: var(--color-texte-clair);
}

.home-style__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-12) var(--space-24);
  max-width: 65ch;
}

.home-style__list li {
  position: relative;
  padding-inline-start: var(--space-24);
  color: var(--color-texte-clair);
  font-size: var(--text-body-size);
  line-height: var(--text-body-line-height);
}

.home-style__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-or-ancien);
}

.home-style__note {
  margin: 0;
  color: var(--color-texte-attenue);
  font-size: var(--text-small-size);
  line-height: var(--text-small-line-height);
  max-width: 65ch;
}

@media (max-width: 1023px) {
  .home-style__container {
    grid-template-columns: 1fr;
    gap: var(--space-32);
  }

  .home-style__media {
    order: -1;
  }
}

@media (max-width: 767px) {
  .home-style__list {
    grid-template-columns: 1fr;
  }
}

/* ===== Aperçus thématiques ===== */
.home-theme-preview {
  padding-block: var(--space-64);
}

.home-theme-preview--mode {
  background-color: var(--color-prune-brume);
}

.home-theme-preview--galerie {
  background-color: var(--color-prune-profonde);
}

.home-theme-preview__block {
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
  max-width: 800px;
  padding-inline-start: var(--space-24);
  border-inline-start: 3px solid var(--color-or-ancien);
}

.home-theme-preview__text {
  margin: 0;
  max-width: 70ch;
  color: var(--color-texte-clair);
}

.home-theme-preview__link {
  color: var(--color-rose-poudre);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: text-decoration-color var(--transition-fast);
}

.home-theme-preview__link:hover {
  text-decoration-color: var(--color-rose-poudre);
}

@media (max-width: 767px) {
  .home-theme-preview {
    padding-block: var(--space-48);
  }

  .home-theme-preview__block {
    padding-inline-start: var(--space-16);
  }
}

/* ===== Téléchargement ===== */
.home-download {
  background-color: var(--color-prune-profonde);
}

.home-download__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-24);
  text-align: center;
}

.home-download__title {
  margin: 0;
}

.home-download__text {
  margin: 0;
  max-width: 500px;
  color: var(--color-texte-clair);
}

.home-download__button {
  min-width: 0;
  flex-shrink: 1;
}

@media (max-width: 767px) {
  .home-download__button {
    width: 100%;
    justify-content: center;
  }
}

/* ===== Aperçu du jeu (lien) ===== */
.home-gameplay-link {
  background-color: var(--color-encre-nuit);
}

.home-gameplay-link__block {
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
  max-width: 800px;
}

.home-gameplay-link__text {
  margin: 0;
  max-width: 70ch;
  color: var(--color-texte-clair);
}

.home-gameplay-link__link {
  color: var(--color-rose-poudre);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: text-decoration-color var(--transition-fast);
}

.home-gameplay-link__link:hover {
  text-decoration-color: var(--color-rose-poudre);
}

/* ===== Conclusion ===== */
.home-conclusion {
  background-color: var(--color-prune-profonde);
}

.home-conclusion__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-24);
  text-align: center;
}

.home-conclusion__title {
  margin: 0;
}

.home-conclusion__text {
  margin: 0;
  max-width: 600px;
  color: var(--color-texte-clair);
}

.home-conclusion__button {
  min-width: 0;
  flex-shrink: 1;
}

@media (max-width: 767px) {
  .home-conclusion__button {
    width: 100%;
    justify-content: center;
  }
}
