/* LMS 2026 — bandeau privé continu depuis le header.
 * Le bandeau est UN composant pour toutes les routes membre ; seul le titre change. */
html body.lms-navigation-v2.page-shell:has(>main>.member-workspace-hero)>.lms-site-header{
  position:fixed!important;
  background:var(--bg)!important;
  border-bottom:1px solid var(--lms-public-rule,var(--line))!important;
}
/* La ligne du header reste grise, sauf au-dessus du cadre qui s'y raccorde. */
html body.lms-navigation-v2.page-shell:has(>main>.member-workspace-hero)>.lms-site-header::after{
  content:"";position:absolute;left:50%;bottom:-1px;z-index:1;
  width:var(--lms-site-content-frame,min(1180px,calc(100vw - 32px)));height:2px;transform:translateX(-50%);
  background:var(--bg);pointer-events:none;
}
html body.lms-navigation-v2.page-shell main:has(>.member-workspace-hero){
  margin-top:0!important;padding-top:0!important;overflow:visible!important;
}
/* Override the account's older padding-top rule, whose specificity is higher. */
html body.lms-navigation-v2.page-shell.route-compte main.account-page.member-account-page:has(>.member-workspace-hero){
  margin-top:0!important;padding-top:0!important;
}
html body.lms-navigation-v2.page-shell main>.member-workspace-hero{
  position:relative!important;isolation:isolate!important;box-sizing:border-box!important;
  display:block!important;width:100%!important;min-width:0!important;
  max-width:none!important;height:auto!important;min-height:0!important;
  margin:0 auto clamp(20px,3vw,30px)!important;
  padding:0!important;border:0!important;
  border-left:1px solid var(--lms-public-rule,var(--line))!important;
  border-right:1px solid var(--lms-public-rule,var(--line))!important;
  border-bottom:1px solid var(--lms-public-rule,var(--line))!important;
  border-radius:0 0 30px 30px!important;
  background:var(--bg)!important;
  color:var(--text)!important;
  box-shadow:0 22px 48px -43px rgba(0,0,0,.5)!important;
  overflow:hidden!important;
}
/* Vagues et bulles au survol : elles restent dans le tiers inférieur. */
html body.lms-navigation-v2.page-shell main>.member-workspace-hero::before,
html body.lms-navigation-v2.page-shell main>.member-workspace-hero::after{
  content:"";position:absolute;inset:auto 0 0;z-index:0;
  width:100%;pointer-events:none;opacity:1;
  transform:translateY(110%);
  transition:transform .7s cubic-bezier(.22,1,.36,1);
}
html body.lms-navigation-v2.page-shell main>.member-workspace-hero::before{
  height:36%;background:
    radial-gradient(circle at 12% 53%,color-mix(in srgb,var(--accent) 14%,transparent) 0 3px,transparent 4px),
    radial-gradient(circle at 65% 38%,color-mix(in srgb,var(--accent) 12%,transparent) 0 4px,transparent 5px),
    color-mix(in srgb,var(--accent) 12%,transparent);
  clip-path:polygon(0 19%,8% 12%,16% 14%,24% 22%,32% 27%,40% 21%,48% 12%,56% 11%,64% 18%,72% 25%,80% 23%,88% 15%,96% 13%,100% 17%,100% 100%,0 100%);
}
html body.lms-navigation-v2.page-shell main>.member-workspace-hero::after{
  height:29%;background:
    radial-gradient(circle at 80% 61%,color-mix(in srgb,var(--accent) 11%,transparent) 0 3px,transparent 4px),
    color-mix(in srgb,var(--accent) 7%,transparent);
  clip-path:polygon(0 25%,10% 20%,20% 14%,30% 18%,40% 26%,50% 24%,60% 16%,70% 12%,80% 16%,90% 24%,100% 21%,100% 100%,0 100%);
  transition-delay:.06s;
}
@media(hover:hover) and (pointer:fine){
  html body.lms-navigation-v2.page-shell main>.member-workspace-hero:is(:hover,:focus-within)::before{
    transform:translateY(0);animation:lms-soft-water 3s ease-in-out infinite;
  }
  html body.lms-navigation-v2.page-shell main>.member-workspace-hero:is(:hover,:focus-within)::after{
    transform:translateY(0);animation:lms-soft-water-back 3.7s ease-in-out infinite;
  }
}
html body.lms-navigation-v2.page-shell .member-workspace-hero>.member-workspace-hero-inner{
  box-sizing:border-box!important;position:relative!important;z-index:1!important;
  display:block!important;width:calc(100% - clamp(40px,6vw,84px))!important;
  max-width:none!important;margin:0 auto!important;
  padding:clamp(20px,2.8vw,28px) 0 clamp(30px,3.7vw,39px)!important;
  background:transparent!important;border:0!important;
}
html body.lms-navigation-v2.page-shell .member-workspace-hero .account-workspace-bar{
  position:static!important;inset:auto!important;display:flex!important;
  align-items:center!important;justify-content:space-between!important;
  gap:clamp(10px,2.5vw,24px)!important;
  width:100%!important;max-width:none!important;min-width:0!important;
  margin:0!important;padding:0 0 clamp(18px,2.6vw,27px)!important;
  border:0!important;border-bottom:1px solid var(--lms-public-rule,var(--line))!important;
  border-radius:0!important;background:transparent!important;
  box-shadow:none!important;z-index:auto!important;
}
html body.lms-navigation-v2.page-shell .member-workspace-hero .account-workspace-identity{
  display:inline-flex!important;align-items:center!important;justify-content:flex-start!important;
  flex:1 1 auto!important;gap:12px!important;min-width:0!important;
  padding:0!important;margin:0!important;
  color:var(--text)!important;text-decoration:none!important;
  border:0!important;background:transparent!important;
  transition:opacity .2s ease!important;
}
html body.lms-navigation-v2.page-shell .member-workspace-hero .account-workspace-identity:hover{
  opacity:.84;
}
/* Lien tableau de bord sur la ligne dédiée sous la description. */
html body.lms-navigation-v2.page-shell .member-workspace-hero .account-workspace-return{
  display:inline-flex!important;align-items:center!important;justify-content:flex-end!important;
  flex:0 1 auto!important;min-width:0!important;min-height:38px!important;max-width:49%!important;
  padding:6px 0!important;margin:0!important;
  background:transparent!important;border:0!important;border-radius:0!important;
  box-shadow:none!important;text-decoration:none!important;
  color:var(--text)!important;font-size:13px!important;font-weight:400!important;
  line-height:1.3!important;white-space:normal!important;text-align:right!important;
}
html body.lms-navigation-v2.page-shell .member-workspace-hero .account-workspace-return:is(:hover,:focus-visible){
  color:var(--accent-text,var(--accent))!important;text-decoration:underline!important;
  text-underline-offset:3px!important;
}
html body.lms-navigation-v2.page-shell .member-workspace-hero .account-workspace-return:focus-visible{
  outline:2px solid var(--accent)!important;outline-offset:3px!important;
}
html body.lms-navigation-v2.page-shell .member-workspace-hero .account-workspace-identity:focus-visible{
  outline:2px solid var(--accent)!important;outline-offset:5px!important;border-radius:9px!important;
}
html body.lms-navigation-v2.page-shell .member-workspace-hero .account-workspace-avatar{
  flex:0 0 54px!important;width:54px!important;height:54px!important;
  border-width:3px!important;
}
html body.lms-navigation-v2.page-shell .member-workspace-hero .account-workspace-greeting{
  color:var(--muted)!important;font-size:12px!important;
}
html body.lms-navigation-v2.page-shell .member-workspace-hero .account-workspace-greeting>strong{
  font-size:clamp(17px,2vw,21px)!important;font-weight:720!important;
}
html body.lms-navigation-v2.page-shell .member-workspace-hero .member-workspace-heading{
  width:100%!important;min-width:0!important;
  margin:0!important;padding:clamp(25px,4vw,39px) 0 0!important;
  border:0!important;background:transparent!important;text-align:left!important;
}
html body.lms-navigation-v2.page-shell .member-workspace-hero .member-workspace-heading h1{
  margin:0 0 13px!important;padding:0!important;color:var(--text)!important;
  font-size:clamp(30px,4.2vw,52px)!important;font-weight:750!important;
  letter-spacing:-.045em!important;line-height:1.1!important;text-align:left!important;
  white-space:normal!important;overflow-wrap:anywhere!important;
}
html body.lms-navigation-v2.page-shell .member-workspace-hero .member-workspace-heading p{
  margin:0!important;padding:0!important;max-width:780px!important;
  color:var(--muted)!important;font-size:clamp(14px,1.4vw,16px)!important;
  line-height:1.65!important;text-align:left!important;
}
html body.lms-navigation-v2.page-shell main:has(>.member-workspace-hero)>.member-section:first-of-type{
  margin-top:0!important;
}
/* Le logo, l'identité et la composition restent identiques dans chaque section ;
 * l'encart occupe tout le haut, mais le contenu sous-jacent reste centré. */
