/**
 * Page FAQ — mise en page minimale du gabarit générique du module (chargée sur cette page
 * seulement, par le hook actionFrontControllerSetMedia). Un thème qui surcharge le gabarit
 * apporte ses propres styles ; ceux-ci restent neutres.
 *
 * @author AKISO
 */

.akfaq__toc-list {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}

.akfaq__section + .akfaq__section {
  margin-top: 2rem;
}

/* Ancres : ne pas passer sous un en-tête collant (hummingbird expose sa hauteur). */
.akfaq__section,
.akfaq__item {
  scroll-margin-top: calc(var(--scroll-padding-top, 0px) + 12px);
}

.akfaq__item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  padding: 0.75rem 0;
}

.akfaq__question {
  cursor: pointer;
  font-weight: 600;
}

.akfaq__answer {
  margin-top: 0.5rem;
}

.akfaq__help {
  margin-top: 2.5rem;
}

.akfaq__help-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

/* Sommaire à gauche à partir de 992 px, au-dessus du contenu en dessous. */
@media (min-width: 992px) {
  .akfaq {
    display: grid;
    grid-template-columns: 264px minmax(0, 1fr);
    gap: 48px;
    align-items: start;
  }

  .akfaq__aside {
    position: sticky;
    top: var(--scroll-padding-top, 120px);
  }
}

@media (max-width: 991.98px) {
  .akfaq__aside {
    margin-bottom: 1.5rem;
  }
}
