/* V23.39R8 — Harmonisation mobile basée sur Services + footer Accueil */
@media (max-width: 760px) {
  /* 1) Footer secondaire : même retrait horizontal que le footer stable de l'accueil. */
  html body .site-footer > .footer-columns,
  html body .site-footer > .footer-bottom {
    width: calc(100% - 34px) !important;
    max-width: 1180px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }
  html body .site-footer > .footer-columns {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* 2) Anciennes pages secondaires qui déposent leur contenu directement dans body. */
  html body > h1,
  html body > h2,
  html body > h3,
  html body > h4,
  html body > p,
  html body > section,
  html body > article,
  html body > form,
  html body > table,
  html body > ul,
  html body > ol,
  html body > .container,
  html body > .page,
  html body > .content,
  html body > .content-wrap,
  html body > .page-wrap,
  html body > .page-container {
    width: calc(100% - 28px) !important;
    max-width: 1180px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }

  /* 3) Menu mobile moderne et homogène : secondaire + accueil. */
  .mobile-nav-panel-native-v43,
  .lm2291-mobile-panel {
    box-sizing: border-box !important;
    width: min(94vw, 520px) !important;
    max-height: 78vh !important;
    overflow-y: auto !important;
    padding: 14px !important;
    border-radius: 22px !important;
    background: #f6fbf6 !important;
  }

  .mobile-nav-panel-native-v43 .lm91-item,
  .mobile-nav-panel-native-v43 .lm91-admin,
  .lm2291-mobile-panel .lm91-item,
  .lm2291-mobile-panel .lm91-admin,
  .lm2291-mobile-panel > a {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    width: 100% !important;
    min-height: 68px !important;
    margin: 10px 0 !important;
    padding: 13px 16px !important;
    box-sizing: border-box !important;
    border: 1px solid #dce8dc !important;
    border-radius: 18px !important;
    background: #fff !important;
    color: #0d4a24 !important;
    text-decoration: none !important;
    font-size: 18px !important;
    line-height: 1.15 !important;
    font-weight: 900 !important;
    box-shadow: 0 6px 18px rgba(10,70,35,.08) !important;
  }

  .mobile-nav-panel-native-v43 .lm91-ico,
  .lm2291-mobile-panel .lm91-ico {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    border-radius: 50% !important;
    background: #edf8ef !important;
    font-size: 21px !important;
  }

  .mobile-nav-panel-native-v43 .lm91-accordion,
  .lm2291-mobile-panel .lm91-accordion {
    display: block !important;
    width: 100% !important;
    margin: 10px 0 !important;
  }
  .mobile-nav-panel-native-v43 .lm91-accordion .lm91-accordion-trigger,
  .lm2291-mobile-panel .lm91-accordion .lm91-accordion-trigger { margin: 0 !important; }
  .mobile-nav-panel-native-v43 .lm91-panel,
  .lm2291-mobile-panel .lm91-panel {
    display: none !important;
    padding: 8px 10px 12px 18px !important;
    background: #f5fbf5 !important;
    border: 1px solid #dce8dc !important;
    border-top: 0 !important;
    border-radius: 0 0 18px 18px !important;
  }
  .mobile-nav-panel-native-v43 .lm91-accordion.open .lm91-panel,
  .lm2291-mobile-panel .lm91-accordion.open .lm91-panel { display: block !important; }
  .mobile-nav-panel-native-v43 .lm91-panel a,
  .lm2291-mobile-panel .lm91-panel a {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 8px 0 !important;
    padding: 11px 13px !important;
    border-radius: 14px !important;
    background: #fff !important;
    color: #0d4a24 !important;
    text-decoration: none !important;
    font-size: 16px !important;
    font-weight: 850 !important;
  }

  /* Le footer ne doit jamais hériter d'un décalage de conteneur parent. */
  html body .site-footer {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: none !important;
  }
}