@media(max-width:640px){
  html body.lms-navigation-v2.page-shell:has(>main>.member-workspace-hero)>.lms-site-header::after{
    width:calc(100% - 16px);
  }
  html body.lms-navigation-v2.page-shell main>.member-workspace-hero{
    width:100%!important;max-width:none!important;
    margin:0 auto 22px!important;border-radius:0 0 24px 24px!important;
  }
  html body.lms-navigation-v2.page-shell .member-workspace-hero>.member-workspace-hero-inner{
    width:calc(100% - 32px)!important;
    padding:16px 0 29px!important;
  }
  html body.lms-navigation-v2.page-shell .member-workspace-hero .account-workspace-bar{
    top:auto!important;padding-bottom:16px!important;margin-bottom:0!important;
  }
  html body.lms-navigation-v2.page-shell .member-workspace-hero .account-workspace-avatar{
    flex-basis:45px!important;width:45px!important;height:45px!important;
  }
  html body.lms-navigation-v2.page-shell .member-workspace-hero .account-workspace-greeting{
    font-size:11px!important;
  }
  html body.lms-navigation-v2.page-shell .member-workspace-hero .account-workspace-greeting>strong{
    font-size:15px!important;
  }
  html body.lms-navigation-v2.page-shell .member-workspace-hero .account-workspace-identity{
    gap:8px!important;
  }
  html body.lms-navigation-v2.page-shell .member-workspace-hero .account-workspace-return{
    font-size:12px!important;min-height:36px!important;
    padding:4px 0 4px 2px!important;white-space:nowrap!important;text-align:right!important;
  }
  html body.lms-navigation-v2.page-shell .member-workspace-hero .member-workspace-heading{
    padding-top:24px!important;
  }
  html body.lms-navigation-v2.page-shell .member-workspace-hero .member-workspace-heading h1{
    font-size:clamp(28px,7.6vw,37px)!important;
    margin-bottom:10px!important;
  }
  html body.lms-navigation-v2.page-shell .member-workspace-hero .member-workspace-heading p{
    font-size:14px!important;line-height:1.55!important;
  }
}
@media(prefers-reduced-motion:reduce){
  html body.lms-navigation-v2.page-shell .member-workspace-hero .account-workspace-identity{
    transition:none!important;
  }
}

