/* ==========================================================================
   V658 — MISE EN PAGE UNIFIÉE DE L’EN-TÊTE ET DU MENU PUBLIC (ZÉRO SUPERPOSITION) :
   1. Grille stricte à 3 colonnes sur ordinateur (Marque | Menu 5 piliers | Bouton ☰)
      et 2 colonnes sous 1020px (Marque | Bouton ☰)
   2. Verrouillage de la largeur du titre « Le Monde Ensemble » (min-width: max-content)
      et du badge Westfalia (34x23px) pour empêcher tout chevauchement
   3. Menu horizontal allégé des doublons (« Accueil » est assuré par le logo/titre
      et figure en 1re ligne du menu ☰) pour un alignement aéré et équilibré
   ========================================================================== */

html body header.lme-unified-header,
html body > header.lme-v657-global-header,
html body > header.top {
  position: sticky !important;
  top: 0 !important;
  z-index: 10020 !important;
  width: 100% !important;
  background: #fffdfa !important;
  border-bottom: 1px solid #e6ddd2 !important;
  padding: 10px 20px !important;
  box-shadow: 0 4px 18px rgba(25, 45, 47, 0.06) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  overflow: visible !important;
  isolation: isolate !important;
}

html body header.lme-unified-header .lme-uh-inner,
html body header .wrap.nav,
html body .lme-v657-global-header .lme-v657-header-inner {
  max-width: 1220px !important;
  width: 100% !important;
  min-height: 54px !important;
  height: auto !important;
  margin: 0 auto !important;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: max-content minmax(0, 1fr) max-content !important;
  align-items: center !important;
  column-gap: clamp(14px, 2vw, 26px) !important;
  row-gap: 0 !important;
  overflow: visible !important;
}

html body header a.brand,
html body header.lme-unified-header .lme-uh-brand,
html body header a.page-brand,
html body header a.story-page-brand,
html body .lme-v657-global-header .lme-v657-brand {
  grid-column: 1 !important;
  display: inline-flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 10px !important;
  width: max-content !important;
  min-width: max-content !important;
  max-width: none !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
  padding: 0 !important;
  text-decoration: none !important;
  color: #193c39 !important;
  white-space: nowrap !important;
  position: relative !important;
  z-index: 2 !important;
}

html body header a.brand img.logo,
html body header.lme-unified-header .lme-uh-brand img.logo,
html body header a.page-brand img.logo,
html body .lme-v657-global-header .lme-v657-brand img.logo {
  display: block !important;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  max-width: 42px !important;
  min-height: 42px !important;
  max-height: 42px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  flex: 0 0 42px !important;
  margin: 0 !important;
  padding: 0 !important;
}

html body header a.brand .lme-brand-title,
html body header a.brand > div,
html body header a.brand b,
html body header a.brand strong,
html body header.lme-unified-header .lme-uh-brand .lme-brand-title,
html body header.lme-unified-header .lme-uh-brand b,
html body header.lme-unified-header .lme-uh-brand strong,
html body .lme-v657-global-header .lme-v657-brand strong {
  display: inline-block !important;
  width: max-content !important;
  min-width: max-content !important;
  max-width: none !important;
  flex: 0 0 auto !important;
  color: #193c39 !important;
  font: 800 clamp(0.98rem, 1.35vw, 1.1rem)/1.2 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  letter-spacing: -0.01em !important;
  white-space: nowrap !important;
  margin: 0 !important;
  padding: 0 !important;
  position: static !important;
}

html body header a.brand img.westfalia-nav-mark,
html body header.lme-unified-header .lme-uh-brand img.westfalia-nav-mark,
html body header a.page-brand img.westfalia-nav-mark,
html body .lme-v657-global-header .lme-v657-brand img.westfalia-nav-mark {
  display: inline-block !important;
  width: 34px !important;
  height: 23px !important;
  min-width: 34px !important;
  max-width: 34px !important;
  min-height: 23px !important;
  max-height: 23px !important;
  border-radius: 0 !important;
  object-fit: contain !important;
  flex: 0 0 34px !important;
  margin: 0 0 0 2px !important;
  padding: 0 !important;
  position: static !important;
  transform: none !important;
  vertical-align: middle !important;
}

html body header nav.links.lme-uh-nav,
html body header.lme-unified-header .lme-uh-nav,
html body .lme-v657-global-header .lme-v657-primary {
  grid-column: 2 !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-end !important;
  justify-self: end !important;
  gap: clamp(4px, 0.7vw, 10px) !important;
  margin: 0 !important;
  padding: 0 !important;
  width: max-content !important;
  min-width: max-content !important;
  max-width: 100% !important;
  position: relative !important;
  z-index: 1 !important;
}

html body header nav.links.lme-uh-nav a,
html body header.lme-unified-header .lme-uh-nav a,
html body .lme-v657-global-header .lme-v657-primary a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 8px 12px !important;
  border-radius: 999px !important;
  color: #193c39 !important;
  text-decoration: none !important;
  font: 700 0.86rem/1.2 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  white-space: nowrap !important;
  flex: 0 0 auto !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  transition: background 0.16s ease, color 0.16s ease !important;
}

