/* V174 - En-tete uniforme sur toutes les pages CFA360. */
:root{
  --cfa360-unified-topbar-height:76px;
  --cfa360-unified-blue:#003b71;
  --cfa360-unified-orange:#ff8a1f;
  --cfa360-unified-border:#d8e6f8;
  --cfa360-unified-shadow:0 10px 28px rgba(15,45,84,.12);
}

html.cfa360-header-uniform-v174,
body.cfa360-header-uniform-v174{
  scroll-padding-top:calc(var(--cfa360-unified-topbar-height) + 18px)!important;
}

body.cfa360-header-uniform-v174 .cfa360-topbar{
  min-height:var(--cfa360-unified-topbar-height)!important;
  width:100%!important;
  max-width:none!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:16px!important;
  padding:10px clamp(14px,3vw,32px)!important;
  background:rgba(255,255,255,.98)!important;
  border:0!important;
  border-bottom:1px solid var(--cfa360-unified-border)!important;
  border-radius:0!important;
  box-shadow:var(--cfa360-unified-shadow)!important;
  color:var(--cfa360-unified-blue)!important;
  overflow:visible!important;
  isolation:isolate!important;
}

body.cfa360-header-uniform-v174 .cfa360-topbar::after{
  display:none!important;
  content:none!important;
}

body.cfa360-header-uniform-v174 .cfa360-topbar .cfa360-institution{
  min-width:0!important;
  flex:0 0 auto!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  text-decoration:none!important;
}

body.cfa360-header-uniform-v174 .cfa360-topbar .cfa360-institution img{
  width:auto!important;
  height:54px!important;
  max-width:min(250px,38vw)!important;
  object-fit:contain!important;
  display:block!important;
}

body.cfa360-header-uniform-v174 .cfa360-unified-actions-v174{
  min-width:0!important;
  margin-left:auto!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:10px!important;
  flex-wrap:wrap!important;
}

body.cfa360-header-uniform-v174 .cfa360-topbar .role-top-actions,
body.cfa360-header-uniform-v174 .cfa360-topbar .cfa360-top-actions,
body.cfa360-header-uniform-v174 .cfa360-topbar .admin-top-actions,
body.cfa360-header-uniform-v174 .cfa360-topbar .topbar-actions,
body.cfa360-header-uniform-v174 .cfa360-topbar .bilan-topbar-actions,
body.cfa360-header-uniform-v174 .cfa360-topbar .preuves-topbar-actions,
body.cfa360-header-uniform-v174 .cfa360-topbar .messages-topbar-actions{
  display:contents!important;
}

body.cfa360-header-uniform-v174 .cfa360-topbar .cfa360-top-action-v174,
body.cfa360-header-uniform-v174 .cfa360-topbar a:not(.cfa360-institution),
body.cfa360-header-uniform-v174 .cfa360-topbar button{
  min-height:42px!important;
  max-width:100%!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  padding:0 16px!important;
  border:1px solid var(--cfa360-unified-border)!important;
  border-radius:999px!important;
  background:#fff!important;
  color:var(--cfa360-unified-blue)!important;
  box-shadow:0 8px 20px rgba(0,40,90,.08)!important;
  font:inherit!important;
  font-size:.94rem!important;
  font-weight:900!important;
  line-height:1.1!important;
  letter-spacing:0!important;
  text-decoration:none!important;
  white-space:nowrap!important;
  cursor:pointer!important;
}

body.cfa360-header-uniform-v174 .cfa360-topbar .cfa360-top-action-v174:hover,
body.cfa360-header-uniform-v174 .cfa360-topbar a:not(.cfa360-institution):hover,
body.cfa360-header-uniform-v174 .cfa360-topbar button:hover{
  background:#f4f8ff!important;
  border-color:#bfd5f0!important;
  transform:translateY(-1px)!important;
}

body.cfa360-header-uniform-v174 .cfa360-topbar .role-logout-top,
body.cfa360-header-uniform-v174 .cfa360-topbar .logout-btn,
body.cfa360-header-uniform-v174 .cfa360-topbar .visites-logout-v163,
body.cfa360-header-uniform-v174 .cfa360-topbar [data-cfa360-logout="true"]{
  background:#f8fbff!important;
  border-color:#cfe0f4!important;
}

body.cfa360-header-uniform-v174 .cfa360-topbar[data-cfa360-action-count="many"] .cfa360-top-action-v174,
body.cfa360-header-uniform-v174 .cfa360-topbar[data-cfa360-action-count="many"] a:not(.cfa360-institution),
body.cfa360-header-uniform-v174 .cfa360-topbar[data-cfa360-action-count="many"] button{
  min-height:40px!important;
  padding:0 13px!important;
  font-size:.88rem!important;
}

body.cfa360-header-uniform-v174 .cfa360-hidden-duplicate-hero-v174{
  display:none!important;
}

body.cfa360-header-uniform-v174 .role-hero-zone,
body.cfa360-header-uniform-v174 .apprenti-hero-zone,
body.cfa360-header-uniform-v174 .bilan-hero-zone,
body.cfa360-header-uniform-v174 .preuves-hero-zone,
body.cfa360-header-uniform-v174 .messages-hero-zone{
  max-width:1180px!important;
  margin-left:auto!important;
  margin-right:auto!important;
}

@media(max-width:860px){
  :root{--cfa360-unified-topbar-height:70px;}

  body.cfa360-header-uniform-v174 .cfa360-topbar{
    align-items:flex-start!important;
    gap:10px!important;
    padding:9px 12px!important;
  }

  body.cfa360-header-uniform-v174 .cfa360-topbar .cfa360-institution img{
    height:46px!important;
    max-width:190px!important;
  }

  body.cfa360-header-uniform-v174 .cfa360-unified-actions-v174{
    flex:1 1 auto!important;
    gap:8px!important;
  }

  body.cfa360-header-uniform-v174 .cfa360-topbar .cfa360-top-action-v174,
  body.cfa360-header-uniform-v174 .cfa360-topbar a:not(.cfa360-institution),
  body.cfa360-header-uniform-v174 .cfa360-topbar button{
    min-height:38px!important;
    padding:0 11px!important;
    font-size:.84rem!important;
  }
}

@media(max-width:640px){
  body.cfa360-header-uniform-v174 .cfa360-topbar{
    flex-direction:column!important;
    align-items:stretch!important;
  }

  body.cfa360-header-uniform-v174 .cfa360-unified-actions-v174{
    width:100%!important;
    margin-left:0!important;
    justify-content:flex-start!important;
    flex-wrap:nowrap!important;
    overflow-x:auto!important;
    padding-bottom:4px!important;
    scrollbar-width:thin!important;
  }

  body.cfa360-header-uniform-v174 .cfa360-unified-actions-v174>*{
    flex:0 0 auto!important;
  }
}

@media print{
  body.cfa360-header-uniform-v174 .cfa360-topbar{
    position:static!important;
    box-shadow:none!important;
  }
}
