/* =====================================================================
   Header: "top of page" state  (public/css/header-top-state.css)
   - Same header HTML, same items and order; CSS only.
   - body.hdr-top is set by public/js/header-top-state.js only while the
     page is at the top AND the page leaves enough room above its content
     (96px desktop / 156px mobile), so nothing is ever covered.
   - On scroll the class is removed and the current floating pill returns
     exactly as it is. Deleting these two files restores the old header.
   ===================================================================== */
html body .header .navbar.fixed-top,
html body .header .navbar.fixed-top .navbar-brand img,
html body .header .navbar.fixed-top .nav-link,
html body .header .navbar.fixed-top .btn-consultation,
html body .header .navbar.fixed-top .switch-button,
html body .header .navbar.fixed-top .consultation-icon-button,
html body .header .navbar.fixed-top .custom-menu-trigger,
html body .header .navbar.fixed-top .ift-btn{transition:top .28s ease,inset .28s ease,width .28s ease,height .28s ease,min-height .28s ease,border-radius .28s ease,background-color .28s ease,box-shadow .28s ease,max-height .28s ease,max-width .28s ease,font-size .28s ease,padding .28s ease!important}

/* ---------- Desktop (>= 992px): full-bleed bar filling the existing 96px offset ---------- */
@media (min-width:992px){
  html body.hdr-top .header .navbar.fixed-top{top:0!important;left:0!important;right:0!important;inset-inline:0!important;width:100%!important;max-width:none!important;transform:none!important;margin:0!important;height:96px!important;min-height:96px!important;padding-block:0!important;border-radius:0!important;border:0!important;border-bottom:1px solid rgba(255,255,255,.08)!important;box-shadow:none!important;background:linear-gradient(180deg,rgba(11,9,24,.88),rgba(11,9,24,.45))!important}
  html body.hdr-top .header .navbar.fixed-top>.container{margin-inline:auto!important;padding-inline:24px!important;column-gap:20px!important;height:100%}
  /* one clear primary action */
  html body.hdr-top .header .navbar.fixed-top .btn-consultation{height:44px!important;padding-inline:18px!important;font-size:14px!important}
  html body.hdr-top .header .navbar.fixed-top #mode-toggle{width:44px!important;height:44px!important}
}
/* Logo / menu sizes per width (below 1200px the current sizes are kept, only the bar changes) */
@media (min-width:1400px){
  /* content aligned to the page grid (.container = 1320px) instead of the 1420px pill */
  html body.hdr-top .header .navbar.fixed-top>.container{max-width:1320px!important;padding-inline:12px!important}
  html body.hdr-top .header .navbar.fixed-top .navbar-brand img.header-light-logo{height:44px!important;max-height:44px!important;max-width:170px!important}
  html body.hdr-top .header .navbar.fixed-top .navbar-nav .nav-link{font-size:14px!important;padding-inline:6px!important}
}
@media (min-width:1200px) and (max-width:1399.98px){
  html body.hdr-top .header .navbar.fixed-top .navbar-brand img.header-light-logo{height:38px!important;max-height:38px!important;max-width:150px!important}
  html body.hdr-top .header .navbar.fixed-top .navbar-nav .nav-link{font-size:13.5px!important;padding-inline:5px!important}
}
@media (min-width:992px) and (max-width:1199.98px){
  html body.hdr-top .header .navbar.fixed-top .navbar-brand img.header-light-logo{height:28px!important;max-height:28px!important;max-width:110px!important}
}

/* ---------- Mobile: the current pill header stays as it is. Only the empty band under it
   is removed: Arabic pages already push the body down 80px (.home-rtl) and the breadcrumbs
   section added another 76px, leaving a 92px empty band below the 64px pill. ---------- */
@media (max-width:990px){
  html body.home-rtl .breadcrumbs{margin-top:0!important}
}

/* ---------- Light mode: same structure, light surface ---------- */
@media (min-width:992px){
  html body.hdr-top.light-mode .header .navbar.fixed-top{background:linear-gradient(180deg,rgba(255,255,255,.94),rgba(255,255,255,.7))!important;border-bottom-color:rgba(17,11,41,.08)!important}
}

/* no animation on the very first application (avoids a pill -> bar animation on load) */
html body.hdr-no-anim .header .navbar.fixed-top,
html body.hdr-no-anim .header .navbar.fixed-top *{transition:none!important}

/* =====================================================================
   Navbar organisation (all states, same elements and order).
   - Readable sizes: logo and menu text were 84x24px / 11.5-12.5px.
   - One control height (36px desktop, 40px mobile touch targets).
   - The last two items (careers + language) form a quieter secondary group.
   ===================================================================== */
