/* =========================================================
   RESET LOCAL
========================================================= */

#ff-pro-header,
#ff-pro-header *,
#ff-pro-header *::before,
#ff-pro-header *::after{
  box-sizing:border-box;
}

#ff-pro-header{
  --ffp-header-space:126px;
  --ffp-green:#1b2421;
  --ffp-green-dark:#111815;
  --ffp-green-deep:#0b100e;
  --ffp-orange:#f28a00;
  --ffp-orange-light:#ffad24;
  --ffp-white:#fff;
  --ffp-ink:#0a1712;
  --ffp-muted:#68746e;

  position:sticky;
  top:0;
  width:100%;
  z-index:999999;
  font-family:Arial,Helvetica,sans-serif;
}

#ff-pro-header a{
  text-decoration:none;
}

#ff-pro-header button{
  font:inherit;
}

/* =========================================================
   CONTAINER
========================================================= */

#ff-pro-header .ffp-container{
  width:min(1440px,calc(100% - 72px));
  margin:0 auto;
}

/* =========================================================
   TOP STRIP
========================================================= */

#ff-pro-header .ffp-top-strip{
  height:34px;
  background:rgba(2,24,17,.94);
  color:#fff;
  border-bottom:1px solid rgba(255,255,255,.09);
  transition:
    background .35s ease,
    transform .35s ease,
    opacity .35s ease;
}

#ff-pro-header .ffp-top-inner{
  height:34px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

#ff-pro-header .ffp-top-brand{
  font-size:9px;
  font-weight:800;
  letter-spacing:.17em;
  text-transform:uppercase;
  opacity:.9;
}

#ff-pro-header .ffp-top-links{
  display:flex;
  align-items:center;
  gap:20px;
}

#ff-pro-header .ffp-top-links a,
#ff-pro-header .ffp-lang{
  color:#fff;
  font-size:8px;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
}

#ff-pro-header .ffp-lang{
  padding-left:15px;
  border-left:1px solid rgba(255,255,255,.2);
}

#ff-pro-header .ffp-lang-muted{
  opacity:.4;
  padding-left:0;
  border-left:0;
}

/* =========================================================
   MAIN HEADER
========================================================= */

#ff-pro-header .ffp-main{
  height:92px;
  background:linear-gradient(180deg,#ffffff 0%,#f7f8f6 58%,#eef1ee 100%);
  border-bottom:1px solid rgba(17,24,21,.10);
  box-shadow:0 10px 30px rgba(11,16,14,.10);
  transition:
    background .35s ease,
    border-color .35s ease,
    box-shadow .35s ease,
    height .35s ease;
}

#ff-pro-header .ffp-main-inner{
  height:100%;
  display:flex;
  align-items:center;
  gap:35px;
}

/* =========================================================
   LOGO
========================================================= */

#ff-pro-header .ffp-logo{
  flex:0 0 auto;
  width:112px;
  height:76px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(145deg,#ffffff 0%,#f7f8f6 60%,#ecefec 100%);
  border:1px solid rgba(17,24,21,.10);
  border-radius:0 0 10px 10px;
  padding:8px 10px;
  box-shadow:0 12px 28px rgba(11,16,14,.12);
  transition:
    width .35s ease,
    height .35s ease,
    box-shadow .35s ease;
}

#ff-pro-header .ffp-logo img{
  width:100%;
  height:100%;
  display:block;
  object-fit:contain;
}

/* =========================================================
   QUICK NAV
========================================================= */

#ff-pro-header .ffp-quick-nav{
  flex:1 1 auto;
  display:flex;
  align-items:center;
  gap:30px;
}

#ff-pro-header .ffp-quick-nav a{
  position:relative;
  color:#17201c;
  font-size:10px;
  font-weight:800;
  letter-spacing:.1em;
  text-transform:uppercase;
  transition:color .25s ease;
}

#ff-pro-header .ffp-quick-nav a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-10px;
  width:0;
  height:2px;
  background:var(--ffp-orange);
  transition:width .25s ease;
}

#ff-pro-header .ffp-quick-nav a:hover::after{
  width:100%;
}

