/* BVG | Correctif du header Elementor + Royal Elementor Addons.
 * Ciblage des identifiants du header BVG uniquement.
 * Le correctif n'affecte ni les pages ni les autres menus WordPress.
 */

/* Bandeau de coordonnées gris graphite ; navigation noire. */
body .elementor-element.elementor-element-138eb0c30 {
  background-color: #2b2b2b !important;
}
body .elementor-element.elementor-element-7a960b3c {
  background-color: #101010 !important;
}

/* Supprimer la limite Elementor de 1140 px héritée de "section boxed". */
@media (min-width: 1280px) {
  body .elementor-section.elementor-element-7a960b3c > .elementor-container {
    width: 100% !important;
    max-width: 1900px !important;
    box-sizing: border-box !important;
    padding-left: clamp(18px, 2.8vw, 50px) !important;
    padding-right: clamp(18px, 2.8vw, 50px) !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: center !important;
  }
  /* Logo / navigation / CTA : 14 % / 67 % / 19 %. */
  body .elementor-element-7a960b3c .elementor-element-715a5403 {
    flex: 0 0 14% !important;
    width: 14% !important;
    max-width: 14% !important;
  }
  body .elementor-element-7a960b3c .elementor-element-7990a829 {
    flex: 0 0 67% !important;
    width: 67% !important;
    max-width: 67% !important;
    min-width: 0 !important;
  }
  body .elementor-element-7a960b3c .elementor-element-2a04287 {
    flex: 0 0 19% !important;
    width: 19% !important;
    max-width: 19% !important;
  }
  body .elementor-element-1820c30f .wpr-nav-menu-container,
  body .elementor-element-1820c30f .wpr-nav-menu {
    width: 100% !important;
    max-width: none !important;
  }
  body .elementor-element-1820c30f .wpr-nav-menu-container > ul.wpr-nav-menu {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    gap: 0 !important;
  }
  body .elementor-element-1820c30f .wpr-nav-menu-container > ul.wpr-nav-menu > li {
    display: block !important;
    flex: 0 0 auto !important;
    width: auto !important;
    white-space: nowrap !important;
  }
  body .elementor-element-1820c30f .wpr-nav-menu-container > ul.wpr-nav-menu > li > a {
    white-space: nowrap !important;
    font-size: clamp(11px, .76vw, 14px) !important;
    padding-left: clamp(5px, .65vw, 11px) !important;
    padding-right: clamp(5px, .65vw, 11px) !important;
  }
  body .elementor-element-7a960b3c .elementor-element-2286d8c9 .wpr-button {
    width: 100% !important;
    max-width: 248px !important;
    box-sizing: border-box !important;
    margin-left: auto !important;
  }
}

/* Sous-menu : retirer le bleu et le violet du thème/addon. */
body .elementor-element-1820c30f .wpr-sub-menu,
body .elementor-element-1820c30f .wpr-sub-menu li,
body .elementor-element-1820c30f .wpr-sub-menu > li {
  background: #171717 !important;
  border-color: #3d372e !important;
}
body .elementor-element-1820c30f .wpr-sub-menu {
  min-width: 270px !important;
  width: max-content !important;
  max-width: 330px !important;
  box-shadow: 0 18px 35px rgba(0,0,0,.24) !important;
  border-top: 2px solid #c8ad78 !important;
}
body .elementor-element-1820c30f .wpr-sub-menu a.wpr-sub-menu-item,
body .elementor-element-1820c30f .wpr-sub-menu li > a {
  background: #171717 !important;
  color: #f5f1e9 !important;
  border-left: 3px solid transparent !important;
  text-decoration: none !important;
  font-family: Montserrat, Arial, sans-serif !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  padding: 14px 18px !important;
  white-space: normal !important;
  transition: color .2s ease, background-color .2s ease !important;
}
body .elementor-element-1820c30f .wpr-sub-menu li:hover > a,
body .elementor-element-1820c30f .wpr-sub-menu li:focus-within > a,
body .elementor-element-1820c30f .wpr-sub-menu a.wpr-sub-menu-item:hover,
body .elementor-element-1820c30f .wpr-sub-menu a.wpr-sub-menu-item:focus-visible,
body .elementor-element-1820c30f .wpr-sub-menu a.wpr-active-menu-item,
body .elementor-element-1820c30f .wpr-sub-menu li.current-menu-item > a,
body .elementor-element-1820c30f .wpr-sub-menu li.current_page_item > a {
  background: #29241c !important;
  color: #c8ad78 !important;
  border-left-color: #c8ad78 !important;
}

/* Entre deux résolutions : utiliser le menu mobile pour éviter une deuxième ligne. */
@media (min-width: 768px) and (max-width: 1279px) {
  body .elementor-element-7a960b3c > .elementor-container {
    max-width: 100% !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    padding: 12px 28px !important;
  }
  body .elementor-element-7a960b3c .elementor-element-715a5403 {
    flex: 0 0 28% !important;
    max-width: 28% !important;
  }
  body .elementor-element-7a960b3c .elementor-element-7990a829 {
    flex: 1 1 72% !important;
    max-width: 72% !important;
  }
  body .elementor-element-7a960b3c .elementor-element-2a04287 { display: none !important; }
  body .elementor-element-1820c30f .wpr-nav-menu-container { display: none !important; }
  body .elementor-element-1820c30f .wpr-mobile-nav-menu-container,
  body .elementor-element-1820c30f .wpr-mobile-toggle-wrap { display: block !important; }
}

/* Ne pas introduire de débordement sur mobile. */
@media (max-width: 767px) {
  body .elementor-element-7a960b3c > .elementor-container { max-width: 100% !important; }
  body .elementor-element-1820c30f .wpr-mobile-nav-menu-container { max-width: 100vw !important; }
}
