/* Additional navigation/title nodes stay hidden outside the phone layout. */
.site-header .mobile-menu-brand,
.site-header .mobile-only-nav,
.services-section .service-title-mobile { display: none; }

@media (max-width: 700px) {
  .mobile-actions { display: none; }
  .whatsapp-fab {
    position: fixed;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    width: 52px;
    height: 52px;
    padding: 12px;
  }
  .whatsapp-fab > svg { width: 28px; height: 28px; }

  .site-header { top: 10px; }
  .site-header .header-inner {
    position: relative;
    z-index: 2;
    width: calc(100% - 32px);
    height: 46px;
    min-height: 46px;
    margin-inline: 16px;
    padding: 0;
    justify-content: flex-end;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    pointer-events: none;
  }
  .site-header.is-scrolled .header-inner { background: transparent; box-shadow: none; }
  .site-header .header-inner > .brand,
  .site-header .header-actions { display: none; }
  .site-header .menu-toggle {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 46px;
    height: 46px;
    padding: 10px;
    margin-left: auto;
    border: 0;
    background: transparent;
    pointer-events: auto;
  }
  .site-header .menu-toggle::before,
  .site-header .menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    flex: 0 0 2px;
    background: #123f6b;
    box-shadow: 0 0 0 1px rgb(255 255 255 / 75%), 0 1px 4px rgb(0 0 0 / 20%);
    transition: transform .22s, opacity .22s;
  }
  .site-header .menu-toggle::before { content: ''; }
  .site-header .menu-toggle[aria-expanded="true"]::before,
  .site-header .menu-toggle[aria-expanded="true"] span {
    background: #123f6b;
    box-shadow: none;
  }
  .site-header .menu-toggle[aria-expanded="true"]::before { transform: translateY(7px) rotate(45deg); }
  .site-header .menu-toggle[aria-expanded="true"] span:first-child { opacity: 0; transform: none; }
  .site-header .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-7px) rotate(-45deg); }
  .site-header .mobile-menu {
    z-index: 1;
    top: 0;
    left: 10px;
    right: 10px;
    padding: 64px 24px 24px;
    max-height: calc(100svh - 20px);
    border-radius: 16px;
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(255, 255, 255, .8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }
  .site-header .mobile-menu .mobile-menu-brand { display: block; padding: 0 0 20px; }
  .site-header .mobile-menu .mobile-menu-brand img { display: block; width: 180px; height: auto; margin-inline: auto; }
  .site-header .mobile-menu .mobile-only-nav { display: block; }
  .site-header .mobile-menu a[href^="tel:"],
  .site-header .mobile-menu a[href^="mailto:"],
  .site-header .mobile-menu a[href="#secteurs"],
  .site-header .mobile-menu .button { display: none; }

  .hero-stage { padding-bottom: 0; }
  .hero-stage .hero {
    height: 100svh;
    min-height: 100svh;
    padding: 88px 0 calc(88px + env(safe-area-inset-bottom));
  }
  .hero .hero-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
  }
  .hero .hero-copy { width: 100%; max-width: 460px; text-align: center; }
  .hero .hero-text { padding: 0; }
  .hero .hero-text > .eyebrow { margin-inline: auto; }
  .hero .hero-text > .eyebrow::after { margin: 8px auto 0; }
  .hero .hero-location { margin-inline: auto; }
  .hero .hero-ctas { align-items: center; margin-left: 0; }
  .hero::after {
    inset: 0;
    background: linear-gradient(180deg,
      rgba(16, 45, 70, .12) 0%,
      rgba(16, 45, 70, .5) 28%,
      rgba(16, 45, 70, .75) 58%,
      rgba(16, 45, 70, .35) 100%);
    -webkit-mask-image: none;
    mask-image: none;
  }
  .sectors-section { display: none; }
  .site-footer a[href="#secteurs"] { display: none; }
  .company-section .company-video-toggle { display: none; }
  .company-section[data-video-mode="blocked"] .company-video-toggle { display: inline-flex; }

  .services-section .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 14px;
    row-gap: 24px;
  }
  .services-section .service-emblem { width: 40px; height: 40px; bottom: -20px; }
  .services-section .service-emblem svg { width: 23px; height: 23px; }
  .services-section .service-card-body { flex: 0; padding: 26px 0 0; }
  .services-section .service-card-body h3 { min-height: 0; margin: 0; font-size: 14px; line-height: 1.4; }
  .services-section .service-card-body > p,
  .services-section .service-detail-link,
  .services-section .service-title-desktop { display: none; }
  .services-section .service-card-body h3 .service-title-mobile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    padding: 4px 0;
    color: inherit;
    font: inherit;
    line-height: inherit;
    text-align: center;
    text-decoration: none;
  }
  .services-section .service-title-mobile:hover { text-decoration: underline; text-underline-offset: 4px; }
}

@media (max-width: 700px) and (prefers-reduced-motion: reduce) {
  .site-header .menu-toggle::before,
  .site-header .menu-toggle span { transition: none; }
}

#company-autoplay-fallback[hidden] { display: none; }
