/* Header public global Kodjo Freelance — Alpha 7.3 */
.monlms-global-header{
  --ml-dark:#0f172a;--ml-text:#111827;--ml-muted:#6b7280;--ml-line:#e5e7eb;
  --ml-green:#16a36a;--ml-green-dark:#108253;--ml-green-soft:#e9f8f0;
  position:sticky;top:0;z-index:9990;width:100%;background:rgba(255,255,255,.94);
  border-bottom:1px solid rgba(229,231,235,.95);backdrop-filter:blur(16px);
  font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--ml-text);
  box-sizing:border-box
}
.admin-bar .monlms-global-header{top:32px}
.monlms-global-header *{box-sizing:border-box}
.monlms-global-header a{text-decoration:none!important}
.monlms-global-container{width:min(1180px,calc(100% - 36px));height:74px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:24px}
.monlms-global-brand{display:flex;align-items:center;gap:10px;color:var(--ml-text)!important;font-family:Manrope,Inter,sans-serif;font-weight:800;letter-spacing:-.03em;flex:0 0 auto}
.monlms-global-logo{width:40px;height:40px;border-radius:12px;background:var(--ml-dark);display:grid;place-items:center;color:#fff;position:relative;font-size:14px;font-weight:800}
.monlms-global-logo:after{content:"";position:absolute;width:15px;height:15px;border-radius:50%;background:var(--ml-green);right:-4px;top:-4px}
.monlms-global-brand-copy strong{display:block;font-size:16px;line-height:1.15;color:var(--ml-text)}
.monlms-global-brand-copy small{display:block;font:700 9px Inter,sans-serif;letter-spacing:.14em;color:#8e959e;margin-top:3px;white-space:nowrap}
.monlms-global-nav{display:flex;align-items:center;gap:24px;margin-left:auto;color:#4b5563;font-size:14px;font-weight:600}
.monlms-global-nav>a{color:#4b5563!important;transition:.18s ease}
.monlms-global-nav>a:hover{color:var(--ml-green)!important}
.monlms-global-nav .monlms-global-subscribe{color:var(--ml-green-dark)!important;background:var(--ml-green-soft);border:1px solid #cfeedd;padding:8px 12px;border-radius:10px}
.monlms-global-nav .monlms-global-subscribe:hover{background:#dcf6e8}
.monlms-global-actions{display:flex;align-items:center;flex:0 0 auto}
.monlms-global-account{min-height:46px;padding:0 18px;border:1px solid var(--ml-line);border-radius:12px;display:inline-flex;align-items:center;justify-content:center;color:var(--ml-text)!important;background:#fff;font-size:14px;font-weight:750;transition:.18s ease}
.monlms-global-account:hover{transform:translateY(-1px);border-color:#cfd4dc}
.monlms-global-toggle{display:none;width:42px;height:42px;border:1px solid var(--ml-line);border-radius:11px;background:#fff;align-items:center;justify-content:center;flex-direction:column;gap:4px;cursor:pointer;padding:8px;position:relative}
.monlms-global-toggle span{width:18px;height:2px;border-radius:99px;background:var(--ml-dark);display:block}
.monlms-global-toggle em{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}

/*
 * Le thème reste responsable du contenu, mais son propre header est masqué.
 * Plusieurs sélecteurs courants sont couverts afin que MonLMS reste indépendant
 * du thème utilisé (TutorStarter, Astra, Kadence, GeneratePress, block themes...).
 */
body.monlms-global-nav-active #masthead,
body.monlms-global-nav-active #site-header,
body.monlms-global-nav-active .site-header:not(.monlms-global-header),
body.monlms-global-nav-active header.site-header,
body.monlms-global-nav-active .tutorstarter-header,
body.monlms-global-nav-active #tutorstarter-header,
body.monlms-global-nav-active .tutorstarter-header-wrapper,
body.monlms-global-nav-active #ast-desktop-header,
body.monlms-global-nav-active #ast-mobile-header,
body.monlms-global-nav-active .ast-mobile-header-wrap,
body.monlms-global-nav-active .ast-primary-header-bar,
body.monlms-global-nav-active .main-header-bar-wrap,
body.monlms-global-nav-active .elementor-location-header,
body.monlms-global-nav-active header[data-elementor-type="header"],
body.monlms-global-nav-active .wp-site-blocks > .wp-block-template-part:has(.wp-block-navigation){display:none!important}

@media(max-width:900px){
  .monlms-global-container{position:relative;gap:10px}
  .monlms-global-toggle{display:flex;order:2;margin-left:auto}
  .monlms-global-actions{order:3}
  .monlms-global-nav{display:none;position:absolute;left:0;right:0;top:68px;background:#fff;border:1px solid var(--ml-line);border-radius:16px;box-shadow:0 18px 48px rgba(17,24,39,.12);padding:12px;flex-direction:column;align-items:stretch;gap:4px;z-index:9995;margin-left:0}
  .monlms-global-nav.is-open{display:flex}
  .monlms-global-nav>a{padding:11px 12px;border-radius:10px}
  .monlms-global-nav .monlms-global-subscribe{padding:11px 12px}
}
@media(max-width:782px){.admin-bar .monlms-global-header{top:46px}}
@media(max-width:640px){
  .monlms-global-container{height:66px;width:min(100% - 20px,1180px)}
  .monlms-global-logo{width:36px;height:36px}
  .monlms-global-brand-copy strong{font-size:14px}
  .monlms-global-brand-copy small{font-size:7px;letter-spacing:.08em}
  .monlms-global-account{min-height:40px;padding:0 10px;font-size:12px}
  .monlms-global-toggle{width:40px;height:40px}
  .monlms-global-nav{top:60px}
}
@media(max-width:470px){
  .monlms-global-brand-copy small{display:none}
  .monlms-global-brand-copy strong{max-width:125px}
}