html body header nav.links.lme-uh-nav a:hover,
html body header nav.links.lme-uh-nav a[aria-current="page"],
html body .lme-v657-global-header .lme-v657-primary a:hover,
html body .lme-v657-global-header .lme-v657-primary a[aria-current="page"] {
  background: #eaf4f0 !important;
  color: #1f5b50 !important;
  border-bottom: 0 !important;
}

html body header nav.links.lme-uh-nav a.lme-primary-cta,
html body .lme-v657-global-header .lme-v657-primary a.lme-primary-cta {
  background: #1f5b50 !important;
  color: #ffffff !important;
  padding: 8px 14px !important;
  font-weight: 800 !important;
  border: 1px solid #1f5b50 !important;
  margin-left: 2px !important;
}

html body header nav.links.lme-uh-nav a.lme-primary-cta:hover,
html body .lme-v657-global-header .lme-v657-primary a.lme-primary-cta:hover {
  background: #15423a !important;
  color: #ffffff !important;
}

html body header .secondary-menu-wrap,
html body .lme-v657-global-header .lme-v657-menu-wrap {
  grid-column: 3 !important;
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 44px !important;
  width: 44px !important;
  min-width: 44px !important;
  height: 44px !important;
  margin: 0 !important;
  justify-self: end !important;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 10030 !important;
  overflow: visible !important;
}

html body header .hamburger-btn,
html body .lme-v657-global-header .lme-v657-hamburger {
  appearance: none !important;
  -webkit-appearance: none !important;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  border: 1.5px solid #1f5b50 !important;
  border-radius: 13px !important;
  background: #ffffff !important;
  cursor: pointer !important;
  box-shadow: 0 6px 18px rgba(25, 60, 57, 0.1) !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 10035 !important;
}

html body header .hamburger-btn span,
html body .lme-v657-global-header .lme-v657-hamburger span {
  display: block !important;
  width: 20px !important;
  height: 2.3px !important;
  min-height: 2.3px !important;
  border-radius: 99px !important;
  background: #1f5b50 !important;
  transition: transform 0.22s ease, opacity 0.18s ease !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: none !important;
}

html body header .hamburger-btn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7.3px) rotate(45deg) !important;
}
html body header .hamburger-btn[aria-expanded="true"] span:nth-child(2) {
  opacity: 0 !important;
}
html body header .hamburger-btn[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7.3px) rotate(-45deg) !important;
}

/* Panneau déroulant du menu 3 barres (☰) */
html body header .secondary-menu,
html body .lme-v657-global-header .lme-v657-menu {
  position: absolute !important;
  top: calc(100% + 10px) !important;
  right: 0 !important;
  left: auto !important;
  width: min(355px, calc(100vw - 24px)) !important;
  max-height: min(80dvh, calc(100vh - 88px)) !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  padding: 12px !important;
  background: #fffdfa !important;
  border: 1px solid #d8ccbe !important;
  border-radius: 20px !important;
  box-shadow: 0 22px 55px rgba(22, 45, 42, 0.24) !important;
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  z-index: 12050 !important;
  text-align: left !important;
}

html body header .secondary-menu.open,
html body header .secondary-menu[data-menu-open="true"],
html body .lme-v657-global-header .lme-v657-menu.open {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

@media (max-width: 1020px) {
  html body header.lme-unified-header,
  html body > header.lme-v657-global-header {
    padding: 9px 14px !important;
  }

  html body header.lme-unified-header .lme-uh-inner,
  html body header .wrap.nav,
  html body .lme-v657-global-header .lme-v657-header-inner {
    grid-template-columns: max-content 1fr !important;
    min-height: 50px !important;
  }

  html body header nav.links.lme-uh-nav,
  html body header.lme-unified-header .lme-uh-nav,
  html body .lme-v657-global-header .lme-v657-primary,
  html body header .links:not(.secondary-menu) {
    display: none !important;
  }

  html body header .secondary-menu-wrap,
  html body .lme-v657-global-header .lme-v657-menu-wrap {
    grid-column: 2 !important;
    justify-self: end !important;
    margin-left: auto !important;
  }
}

@media (max-width: 390px) {
  html body header a.brand,
  html body header.lme-unified-header .lme-uh-brand {
    gap: 7px !important;
  }
  html body header a.brand img.logo,
  html body header.lme-unified-header .lme-uh-brand img.logo {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    flex-basis: 36px !important;
  }
  html body header a.brand .lme-brand-title,
  html body header a.brand b,
  html body header.lme-unified-header .lme-uh-brand b {
    font-size: 0.94rem !important;
  }
  html body header a.brand img.westfalia-nav-mark,
  html body header.lme-unified-header .lme-uh-brand img.westfalia-nav-mark {
    width: 28px !important;
    height: 19px !important;
    min-width: 28px !important;
    max-width: 28px !important;
    flex-basis: 28px !important;
  }
}