/* =========================================================
   ACTIONS
========================================================= */

#ff-pro-header .ffp-actions{
    margin-left: auto;
  flex:0 0 auto;
  display:flex;
  align-items:center;
  gap:11px;
}

#ff-pro-header .ffp-match-btn{
  min-height:44px;
  padding:0 19px;
  display:flex;
  align-items:center;
  gap:9px;
  background:var(--ffp-orange);
  color:#102018;
  font-size:9px;
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
  transition:
    transform .2s ease,
    background .2s ease;
}

#ff-pro-header .ffp-match-btn:hover{
  transform:translateY(-2px);
  background:var(--ffp-orange-light);
}

#ff-pro-header .ffp-live-dot{
  width:7px;
  height:7px;
  border-radius:50%;
  background:#fff;
  box-shadow:0 0 0 4px rgba(255,255,255,.18);
}

#ff-pro-header .ffp-menu-trigger{
  min-width:112px;
  height:44px;
  padding:0 15px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  border:1px solid rgba(255,255,255,.5);
  background:rgba(0,0,0,.12);
  color:#fff;
  cursor:pointer;
  transition:
    background .25s ease,
    color .25s ease,
    border-color .25s ease;
}

#ff-pro-header .ffp-menu-label{
  font-size:9px;
  font-weight:900;
  letter-spacing:.13em;
  text-transform:uppercase;
}

#ff-pro-header .ffp-menu-icon{
  width:22px;
  height:17px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}

#ff-pro-header .ffp-menu-icon i{
  display:block;
  width:100%;
  height:2px;
  background:currentColor;
  transition:transform .25s ease,opacity .25s ease;
}

/* =========================================================
   SCROLLED HEADER
========================================================= */

#ff-pro-header.ffp-scrolled .ffp-top-strip{
  background:var(--ffp-green-dark);
}

#ff-pro-header.ffp-scrolled .ffp-main{
  height:78px;
  background:linear-gradient(180deg,#f8f9f7 0%,#eef1ee 100%);
  border-bottom-color:rgba(17,24,21,.10);
  box-shadow:0 12px 35px rgba(11,16,14,.14);
}

#ff-pro-header.ffp-scrolled .ffp-logo{
  width:96px;
  height:66px;
  background:linear-gradient(145deg,#ffffff 0%,#f7f8f6 60%,#ecefec 100%);
  border-color:rgba(17,24,21,.10);
  box-shadow:0 8px 20px rgba(0,0,0,.22);
}

#ff-pro-header.ffp-scrolled .ffp-quick-nav a{
  color:#17201c;
}

#ff-pro-header.ffp-scrolled .ffp-menu-trigger{
  background:#17201c;
  border-color:#17201c;
  color:#fff;
}

/* =========================================================
   FULL MENU PANEL
========================================================= */

#ff-pro-header .ffp-menu-panel{
  position:fixed;
  inset:0;
  z-index:1000002;
  background:
    radial-gradient(circle at 85% 20%,rgba(242,138,0,.13),transparent 26%),
    linear-gradient(135deg,#063b29 0%,#03261b 56%,#011811 100%);
  color:#fff;
  overflow:auto;
  transform:translateY(-100%);
  visibility:hidden;
  pointer-events:none;
  transition:
    transform .55s cubic-bezier(.77,0,.18,1),
    visibility .55s ease;
}

#ff-pro-header .ffp-menu-panel.is-open{
  transform:translateY(0);
  visibility:visible;
  pointer-events:auto;
}

#ff-pro-header .ffp-menu-panel-inner{
  min-height:100%;
  padding:28px 0 26px;
  display:flex;
  flex-direction:column;
}

#ff-pro-header .ffp-menu-top{
  width:min(1440px,calc(100% - 72px));
  margin:0 auto;
  padding-bottom:23px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid rgba(255,255,255,.13);
}

#ff-pro-header .ffp-menu-kicker{
  font-size:11px;
  font-weight:900;
  letter-spacing:.22em;
}

#ff-pro-header .ffp-menu-close{
  display:flex;
  align-items:center;
  gap:14px;
  padding:0;
  border:0;
  background:transparent;
  color:#fff;
  cursor:pointer;
}

