/* RapidFrame-web — alignement langue (KJME)
   Mobile : ne JAMAIS forcer display:flex sur .nav (casse le menu hamburger)
   v=202610121200
*/
header .rf-lang-switcher,
.site-header .rf-lang-switcher,
.rf-head .rf-lang-switcher,
.rf-head-end .rf-lang-switcher,
.nav-right .rf-lang-switcher,
.rf-nav-right .rf-lang-switcher,
.nav-tools .rf-lang-switcher,
.nav-actions .rf-lang-switcher,
.nav > .rf-lang-switcher,
.rf-nav > .rf-lang-switcher,
nav.nav > .rf-lang-switcher,
.actions .rf-lang-switcher,
.rf-actions .rf-lang-switcher{
  display:inline-flex!important;
  flex:0 0 auto!important;
  align-self:center!important;
  align-items:center!important;
  position:relative!important;
  float:none!important;
  clear:none!important;
  inset:auto!important;
  top:auto!important;
  right:auto!important;
  left:auto!important;
  bottom:auto!important;
  transform:none!important;
  width:auto!important;
  min-width:2.75rem!important;
  max-width:12rem!important;
  margin:0!important;
  vertical-align:middle!important;
  visibility:visible!important;
  opacity:1!important;
  pointer-events:auto!important;
  z-index:80!important;
}

.site-header .nav-wrap,
header .nav-wrap,
.site-header .container.nav-wrap{
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:16px!important;
}

/* Desktop only: nav en ligne */
@media (min-width: 901px) {
  .site-header .nav-wrap > .nav,
  .site-header .nav-wrap > #rf-main-menu,
  header .nav-wrap > .nav{
    flex:1 1 auto!important;
    min-width:0!important;
    display:flex!important;
    flex-wrap:nowrap!important;
    align-items:center!important;
  }
}

.site-header .nav-tools,
header .nav-tools,
.nav-tools{
  display:inline-flex!important;
  flex-direction:row!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:.55rem!important;
  flex:0 0 auto!important;
  margin-left:auto!important;
  width:auto!important;
  max-width:none!important;
  position:relative!important;
  float:none!important;
  order:99!important;
}

.nav > .rf-lang-switcher,
.rf-nav > .rf-lang-switcher{
  margin-left:auto!important;
}
.rf-head-end,
.nav-right,
.rf-nav-right,
.nav-actions{
  display:inline-flex!important;
  flex-direction:row!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  align-self:center!important;
  gap:.5rem!important;
  flex:0 0 auto!important;
  width:auto!important;
  max-width:none!important;
  float:none!important;
  margin-left:auto!important;
}

.rf-lang-switcher font,
.rf-lang-switcher font *,
.rfegl-lang-switcher font,
.rfegl-lang-switcher font *{
  font-family:inherit!important;
  font-size:inherit!important;
  font-weight:inherit!important;
  font-style:inherit!important;
  line-height:inherit!important;
  letter-spacing:inherit!important;
  vertical-align:middle!important;
  background:transparent!important;
  color:inherit!important;
  display:inline!important;
  white-space:nowrap!important;
}

@media (max-width:900px){
  .rf-lang-code,.rfegl-lang-label{display:none!important}
  .site-header .nav-wrap{
    flex-wrap:nowrap!important;
  }
  .site-header .nav-tools{
    order:2!important;
    margin-left:0!important;
  }
  /* Menu hamburger : caché sauf .open — ne pas forcer flex */
  .site-header .nav-wrap > .nav:not(.open),
  .site-header .nav-wrap > #rf-main-menu:not(.open),
  header .nav-wrap > .nav:not(.open),
  #rf-main-menu.nav:not(.open){
    display:none!important;
  }
}
