/*
 * Virtual Hall® — navigation compacte et centrée, portrait et paysage.
 * L'espacement visuel est réduit sans faire chevaucher les zones tactiles.
 */
#header-test ul.flex {
  gap: 12px;
  gap: clamp(4px, .75vw, 12px);
}

#header-test ul.flex > li {
  display: flex;
  align-items: center;
}

#header-test ul.flex > li > button:not(.current) {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  line-height: 1;
  vertical-align: middle;
}

#header-test ul.flex > li > button:not(.current) > svg {
  display: block;
  flex: 0 0 auto;
  margin: 0;
}

/* Même palette d'icônes sur téléphone portrait et téléphone paysage. */
@media (max-width: 767px), (max-width: 1023px) and (max-height: 600px) and (orientation: landscape) {
  #header-test ul.flex {
    gap: 0;
    padding: 12px 8px;
  }

  #header-test ul.flex > li:first-child > a {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    margin: 0;
    padding: 0;
    gap: 0;
    line-height: 1;
  }

  #header-test ul.flex > li:first-child > a > svg {
    display: block;
    flex: 0 0 auto;
    margin: 0;
  }

  /* Le libellé reste accessible aux lecteurs d'écran. */
  #header-test ul.flex > li:first-child > a > span {
    display: inline-block;
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }

  #header-test ul.flex .vh-language-nav-item button.current {
    box-sizing: border-box;
    width: 63px;
    min-width: 63px;
    min-height: 44px;
    padding-right: 4px;
    padding-left: 4px;
  }
}

@media (max-width: 359px) {
  #header-test ul.flex > li > button:not(.current),
  #header-test ul.flex > li:first-child > a {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
  }
}
