/* V83 — navigation mobile : corrections ciblées, sans modification du contenu. */
@media (max-width:1119px) {
  header.top .nav .aed-native-menu summary {
    box-sizing:border-box;
    display:flex!important;
    align-items:center;
    justify-content:center;
    min-height:44px;
    min-width:90px;
    padding:10px 13px;
    border-radius:8px;
    touch-action:manipulation;
    -webkit-tap-highlight-color:transparent;
  }
  header.top .nav .aed-native-menu[open] summary {border-color:#ffdd00;color:#ffdd00;background:#242424}
  header.top .nav .aed-native-menu[open] .navlinks {
    box-sizing:border-box;
    max-height:min(68vh,calc(100vh - 110px));
    max-height:min(68dvh,calc(100dvh - 110px));
    overflow-y:auto;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
    scrollbar-gutter:stable;
    border-radius:9px;
    width:min(86vw,330px)!important;
    max-width:calc(100vw - 16px)!important;
  }
  header.top .nav .aed-native-menu .navlinks a {
    min-height:44px;
    box-sizing:border-box;
    display:flex!important;
    align-items:center;
    touch-action:manipulation;
  }
  header.top .nav .aed-native-menu .navlinks a:focus-visible,
  header.top .nav .aed-native-menu summary:focus-visible {outline:3px solid #ffdd00!important;outline-offset:2px}
}
/* Ecrans courts en mode paysage : ne pas cacher les derniers liens. */
@media (max-width:1119px) and (max-height:550px) {
 header.top .nav .aed-native-menu[open] .navlinks {
  max-height:calc(100vh - 90px);
  max-height:calc(100dvh - 90px);
 }
}
/* Les ancres ne doivent pas être occultées par l'en-tête collant. */
html {scroll-padding-top:clamp(80px,10vh,105px)}
:target {scroll-margin-top:clamp(80px,10vh,105px)}
