/*
Theme Name: Mo9ef Core
Theme URI: https://digimarketingpro.fr/
Author: DigimarketingPro
Author URI: https://digimarketingpro.fr/
Description: Thème WordPress ultra léger pour Mo9ef, sans top bar, sans footer, sans sidebar native. Pensé pour laisser les plugins Mo9ef piloter l’interface sans conflit. By DigimarketingPro — Votre réussite est notre mission.
Version: 1.1.3
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: mo9ef-core
Tags: custom-background, custom-logo, featured-images, full-site-editing, one-column, custom-menu
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root{
  --mo9ef-core-bg:#fff8f2;
  --mo9ef-core-text:#101114;
  --mo9ef-core-muted:rgba(16,17,20,.72);
  --mo9ef-core-accent:#C1272D;
  --mo9ef-core-green:#006233;
}

html, body{
  margin:0;
  padding:0;
  width:100%;
  min-height:100%;
  background:var(--mo9ef-core-bg);
  color:var(--mo9ef-core-text);
  overflow-x:hidden;
}

body{
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  line-height:1.6;
}

*,
*::before,
*::after{
  box-sizing:border-box;
}

img{
  max-width:100%;
  height:auto;
}

a{
  color:inherit;
}

.mo9ef-core-site{
  min-height:100vh;
  width:100%;
}

.mo9ef-core-main{
  width:100%;
  min-height:100vh;
}

.mo9ef-core-entry{
  width:100%;
}

.mo9ef-core-entry > *:first-child{
  margin-top:0;
}

.mo9ef-core-entry > *:last-child{
  margin-bottom:0;
}

.mo9ef-core-empty{
  max-width:980px;
  margin:0 auto;
  padding:40px 20px 60px;
}

.mo9ef-core-empty__card{
  background:rgba(255,255,255,.92);
  border:1px solid rgba(16,17,20,.10);
  border-radius:24px;
  padding:28px 24px;
  box-shadow:0 14px 34px rgba(0,0,0,.08);
}

.mo9ef-core-empty__brand{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:18px;
}

.mo9ef-core-empty__dot{
  width:12px;
  height:12px;
  border-radius:999px;
  background:var(--mo9ef-core-accent);
  box-shadow:0 8px 24px rgba(193,39,45,.20);
}

.mo9ef-core-empty__title{
  margin:0 0 10px;
  font-size:clamp(28px,4vw,44px);
  line-height:1.08;
  font-weight:1000;
  letter-spacing:-.02em;
}

.mo9ef-core-empty__text{
  margin:0;
  color:var(--mo9ef-core-muted);
  font-weight:700;
}

body .wp-site-blocks,
body main,
body .site,
body .site-main,
body .site-content,
body .content-area,
body .entry-content,
body .post,
body .page,
body article,
body .is-layout-flow,
body .is-layout-constrained,
body .wp-block-group{
  max-width:100%;
}

.alignwide,
.alignfull{
  max-width:100%;
}

.screen-reader-text{
  position:absolute!important;
  clip:rect(1px,1px,1px,1px);
  clip-path:inset(50%);
  width:1px;
  height:1px;
  margin:-1px;
  overflow:hidden;
  word-wrap:normal!important;
  border:0;
  padding:0;
}

/* Mo9ef spacing sync: client topbar on accueil/client pages, leftbar on mallam/admin pages */
:root{
  --mo9ef-core-safe-top:72px;
  --mo9ef-core-safe-top-mobile:82px;
  --mo9ef-core-entry-gap:52px;
  --mo9ef-core-entry-gap-mobile:58px;
  --mo9ef-core-inner-gap:28px;
  --mo9ef-core-leftbar-z:2147482500;
}

/* Client topbar pages: only when the fixed topbar is actually printed by the plugin */
body .mo9efTBC ~ main.wrap,
body .mo9efTBC ~ .wrap{
  padding-top:var(--mo9ef-core-safe-top) !important;
}

body .mo9efTBC ~ #page .mo9ef-core-entry > .mo9efWrap,
body .mo9efTBC ~ #page .mo9ef-core-entry > .m9StatsWrap{
  margin-top:var(--mo9ef-core-entry-gap) !important;
}

body .mo9efTBC ~ #page .mo9ef-core-entry > .mo9efWrap .mo9efTop + *,
body .mo9efTBC ~ #page .mo9ef-core-entry > .m9StatsWrap .m9StatsTop + *,
body .mo9efTBC ~ main.wrap .topbar + *,
body .mo9efTBC ~ .wrap .topbar + *{
  margin-top:var(--mo9ef-core-inner-gap) !important;
}

/* Full custom pages that already carry their own body classes */
body.mo9ef-home-one .wrap,
body.mo9ef-space .wrap{
  padding-top:var(--mo9ef-core-safe-top) !important;
}