#ff-pro-header .ffp-menu-close span{
  font-size:9px;
  font-weight:900;
  letter-spacing:.14em;
  text-transform:uppercase;
}

#ff-pro-header .ffp-menu-close b{
  width:40px;
  height:40px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(255,255,255,.35);
  border-radius:50%;
  font-size:25px;
  font-weight:300;
  line-height:1;
}

#ff-pro-header .ffp-menu-content{
  width:min(1440px,calc(100% - 72px));
  margin:auto;
  padding:48px 0;
  display:grid;
  grid-template-columns:310px 1fr;
  gap:70px;
}

#ff-pro-header .ffp-menu-overline{
  display:block;
  margin-bottom:18px;
  color:var(--ffp-orange-light);
  font-size:9px;
  font-weight:900;
  letter-spacing:.2em;
}

#ff-pro-header .ffp-menu-intro h2{
  margin:0 0 22px;
  font-size:clamp(42px,4vw,68px);
  line-height:.94;
  letter-spacing:-.055em;
  font-weight:900;
}

#ff-pro-header .ffp-menu-intro h2 em{
  color:var(--ffp-orange-light);
  font-style:normal;
}

#ff-pro-header .ffp-menu-intro p{
  max-width:300px;
  margin:0;
  color:rgba(255,255,255,.64);
  font-size:12px;
  line-height:1.75;
}

#ff-pro-header .ffp-menu-signature{
  margin-top:42px;
  display:flex;
  align-items:center;
  gap:12px;
  color:rgba(255,255,255,.72);
  font-size:8px;
  font-weight:900;
  letter-spacing:.2em;
}

#ff-pro-header .ffp-menu-signature span{
  width:42px;
  height:1px;
  background:var(--ffp-orange);
}

#ff-pro-header .ffp-mega-nav{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  border-top:1px solid rgba(255,255,255,.14);
  border-left:1px solid rgba(255,255,255,.14);
}

#ff-pro-header .ffp-mega-col{
  min-height:210px;
  padding:22px 24px 24px;
  border-right:1px solid rgba(255,255,255,.14);
  border-bottom:1px solid rgba(255,255,255,.14);
}

#ff-pro-header .ffp-mega-number{
  display:block;
  margin-bottom:18px;
  color:rgba(255,255,255,.35);
  font-size:9px;
  font-weight:900;
  letter-spacing:.16em;
}

#ff-pro-header .ffp-mega-heading{
  width:100%;
  padding:0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border:0;
  background:transparent;
  color:#fff;
  text-align:left;
  cursor:pointer;
  font-size:17px;
  font-weight:900;
  letter-spacing:-.02em;
}

#ff-pro-header .ffp-mega-heading b{
  color:var(--ffp-orange-light);
  font-size:21px;
  font-weight:300;
  transition:transform .25s ease;
}

#ff-pro-header .ffp-mega-col.is-open .ffp-mega-heading b{
  transform:rotate(45deg);
}

#ff-pro-header .ffp-mega-links{
  display:flex;
  flex-direction:column;
  gap:0;
  max-height:0;
  overflow:hidden;
  opacity:0;
  transition:
    max-height .35s ease,
    opacity .25s ease,
    margin-top .25s ease;
}

#ff-pro-header .ffp-mega-col.is-open .ffp-mega-links{
  max-height:260px;
  margin-top:16px;
  opacity:1;
}

#ff-pro-header .ffp-mega-links a{
  padding:6px 0;
  color:rgba(255,255,255,.64);
  font-size:11px;
  line-height:1.35;
  transition:color .2s ease,transform .2s ease;
}

#ff-pro-header .ffp-mega-links a:hover{
  color:#fff;
  transform:translateX(5px);
}

#ff-pro-header .ffp-mega-special{
  background:var(--ffp-orange);
  border-color:var(--ffp-orange);
}

#ff-pro-header .ffp-mega-special .ffp-mega-number{
  color:rgba(0,0,0,.38);
}

#ff-pro-header .ffp-special-link{
  position:relative;
  min-height:145px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  color:#102018;
}

