/*
 * Réseaux sociaux (TRDX-4) : un seul picto par réseau, servi comme masque et
 * peint ici. Gris dans un cercle au pied de page, blanc sur les boutons
 * violets de "Suivez-nous". Le picto est posé par la variable
 * --social-network-icon, sur le span .social-network__icon.
 */
.social-network__icon::before {
  content: "";
  display: block;
  background-color: currentColor;
  -webkit-mask: var(--social-network-icon) center / contain no-repeat;
  mask: var(--social-network-icon) center / contain no-repeat;
}

/* Pied de page : cercle de 33 px, picto gris dans une boîte de 17 × 13 px. */
.social-network--footer .social-network__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 33px;
  height: 33px;
  border-radius: 50%;
  /* Trait de 1,6 px comme l'ancien picto : une bordure serait arrondie à 1 px. */
  box-shadow: inset 0 0 0 1.6px #e6e6e6;
  color: #333;
}

.social-network--footer .social-network__icon::before {
  width: 17px;
  height: 13px;
}

/* "Suivez-nous" : picto blanc (couleur du bouton) dans une boîte de 20 × 18 px. */
a.social-network--follow {
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-network--follow .social-network__icon::before {
  width: 20px;
  height: 18px;
}

/*
 * Le thème n'espace que le premier bouton (padding à droite du premier li) :
 * même espace devant chaque bouton à partir du troisième, et passage à la
 * ligne quand ils ne tiennent plus (mobile).
 */
.social_follow_row ul {
  flex-wrap: wrap;
  row-gap: 1.5em;
}

.social_follow_row li + li + li {
  padding-left: 1.5em;
}

/* Contraste élevé (Windows) : le fond peint serait remplacé par le système. */
@media (forced-colors: active) {
  .social-network__icon::before {
    forced-color-adjust: none;
    background-color: LinkText;
  }
}
