.mto-faq-liste .mto-articles-entete {
  background: linear-gradient(125deg, #174d46, #276f60 67%, #27669d);
}

.mto-faq-filtre-categorie {
  max-width: 25rem;
}

.mto-faq-filtre-categorie wa-select::part(combobox) {
  min-height: 2.85rem;
  border-color: #adbec4;
}

.mto-faq-grille {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: 1.35rem;
  background: var(--mto-articles-fond);
}

.mto-faq-element,
.mto-faq-carte {
  min-width: 0;
  height: 100%;
}

.mto-faq-carte {
  --mto-article-accent: var(--mto-articles-vert);
  display: block;
  overflow: hidden;
  border-top: 0.22rem solid var(--mto-article-accent);
  background: #fff;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.mto-faq-carte:hover,
.mto-faq-carte:focus-within {
  transform: translateY(-0.15rem);
  box-shadow: 0 0.8rem 1.8rem rgb(23 42 53 / 10%);
}

.mto-faq-carte::part(base) {
  height: 100%;
}

.mto-faq-carte-corps {
  display: flex;
  min-height: 12.5rem;
  box-sizing: border-box;
  flex-direction: column;
  padding: 1.05rem 1.15rem 1rem;
}

.mto-faq-carte-categorie {
  margin-bottom: 0.65rem;
}

.mto-faq-carte-categorie wa-badge::part(base),
.mto-faq-carte-categorie wa-badge::part(badge) {
  border-color: color-mix(in srgb, var(--mto-article-accent) 45%, var(--mto-articles-bordure));
  background: color-mix(in srgb, var(--mto-article-accent) 9%, #fff);
  color: var(--mto-articles-encre);
  font-weight: 800;
}

.mto-faq-carte h3 {
  margin: 0;
  color: var(--mto-articles-encre);
  font-size: clamp(1.08rem, 2vw, 1.3rem);
  line-height: 1.3;
  text-wrap: balance;
}

.mto-faq-carte h3 a {
  color: inherit;
  text-decoration: none;
}

.mto-faq-carte h3 a:hover,
.mto-faq-carte h3 a:focus-visible {
  color: var(--mto-articles-vert-fonce);
  text-decoration: underline;
  text-underline-offset: 0.17em;
}

.mto-faq-carte-corps > p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0.7rem 0 1rem;
  color: var(--mto-articles-texte-secondaire);
  font-size: 0.9rem;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.mto-faq-carte-action {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  align-self: flex-start;
  margin-top: auto;
  color: var(--mto-articles-vert-fonce);
  font-size: 0.82rem;
  font-weight: 850;
  text-decoration: none;
}

.mto-faq-carte-action:hover,
.mto-faq-carte-action:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.mto-faq-detail .mto-article-entete h1 {
  font-size: clamp(1.9rem, 4.5vw, 3.2rem);
}

.mto-faq-detail .mto-article-contenu::before {
  display: block;
  width: 3.5rem;
  height: 0.22rem;
  margin-bottom: 1.4rem;
  border-radius: 999px;
  background: var(--mto-article-accent);
  content: "";
}

.mto-faq-associees .mto-faq-grille {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0;
  background: transparent;
}

.mto-aside-contenus--faq {
  --mto-article-accent: var(--mto-articles-vert);
  min-width: 0;
  box-sizing: border-box;
}

.mto-aside-contenus--faq.mto-aside-contenus--bureau {
  position: sticky;
  top: 1rem;
  align-self: start;
  max-height: calc(100dvh - 2rem);
  overflow-x: clip;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.mto-aside-contenus--faq .mto-aside-pave {
  box-shadow: 0 0.45rem 1.4rem rgb(23 42 53 / 6%);
}

.mto-aside-contenus--faq .mto-aside-pave-entete {
  padding: 0.8rem 0.85rem;
}

.mto-aside-contenus--faq .mto-aside-pave-entete h2 {
  font-size: 1rem;
  text-wrap: balance;
}

.mto-faq-lien-compact {
  min-height: 4.25rem;
  box-sizing: border-box;
  padding: 0.65rem 0.75rem;
}

.mto-faq-compact-icone {
  display: inline-grid;
  width: 2.25rem;
  height: 2.25rem;
  flex: 0 0 2.25rem;
  place-items: center;
  border-radius: 0.7rem;
  background: var(--mto-articles-fond-accent);
  color: var(--mto-articles-vert);
}

.mto-faq-lien-compact .mto-aside-pave-contenu > strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--mto-articles-encre);
  font-size: 0.8rem;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.mto-faq-lien-compact .mto-aside-pave-contenu > small {
  display: -webkit-box;
  overflow: hidden;
  color: var(--mto-articles-vert);
  font-size: 0.65rem;
  font-weight: 800;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  line-clamp: 1;
}

.mto-faq-aside-voir-categorie {
  display: flex;
  min-height: 2.8rem;
  box-sizing: border-box;
  gap: 0.45rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0.8rem;
  border-top: 1px solid var(--mto-aside-pave-bordure);
  color: var(--mto-articles-vert-fonce);
  font-size: 0.72rem;
  font-weight: 850;
  text-decoration: none;
}

.mto-faq-aside-voir-categorie:hover,
.mto-faq-aside-voir-categorie:focus-visible {
  background: var(--mto-aside-pave-survol);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

@media (max-width: 920px) {
  .mto-aside-contenus--faq.mto-aside-contenus--mobile {
    position: static;
    width: 100%;
    max-width: 1320px;
    padding-inline: clamp(1rem, 3vw, 2.5rem);
    margin: clamp(1.5rem, 6vw, 2.5rem) auto 0;
    overflow: visible;
  }
}

@media (max-width: 760px) {
  .mto-faq-grille,
  .mto-faq-associees .mto-faq-grille {
    grid-template-columns: minmax(0, 1fr);
  }

  .mto-faq-grille {
    padding: 0.9rem;
  }

  .mto-faq-associees .mto-faq-grille {
    padding: 0;
  }

  .mto-faq-filtre-categorie {
    max-width: none;
  }

  .mto-aside-contenus--faq.mto-aside-contenus--mobile {
    padding-inline: 0.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mto-faq-carte {
    transition: none;
  }
}

@media print {
  .mto-aside-contenus--faq,
  .mto-faq-associees {
    display: none !important;
  }
}