#ff-pro-header .ffp-special-link span{
  font-size:23px;
  font-weight:900;
  letter-spacing:-.04em;
}

#ff-pro-header .ffp-special-link small{
  margin-top:7px;
  font-size:9px;
  font-weight:800;
  line-height:1.5;
  opacity:.62;
}

#ff-pro-header .ffp-special-link b{
  position:absolute;
  right:0;
  bottom:0;
  font-size:27px;
  font-weight:400;
}

#ff-pro-header .ffp-menu-footer{
  width:min(1440px,calc(100% - 72px));
  margin:0 auto;
  padding-top:18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-top:1px solid rgba(255,255,255,.13);
}

#ff-pro-header .ffp-menu-footer span,
#ff-pro-header .ffp-menu-footer a{
  color:rgba(255,255,255,.45);
  font-size:8px;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
}

#ff-pro-header .ffp-menu-footer div{
  display:flex;
  gap:18px;
}

/* =========================================================
   BACKDROP
========================================================= */

#ff-pro-header .ffp-menu-backdrop{
  position:fixed;
  inset:0;
  z-index:1000001;
  background:rgba(0,0,0,.48);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .35s ease,visibility .35s ease;
}

#ff-pro-header.ffp-menu-open .ffp-menu-backdrop{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}

/* =========================================================
   BODY LOCK
========================================================= */

body.ffp-lock{
  overflow:hidden !important;
}

/* =========================================================
   TABLET
========================================================= */

@media(max-width:1050px){

  #ff-pro-header .ffp-quick-nav{
    gap:17px;
  }

  #ff-pro-header .ffp-quick-nav a{
    font-size:9px;
  }

  #ff-pro-header .ffp-match-btn{
    display:none;
  }

  #ff-pro-header .ffp-menu-content{
    grid-template-columns:240px 1fr;
    gap:35px;
  }

  #ff-pro-header .ffp-mega-nav{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

}

/* =========================================================
   MOBILE
========================================================= */

@media(max-width:760px){

  #ff-pro-header .ffp-top-strip{
    display:none;
  }

  #ff-pro-header .ffp-main{
    height:76px;
  }

  #ff-pro-header .ffp-main-inner,
  #ff-pro-header.ffp-scrolled .ffp-main-inner{
    width:100%;
    padding:0 14px;
  }

  #ff-pro-header .ffp-logo,
  #ff-pro-header.ffp-scrolled .ffp-logo{
    width:88px;
    height:62px;
  }

  #ff-pro-header .ffp-quick-nav{
    display:none;
  }

  #ff-pro-header .ffp-actions{
    margin-left:auto;
  }

  #ff-pro-header .ffp-menu-trigger{
    min-width:102px;
  }

  #ff-pro-header .ffp-menu-content{
    width:calc(100% - 32px);
    margin:0 auto;
    padding:35px 0 28px;
    display:block;
  }

  #ff-pro-header .ffp-menu-intro{
    padding-bottom:28px;
  }

  #ff-pro-header .ffp-menu-intro h2{
    font-size:42px;
  }

  #ff-pro-header .ffp-menu-intro p{
    max-width:520px;
  }

  #ff-pro-header .ffp-menu-signature{
    margin-top:25px;
  }

  #ff-pro-header .ffp-mega-nav{
    grid-template-columns:1fr;
  }

  #ff-pro-header .ffp-mega-col{
    min-height:auto;
    padding:20px;
  }

  #ff-pro-header .ffp-mega-links{
    max-height:none;
    display:none;
  }

  #ff-pro-header .ffp-mega-col.is-open .ffp-mega-links{
    display:flex;
    max-height:none;
  }

  #ff-pro-header .ffp-menu-top,
  #ff-pro-header .ffp-menu-footer{
    width:calc(100% - 32px);
  }

  #ff-pro-header .ffp-menu-footer{
    flex-direction:column;
    align-items:flex-start;
    gap:13px;
  }

  #ff-pro-header .ffp-menu-footer div{
    flex-wrap:wrap;
  }

}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media(max-width:450px){

  #ff-pro-header .ffp-logo{
    width:80px;
    height:58px;
  }

  #ff-pro-header .ffp-menu-label{
    display:none;
  }

  #ff-pro-header .ffp-menu-trigger{
    min-width:50px;
    width:50px;
    padding:0;
  }

  #ff-pro-header .ffp-menu-content{
    padding-top:28px;
  }

  #ff-pro-header .ffp-menu-intro h2{
    font-size:37px;
  }

  #ff-pro-header .ffp-menu-close span{
    display:none;
  }

}

