/* ============================================================
 * Menu bitmegamenu (displayMegaMenu) au design goodies.
 * Cible les VRAIES classes rendues : .container-bitmegamenu > .bitmegamenu
 * > nav.cbp-hrmenu.cbp-horizontal > ul > li.cbp-hrmenu-tab > a.nav-link,
 * méga-panneaux .cbp-hrsub / .cbp-hrsub-inner.
 *
 * DURCISSEMENT : le thème PRS028 et le module bitmegamenu injectent des
 * blocs <style> INLINE dans le <head> APRÈS nos <link> (et dans le <body>),
 * ce qui écrase nos règles à spécificité égale. Toutes les règles ci-dessous
 * sont donc préfixées par "body " et la classe conteneur .gp-header-nav est
 * DOUBLÉE sur les règles structurantes, avec !important sur les propriétés
 * critiques de mise en page et d'identité.
 * Les valeurs de design sont INCHANGÉES.
 * ============================================================ */
body .gp-header-nav,
body .gp-header-nav.gp-header-nav{background:#fff!important;background-color:#fff!important}
body .gp-header-nav.gp-header-nav .container-bitmegamenu{
  max-width:1280px!important;width:100%!important;
  margin:0 auto!important;padding:0 40px!important;float:none!important;
}
body .gp-header-nav.gp-header-nav .bitmegamenu{
  background:transparent!important;background-color:transparent!important;
  border:0!important;box-shadow:none!important;
}
body .gp-header-nav.gp-header-nav nav.cbp-hrmenu,
body .gp-header-nav.gp-header-nav nav.cbp-hrmenu.cbp-horizontal{
  background:transparent!important;background-color:transparent!important;border:0!important;
}

/* Rangée de menu : flex, centrée, sans uppercase, espacée
   (bat le font-size:0 et le text-transform:uppercase imposés par le module) */
body .gp-header-nav.gp-header-nav nav.cbp-hrmenu > ul,
body .gp-header-nav.gp-header-nav nav.cbp-hrmenu.cbp-horizontal > ul{
  display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;align-items:center!important;
  justify-content:center!important;gap:2px 6px!important;margin:0!important;padding:6px 0!important;
  list-style:none!important;font-size:14px!important;
  font-family:'Public Sans',system-ui,sans-serif!important;text-transform:none!important;
  background:transparent!important;border:0!important;float:none!important;
}
body .gp-header-nav.gp-header-nav li.cbp-hrmenu-tab{
  float:none!important;margin:0!important;
  list-style:none!important;font-size:14px!important;text-transform:none!important;
  background:transparent!important;border:0!important;
}
body .gp-header-nav.gp-header-nav li.cbp-hrmenu-tab > a,
body .gp-header-nav.gp-header-nav a.nav-link{
  text-transform:none!important;
  font-family:'Public Sans',system-ui,sans-serif!important;
  font-size:14px!important;font-weight:500!important;
  color:var(--gp-text,#1A1D21)!important;
  padding:8px 12px!important;margin:0!important;line-height:1.2!important;
  border-radius:6px!important;white-space:nowrap!important;letter-spacing:0!important;
  display:inline-flex!important;align-items:center!important;gap:6px!important;
  background:transparent!important;background-color:transparent!important;
}
/* Le libellé est rendu dans un span : il doit hériter de la même identité */
body .gp-header-nav.gp-header-nav li.cbp-hrmenu-tab > a > span.cbp-tab-title,
body .gp-header-nav.gp-header-nav a.nav-link span.cbp-tab-title{
  text-transform:none!important;
  font-family:'Public Sans',system-ui,sans-serif!important;
  font-size:14px!important;font-weight:500!important;
  color:inherit!important;letter-spacing:0!important;background:transparent!important;
}
body .gp-header-nav.gp-header-nav li.cbp-hrmenu-tab > a:hover,
body .gp-header-nav.gp-header-nav li.cbp-hrmenu-tab:hover > a,
body .gp-header-nav.gp-header-nav a.nav-link:hover{
  color:var(--gp-primary,#1E4E8C)!important;
  background:var(--gp-blue-bg,#F5F8FC)!important;background-color:var(--gp-blue-bg,#F5F8FC)!important;
}
/* Onglets « float » (pull-right) mis en avant */
body .gp-header-nav.gp-header-nav li.cbp-pulled-right > a,
body .gp-header-nav.gp-header-nav li.pull-right > a,
body .gp-header-nav.gp-header-nav li.cbp-pulled-right > a > span.cbp-tab-title,
body .gp-header-nav.gp-header-nav li.pull-right > a > span.cbp-tab-title{
  color:var(--gp-primary,#1E4E8C)!important;font-weight:700!important;
}

/* Méga-panneaux déroulants : carte blanche, ombre douce */
body .gp-header-nav.gp-header-nav .cbp-hrsub{
  background:transparent!important;background-color:transparent!important;border:0!important;
}
body .gp-header-nav.gp-header-nav .cbp-hrsub-inner,
body .gp-header-nav.gp-header-nav .cbp-hrsub .cbp-hrsub-inner{
  background:#fff!important;background-color:#fff!important;
  border:1px solid var(--gp-line,#E5E7EB)!important;
  border-radius:10px!important;box-shadow:0 12px 32px -8px rgba(16,24,40,.14)!important;
  padding:20px 24px!important;
}
body .gp-header-nav.gp-header-nav .cbp-column-title,
body .gp-header-nav.gp-header-nav .cbp-hrsub h3,
body .gp-header-nav.gp-header-nav .cbp-hrsub .title{
  font-family:'Manrope',sans-serif!important;font-weight:700!important;
  color:var(--gp-text,#1A1D21)!important;text-transform:none!important;font-size:14px!important;
  background:transparent!important;border:0!important;letter-spacing:0!important;
}
/* Listes de liens du panneau : pas de puces, pas de font-size:0 hérité */
body .gp-header-nav.gp-header-nav .cbp-hrsub ul,
body .gp-header-nav.gp-header-nav .cbp-links{
  list-style:none!important;font-size:14px!important;background:transparent!important;
}
body .gp-header-nav.gp-header-nav .cbp-hrsub a,
body .gp-header-nav.gp-header-nav .cbp-links li a{
  color:var(--gp-muted2,#4B5563)!important;font-size:14px!important;text-transform:none!important;
  font-family:'Public Sans',system-ui,sans-serif!important;background:transparent!important;
}
body .gp-header-nav.gp-header-nav .cbp-hrsub a:hover,
body .gp-header-nav.gp-header-nav .cbp-links li a:hover{color:var(--gp-primary,#1E4E8C)!important}

/* Bouton « Menu » (déclencheur vertical) discret */
body .gp-header-nav.gp-header-nav .btn-toggle,
body .gp-header-nav.gp-header-nav .cbp-menu-title{
  color:var(--gp-text,#1A1D21)!important;
  font-family:'Public Sans',system-ui,sans-serif!important;text-transform:none!important;
  background:transparent!important;border:0!important;
}
