/* Retour : même composant partout, sans toucher aux actions métier. */
html body :is(a,button).cbhb-return-charte.cbhb-return-link{
 box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;
 width:auto!important;max-width:100%!important;min-height:42px!important;padding:10px 18px!important;margin:0!important;
 background:var(--cbhb-button-dark,var(--cbhb-dark,#103744))!important;color:#fff!important;
 border:0!important;border-radius:999px!important;box-shadow:none!important;text-decoration:none!important;
 font:800 clamp(14px,3.5vw,17px)/1.2 Arial,Helvetica,sans-serif!important;white-space:normal!important;cursor:pointer;
}
html body :is(a,button).cbhb-return-charte:focus-visible{outline:2px solid var(--cbhb-accent,#72ff00)!important;outline-offset:3px}
html body .detail-back:has(>.cbhb-return-charte){background:none!important;border:0!important;box-shadow:none!important}
/* Ancien masque : uniquement la préparation des matchs. */
html body.cbhb-selection-charte .member-actions{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:8px!important;margin:12px 0!important}
html body.cbhb-selection-charte .member-actions a[hidden]{display:none!important}
html body.cbhb-selection-charte .member-actions :is(.cbhb-selection-role,.member-button){width:100%!important;min-height:44px!important;border:0!important;border-radius:12px!important;background:var(--cbhb-button-dark,var(--cbhb-dark,#103744))!important;color:#fff!important;font:800 15px/1.3 Arial,sans-serif!important;text-align:center!important}
html body.cbhb-selection-charte .cbhb-selection-heading{box-sizing:border-box!important;width:100%!important;min-width:0!important;margin:0 0 12px!important;padding:14px 16px!important;border:0!important;border-radius:14px!important;background:linear-gradient(100deg,var(--cbhb-dark,#103744),var(--cbhb-bg2,#255d74))!important;color:#fff!important;font:900 clamp(16px,3vw,24px)/1.25 Arial,sans-serif!important;text-transform:uppercase!important;white-space:normal!important;overflow-wrap:anywhere!important}
html body.cbhb-selection-charte .cbhb-selection-heading em{color:var(--cbhb-accent,var(--flash,#72ff00))!important;font-style:italic}
html body.cbhb-selection-charte .selectionHead>div{width:100%;min-width:0}
html body.cbhb-selection-charte .selectionPage{min-width:0!important;max-width:100%!important}
@media(max-width:700px){
 html body.cbhb-selection-charte .hero .hero-copy{left:29%!important;width:67%!important;max-width:67%!important;top:55%!important}
 html body.cbhb-selection-charte .hero .hero-copy h1{font-size:clamp(15px,5vw,27px)!important;line-height:1.05!important;letter-spacing:-.025em!important}
 html body.cbhb-selection-charte .hero .hero-copy h1 :is(span,em){white-space:normal!important;overflow-wrap:normal!important}
 html body.cbhb-selection-charte .hero .hero-actions{top:10px!important;right:10px!important;width:auto!important}
}

/* Extension N2 : réutilise les variables du thème et les titres de rubrique existants. */
html[data-role] body.cbhb-role-single-column{--cbhb-c2-dark:var(--cbhb-dark,#083b29);--cbhb-c2-dark-end:var(--cbhb-bg2,#3a9258);--cbhb-c2-accent:var(--cbhb-accent,var(--flash,#72ff00))}
html[data-role] body.cbhb-role-single-column :is(.wrap .card,.wrap .card > .native-block,.cbhbBureauWorkspace .cbhbBureauPanel,.cbhbBureauWorkspace .cbhbBureauIntro,#cbhbPilotageTodo) > h2 em{color:var(--cbhb-c2-accent)!important;font-style:italic!important}
html[data-role="responsable-site"] body.cbhb-role-single-column #cbhb-pilotage-home > .adminPanel > h2{background:linear-gradient(110deg,var(--cbhb-dark,#083b29),var(--cbhb-bg2,#3a9258))!important;color:#fff!important;font-weight:900!important;text-transform:uppercase!important;font-size:clamp(17px,2.25vw,25px)!important;line-height:1.28!important;padding:15px 17px 15px 34px!important;overflow-wrap:anywhere!important}
html[data-role="responsable-site"] body.cbhb-role-single-column #cbhb-pilotage-home > .adminPanel > h2 em{color:var(--cbhb-accent,var(--flash,#72ff00))!important;font-style:italic!important}
html[data-role="responsable-site"] body.cbhb-role-single-column #cbhb-pilotage-home .adminTile{border:0!important;box-shadow:none!important;padding:12px 14px!important;min-height:44px!important;color:var(--cbhb-c2-ink,#122d3c)!important}
html[data-role="responsable-site"] body.cbhb-role-single-column #cbhb-pilotage-home .adminMenu{gap:8px!important}

/* N3 : ne jamais afficher le menu de rôles dans la préparation. */
html body.cbhb-selection-charte nav.member-actions.cbhb-subpage-role-nav[hidden]{display:none!important;margin:0!important;padding:0!important}
