/* AP7SERVICES | Correctif cible : accueil sur Chrome Android.
   Prevent horizontal pan on home and keep controls anchored to viewport.
   Doesn't change desktop appearance or other site pages. */
@media screen and (max-width:1180px) {
  html { max-width:100%; overflow-x:clip !important; overscroll-behavior-x:none; }
  body.ap7-home-chrome-safe { width:100%; max-width:100%; min-width:0; overflow-x:clip !important; overscroll-behavior-x:none; }
  body.ap7-home-chrome-safe header { box-sizing:border-box; width:100%; max-width:100%; min-width:0; overflow:visible !important; }
  body.ap7-home-chrome-safe header .nav { min-width:0; max-width:100%; }
  body.ap7-home-chrome-safe header .brand { min-width:0; max-width:calc(100vw - 190px); }
  body.ap7-home-chrome-safe header .brand span:not(.brand-mark) { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  body.ap7-home-chrome-safe header .navlinks { display:none !important; }
  body.ap7-home-chrome-safe .hero-home,
  body.ap7-home-chrome-safe .work-section,
  body.ap7-home-chrome-safe .energy-strip { max-width:100%; overflow-x:clip; }
  body.ap7-home-chrome-safe .container,
  body.ap7-home-chrome-safe .hero-home-grid,
  body.ap7-home-chrome-safe .hero-home-copy,
  body.ap7-home-chrome-safe .hero-visual { min-width:0; }
  body.ap7-home-chrome-safe .hero-home-grid { max-width:100%; }

  /* Force the native button to stay visible at viewport's top right. */
  body.ap7-home-chrome-safe > .ap7-native-nav-global > summary {
    position:fixed !important; top:12px !important;
    right:14px !important; left:auto !important;
    transform:none !important; margin:0 !important;
    min-width:92px; max-width:calc(100vw - 28px);
  }
  body.ap7-home-chrome-safe .ap7-header-phone-icon {
    position:fixed !important; top:12px !important; right:116px !important;
    left:auto !important; transform:none !important;
  }
  body.ap7-home-chrome-safe > .ap7-native-nav-global[open] {
    position:fixed !important; inset:0 !important;
    width:100% !important; max-width:100vw !important;
    height:100vh !important; height:100dvh !important;
  }
  body.ap7-home-chrome-safe > .ap7-native-nav-global[open] > nav {
    position:fixed !important; left:12px !important; right:12px !important;
    width:auto !important; max-width:calc(100vw - 24px) !important;
    transform:none !important; margin:0 !important;
  }
}
@media screen and (max-width:350px) {
  body.ap7-home-chrome-safe header .brand span:not(.brand-mark) { font-size:12px; }
}
