/* V179 - 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-v179,
body.cfa360-header-uniform-v179{
  scroll-padding-top:calc(var(--cfa360-unified-topbar-height) + 18px)!important;
}

body.cfa360-header-uniform-v179 .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-v179 .cfa360-topbar::after{
  display:none!important;
  content:none!important;
}

body.cfa360-header-uniform-v179 .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-v179 .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-v179 .cfa360-unified-actions-v179{
  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-v179 .cfa360-topbar .role-top-actions,
body.cfa360-header-uniform-v179 .cfa360-topbar .cfa360-top-actions,
body.cfa360-header-uniform-v179 .cfa360-topbar .admin-top-actions,
body.cfa360-header-uniform-v179 .cfa360-topbar .topbar-actions,
body.cfa360-header-uniform-v179 .cfa360-topbar .bilan-topbar-actions,
body.cfa360-header-uniform-v179 .cfa360-topbar .preuves-topbar-actions,
body.cfa360-header-uniform-v179 .cfa360-topbar .messages-topbar-actions{
  display:contents!important;
}

body.cfa360-header-uniform-v179 .cfa360-topbar .cfa360-top-action-v179,
body.cfa360-header-uniform-v179 .cfa360-topbar a:not(.cfa360-institution),
body.cfa360-header-uniform-v179 .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-v179 .cfa360-topbar .cfa360-top-action-v179:hover,
body.cfa360-header-uniform-v179 .cfa360-topbar a:not(.cfa360-institution):hover,
body.cfa360-header-uniform-v179 .cfa360-topbar button:hover{
  background:#f4f8ff!important;
  border-color:#bfd5f0!important;
  transform:translateY(-1px)!important;
}

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

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

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

body.cfa360-header-uniform-v179 .role-hero-zone,
body.cfa360-header-uniform-v179 .apprenti-hero-zone,
body.cfa360-header-uniform-v179 .bilan-hero-zone,
body.cfa360-header-uniform-v179 .preuves-hero-zone,
body.cfa360-header-uniform-v179 .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-v179 .cfa360-topbar{
    align-items:flex-start!important;
    gap:10px!important;
    padding:9px 12px!important;
  }

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

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

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

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

  body.cfa360-header-uniform-v179 .cfa360-unified-actions-v179{
    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-v179 .cfa360-unified-actions-v179>*{
    flex:0 0 auto!important;
  }
}

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

/* V179 - En-tete de page aligne sur la reference visuelle.
   Le logo reste centre, le texte commence au meme niveau que les premiers cadres. */
:root{
  --cfa360-reference-width:1024px;
  --cfa360-reference-gutter:38px;
  --cfa360-page-logo-width:310px;
  --cfa360-page-logo-height:98px;
}

body.cfa360-header-uniform-v179 .cfa360-role-home,
body.cfa360-header-uniform-v179 .cfa360-apprenti-home,
body.cfa360-header-uniform-v179 .formateur-flow-home,
body.cfa360-header-uniform-v179 .formateur-domain-home,
body.cfa360-header-uniform-v179 .formateur-competence-shell,
body.cfa360-header-uniform-v179 .bilan-page-shell,
body.cfa360-header-uniform-v179 .cfa360-preuves-home{
  width:min(var(--cfa360-reference-width), calc(100% - var(--cfa360-reference-gutter)))!important;
  max-width:var(--cfa360-reference-width)!important;
  margin-left:auto!important;
  margin-right:auto!important;
}

body.cfa360-header-uniform-v179 .role-hero-zone,
body.cfa360-header-uniform-v179 .apprenti-hero-zone,
body.cfa360-header-uniform-v179 .bilan-hero-zone,
body.cfa360-header-uniform-v179 .preuves-hero-zone,
body.cfa360-header-uniform-v179 .messages-hero-zone,
body.cfa360-header-uniform-v179 .visites-hero-v163{
  width:min(var(--cfa360-reference-width), calc(100% - var(--cfa360-reference-gutter)))!important;
  max-width:var(--cfa360-reference-width)!important;
  margin:0 auto 28px!important;
  padding:28px 0 0!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  justify-content:flex-start!important;
  text-align:left!important;
  color:#fff!important;
  box-sizing:border-box!important;
}

body.cfa360-header-uniform-v179 .cfa360-role-home > .role-hero-zone,
body.cfa360-header-uniform-v179 .cfa360-apprenti-home > .apprenti-hero-zone,
body.cfa360-header-uniform-v179 .bilan-page-shell > .bilan-hero-zone,
body.cfa360-header-uniform-v179 .cfa360-preuves-home > .preuves-hero-zone{
  width:100%!important;
  max-width:100%!important;
}

body.cfa360-header-uniform-v179 .role-main-logo,
body.cfa360-header-uniform-v179 .apprenti-main-logo,
body.cfa360-header-uniform-v179 .bilan-hero-logo,
body.cfa360-header-uniform-v179 .preuves-hero-logo,
body.cfa360-header-uniform-v179 .messages-hero-logo,
body.cfa360-header-uniform-v179 .visites-hero-logo-v163{
  width:min(var(--cfa360-page-logo-width), 72vw)!important;
  height:var(--cfa360-page-logo-height)!important;
  max-width:min(var(--cfa360-page-logo-width), 72vw)!important;
  max-height:var(--cfa360-page-logo-height)!important;
  margin:0 auto 18px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  object-fit:contain!important;
  object-position:center!important;
  filter:drop-shadow(0 16px 30px rgba(0,0,0,.18))!important;
  flex:0 0 auto!important;
}

body.cfa360-header-uniform-v179 .visites-hero-logo-v163 img{
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  object-position:center!important;
  display:block!important;
}

