/* Meta Services : menu natif. Menu déroulant simple (sous-menus créés dans « Modifier le menu »),
   en complément des styles du kit pour .hv-nav-group / .hv-nav-dropdown. */
.ms-nav-simple ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 8px;
  list-style: none;
}

.ms-nav-simple a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: #10243f;
  font-weight: 600;
  text-decoration: none;
}

.ms-nav-simple a:is(:hover, :focus-visible, [aria-current=page]) {
  background: #eef3fb;
  color: #163f81;
}

/* Lien de compte : à côté du téléphone sur grand écran, dans le menu mobile sinon. */
.ms-account-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ms-account-link .hv-icon,
.ms-nav-account .hv-icon {
  width: 20px;
  height: 20px;
  flex: none;
}

/* Sélecteur par id : les règles du kit (« .ms-site.ms-page-… .main-nav a ») l'emporteraient
   sinon et réafficheraient ce lien sur ordinateur, en double avec celui de l'en-tête. */
#main-nav .ms-nav-account {
  display: none;
}

/* Compte dans l'en-tête : icône seule sur tous les écrans (le texte reste lu par les lecteurs
   d'écran et s'affiche en infobulle). */
.ms-site .site-header .header-tools a.ms-account-link {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0 !important;
  gap: 0 !important;
}

.ms-site .site-header .header-tools a.ms-account-link > span {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

@media (max-width: 1000px) {
  #main-nav .ms-nav-account {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  /* Petit écran : téléphone et compte réduits à leur icône dans l'en-tête, pour ne pas décaler
     le logo et le bouton de menu. Le texte reste lu par les lecteurs d'écran. */
  .ms-site .site-header .header-tools a.phone {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0 !important;
    gap: 0 !important;
  }

  .ms-site .site-header .header-tools a.phone > span {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
  }
}
