/* DIVA custom tweaks — loaded by every site page and the generated blog pages. */

/* Footer legal menu (Blog / Mentions légales / Politique de confidentialité):
   one horizontal line. The uls carry the diva-legal-menu class; !important is
   needed throughout because Elementor's nav-menu rules (including its own
   flex-wrap: wrap) have higher specificity. */
ul.diva-legal-menu {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  justify-content: center;
  align-items: center;
  gap: 0 22px;
  padding-left: 0 !important;
  margin: 0 !important;
  list-style: none;
}
ul.diva-legal-menu > li {
  display: inline-flex !important;
  width: auto !important;
  margin: 0 !important;
  float: none !important;
  white-space: nowrap;
}
@media (max-width: 767px) {
  ul.diva-legal-menu { flex-wrap: wrap !important; }
  ul.diva-legal-menu > li { white-space: normal; }
}

/* Dark footer (template 998, used by the home page and blog pages): the column
   holding the legal menu is capped at 30% width, which forced the third link
   onto a new line. Let it size to its content. */
.elementor-998 .elementor-element.elementor-element-54e49c0 { --width: auto; width: auto; }

/* Description optionnelle des cartes service : masquée tant qu'elle est vide (gérée depuis l'admin). */
.diva-optional-desc:has(> .elementor-widget-container:empty) { display: none; }
