/* Approved navy-and-gold logo. The original raster artwork remains untouched. */
.brand img.sc-logo,
.sc-approved-brand img.sc-logo {
  display: block;
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  max-width: none;
  object-fit: contain;
  background: #fff;
  border: 0;
  border-radius: 7px;
  padding: 0;
  box-shadow: none;
}
.sc-public-header.sc-approved-header .brand img.sc-logo { width: 68px; height: 68px; flex-basis: 68px; }
.sidebar .brand img.sc-logo { width: 56px; height: 56px; flex-basis: 56px; }
html[data-portal-theme="dark"] body.sc-portal-active .brand img.sc-logo {
  background: #fff;
  border-radius: 7px;
  outline: 1px solid rgba(222, 232, 246, .08);
  outline-offset: 0;
  filter: none;
}
@media (max-width: 760px) {
  .brand img.sc-logo,
  .sc-public-header.sc-approved-header .brand img.sc-logo { width: 54px; height: 54px; flex-basis: 54px; }
  .sidebar .brand img.sc-logo { width: 52px; height: 52px; flex-basis: 52px; }
}
@media (max-width: 600px) {
  .sc-public-header:not(.sc-approved-header) .brand img.sc-logo { width: 46px; height: 46px; flex-basis: 46px; }
}
@media (max-width: 380px) {
  .sc-public-header.sc-approved-header .brand img.sc-logo { width: 47px; height: 47px; flex-basis: 47px; }
}

/* The wordmark shares the navy outline of the approved logo. */
#app .brand.sc-approved-brand .brand-name{color:#1c3354!important;-webkit-text-fill-color:#1c3354}
html[data-portal-theme="dark"] body.sc-portal-active #app .brand.sc-approved-brand .brand-name{color:#aac0db!important;-webkit-text-fill-color:#aac0db}


/* Transparent logo construction scene: sidebar for members, heading for admin. */
.sc-portal-logo-scene{--lw-navy:#1c3354;--lw-workwear:#203b5e;--lw-gold:#b8944b;display:block;flex-shrink:0;margin:0;padding:0;background:none!important;border:0!important;outline:0!important;border-radius:0!important;box-shadow:none!important;pointer-events:none;user-select:none;line-height:0}
.sc-portal-logo-scene>svg{display:block!important;width:100%!important;height:100%!important;overflow:visible;shape-rendering:geometricPrecision}
.sc-portal-logo-scene--brand{width:76px;height:80px;flex-basis:76px}
.sc-portal-logo-scene--heading{width:154px;height:112px;flex-basis:154px;margin-left:auto}
.sidebar .brand.sc-brand-animated{padding-inline:0;gap:8px;min-width:0;align-items:center}
.sidebar .brand.sc-brand-animated .brand-name{min-width:0;line-height:1.17}
.sc-lw-hammer{transform-box:view-box;transform-origin:24px 57px;animation:sc-lw-hammer 4.2s ease-in-out infinite}
.sc-lw-painter{transform-box:view-box;transform-origin:102px 77px;animation:sc-lw-roll 5.6s ease-in-out infinite}
@keyframes sc-lw-hammer{0%,36%,100%{transform:rotate(0)}12%{transform:rotate(-15deg)}17%{transform:rotate(5deg)}25%{transform:rotate(-11deg)}30%{transform:rotate(3deg)}}
@keyframes sc-lw-roll{0%,18%,86%,100%{transform:rotate(0)}38%,66%{transform:rotate(7deg)}52%{transform:rotate(-3deg)}}
html[data-portal-theme="dark"] .sc-portal-logo-scene{--lw-navy:#aac0db;--lw-workwear:#a2bad6;--lw-gold:#c7a464}
@media(min-width:701px){.sc-portal-active .page-heading{align-items:center;gap:22px}.sc-portal-active .page-heading>:first-child{min-width:0}}
@media(max-width:760px){.sc-portal-logo-scene--brand{width:66px;height:70px;flex-basis:66px}.sc-portal-logo-scene--heading{width:124px;height:96px;flex-basis:124px}}
@media(max-width:700px){.sc-portal-logo-scene--heading{display:none}}
@media(prefers-reduced-motion:reduce){.sc-portal-logo-scene *{animation:none!important}}

/* Le même logo animé accompagne l’accueil, avec les couleurs du fond clair. */
.sc-public-header.sc-approved-header .sc-home-brand-animated .sc-portal-logo-scene{
 --lw-navy:#1c3354;--lw-workwear:#203b5e;--lw-gold:#b8944b;width:76px;height:70px;flex-basis:76px;
}
@media(max-width:760px){
 .sc-public-header.sc-approved-header .sc-home-brand-animated .sc-portal-logo-scene{width:64px;height:60px;flex-basis:64px}
}
@media(max-width:380px){
 .sc-public-header.sc-approved-header .sc-home-brand-animated .sc-portal-logo-scene{width:56px;height:54px;flex-basis:56px}
}