body.cfa360-header-uniform-v179 .role-heading-row,
body.cfa360-header-uniform-v179 .autoeval-heading-row,
body.cfa360-header-uniform-v179 .bilan-title-block,
body.cfa360-header-uniform-v179 .preuves-heading-row,
body.cfa360-header-uniform-v179 .messages-heading-row,
body.cfa360-header-uniform-v179 .visites-hero-text-v163{
  width:100%!important;
  max-width:100%!important;
  margin:0!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  justify-content:flex-start!important;
  gap:0!important;
  text-align:left!important;
}

body.cfa360-header-uniform-v179 .role-heading-text{
  width:100%!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  text-align:left!important;
}

body.cfa360-header-uniform-v179 .role-kicker,
body.cfa360-header-uniform-v179 .apprenti-kicker,
body.cfa360-header-uniform-v179 .bilan-eyebrow,
body.cfa360-header-uniform-v179 .preuves-kicker,
body.cfa360-header-uniform-v179 .messages-kicker,
body.cfa360-header-uniform-v179 .visites-hero-text-v163 .eyebrow{
  margin:0 0 7px!important;
  color:var(--cfa360-unified-orange)!important;
  font-size:.92rem!important;
  font-weight:950!important;
  line-height:1.15!important;
  letter-spacing:.04em!important;
  text-transform:uppercase!important;
  text-align:left!important;
}

body.cfa360-header-uniform-v179 .role-user-name,
body.cfa360-header-uniform-v179 .role-hero-zone h1,
body.cfa360-header-uniform-v179 .bilan-student-name,
body.cfa360-header-uniform-v179 .preuves-student-name,
body.cfa360-header-uniform-v179 .messages-user-name,
body.cfa360-header-uniform-v179 .visites-hero-text-v163 h1{
  margin:0!important;
  color:#fff!important;
  font-size:clamp(2rem, 2.4vw, 2.35rem)!important;
  font-weight:950!important;
  line-height:1.05!important;
  letter-spacing:0!important;
  text-align:left!important;
  text-shadow:0 14px 34px rgba(0,0,0,.16)!important;
}

body.cfa360-header-uniform-v179 .role-lead,
body.cfa360-header-uniform-v179 .apprenti-lead,
body.cfa360-header-uniform-v179 .bilan-page-context-v88,
body.cfa360-header-uniform-v179 .preuves-lead,
body.cfa360-header-uniform-v179 .messages-lead,
body.cfa360-header-uniform-v179 .visites-hero-text-v163 p:not(.eyebrow){
  width:min(650px, 100%)!important;
  max-width:650px!important;
  margin:8px 0 0!important;
  color:rgba(255,255,255,.94)!important;
  font-size:1rem!important;
  font-weight:800!important;
  line-height:1.32!important;
  letter-spacing:0!important;
  text-align:left!important;
}

body.cfa360-header-uniform-v179 .visites-hero-actions-v163{
  width:100%!important;
  margin:18px 0 0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:10px!important;
  flex-wrap:wrap!important;
}

body.cfa360-header-uniform-v179[data-role="formateur"][data-flow-page="setup"] .role-hero-zone,
body.cfa360-header-uniform-v179[data-role="formateur"][data-flow-page="setup"] .formateur-setup-start{
  width:min(var(--cfa360-reference-width), 100%)!important;
  max-width:var(--cfa360-reference-width)!important;
  margin-left:auto!important;
  margin-right:auto!important;
}

body.cfa360-header-uniform-v179[data-role="formateur"][data-flow-page="setup"] .role-heading-row,
body.cfa360-header-uniform-v179[data-role="formateur"][data-flow-page="setup"] .role-heading-text{
  width:100%!important;
  max-width:100%!important;
  margin-left:0!important;
  margin-right:0!important;
  align-items:flex-start!important;
  text-align:left!important;
}

body.cfa360-header-uniform-v179[data-role="formateur"][data-flow-page="setup"] .role-lead{
  width:min(650px, 100%)!important;
  max-width:650px!important;
  margin:8px 0 0!important;
  font-size:16px!important;
  line-height:1.32!important;
  font-weight:800!important;
  text-align:left!important;
}

body.cfa360-header-uniform-v179 .dashboard-header,
body.cfa360-header-uniform-v179 .tutor-header,
body.cfa360-header-uniform-v179 .tuteur-simple-header,
body.cfa360-header-uniform-v179 .visites-header{
  max-width:var(--cfa360-reference-width)!important;
  margin-left:auto!important;
  margin-right:auto!important;
}

@media(max-width:760px){
  :root{
    --cfa360-reference-gutter:24px;
    --cfa360-page-logo-width:242px;
    --cfa360-page-logo-height:78px;
  }

  body.cfa360-header-uniform-v179 .role-hero-zone,
  body.cfa360-header-uniform-v179 .apprenti-hero-zone,
  body.cfa360-header-uniform-v179 .bilan-hero-zone,
  body.cfa360-header-uniform-v179 .preuves-hero-zone,
  body.cfa360-header-uniform-v179 .messages-hero-zone,
  body.cfa360-header-uniform-v179 .visites-hero-v163{
    padding-top:18px!important;
    margin-bottom:22px!important;
  }

  body.cfa360-header-uniform-v179 .role-user-name,
  body.cfa360-header-uniform-v179 .role-hero-zone h1,
  body.cfa360-header-uniform-v179 .bilan-student-name,
  body.cfa360-header-uniform-v179 .preuves-student-name,
  body.cfa360-header-uniform-v179 .messages-user-name,
  body.cfa360-header-uniform-v179 .visites-hero-text-v163 h1{
    font-size:clamp(1.75rem, 8vw, 2.15rem)!important;
  }
}