/* =========================================================
   REDUCED MOTION
========================================================= */

@media(prefers-reduced-motion:reduce){

  #ff-pro-header *,
  #ff-pro-header *::before,
  #ff-pro-header *::after{
    transition:none !important;
    animation:none !important;
  }

}


/* =========================================================
   MENA A — HEADER MENU INTERACTION FIX
   Le panneau doit toujours être au-dessus du backdrop et
   rester entièrement cliquable.
========================================================= */
#ff-pro-header{
  isolation:isolate;
}
#ff-pro-header .ffp-menu-panel{
  z-index:2147483000 !important;
  position:fixed !important;
  pointer-events:none;
}
#ff-pro-header .ffp-menu-panel.is-open{
  pointer-events:auto !important;
}
#ff-pro-header .ffp-menu-panel-inner,
#ff-pro-header .ffp-menu-top,
#ff-pro-header .ffp-menu-content,
#ff-pro-header .ffp-mega-nav,
#ff-pro-header .ffp-menu-footer{
  position:relative;
  z-index:2;
}
#ff-pro-header .ffp-menu-backdrop{
  z-index:2147482990 !important;
  pointer-events:none !important;
}
#ff-pro-header.ffp-menu-open .ffp-menu-backdrop{
  pointer-events:auto !important;
}
#ff-pro-header .ffp-menu-close,
#ff-pro-header .ffp-mega-heading,
#ff-pro-header .ffp-menu-panel a{
  position:relative;
  z-index:3;
  pointer-events:auto !important;
}
/* Le panneau plein écran doit rester accessible même avec les
   styles du catalogue Mena A chargés après le header. */
#ff-pro-header .ffp-menu-panel *{
  pointer-events:auto;
}
#ff-pro-header .ffp-menu-backdrop *{
  pointer-events:none;
}

/* État ouvert : aucune couche fantôme au-dessus du menu */
#ff-pro-header.ffp-menu-open .ffp-menu-panel{
  visibility:visible !important;
  opacity:1 !important;
  transform:translateY(0) !important;
}

/* Empêche les cartes/lightbox de passer devant le header */
#ff-pro-header ~ #ff-player-lightbox{
  z-index:2147482500;
}


/* =========================================================
   FENIFOOT — HEADER LIGHT PREMIUM
   Header clair pour mieux détacher le logo officiel vert.
   ========================================================= */

#ff-pro-header .ffp-main{
  color:#17201c;
}

#ff-pro-header .ffp-quick-nav a{
  color:#17201c;
}

#ff-pro-header .ffp-quick-nav a:hover{
  color:#063b29;
}

#ff-pro-header .ffp-menu-trigger{
  background:#17201c;
  border-color:#17201c;
  color:#fff;
}

#ff-pro-header .ffp-menu-trigger:hover{
  background:#063b29;
  border-color:#063b29;
}

#ff-pro-header .ffp-logo{
  background:#fff;
  border-color:rgba(17,24,21,.12);
  box-shadow:0 10px 24px rgba(11,16,14,.12);
}

#ff-pro-header.ffp-scrolled .ffp-logo{
  background:#fff;
  border-color:rgba(17,24,21,.10);
}

#ff-pro-header.ffp-scrolled .ffp-main{
  background:#ffffff;
}

#ff-pro-header.ffp-scrolled .ffp-menu-trigger{
  background:#17201c;
  border-color:#17201c;
  color:#fff;
}

#ff-pro-header .ffp-menu-trigger .ffp-menu-icon i{
  background:currentColor;
}

/* Le bouton Match Center conserve l'identité orange */
#ff-pro-header .ffp-match-btn{
  box-shadow:0 6px 16px rgba(242,138,0,.18);
}
