/* BRIDGE — css/bridge-navigation.css — shared stylesheet */
/* Le menu surchargé de liens ne tient pas sur une tablette. */
    @media (max-width: 1149px) {
      .site-header .mobile-toggle { display: inline-flex !important; align-items: center; }
      #mainnav { display: none !important; flex-basis: 100%; width: 100%;
                 flex-direction: column !important; flex-wrap: nowrap;
                 align-items: stretch; gap: 0.35rem; padding: .5rem 0 .75rem; }
      #mainnav.is-open { display: flex !important; }
      #mainnav > a { display: block; padding: .6rem .4rem; }
      #mainnav .flags { border-left: 0; padding-left: 0; padding-top: .5rem; }
      #mainnav > a::after { bottom: 2px; }
    }
    @media (min-width: 1150px) {
      .site-header .mobile-toggle { display: none !important; }
      #mainnav { display: flex !important; flex-direction: row !important;
                 flex-wrap: nowrap !important; align-items: center; width: auto; }
    }
    /* Avec la barre fixe, un peu d'air autour des ancrages. */
    html { scroll-padding-top: 105px; }
    [id="background"], [id="platform"], [id="objectives"],
    [id="results"], [id="partners"], [id="contact"] { scroll-margin-top: 105px; }
    .bridge-back-top { position: fixed; bottom: 1.25rem; right: 1.25rem; z-index: 48;
      width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
      border-radius: 100%; background: #123e5b; color: white; text-decoration: none;
      box-shadow: 0 8px 24px rgba(18,62,91,.20); opacity: 0; pointer-events: none;
      transform: translateY(10px); transition: opacity .25s, transform .25s;
    }
    .bridge-back-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
    .bridge-back-top:hover, .bridge-back-top:focus-visible { color: #fff; background: #16899a; }
    @media (prefers-reduced-motion: reduce) { .bridge-back-top { transition: none; } }
    /* Les liens-logo ont un effet discret et une indication de focus cohérente. */
    .partner a:focus-visible { outline: 3px solid #16899a; outline-offset: -3px; }


/* Tall, accessible navigation when the site is viewed on a phone. */
@media (max-width:1149px) {
  #mainnav.is-open { max-height:calc(100dvh - 84px);overflow-y:auto;overscroll-behavior:contain; }
  #mainnav > a { min-height:44px;display:flex;align-items:center; }
  .site-header .mobile-toggle { min-height:44px;min-width:44px; }
}
