/* PFB Premium Editorial 1.7.11
   Correctif ciblé et volontairement autonome : les articles News/Coverage
   utilisent le même comportement de header que les fiches Résultats/Poker Faces.
*/

@media (min-width:1025px){
  /* État initial : le vrai wrapper Rosie #header sort du flux et flotte sur le hero. */
  body.pfb-editorial-single:not(.pfb-header-scrolled) #header,
  body.pfb-editorial-header-active:not(.pfb-header-scrolled) #header{
    position:absolute!important;
    left:0!important;
    right:0!important;
    top:42px!important;
    width:100%!important;
    z-index:9985!important;
    margin:0!important;
    padding:0!important;
    background:transparent!important;
    background-color:transparent!important;
    border:0!important;
    border-bottom:1px solid rgba(255,255,255,.12)!important;
    box-shadow:none!important;
  }

  body.admin-bar.pfb-editorial-single:not(.pfb-header-scrolled) #header,
  body.admin-bar.pfb-editorial-header-active:not(.pfb-header-scrolled) #header{
    top:74px!important;
  }

  /* Rosie applique le blanc à plusieurs niveaux : on neutralise tous les niveaux réels
     du header principal, pas seulement le wrapper extérieur. */
  body.pfb-editorial-single:not(.pfb-header-scrolled) #header > header,
  body.pfb-editorial-single:not(.pfb-header-scrolled) #header > header > .container,
  body.pfb-editorial-single:not(.pfb-header-scrolled) #header .header-wrapper,
  body.pfb-editorial-single:not(.pfb-header-scrolled) #header #nav-primary,
  body.pfb-editorial-single:not(.pfb-header-scrolled) #header #nav-primary > nav,
  body.pfb-editorial-single:not(.pfb-header-scrolled) #header .nav,
  body.pfb-editorial-header-active:not(.pfb-header-scrolled) #header > header,
  body.pfb-editorial-header-active:not(.pfb-header-scrolled) #header > header > .container,
  body.pfb-editorial-header-active:not(.pfb-header-scrolled) #header .header-wrapper,
  body.pfb-editorial-header-active:not(.pfb-header-scrolled) #header #nav-primary,
  body.pfb-editorial-header-active:not(.pfb-header-scrolled) #header #nav-primary > nav,
  body.pfb-editorial-header-active:not(.pfb-header-scrolled) #header .nav{
    background:transparent!important;
    background-color:transparent!important;
    background-image:none!important;
    box-shadow:none!important;
  }

  body.pfb-editorial-single:not(.pfb-header-scrolled) #header:before,
  body.pfb-editorial-single:not(.pfb-header-scrolled) #header:after,
  body.pfb-editorial-single:not(.pfb-header-scrolled) #header > header:before,
  body.pfb-editorial-single:not(.pfb-header-scrolled) #header > header:after,
  body.pfb-editorial-header-active:not(.pfb-header-scrolled) #header:before,
  body.pfb-editorial-header-active:not(.pfb-header-scrolled) #header:after,
  body.pfb-editorial-header-active:not(.pfb-header-scrolled) #header > header:before,
  body.pfb-editorial-header-active:not(.pfb-header-scrolled) #header > header:after{
    content:none!important;
    display:none!important;
    background:transparent!important;
    box-shadow:none!important;
  }

  /* Le hero commence immédiatement après la microbar ; aucune réserve blanche du thème. */
  body.pfb-editorial-single #main,
  body.pfb-editorial-header-active #main{
    margin-top:0!important;
    padding-top:0!important;
  }

  body.pfb-editorial-single .pfbc-article-banner,
  body.pfb-editorial-single .pfbn-article-banner,
  body.pfb-editorial-header-active .pfbc-article-banner,
  body.pfb-editorial-header-active .pfbn-article-banner{
    margin-top:0!important;
    padding-top:0!important;
  }

  /* Navigation blanche sur image, focus rouge. */
  body.pfb-editorial-single:not(.pfb-header-scrolled) #header #nav-primary > nav > ul > li > a,
  body.pfb-editorial-single:not(.pfb-header-scrolled) #header .menu-primary-menu-container > ul > li > a,
  body.pfb-editorial-single:not(.pfb-header-scrolled) #header .menu-item-search > a,
  body.pfb-editorial-single:not(.pfb-header-scrolled) #header .menu-item-side-menu > a,
  body.pfb-editorial-header-active:not(.pfb-header-scrolled) #header #nav-primary > nav > ul > li > a,
  body.pfb-editorial-header-active:not(.pfb-header-scrolled) #header .menu-primary-menu-container > ul > li > a,
  body.pfb-editorial-header-active:not(.pfb-header-scrolled) #header .menu-item-search > a,
  body.pfb-editorial-header-active:not(.pfb-header-scrolled) #header .menu-item-side-menu > a{
    color:#fff!important;
    opacity:1!important;
    text-shadow:0 1px 12px rgba(0,0,0,.82)!important;
  }

  body.pfb-editorial-single:not(.pfb-header-scrolled) #header #nav-primary > nav > ul > li > a:hover,
  body.pfb-editorial-single:not(.pfb-header-scrolled) #header #nav-primary > nav > ul > li.current-menu-item > a,
  body.pfb-editorial-single:not(.pfb-header-scrolled) #header #nav-primary > nav > ul > li.current-menu-ancestor > a,
  body.pfb-editorial-header-active:not(.pfb-header-scrolled) #header #nav-primary > nav > ul > li > a:hover,
  body.pfb-editorial-header-active:not(.pfb-header-scrolled) #header #nav-primary > nav > ul > li.current-menu-item > a,
  body.pfb-editorial-header-active:not(.pfb-header-scrolled) #header #nav-primary > nav > ul > li.current-menu-ancestor > a{
    color:#df2631!important;
  }

  /* Au scroll : comportement premium global, fond noir et texte blanc. */
  body.pfb-editorial-single.pfb-header-scrolled #header,
  body.pfb-editorial-header-active.pfb-header-scrolled #header{
    position:fixed!important;
    left:0!important;
    right:0!important;
    top:42px!important;
    width:100%!important;
    z-index:9985!important;
    margin:0!important;
    background:rgba(4,8,12,.975)!important;
    background-color:rgba(4,8,12,.975)!important;
    border-bottom:1px solid rgba(255,255,255,.08)!important;
    box-shadow:0 12px 30px rgba(0,0,0,.26)!important;
  }

  body.admin-bar.pfb-editorial-single.pfb-header-scrolled #header,
  body.admin-bar.pfb-editorial-header-active.pfb-header-scrolled #header{
    top:74px!important;
  }

  body.pfb-editorial-single.pfb-header-scrolled #header > header,
  body.pfb-editorial-single.pfb-header-scrolled #header > header > .container,
  body.pfb-editorial-single.pfb-header-scrolled #header #nav-primary,
  body.pfb-editorial-single.pfb-header-scrolled #header #nav-primary > nav,
  body.pfb-editorial-header-active.pfb-header-scrolled #header > header,
  body.pfb-editorial-header-active.pfb-header-scrolled #header > header > .container,
  body.pfb-editorial-header-active.pfb-header-scrolled #header #nav-primary,
  body.pfb-editorial-header-active.pfb-header-scrolled #header #nav-primary > nav{
    background:transparent!important;
    background-color:transparent!important;
    box-shadow:none!important;
  }

  body.pfb-editorial-single.pfb-header-scrolled #header #nav-primary > nav > ul > li > a,
  body.pfb-editorial-header-active.pfb-header-scrolled #header #nav-primary > nav > ul > li > a{
    color:#fff!important;
    text-shadow:none!important;
  }

  /* Sous-menus Rosie : le wrapper .sub-container était la source des coins blancs. */
  body.pfb-editorial-single #header .sub-container.non-mega,
  body.pfb-editorial-header-active #header .sub-container.non-mega{
    background:#05070a!important;
    background-color:#05070a!important;
    background-image:linear-gradient(180deg,rgba(10,14,19,.995),rgba(5,8,12,.995))!important;
    border:1px solid rgba(255,255,255,.08)!important;
    border-top:2px solid #df2631!important;
    border-radius:0 0 14px 14px!important;
    box-shadow:0 18px 34px rgba(0,0,0,.42)!important;
    overflow:hidden!important;
  }

  body.pfb-editorial-single #header .sub-container.non-mega:before,
  body.pfb-editorial-single #header .sub-container.non-mega:after,
  body.pfb-editorial-single #header .sub-container.non-mega > ul.sub-menu:before,
  body.pfb-editorial-single #header .sub-container.non-mega > ul.sub-menu:after,
  body.pfb-editorial-header-active #header .sub-container.non-mega:before,
  body.pfb-editorial-header-active #header .sub-container.non-mega:after,
  body.pfb-editorial-header-active #header .sub-container.non-mega > ul.sub-menu:before,
  body.pfb-editorial-header-active #header .sub-container.non-mega > ul.sub-menu:after{
    content:none!important;
    display:none!important;
    border:0!important;
    background:none!important;
    box-shadow:none!important;
  }

  body.pfb-editorial-single #header .sub-container.non-mega > ul.sub-menu,
  body.pfb-editorial-header-active #header .sub-container.non-mega > ul.sub-menu{
    margin:0!important;
    padding:8px 0!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
  }

  body.pfb-editorial-single #header .sub-container.non-mega li > a,
  body.pfb-editorial-header-active #header .sub-container.non-mega li > a{
    display:block!important;
    color:#f7f9fb!important;
    opacity:1!important;
    background:transparent!important;
    text-shadow:none!important;
  }

  body.pfb-editorial-single #header .sub-container.non-mega li > a:hover,
  body.pfb-editorial-single #header .sub-container.non-mega li.current-menu-item > a,
  body.pfb-editorial-single #header .sub-container.non-mega li.current-menu-ancestor > a,
  body.pfb-editorial-header-active #header .sub-container.non-mega li > a:hover,
  body.pfb-editorial-header-active #header .sub-container.non-mega li.current-menu-item > a,
  body.pfb-editorial-header-active #header .sub-container.non-mega li.current-menu-ancestor > a{
    color:#fff!important;
    background:linear-gradient(90deg,rgba(223,38,49,.18),rgba(223,38,49,.04))!important;
    box-shadow:inset 3px 0 0 #df2631!important;
  }
}
