/* V51 — Navigation haute UCF : trois divisions, même système visuel que le footer.
   Un seul cadre gris 2px, angles plats contre le haut et angles arrondis côté site. */
#siteHeader #topNavigation{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  flex:0 1 444px!important;
  width:min(100%,444px)!important;
  max-width:444px!important;
  min-width:0!important;
  margin:0 8px 0 auto!important;
  padding:0!important;
  gap:0!important;
  height:71px!important;
  align-items:stretch!important;
  align-self:flex-start!important;
  border:2px solid #858d95!important;
  border-top:0!important;
  border-radius:0!important;
  background:linear-gradient(180deg,#111a22,#080d13)!important;
  box-shadow:0 3px 0 #0006,inset 0 1px #ffffff1b!important;
  position:relative!important;
  top:auto!important;left:auto!important;right:auto!important;
  isolation:isolate!important;
  overflow:hidden!important;
}
#siteHeader #topNavigation::before,#siteHeader #topNavigation::after{display:none!important;content:none!important}
#siteHeader #topNavigation .top-nav-item.bottom-item{
  display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;
  position:relative!important;min-width:0!important;max-width:none!important;
  width:100%!important;height:100%!important;min-height:0!important;
  gap:5px!important;padding:6px 5px!important;
  background:transparent!important;border:0!important;border-radius:0!important;
  color:#d9e2e9!important;text-shadow:none!important;clip-path:none!important;
  box-shadow:none!important;white-space:normal!important;
  font-size:11px!important;font-weight:850!important;line-height:1.2!important;
  transition:background .16s,color .16s!important;
}
#siteHeader #topNavigation .top-nav-item.bottom-item:not(:last-child){border-right:1px solid #56616b!important}
#siteHeader #topNavigation .top-nav-item.bottom-item:hover,
#siteHeader #topNavigation .top-nav-item.bottom-item:focus-visible{background:#25323d!important;color:#fff!important}
#siteHeader #topNavigation .top-nav-item.bottom-item.active{
  background:linear-gradient(180deg,#1b222a,#29161b)!important;color:#fff!important;
}
/* La V9 utilisait encore un ancien trapèze ::before au survol : neutralisation définitive. */
#siteHeader #topNavigation .top-nav-item.bottom-item::before,
#siteHeader #topNavigation .top-nav-item.bottom-item:not(.active):is(:hover,:focus-visible)::before{
  content:none!important; display:none!important; opacity:0!important;
  clip-path:none!important; transform:none!important;
}
#siteHeader #topNavigation .top-nav-item.bottom-item.active::before{
  content:""!important;display:block!important;position:absolute!important;
  top:0!important;left:27%!important;right:27%!important;bottom:auto!important;
  height:3px!important;width:auto!important;border:0!important;
  background:var(--ucf-theme-accent,#f24249)!important;
  clip-path:none!important; transform:none!important;
  box-shadow:0 0 9px var(--ucf-theme-accent,#f24249)!important;
}
#siteHeader #topNavigation .top-nav-item.bottom-item::after{display:none!important;content:none!important}
#siteHeader #topNavigation .top-nav-item.bottom-item svg{
  display:block!important;flex:0 0 auto!important;width:21px!important;height:21px!important;
  max-width:21px!important;max-height:21px!important;filter:none!important;color:inherit!important;
}
#siteHeader #topNavigation .top-nav-item.bottom-item.active svg{color:var(--ucf-theme-accent,#f24249)!important}
#siteHeader #topNavigation .top-nav-item.bottom-item span{
  display:block!important;min-width:0!important;max-width:100%!important;
  font-size:clamp(9px,.8vw,11px)!important;font-weight:850!important;
  letter-spacing:0!important;line-height:1.2!important;white-space:normal!important;
  overflow-wrap:anywhere!important;text-align:center!important;
}
@media (min-width:821px) and (max-width:1220px){
 #siteHeader #topNavigation{flex-basis:360px!important;width:min(100%,360px)!important;height:61px!important}
 #siteHeader #topNavigation .top-nav-item.bottom-item svg{width:19px!important;height:19px!important}
 #siteHeader #topNavigation .top-nav-item.bottom-item span{font-size:9px!important}
}
@media(max-width:820px){
 #siteHeader #topNavigation{
  position:absolute!important;top:62px!important;left:8px!important;right:8px!important;
  z-index:6!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
  width:calc(100% - 16px)!important;max-width:none!important;flex:auto!important;
  height:53px!important;margin:0!important;
  border:2px solid #858d95!important;border-top:0!important;
  border-radius:0!important;
  background:#090f17!important;
 }
 #siteHeader #topNavigation .top-nav-item.bottom-item{gap:3px!important;padding:3px 2px!important}
 #siteHeader #topNavigation .top-nav-item.bottom-item svg{width:17px!important;height:17px!important}
 #siteHeader #topNavigation .top-nav-item.bottom-item span{font-size:clamp(8px,2vw,10px)!important;line-height:1.1!important}
 /* Sous le logo de l'en-tête et jamais au-dessus du contenu. */
 .body-grid{padding-top:12px!important}
}
@media(max-width:375px){
 #siteHeader #topNavigation{top:58px!important;height:50px!important}
 #siteHeader #topNavigation .top-nav-item.bottom-item span{font-size:8px!important}
}
@media(max-width:820px) and (orientation:landscape) and (max-height:520px){
 #siteHeader #topNavigation{display:none!important}
 .body-grid{padding-top:8px!important}
}
@media(prefers-reduced-motion:reduce){#siteHeader #topNavigation .top-nav-item.bottom-item{transition:none!important}}
