/* Page-owned styles for Guides et Épisodes */

.guides-intro,
.episodes-overview,
.major-twists,
.secret-endings,
.chapter-guide,
.completion-tips,
.download-cta {
  padding-block: var(--space-48);
}

.guides-intro__inner,
.episodes-overview__inner,
.major-twists__inner,
.secret-endings__inner,
.chapter-guide__inner,
.completion-tips__inner,
.download-cta__inner {
  width: 100%;
  max-width: var(--container-reading);
  margin-inline: auto;
  padding-inline: var(--gutter-mobile);
}

/* Introduction */
.guides-intro__title {
  font-size: var(--text-display-size);
  line-height: var(--text-display-line-height);
  font-weight: var(--text-display-weight);
  margin-block-end: var(--space-16);
}

.guides-intro__lead {
  color: var(--color-texte-secondaire);
  margin-block-end: var(--space-24);
  max-width: 45rem;
}

.guides-intro__facts {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
  margin-block-end: var(--space-32);
  padding: 0;
  list-style: none;
}

.guides-intro__facts li {
  color: var(--color-texte-principal);
  font-size: var(--text-small-size);
  line-height: var(--text-small-line-height);
  padding-inline-start: var(--space-24);
  position: relative;
}

.guides-intro__facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background-color: var(--color-or-rose);
}

.guides-intro__cta {
  width: 100%;
  justify-content: center;
}

/* Vue d'ensemble des épisodes */
.episodes-overview__title {
  font-size: var(--text-h1-size);
  line-height: var(--text-h1-line-height);
  font-weight: var(--text-h1-weight);
  margin-block-end: var(--space-16);
}

.episodes-overview__lead {
  color: var(--color-texte-secondaire);
  margin-block-end: var(--space-32);
  max-width: 45rem;
}

.episodes-overview__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
  padding: 0;
  margin: 0;
  list-style: none;
}

.episodes-overview__item {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
  background-color: var(--color-prune-surface);
  border: 1px solid var(--color-bordure-fine);
  border-radius: var(--radius-md);
  padding: var(--space-16);
  transition: border-color var(--transition-fast);
}

.episodes-overview__item:hover {
  border-color: var(--color-framboise-sombre);
}

.episodes-overview__badge {
  align-self: flex-start;
}

.episodes-overview__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.episodes-overview__item-title {
  margin-block-end: 0;
}

.episodes-overview__item-text {
  color: var(--color-texte-secondaire);
  margin-block-end: 0;
}

/* Rebondissements majeurs */
.major-twists__title {
  font-size: var(--text-h1-size);
  line-height: var(--text-h1-line-height);
  font-weight: var(--text-h1-weight);
  margin-block-end: var(--space-16);
}

.major-twists__lead {
  color: var(--color-texte-secondaire);
  margin-block-end: var(--space-32);
  max-width: 45rem;
}

.major-twists__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}

.major-twists__quote {
  margin-block-end: 0;
}

.major-twists__quote p {
  font-style: italic;
  color: var(--color-texte-principal);
}

/* Fins secrètes */
.secret-endings__title {
  font-size: var(--text-h1-size);
  line-height: var(--text-h1-line-height);
  font-weight: var(--text-h1-weight);
  margin-block-end: var(--space-16);
}

.secret-endings__lead {
  color: var(--color-texte-secondaire);
  margin-block-end: var(--space-32);
  max-width: 45rem;
}

.secret-endings__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-24);
}

.secret-endings__card {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
  padding: var(--space-20);
}

.secret-endings__badge {
  align-self: flex-start;
}

.secret-endings__card-title {
  margin-block-end: 0;
}

.secret-endings__card-text {
  color: var(--color-texte-secondaire);
  margin-block-end: 0;
}

/* Guides de chapitres */
.chapter-guide__title {
  font-size: var(--text-h1-size);
  line-height: var(--text-h1-line-height);
  font-weight: var(--text-h1-weight);
  margin-block-end: var(--space-16);
}

