.mdj-resource { color-scheme: light; --ink:#17314c; --muted:#5b7187; --blue:#135c99; --deep:#0d345e; --aqua:#0b918f; --orange:#df8529; --bg:#f4f8fc; --line:#d8e5ef; --good:#137253; --bad:#ad3d3d; --white:#fff; --radius:22px; --shadow:0 16px 48px rgba(28,65,103,.09); }
.mdj-resource * { box-sizing:border-box; }
.mdj-resource { scroll-behavior:smooth; }
.mdj-resource { margin:0; color:var(--ink); background:var(--bg); font:16px/1.65 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
.mdj-resource button, .mdj-resource input { font:inherit; }
.mdj-resource button { cursor:pointer; }
.mdj-resource a { color:inherit; }
.mdj-resource .skip { position:absolute; top:-60px; left:14px; background:white; padding:10px 16px; border-radius:8px; z-index:20; }
.mdj-resource .skip:focus { top:12px; }
.mdj-resource .wrap { width:min(1100px,calc(100% - 36px)); margin-inline:auto; }
.mdj-resource header { background:#fff; border-bottom:1px solid var(--line); }
.mdj-resource .topbar { min-height:70px; display:flex; align-items:center; justify-content:space-between; gap:14px; }
.mdj-resource .brand { display:flex; align-items:center; gap:10px; font-weight:850; letter-spacing:-.025em; color:var(--deep); }
.mdj-resource .brand-mark { display:grid; place-items:center; background:linear-gradient(135deg,#1965a7,#15aaa0); width:36px; height:36px; border-radius:11px; color:#fff; font-weight:900; }
.mdj-resource .level { display:inline-flex; align-items:center; gap:7px; border-radius:99px; padding:5px 12px; color:#416079; background:#edf4fa; font-size:.78rem; font-weight:750; }
.mdj-resource .hero { background:radial-gradient(circle at 91% 17%,#2c739a 0,#123d69 35%,#0e2e52 86%); color:white; overflow:hidden; }
.mdj-resource .hero-inner { display:grid; grid-template-columns:1.05fr .95fr; align-items:center; gap:36px; padding:62px 0 68px; }
.mdj-resource .eyebrow { color:#a6e7e1; font-size:.78rem; font-weight:900; letter-spacing:.14em; text-transform:uppercase; }
.mdj-resource h1 { font-size:clamp(2.1rem,4.4vw,3.65rem); letter-spacing:-.045em; line-height:1.12; margin:15px 0 20px; }
.mdj-resource .hero p { color:#daebf6; font-size:1.07rem; max-width:550px; margin:0 0 23px; }
.mdj-resource .hero-tags { display:flex; gap:9px; flex-wrap:wrap; }
.mdj-resource .hero-tags span { border:1px solid #6099b9; color:#e1f5fa; padding:5px 13px; border-radius:50px; font-size:.83rem; }
.mdj-resource .hero-art { background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.20); border-radius:25px; padding:16px 16px 5px; }
.mdj-resource .hero-art svg { display:block; width:100%; height:auto; }
.mdj-resource .art-caption { text-align:center; margin:0 0 10px!important; font-size:.8rem!important; color:#c9e5ef!important; }
.mdj-resource nav.sections { margin-top:-23px; position:relative; z-index:1; }
.mdj-resource .navbox { background:#fff; border:1px solid var(--line); box-shadow:var(--shadow); border-radius:16px; display:flex; overflow-x:auto; overscroll-behavior-inline:contain; scrollbar-width:thin; scroll-snap-type:x proximity; }
.mdj-resource .navbox a { flex:1 0 auto; min-width:132px; padding:17px 11px; text-decoration:none; display:flex; align-items:center; justify-content:center; gap:7px; font-weight:800; font-size:.88rem; border-right:1px solid var(--line); text-align:center; scroll-snap-align:start; }
.mdj-resource .navbox a:last-child { border-right:0; }
.mdj-resource .navbox a:hover, .mdj-resource .navbox a:focus-visible { color:var(--blue); background:#f0f9fb; }
.mdj-resource main { padding:45px 0 70px; }
.mdj-resource section.module { margin:0 0 45px; scroll-margin-top:20px; }
.mdj-resource .section-heading { display:flex; align-items:center; gap:14px; margin:0 0 18px; }
.mdj-resource .num { display:grid; place-items:center; border-radius:15px; width:54px; height:54px; flex:0 0 54px; background:#dff1f6; color:#096b81; font-weight:950; font-size:1.35rem; }
.mdj-resource .section-heading h2 { font-size:clamp(1.55rem,2.7vw,2.2rem); line-height:1.2; letter-spacing:-.035em; margin:0; }
.mdj-resource .section-heading .subtitle { color:var(--muted); margin:3px 0 0; }
.mdj-resource .panel { background:#fff; border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); padding:clamp(18px,3.5vw,32px); }
.mdj-resource .panel + .panel { margin-top:17px; }
.mdj-resource .cols { display:grid; grid-template-columns:1fr 1fr; gap:28px; align-items:center; }
.mdj-resource .cols.wide-left { grid-template-columns:1.15fr .85fr; }
.mdj-resource h3 { font-size:1.36rem; line-height:1.3; letter-spacing:-.025em; margin:0 0 13px; }
.mdj-resource h4 { font-size:1.04rem; margin:0 0 8px; }
.mdj-resource p { margin:0 0 13px; }
.mdj-resource p:last-child { margin-bottom:0; }
.mdj-resource ul, .mdj-resource ol { margin:9px 0 15px; padding-left:23px; }
.mdj-resource li { padding:2px 0; }
.mdj-resource .emphasis { color:var(--deep); font-weight:850; }
.mdj-resource .pill { display:inline-flex; align-items:center; padding:5px 11px; border-radius:30px; background:#e2f4f2; color:#077e75; font-size:.74rem; font-weight:900; text-transform:uppercase; letter-spacing:.055em; margin-bottom:13px; }
.mdj-resource .question { font-size:1.18rem; font-weight:850; color:var(--deep); }
.mdj-resource .figure { background:linear-gradient(170deg,#f0f8fb,#fafcff); border:1px solid #dbeef1; border-radius:18px; padding:10px; margin:0; }
.mdj-resource .figure svg { display:block; width:100%; height:auto; }
.mdj-resource .figure figcaption { color:var(--muted); font-size:.83rem; text-align:center; margin:4px 5px 6px; }
.mdj-resource .tip { border-left:4px solid #0c9d90; border-radius:0 12px 12px 0; background:#effaf7; padding:15px 18px; margin-top:17px; }
.mdj-resource .tip.warning { border-color:var(--orange); background:#fff8ec; }
.mdj-resource .tip strong { display:block; margin-bottom:4px; }
.mdj-resource .cards3 { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.mdj-resource .use-case { background:#fff; border:1px solid var(--line); border-radius:15px; padding:17px; }
.mdj-resource .use-icon { font-size:1.6rem; display:block; margin-bottom:5px; }
.mdj-resource .use-case strong { display:block; }
.mdj-resource .use-case p { font-size:.87rem; color:var(--muted); }
.mdj-resource .formula { text-align:center; background:#edf5fd; border:1px solid #cce0f4; border-radius:13px; padding:16px 12px; color:#104e84; font-size:clamp(1.13rem,2.6vw,1.58rem); font-weight:900; letter-spacing:.015em; margin:16px 0; overflow-wrap:anywhere; }
.mdj-resource .formula.small { font-size:1.14rem; padding:11px 9px; }
.mdj-resource .method { display:grid; gap:11px; }
.mdj-resource .method-item { display:grid; grid-template-columns:39px 1fr; gap:12px; align-items:start; padding:13px 14px; border:1px solid var(--line); border-radius:14px; background:#fbfdff; }
.mdj-resource .method-item .dot { display:grid; place-items:center; width:34px; height:34px; border-radius:11px; background:#e4f0fb; color:#155e9c; font-weight:900; }
.mdj-resource .method-item strong { display:block; }
.mdj-resource .method-item p { margin:0; color:var(--muted); font-size:.91rem; }
.mdj-resource .worked { background:#f8fbfe; border-radius:17px; padding:20px; border:1px solid var(--line); }
.mdj-resource .worked .line { border-bottom:1px dashed #d2e0ea; padding:9px 0; }
.mdj-resource .worked .line:last-child { border-bottom:0; }
.mdj-resource .worked .small-label { font-weight:800; color:var(--muted); font-size:.8rem; text-transform:uppercase; letter-spacing:.05em; }
.mdj-resource .equation { color:#1c4f7b; font-size:1.14rem; font-weight:800; margin:1px 0; }
.mdj-resource .answer { background:#e7f7ed; border:1px solid #bde9ca; color:#146440; padding:12px 15px; border-radius:12px; font-weight:900; margin-top:12px; }
.mdj-resource .challenge-list { display:grid; gap:15px; }
.mdj-resource .challenge { background:#fff; border:1px solid var(--line); border-radius:18px; padding:21px; box-shadow:0 10px 20px rgba(28,65,103,.04); }
.mdj-resource .challenge-title { display:flex; justify-content:space-between; gap:10px; align-items:center; margin-bottom:11px; }
.mdj-resource .difficulty { background:#e8f5fb; color:#136489; padding:4px 10px; border-radius:40px; font-size:.76rem; font-weight:900; white-space:nowrap; }
.mdj-resource .challenge-title h3 { font-size:1.12rem; margin:0; }
.mdj-resource .choices { display:grid; gap:8px; margin-top:12px; }
.mdj-resource .choice { display:block; width:100%; padding:12px 15px; background:white; border:1.5px solid #cddfeb; border-radius:11px; text-align:left; color:var(--ink); transition:background .15s,border-color .15s; }
.mdj-resource .choice:hover, .mdj-resource .choice:focus-visible { background:#eef7fc; border-color:#4e96ba; }
.mdj-resource .choice.selected { background:#e8f4ff; border-color:#1e83bd; font-weight:850; }
.mdj-resource .choice:disabled { cursor:default; }
.mdj-resource .check-row { display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin-top:14px; }
.mdj-resource .primary { border:0; background:#155f9d; color:white; padding:10px 20px; border-radius:10px; font-weight:850; }
.mdj-resource .primary:hover, .mdj-resource .primary:focus-visible { background:#0e487a; }
.mdj-resource .secondary { border:1px solid #9bbad1; background:white; color:#155f9d; padding:9px 17px; border-radius:10px; font-weight:850; }
.mdj-resource .secondary:hover, .mdj-resource .secondary:focus-visible { background:#eef7fc; }
.mdj-resource .feedback { min-height:21px; color:#46637b; font-size:.91rem; font-weight:750; }
.mdj-resource .feedback.success { color:var(--good); }
.mdj-resource .feedback.error { color:var(--bad); }
.mdj-resource .pitfalls { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.mdj-resource .pitfall { background:#fff; border:1px solid #e8d9d0; border-top:4px solid #d98754; border-radius:16px; padding:19px; }
.mdj-resource .pitfall h3 { font-size:1.06rem; }
.mdj-resource .wrong { color:#a64633; font-weight:850; }
.mdj-resource .correct { color:#0d7455; font-weight:850; }
.mdj-resource .test-summary { margin-top:17px; background:#eaf4fc; border:1px solid #c8e0f3; padding:22px; border-radius:17px; }
.mdj-resource .field { display:flex; align-items:center; gap:9px; flex-wrap:wrap; margin-top:12px; }
.mdj-resource .field input { width:130px; border:1.5px solid #9fb9cd; border-radius:10px; padding:9px 12px; color:var(--ink); }
.mdj-resource .field input:focus { outline:3px solid #b6e2ef; }
.mdj-resource details { margin-top:12px; background:#f2f7fb; border-radius:11px; border:1px solid #dce9f1; padding:11px 14px; }
.mdj-resource summary { font-weight:850; color:#175d90; cursor:pointer; }
.mdj-resource details p { margin:10px 0 0; }
.mdj-resource .footbox { background:#10375c; color:#fff; padding:26px; border-radius:20px; }
.mdj-resource .footbox h3 { margin-bottom:10px; }
.mdj-resource .footbox ul { margin-bottom:0; }
.mdj-resource footer { color:#6b7e90; font-size:.83rem; border-top:1px solid var(--line); padding:24px 0 35px; text-align:center; }
.mdj-resource .muted { color:var(--muted); }
.mdj-resource .sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
@media (max-width:800px)  {.mdj-resource .hero-inner, .mdj-resource .cols, .mdj-resource .cols.wide-left { grid-template-columns:1fr; }
.mdj-resource .hero-inner { padding:42px 0 60px; gap:25px; }
.mdj-resource .hero-art { max-width:520px; }
.mdj-resource .cards3, .mdj-resource .pitfalls { grid-template-columns:1fr; }
.mdj-resource .navbox a { font-size:.8rem; }}
@media (max-width:520px)  {.mdj-resource .wrap { width:calc(100% - 26px); }
.mdj-resource .brand { font-size:.91rem; }
.mdj-resource .level { font-size:.7rem; }
.mdj-resource .navbox a { padding:11px 12px; font-size:.79rem; min-width:125px; }
.mdj-resource .panel { padding:19px 15px; }
.mdj-resource .section-heading { gap:10px; }
.mdj-resource .num { flex-basis:45px; width:45px; height:45px; }
.mdj-resource .hero-inner { padding-top:36px; }
.mdj-resource .challenge { padding:17px 14px; }
.mdj-resource .challenge-title { align-items:flex-start; }
.mdj-resource .difficulty { font-size:.7rem; }}
@media (prefers-reduced-motion:reduce)  {.mdj-resource { scroll-behavior:auto; }
.mdj-resource .choice { transition:none; }}
@media  print  {.mdj-resource { background:white; }
.mdj-resource .hero { background:#fff; color:#17314c; }
.mdj-resource .hero p, .mdj-resource .eyebrow { color:#17314c; }
.mdj-resource .hero-tags span { color:#17314c; border-color:#17314c; }
.mdj-resource nav.sections, .mdj-resource button, .mdj-resource .check-row { display:none!important; }
.mdj-resource .panel, .mdj-resource .challenge { box-shadow:none; break-inside:avoid; }
.mdj-resource section.module { break-inside:auto; }
.mdj-resource details { display:block; }}
/* Mon Défi du Jour : style délimité à la ressource pédagogique, sans modifier le thème actif. */
.mdj-resource{isolation:isolate;max-width:1100px;margin:0 auto 2.5rem;background:var(--bg);border-radius:18px;overflow:hidden;color:var(--ink);padding-bottom:12px}
.mdj-resource .hero{margin:0;color:#fff;}
.mdj-resource .hero-inner{grid-template-columns:1.3fr .7fr;}
.mdj-resource .hero-inner:not(:has(.hero-art)){grid-template-columns:1fr;}
.mdj-resource .hero-art img{width:100%;height:auto;max-height:300px;object-fit:contain;border-radius:14px;}
.mdj-resource .topbar{padding:0 12px;}
.mdj-resource .section-heading h2{color:var(--deep);}
.mdj-resource .mdj-content img,.mdj-resource .mdj-content video,.mdj-resource iframe{max-width:100%;height:auto;}
.mdj-resource .mdj-content figure{max-width:100%;}
.mdj-resource .mdj-content iframe{aspect-ratio:16 / 9;min-height:250px;}
.mdj-resource .navbox a{color:var(--deep);}
.mdj-resource .mdj-resource-breadcrumb{padding:12px 0;color:var(--muted);font-size:.83rem}
.mdj-resource .mdj-resource-breadcrumb a{color:var(--blue)}
.mdj-resource .mdj-resource-footer{margin-top:20px}
.mdj-resource .mdj-resource-interactive .choice{width:100%}
.mdj-resource .mdj-resource-interactive .feedback{margin-left:10px}
.mdj-resource .mdj-content > :last-child{margin-bottom:0}
.mdj-resource .mdj-content > .wp-block-image{margin:12px auto;}
.mdj-resource .mdj-resource-figure-placeholder{font-size:5rem;text-align:center;min-height:170px;display:grid;place-items:center}
.mdj-resource .sr-only{position:absolute}
@media(max-width:800px){.mdj-resource .hero-inner{grid-template-columns:1fr;}}
@media print{.mdj-resource{box-shadow:none;max-width:100%;background:#fff}.mdj-resource .navbox,.mdj-resource .mdj-resource-skip{display:none!important}.mdj-resource .hero{color:#17314c;background:#fff}.mdj-resource .hero p{color:#17314c}.mdj-resource .hero-tags span{color:#17314c;border-color:#17314c}.mdj-resource .panel{break-inside:auto}.mdj-resource section.module{break-inside:auto;page-break-before:auto}.mdj-resource .panel,.mdj-resource .worked{box-shadow:none}}

/* v5.4 : un seul titre visible, dans le bandeau. Les titres automatiques du thème sont masqués uniquement sur les pages d'attendus. */
body.mdj-pedagogical-resource-page .entry-header .entry-title,
body.mdj-pedagogical-resource-page .page-header .page-title,
body.mdj-pedagogical-resource-page .wp-block-post-title,
body.mdj-pedagogical-resource-page h1.entry-title {display:none!important}
.mdj-resource .hero h1,.mdj-resource .hero h1 a{color:#fff!important;text-shadow:none;opacity:1}
.mdj-resource .mdj-ai-visual{margin:24px 0 10px;padding:15px;border:1px solid #cde3ed;border-radius:17px;background:#f3faff}
.mdj-resource .mdj-ai-visual svg{display:block;width:100%;height:auto;max-height:270px}
.mdj-resource .mdj-ai-visual figcaption{font-size:.87rem;color:#47657e;text-align:center;margin:8px auto 0}
.mdj-resource .mdj-ai-tests .challenge{box-shadow:none;background:#fafdff}
.mdj-resource .mdj-ai-tests .test-summary{margin-top:17px}
@media print{.mdj-resource .hero h1{color:#17314c!important}.mdj-resource .mdj-ai-visual{break-inside:avoid}}

/* Studio v5.5 : illustrations professionnelles responsives */
.mdj-resource .mdj-ai-illustration { background:#f7fafc;border:1px solid #d8e5ef;border-radius:18px;padding:12px;margin:22px auto;max-width:860px; }
.mdj-resource .mdj-ai-illustration img { display:block;width:100%;height:auto;max-height:600px;object-fit:contain;border-radius:12px; }
.mdj-resource .mdj-ai-illustration figcaption {color:#5b7187;text-align:center;font-size:.85rem;padding:8px 4px 2px;}
@media print {.mdj-resource .mdj-ai-illustration {break-inside:avoid;box-shadow:none}.mdj-resource .mdj-ai-illustration img {max-height:300px}}

/* Ressources 5.8.0 : images collées depuis une page web. */
.mdj-resource .mdj-content img, .mdj-resource .panel img { max-width:100%; height:auto; object-fit:contain; }
.mdj-resource .mdj-content figure { max-width:100%; }

.mdj-objective-catalog .mdj-objective-hero { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); align-items:center; gap:clamp(18px,4vw,48px); padding-block:clamp(28px,5vw,60px); }
.mdj-objective-catalog .mdj-objective-hero h1 { margin:0 0 .5em; color:#fff; font-size:clamp(1.7rem,3.4vw,3.1rem); overflow-wrap:anywhere; }
.mdj-objective-catalog .mdj-objective-hero p { margin:0; }
.mdj-objective-app { display:flex; align-items:center; gap:clamp(10px,2vw,18px); padding:clamp(12px,2.5vw,23px); border:1px solid #648eb2; border-radius:16px; background:#0c2c4d; }
.mdj-objective-app img { width:clamp(42px,7vw,84px); height:auto; aspect-ratio:1; object-fit:contain; flex:none; }
.mdj-objective-app>div { min-width:0; }
.mdj-objective-catalog .mdj-objective-app .mdj-objective-slogan { color:#fff; font-size:clamp(1.06rem,2vw,1.6rem); line-height:1.28; font-weight:850; margin-bottom:12px; }
.mdj-objective-slogan em { color:#ffc02e; font-style:normal; }
.mdj-objective-catalog .mdj-objective-app-button { display:inline-flex; align-items:center; gap:8px; min-height:44px; padding:7px 13px; border-radius:7px; background:#ffc02e; color:#102c47; font-size:.93rem; font-weight:800; line-height:1.3; text-decoration:none; }
.mdj-objective-catalog .mdj-objective-app-button:hover { background:#ffd66b; text-decoration:underline; }
.mdj-objective-catalog .mdj-objective-app-button:focus-visible { outline-color:#fff; }
@media(max-width:760px) { .mdj-objective-catalog .mdj-objective-hero { grid-template-columns:1fr; } }
.mdj-objective-catalog .mdj-objective-content { padding-block:32px 56px; }
.mdj-objective-nav { display:flex; flex-wrap:wrap; gap:10px; margin-bottom:32px; }
.mdj-objective-nav a { display:inline-flex; align-items:center; min-height:44px; padding:7px 15px; border:1px solid #c1d8e8; border-radius:8px; background:#fff; color:#124d78; font-weight:700; text-decoration:none; }
.mdj-objective-domain { margin-block:0 34px; scroll-margin-top:54px; }
.mdj-objective-domain h2 { margin:0 0 14px; color:#0e4266; font-size:clamp(1.34rem,3vw,1.9rem); }
.mdj-objective-competences { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),1fr)); gap:14px; }
.mdj-objective-competence { padding:18px; border:1px solid var(--line); border-top:4px solid #16857f; border-radius:12px; background:#fff; box-shadow:0 5px 18px #1239560d; }
.mdj-objective-competence h3 { margin:0 0 10px; color:var(--ink); font-size:1.12rem; }
.mdj-objective-competence ul { margin:0; padding:0; list-style:none; }
.mdj-objective-competence li+li { margin-top:8px; }
.mdj-objective-competence li a { display:flex; justify-content:space-between; align-items:center; gap:14px; min-height:44px; padding:9px 12px; border:1px solid #bdd7e9; border-radius:8px; background:#edf6fc; color:#104773; font-weight:750; text-decoration:underline; text-underline-offset:3px; overflow-wrap:anywhere; }
.mdj-objective-competence li a>span:last-child { font-size:1.2rem; line-height:1; }
.mdj-objective-competence li a small { font-size:.78em; white-space:nowrap; }
.mdj-objective-competence li a:hover,.mdj-objective-nav a:hover { background:#dbeefa; text-decoration:underline; }
.mdj-objective-catalog a:focus-visible { outline:3px solid #137d76; outline-offset:2px; }