body.mo9ef-home-one .topbar + *,
body.mo9ef-space .topbar + *{
  margin-top:var(--mo9ef-core-inner-gap) !important;
}

body.mo9ef-home-one main,
body.mo9ef-space main,
body.mo9ef-home-one .entry-content,
body.mo9ef-space .entry-content,
body.mo9ef-verif main,
body.mo9ef-mallam main,
body.mo9ef-mdash main,
body.mo9efMLB-active main,
body.mo9efALB-active main,
body.mo9ef-admin-stats main,
body.mo9ef-verif .entry-content,
body.mo9ef-mallam .entry-content,
body.mo9ef-mdash .entry-content,
body.mo9efMLB-active .entry-content,
body.mo9efALB-active .entry-content,
body.mo9ef-admin-stats .entry-content{
  margin-top:0 !important;
  padding-top:34px !important;
}

/* Leftbar / admin pages: keep last 1.1.2 behavior that was working */
body.mo9ef-verif .mo9efWrap,
body.mo9ef-mallam .mo9efWrap,
body.mo9ef-mdash .mo9efWrap,
body.mo9efMLB-active .mo9efWrap,
body.mo9efALB-active .mo9efWrap,
body.mo9ef-admin-stats .m9StatsWrap{
  margin-top:52px !important;
}

/* Leftbar safety only: keep controls above page content */
body.mo9efMLB-active .mo9efMLB,
body.mo9efMLB-active .mo9efMLB__desktopBtn,
body.mo9efMLB-active .mo9efMLB__pageLogout,
body.mo9efMLB-active .mo9efMLB__mobileBar,
body.mo9efMLB-active .mo9efMLB__overlay{
  z-index:var(--mo9ef-core-leftbar-z) !important;
}

body.mo9efMLB-active .mo9efMLB__overlay{
  z-index:calc(var(--mo9ef-core-leftbar-z) - 1) !important;
}

body.mo9efMLB-active .mo9efMLB__pageLogout{
  top:calc(var(--mo9efMLB-adminBar, 0px) + 14px) !important;
}

/* Bigger logo, synced with the real client topbar plugin */
body .mo9efTBC__brand{
  gap:12px !important;
}
body .mo9efTBC__logo{
  height:min(calc(var(--mo9efTBC-h) - 4px), 60px) !important;
  max-height:calc(var(--mo9efTBC-h) - 4px) !important;
  width:auto !important;
}
body header img,
body .topbar img,
body .mo9ef-topbar img,
body .mo9efTopbar img,
body .tb-logo img,
body .site-logo img,
body .custom-logo{
  max-height:60px;
  width:auto;
}

@media (max-width: 980px){
  body .mo9efTBC ~ main.wrap,
  body .mo9efTBC ~ .wrap,
  body.mo9ef-home-one .wrap,
  body.mo9ef-space .wrap{
    padding-top:var(--mo9ef-core-safe-top-mobile) !important;
  }

  body .mo9efTBC ~ #page .mo9ef-core-entry > .mo9efWrap,
  body .mo9efTBC ~ #page .mo9ef-core-entry > .m9StatsWrap,
  body.mo9ef-verif .mo9efWrap,
  body.mo9ef-mallam .mo9efWrap,
  body.mo9ef-mdash .mo9efWrap,
  body.mo9efMLB-active .mo9efWrap,
  body.mo9efALB-active .mo9efWrap,
  body.mo9ef-admin-stats .m9StatsWrap{
    margin-top:var(--mo9ef-core-entry-gap-mobile) !important;
  }

  body.mo9ef-home-one main,
  body.mo9ef-space main,
  body.mo9ef-home-one .entry-content,
  body.mo9ef-space .entry-content,
  body.mo9ef-verif main,
  body.mo9ef-mallam main,
  body.mo9ef-mdash main,
  body.mo9efMLB-active main,
  body.mo9efALB-active main,
  body.mo9ef-admin-stats main,
  body.mo9ef-verif .entry-content,
  body.mo9ef-mallam .entry-content,
  body.mo9ef-mdash .entry-content,
  body.mo9efMLB-active .entry-content,
  body.mo9efALB-active .entry-content,
  body.mo9ef-admin-stats .entry-content{
    padding-top:38px !important;
  }

  body .mo9efTBC__logo{
    height:min(calc(var(--mo9efTBC-h) - 2px), 62px) !important;
    max-height:calc(var(--mo9efTBC-h) - 2px) !important;
  }

  body header img,
  body .topbar img,
  body .mo9ef-topbar img,
  body .mo9efTopbar img,
  body .tb-logo img,
  body .site-logo img,
  body .custom-logo{
    max-height:62px;
  }
}
