/* hoummi-article.css
 *
 * Mise en forme du corps des articles du blog (pages générées par
 * build-blog.js). Les jetons de couleur viennent de hoummi-branches.css.
 * La feuille ne touche qu'au contenu de .rich-text-block : l'en-tête de
 * l'article, les cartes liées et le pied de page gardent leurs styles.
 */

.rich-text-block {
  max-width: 46rem;
  font-size: 1.0625rem;
  line-height: 1.7;
  letter-spacing: 0.2px;
  /* Le gabarit Webflow posait une graisse 100 : illisible sur un texte long. */
  font-weight: 300;
  color: var(--hm-encre, #212221);
}

.rich-text-block h2 {
  margin: 2.5rem 0 1rem;
  font-size: 1.75rem;
  line-height: 1.25;
  font-weight: 400;
}

.rich-text-block h3 {
  margin: 1.75rem 0 0.5rem;
  font-size: 1.25rem;
  line-height: 1.35;
  font-weight: 500;
}

.rich-text-block p,
.rich-text-block ul,
.rich-text-block ol {
  margin: 0 0 1rem;
}

.rich-text-block li {
  margin-bottom: 0.4rem;
}

.rich-text-block a {
  color: var(--hm-vert-lisible, #245e42);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.rich-text-block figure {
  margin: 2rem 0;
}

.rich-text-block figure img {
  display: block;
  width: 100%;
  height: auto;
}

.rich-text-block figcaption {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--hm-encre-tenue, #585858);
}

/* Tableaux : défilement horizontal sur mobile plutôt qu'un débordement de page. */
.rich-text-block table {
  display: block;
  overflow-x: auto;
  width: 100%;
  margin: 1.5rem 0 2rem;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.45;
}

.rich-text-block th,
.rich-text-block td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--hm-beige, #E6E1D0);
  text-align: left;
  vertical-align: top;
  min-width: 9rem;
}

.rich-text-block thead th {
  border-bottom: 2px solid var(--hm-encre, #212221);
  font-weight: 500;
}

.rich-text-block tbody td:first-child {
  font-weight: 500;
}

.hm-article__faq,
.hm-article__sources {
  margin-top: 3rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--hm-beige, #E6E1D0);
}

.hm-article__sources ul {
  padding-left: 1.1rem;
  font-size: 0.9375rem;
}

.hm-article__auteur {
  margin: 3rem 0 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--hm-beige, #E6E1D0);
  border-radius: 4px;
  font-size: 0.9375rem;
}

.hm-article__auteur p:last-child {
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .rich-text-block {
    font-size: 1rem;
  }

  .rich-text-block h2 {
    font-size: 1.45rem;
  }
}

/* Image de l’en-tête : build-blog.js écrit ses dimensions
 * réelles (width/height) pour réserver la place au chargement. Sans
 * height:auto, ces attributs l'emporteraient sur le ratio du gabarit et une
 * photo en portrait déborderait sur le texte. */
.div-block-373 .image-57 {
  width: 493px;
  height: auto;
  /* Le gabarit décale l'image de 20 px sur mobile : on retranche ce décalage
     pour qu'elle ne sorte pas de l'écran. */
  max-width: calc(100% - 20px);
}

