/* Maths.net — thème clair Tutor LMS 4.x — version 20261009.1 */
:root { --mn-bg:#f3f7fd; --mn-panel:#fff; --mn-side:#eaf1fb; --mn-ink:#172943; --mn-muted:#52647d; --mn-border:#d9e3f1; --mn-accent:#2457d6; }
/* Lecteur de leçons : les composants isolés ont leur propre structure */
body:has(.tutor-course-single-content-wrapper),
.tutor-course-single-content-wrapper,
.tutor-course-topic-single-body,
.tutor-course-topic-single-header,
.tutor-course-topic-single-footer,
.tutor-course-topics-wrap,
.tutor-course-topics-header,
.tutor-course-single-btn-group { background:var(--mn-bg)!important; color:var(--mn-ink)!important; }
.tutor-course-single-content-wrapper :is(.tutor-course-topic-single-body,.tutor-course-topic-single-body *),
.tutor-course-single-content-wrapper :is(.tutor-course-topic-single-header,.tutor-course-topic-single-header *),
.tutor-course-single-content-wrapper :is(.tutor-course-topic-single-footer,.tutor-course-topic-single-footer *) { color:var(--mn-ink); }
.tutor-course-topic-single-body { background:var(--mn-panel)!important; border:1px solid var(--mn-border); border-radius:12px; padding:24px!important; }
.tutor-course-topic-single-body :is(h1,h2,h3,h4,p,li,strong) {color:var(--mn-ink)!important;}
.tutor-course-topic-single-body :is(h1,h2,h3) {line-height:1.25!important;}
.tutor-course-topic-single-body p {line-height:1.7!important;}
.tutor-course-single-sidebar-wrapper,
.tutor-course-single-sidebar-wrapper :is(.tutor-course-topics-wrap,.tutor-course-topics-header,.tutor-course-topic-title,.tutor-course-topic-item,.tutor-course-topic-single-header) { background:var(--mn-side)!important; color:var(--mn-ink)!important; }
.tutor-course-single-sidebar-wrapper :is(a,span,p,div,button) {color:var(--mn-ink)!important;}
.tutor-course-single-sidebar-wrapper .tutor-course-topic-item:hover {background:#dce9fc!important;}
.tutor-course-single-sidebar-wrapper .tutor-course-topic-item.is-active,
.tutor-course-single-sidebar-wrapper .tutor-course-topic-item.active {background:#cbdfff!important;}
.tutor-course-single-content-wrapper :is(.tutor-btn-primary,.tutor-button-primary) {background:var(--mn-accent)!important;color:#fff!important;}
/* Tableau de bord Tutor 4 */
body:has(.tutor-dashboard-layout),
.tutor-dashboard-layout,
.tutor-dashboard-site-shell,
.tutor-dashboard-page,
.tutor-dashboard-main,
.tutor-dashboard-body,
.tutor-dashboard-content-inner {background:var(--mn-bg)!important;color:var(--mn-ink)!important;}
.tutor-dashboard-sidebar,
.tutor-dashboard-sidebar-nav,
.tutor-dashboard-header,
.tutor-dashboard-header-inner {background:var(--mn-panel)!important;color:var(--mn-ink)!important;border-color:var(--mn-border)!important;}
.tutor-dashboard-layout :is(.tutor-dashboard-home-card,.tutor-dashboard-page-card,.tutor-dashboard-welcome-card,.tutor-dashboard-home-course,.tutor-dashboard-courses-card) {background:var(--mn-panel)!important;color:var(--mn-ink)!important;border:1px solid var(--mn-border)!important;border-radius:12px;}
.tutor-dashboard-layout :is(h1,h2,h3,h4,h5,p,span,a,li,label,strong) {color:var(--mn-ink);}
.tutor-dashboard-layout a:hover {color:var(--mn-accent)!important;}
.tutor-dashboard-sidebar-logo {max-width:100%;overflow:hidden;}
.tutor-dashboard-sidebar-logo :is(a,span,img) {max-width:100%;overflow:hidden;text-overflow:ellipsis;}
.tutor-dashboard-layout :is(.tutor-btn-primary,.tutor-button-primary) {background:var(--mn-accent)!important;color:#fff!important;}
/* Ne jamais recolorer le SVG/math, les icônes ou les barres de progression globalement */
@media(max-width:767px){.tutor-course-topic-single-body{padding:15px!important;}}
