/* WhereDoc — navigation mobile uniquement. Desktop inchangé. */
.mobile-menu-toggle,
.mobile-header-title {
  display: none;
}

@media (max-width: 720px) {
  .site-header {
    position: relative;
    z-index: 3000;
  }

  .header-inner {
    position: relative;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    min-height: 72px;
    gap: 10px;
  }

  .brand {
    grid-column: 1;
    justify-self: start;
    min-width: 0;
  }

  .brand-logo {
    width: 132px !important;
    height: auto !important;
    display: block;
  }

  .mobile-header-title {
    display: block;
    grid-column: 2;
    justify-self: center;
    white-space: nowrap;
    font-weight: 800;
    font-size: clamp(.88rem, 3.7vw, 1.05rem);
    line-height: 1;
    color: var(--blue-dark, #075f9e);
    text-align: center;
  }

  .header-actions {
    grid-column: 3;
    justify-self: end;
    position: relative;
    gap: 0 !important;
  }

  .header-copy {
    display: none !important;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    padding: 0;
    border: 1px solid rgba(7,139,234,.24);
    border-radius: 13px;
    background: #eef8ff;
    color: var(--blue-dark, #0564a9);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .18s ease, opacity .18s ease;
  }

  .mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .header-nav {
    display: none !important;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(310px, calc(100vw - 28px));
    padding: 10px;
    gap: 8px !important;
    flex-direction: column;
    align-items: stretch !important;
    border: 1px solid rgba(7,139,234,.18);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(5,65,116,.18);
    z-index: 3100;
  }

  .header-nav.is-open { display: flex !important; }

  .header-nav .header-nav-link,
  .header-nav .header-nav-link:first-child {
    display: flex !important;
    width: 100%;
    min-height: 48px !important;
    align-items: center;
    justify-content: flex-start;
    padding: 0 15px !important;
    border-radius: 12px;
    white-space: normal;
  }

  .mobile-menu-toggle:focus-visible,
  .header-nav .header-nav-link:focus-visible {
    outline: 3px solid rgba(7,139,234,.28);
    outline-offset: 2px;
  }
}

@media (max-width: 390px) {
  .brand-logo { width: 112px !important; }
  .mobile-header-title { font-size: .88rem; }
}