.chapter-guide__lead {
  color: var(--color-texte-secondaire);
  margin-block-end: var(--space-32);
  max-width: 45rem;
}

.chapter-guide__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
  padding: 0;
  margin: 0;
  list-style: none;
}

.chapter-guide__step {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
  padding-block-end: var(--space-24);
  border-bottom: 1px solid var(--color-bordure-fine);
}

.chapter-guide__step:last-child {
  border-bottom: none;
  padding-block-end: 0;
}

.chapter-guide__number {
  font-family: var(--font-heading);
  font-size: var(--text-h2-size);
  font-weight: 700;
  color: var(--color-or-rose);
  line-height: 1;
}

.chapter-guide__step-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.chapter-guide__step-title {
  margin-block-end: 0;
}

.chapter-guide__step-text {
  color: var(--color-texte-secondaire);
  margin-block-end: 0;
}

.chapter-guide__consequence {
  background-color: var(--color-prune-elevee);
  border-left: 3px solid var(--color-framboise-action);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--space-12) var(--space-16);
  margin-block-start: var(--space-8);
}

.chapter-guide__consequence-label {
  display: block;
  font-size: var(--text-micro-size);
  font-weight: var(--text-micro-weight);
  letter-spacing: var(--text-micro-letter-spacing);
  text-transform: uppercase;
  color: var(--color-or-rose);
  margin-block-end: var(--space-4);
}

.chapter-guide__consequence p {
  margin-block-end: 0;
  color: var(--color-texte-principal);
}

.chapter-guide__badge {
  align-self: flex-start;
  margin-block-start: var(--space-4);
}

/* Conseils de completionniste */
.completion-tips__title {
  font-size: var(--text-h1-size);
  line-height: var(--text-h1-line-height);
  font-weight: var(--text-h1-weight);
  margin-block-end: var(--space-16);
}

.completion-tips__lead {
  color: var(--color-texte-secondaire);
  margin-block-end: var(--space-24);
  max-width: 45rem;
}

.completion-tips__list {
  margin-block-end: 0;
}

/* Téléchargement CTA */
.download-cta {
  background-color: var(--color-prune-elevee);
  border-block: 1px solid var(--color-framboise-sombre);
}

.download-cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-16);
}

.download-cta__title {
  font-size: var(--text-h1-size);
  line-height: var(--text-h1-line-height);
  font-weight: var(--text-h1-weight);
  margin-block-end: 0;
}

.download-cta__text {
  color: var(--color-texte-principal);
  margin-block-end: 0;
  max-width: 45rem;
}

.download-cta__facts {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  padding: 0;
  margin: 0;
  list-style: none;
  color: var(--color-texte-secondaire);
  font-size: var(--text-small-size);
}

.download-cta__button {
  width: 100%;
  justify-content: center;
}

/* Tablet and desktop adjustments */
@media (min-width: 45rem) {
  .guides-intro__inner,
  .episodes-overview__inner,
  .major-twists__inner,
  .secret-endings__inner,
  .chapter-guide__inner,
  .completion-tips__inner,
  .download-cta__inner {
    padding-inline: var(--gutter-desktop);
  }

  .guides-intro__cta {
    width: auto;
    justify-content: flex-start;
  }

  .secret-endings__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chapter-guide__step {
    flex-direction: row;
    gap: var(--space-16);
  }

  .chapter-guide__number {
    flex-shrink: 0;
    width: var(--space-32);
    text-align: right;
  }

  .chapter-guide__step-content {
    flex: 1;
    min-width: 0;
  }

  .download-cta__button {
    width: auto;
  }
}

@media (min-width: 64rem) {
  .secret-endings__grid {
    gap: var(--space-32);
  }
}

@media (max-width: 27.5rem) {
  .guides-intro__title {
    font-size: 2rem;
  }

  .guides-intro__cta,
  .download-cta__button {
    min-height: 3rem;
    padding: var(--space-12) var(--space-16);
  }
}

@media (prefers-reduced-motion: reduce) {
  .episodes-overview__item,
  .secret-endings__card {
    transition: none;
  }
}