@media (min-width:992px){
  html body .header .navbar.fixed-top .navbar-brand img.header-light-logo{height:32px!important;max-height:32px!important;width:auto!important;max-width:130px!important}
  html body .header .navbar.fixed-top .navbar-nav .nav-link{font-size:13.5px!important;padding-inline:5px!important;line-height:36px!important;padding-block:0!important}
  html body .header .navbar.fixed-top .nav-link-free-service,
  html body .header .navbar.fixed-top .ift-btn{height:36px!important;padding-block:0!important;display:inline-flex!important;align-items:center!important}
  html body .header .navbar.fixed-top .nav-link-free-service .nav-free-badge{display:inline-flex!important;align-items:center!important;height:36px!important;line-height:1!important}
  html body .header .navbar.fixed-top .btn-consultation{height:36px!important;padding-block:0!important}
  html body .header .navbar.fixed-top #mode-toggle{width:36px!important;height:36px!important}
  /* secondary group: careers + language */
  html body .header .navbar.fixed-top #navbar > li.nav-item:nth-last-child(2){margin-inline-start:6px!important;padding-inline-start:8px!important;border-inline-start:1px solid rgba(128,112,200,.28)!important}
  html body .header .navbar.fixed-top #navbar > li.nav-item:nth-last-child(-n+2) .nav-link{font-size:12.5px!important;opacity:.78}
  html body .header .navbar.fixed-top #navbar > li.nav-item:nth-last-child(-n+2) .nav-link:hover{opacity:1}
}
@media (min-width:1400px){
  html body .header .navbar.fixed-top .navbar-brand img.header-light-logo{height:34px!important;max-height:34px!important;max-width:140px!important}
  html body .header .navbar.fixed-top .navbar-nav .nav-link{font-size:14px!important;padding-inline:7px!important}
}
@media (min-width:992px) and (max-width:1199.98px){
  html body .header .navbar.fixed-top .navbar-brand img.header-light-logo{height:28px!important;max-height:28px!important;max-width:110px!important}
  html body .header .navbar.fixed-top .navbar-nav .nav-link{font-size:12.5px!important;padding-inline:3px!important}
  html body .header .navbar.fixed-top #navbar > li.nav-item:nth-last-child(2){margin-inline-start:2px!important;padding-inline-start:4px!important}
}
/* Mobile: clearer logo, 40px touch targets */
@media (max-width:991.98px){
  html body .header .navbar.fixed-top .navbar-brand img.header-light-logo{height:28px!important;max-height:28px!important;width:auto!important;max-width:110px!important}
  html body .header .navbar.fixed-top .consultation-icon-button,
  html body .header .navbar.fixed-top .custom-menu-trigger,
  html body .header .navbar.fixed-top #mode-toggle-mobile{width:40px!important;height:40px!important;min-width:40px!important}
  html body .header .navbar.fixed-top .ift-btn--mobile{height:40px!important;padding-block:0!important}
}
@media (max-width:374.98px){
  html body .header .navbar.fixed-top .navbar-brand{margin-inline:0!important}
  html body .header .navbar.fixed-top .navbar-brand img.header-light-logo{height:24px!important;max-height:24px!important;max-width:92px!important;flex-shrink:0!important}
  html body .header .navbar.fixed-top .consultation-icon-button,
  html body .header .navbar.fixed-top .custom-menu-trigger,
  html body .header .navbar.fixed-top #mode-toggle-mobile{width:38px!important;height:38px!important;min-width:38px!important}
  html body .header .navbar.fixed-top .ift-btn--mobile{height:38px!important;padding-inline:8px!important;gap:4px!important;font-size:12.5px!important}
  html body .header .navbar.fixed-top > .container > .d-lg-none{gap:4px!important}
  html body .header .navbar.fixed-top > .container{column-gap:4px!important;gap:4px!important;padding-inline:9px!important}
}
@media (max-width:359.98px){
  html body .header .navbar.fixed-top .navbar-brand img.header-light-logo{height:21px!important;max-height:21px!important;max-width:76px!important}
  html body .header .navbar.fixed-top .consultation-icon-button,
  html body .header .navbar.fixed-top .custom-menu-trigger,
  html body .header .navbar.fixed-top #mode-toggle-mobile{width:36px!important;height:36px!important;min-width:36px!important}
  html body .header .navbar.fixed-top .ift-btn--mobile{height:36px!important;padding-inline:8px!important;font-size:12px!important}
  html body .header .navbar.fixed-top .ift-btn--mobile .ift-chev{display:none!important}
  html body .header .navbar.fixed-top > .container > .d-lg-none{gap:3px!important}
  html body .header .navbar.fixed-top > .container{column-gap:3px!important;gap:3px!important;padding-inline:8px!important}
}
@media (max-width:334.98px){
  html body .header .navbar.fixed-top .navbar-brand img.header-light-logo{height:19px!important;max-height:19px!important;max-width:66px!important}
  html body .header .navbar.fixed-top .consultation-icon-button,
  html body .header .navbar.fixed-top .custom-menu-trigger,
  html body .header .navbar.fixed-top #mode-toggle-mobile{width:34px!important;height:34px!important;min-width:34px!important}
}