@media(prefers-reduced-motion:reduce){
  html body.lms-navigation-v2.page-shell main>.member-workspace-hero::before,
  html body.lms-navigation-v2.page-shell main>.member-workspace-hero::after{
    animation:none!important;transition:none!important;
  }
}

/* Actions après le titre et la description : une à chaque extrémité, jamais à côté du nom. */
html body.lms-navigation-v2.page-shell .member-workspace-hero .member-workspace-heading>.account-workspace-navigation{
 box-sizing:border-box!important;display:flex!important;align-items:center!important;
 justify-content:space-between!important;flex-wrap:nowrap!important;
 gap:clamp(12px,3vw,24px)!important;width:100%!important;min-width:0!important;
 margin:clamp(15px,2.4vw,24px) 0 0!important;padding:0!important;
 background:transparent!important;border:0!important;
}
html body.lms-navigation-v2.page-shell .member-workspace-hero .account-workspace-visit-site{
 display:inline-flex!important;align-items:center!important;justify-content:flex-start!important;gap:6px!important;
 flex:0 1 auto!important;min-width:0!important;max-width:49%!important;
 padding:6px 0!important;min-height:38px!important;white-space:normal!important;text-align:left!important;
 color:var(--text)!important;background:transparent!important;border:0!important;box-shadow:none!important;
 text-decoration:none!important;font-size:13px!important;font-weight:400!important;
}
html body.lms-navigation-v2.page-shell .member-workspace-hero .account-workspace-visit-site>svg{
 width:16px!important;height:16px!important;flex:0 0 16px!important;
}
html body.lms-navigation-v2.page-shell .member-workspace-hero .account-workspace-visit-site:is(:hover,:focus-visible){
 color:var(--accent-text,var(--accent))!important;background:transparent!important;
}
@media(max-width:640px){
 html body.lms-navigation-v2.page-shell .member-workspace-hero .member-workspace-heading>.account-workspace-navigation{
 gap:10px!important;margin-top:17px!important;
 }
 html body.lms-navigation-v2.page-shell .member-workspace-hero :is(.account-workspace-visit-site,.account-workspace-return){
 font-size:12px!important;font-weight:400!important;min-height:32px!important;padding:4px 0!important;
 }
}
