/* LeCatho V212 — correctifs ciblés demandés : topbar, centrage menu, rail de partage, hamburger mobile. */

/* 1) Barre réseaux : contraste garanti sur le bleu nuit, même face aux anciens styles. */
html body .lca-v212-topbar,
html body .lca-v212-topbar *{
  text-shadow:none!important;
}
html body .lca-v212-topbar .lca-v212-topbar-social .lca-mini-social,
html body .lca-v212-topbar .lca-v212-topbar-social .lca-mini-social:link,
html body .lca-v212-topbar .lca-v212-topbar-social .lca-mini-social:visited,
html body .lca-v212-topbar .lca-v212-topbar-social .lca-mini-social span,
html body .lca-v212-topbar .lca-v212-topbar-social .lca-mini-social svg,
html body .lca-v212-topbar .lca-v212-topbar-social .lca-mini-social svg *{
  color:#F7F9FC!important;
  -webkit-text-fill-color:#F7F9FC!important;
  fill:currentColor!important;
  stroke:currentColor!important;
  opacity:1!important;
}
html body .lca-v212-topbar .lca-v212-topbar-social .lca-mini-social span{
  display:inline!important;
  width:auto!important;
  height:auto!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  font-size:10px!important;
  font-weight:700!important;
  line-height:1!important;
}
html body .lca-v212-topbar .lca-v212-topbar-social .lca-mini-social:hover,
html body .lca-v212-topbar .lca-v212-topbar-social .lca-mini-social:hover span,
html body .lca-v212-topbar .lca-v212-topbar-social .lca-mini-social:hover svg{
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
}

/* 2) Menu desktop : les rubriques sont centrées dans toute la page, indépendamment du profil/recherche. */
html body .lca-v212-menu-shell{
  position:relative!important;
  width:100%!important;
  max-width:var(--lca-site-width,1240px)!important;
  margin-left:auto!important;
  margin-right:auto!important;
  justify-content:center!important;
}
html body .lca-v212-main-nav{
  position:relative!important;
  width:100%!important;
  max-width:none!important;
  margin:0!important;
}
html body .lca-v212-nav-links{
  position:absolute!important;
  left:50%!important;
  top:0!important;
  bottom:0!important;
  transform:translateX(-50%)!important;
  display:flex!important;
  align-items:stretch!important;
  justify-content:center!important;
  flex:0 0 auto!important;
  width:max-content!important;
  max-width:calc(100% - 150px)!important;
  margin:0!important;
}
html body .lca-v212-nav-actions{
  position:absolute!important;
  right:0!important;
  top:50%!important;
  transform:translateY(-50%)!important;
  margin:0!important;
  z-index:2!important;
}

/* Le bouton hamburger appartient désormais à la ligne du logo ; invisible sur desktop. */
html body .lca-v212-brand-shell{position:relative!important}
html body .lca-v212-menu-toggle{display:none!important}

/* 3) Rail de partage : le JS le place juste à gauche de la vraie colonne de texte. */
html body .lca-v210-share-rail{
  margin:0!important;
}

@media (max-width:1180px){
  /* Plus de barre vide sous le logo sur tablette / mobile. */
  html body .lca-v212-menu-row{display:none!important}
  html body .lca-v212-brand-shell{
    min-height:72px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    padding-left:68px!important;
    padding-right:68px!important;
  }
  html body .lca-v212-brand-center{
    width:auto!important;
    max-width:100%!important;
    justify-content:center!important;
  }
  html body .lca-v212-header-support{display:none!important}
  html body .lca-v212-menu-toggle{
    position:absolute!important;
    right:16px!important;
    top:50%!important;
    transform:translateY(-50%)!important;
    display:grid!important;
    place-items:center!important;
    width:42px!important;
    min-width:42px!important;
    height:42px!important;
    min-height:42px!important;
    margin:0!important;
    padding:0!important;
    border:1px solid #D9E0E7!important;
    border-radius:8px!important;
    background:#0A1628!important;
    color:#FFFFFF!important;
    box-shadow:none!important;
    z-index:5!important;
  }
  html body .lca-v212-menu-toggle svg,
  html body .lca-v212-menu-toggle svg *{
    color:#FFFFFF!important;
    fill:currentColor!important;
  }
}

@media (max-width:760px){
  html body .lca-v212-brand-shell{
    min-height:64px!important;
    padding-left:58px!important;
    padding-right:58px!important;
  }
  html body .lca-v212-logo img{max-width:min(220px,62vw)!important}
  html body .lca-v212-menu-toggle{
    right:12px!important;
    width:40px!important;
    min-width:40px!important;
    height:40px!important;
    min-height:40px!important;
  }
}
