#mbi-root{position:fixed;inset:0;z-index:99999;background:#f6f7fa;color:#20262d;font-family:system-ui,-apple-system,sans-serif;overscroll-behavior:contain;display:flex;justify-content:center;box-sizing:border-box}#mbi-root *{box-sizing:border-box}html.mbi-open{overflow:hidden}#mbi-root .mbi-shell{width:100%;max-width:760px;height:100%;height:100dvh;display:flex;flex-direction:column;min-height:0;background:#fff}#mbi-root .mbi-header{display:flex;align-items:center;gap:12px;flex:none;background:#c60835;color:#fff;padding:12px 16px;padding-top:max(12px,env(safe-area-inset-top));min-height:64px}#mbi-root .mbi-header>div{flex:1;min-width:0}#mbi-root .mbi-header strong{display:block;font-size:17px;line-height:1.2}#mbi-root .mbi-header small{display:block;font-size:11px;opacity:.85}#mbi-root .mbi-close{color:#fff;background:#ffffff24;border:0;border-radius:12px;width:44px;height:44px;font-size:30px;line-height:1;cursor:pointer;flex:none}#mbi-root .mbi-logo{font-weight:800;border:1px solid #ffffff70;border-radius:11px;padding:7px;flex:none;font-size:13px}#mbi-root .mbi-main{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:18px clamp(14px,4vw,30px);display:flex;flex-direction:column;gap:12px}#mbi-root h2{font-size:clamp(19px,5vw,26px);line-height:1.27;margin:0;overflow-wrap:anywhere}#mbi-root p{margin:4px 0;color:#575e68;line-height:1.5;overflow-wrap:anywhere;white-space:pre-wrap}#mbi-root .mbi-footer{flex:none;display:flex;gap:8px;justify-content:flex-end;padding:12px 16px max(12px,env(safe-area-inset-bottom));box-shadow:0 -4px 20px #20262d0d;background:#fff;border-top:1px solid #ebedf1;flex-wrap:wrap}#mbi-root .mbi-button{border:1px solid #dddfe5;color:#333;background:#fff;border-radius:12px;padding:10px 14px;min-height:44px;font-size:14px;font-weight:650;cursor:pointer;line-height:1.25;white-space:normal;overflow-wrap:anywhere}#mbi-root .mbi-primary{color:#fff;background:#c60835;border-color:#c60835}#mbi-root .mbi-footer .mbi-button{flex:1;min-width:0}#mbi-root button:disabled{opacity:.5;pointer-events:none}#mbi-root button:focus-visible,#mbi-root input:focus-visible,#mbi-root select:focus-visible,#mbi-root textarea:focus-visible{outline:3px solid #e788a0;outline-offset:2px}#mbi-root .mbi-field{display:flex;flex-direction:column;gap:5px;font-size:13px;font-weight:650;color:#343a45}#mbi-root input:not([type=radio]),#mbi-root textarea,#mbi-root select{width:100%;max-width:100%;min-width:0;min-height:44px;border:1px solid #dfe1e7;border-radius:10px;background:#fafbfc;padding:10px 12px;color:#222;font:inherit;font-size:16px;line-height:1.3}#mbi-root textarea{resize:vertical;min-height:75px;max-height:180px}#mbi-root .mbi-row{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}#mbi-root .mbi-row input,#mbi-root .mbi-row select{flex:1;width:auto;min-width:65px}#mbi-root .mbi-item{display:flex;align-items:center;justify-content:space-between;gap:10px;text-align:left;padding:14px;border:1px solid #e6e8ed;border-radius:14px;background:white;color:#242a32;width:100%;min-width:0;font:inherit}#mbi-root button.mbi-item{cursor:pointer}#mbi-root .mbi-item>span:first-child{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px;overflow-wrap:anywhere}#mbi-root .mbi-item small,.mbi-muted{font-size:12px;color:#646c79}#mbi-root .mbi-badge{font-size:11px;font-weight:700;background:#fcebf0;color:#a80730;padding:5px 8px;border-radius:20px;max-width:40%;white-space:normal;overflow-wrap:anywhere;flex:none}#mbi-root .mbi-progress{height:6px;background:#f0e5e8;border-radius:10px;overflow:hidden;flex:none}#mbi-root .mbi-progress i{display:block;height:100%;background:#c60835;border-radius:10px}#mbi-root .mbi-empty,#mbi-root .mbi-notice,#mbi-root .mbi-error,#mbi-root .mbi-result{padding:14px;background:#f6f7fa;border-radius:12px;overflow-wrap:anywhere}#mbi-root .mbi-error{color:#a20d2c;background:#fff0f2;font-size:13px}#mbi-root .mbi-notice summary{cursor:pointer;font-weight:650;font-size:14px}#mbi-root .mbi-choice{display:flex;align-items:center;gap:10px;border:1px solid #e0e3e8;padding:12px;border-radius:12px;min-height:48px;font-weight:500;overflow-wrap:anywhere}#mbi-root .mbi-choice:has(input:checked){border-color:#c60835;background:#fff4f7}#mbi-root .mbi-choice input{accent-color:#c60835;flex:none;width:19px;height:19px}#mbi-root .mbi-table-wrap{overflow-x:auto;max-width:100%;border:1px solid #e6e8ee;border-radius:10px}#mbi-root .mbi-table{border-collapse:collapse;font-size:12px;min-width:100%;width:max-content}#mbi-root .mbi-table th,#mbi-root .mbi-table td{padding:6px;border:1px solid #e4e5e9;text-align:left;max-width:140px;white-space:normal}#mbi-root .mbi-table th{background:#f6f7fa}#mbi-root .mbi-table input{width:95px;min-height:36px;padding:5px;font-size:14px}#mbi-root .mbi-result{text-align:center;background:#fdf0f3;padding:25px 15px}#mbi-root .mbi-result strong{display:block;font-size:40px;color:#c60835;margin:10px 0}#app .mbi-launch-icon{font-size:23px;font-weight:800;color:#c60835;line-height:1}#app .mbi-launch span{overflow-wrap:normal;white-space:normal}@media(min-width:800px){#mbi-root .mbi-shell{height:calc(100dvh - 32px);margin:16px 0;border-radius:18px;overflow:hidden;box-shadow:0 10px 50px #1f243322}}@media(max-width:350px){#mbi-root .mbi-footer{padding:8px}#mbi-root .mbi-button{padding:9px 8px;font-size:13px}#mbi-root .mbi-header{gap:8px;padding:8px 10px}}@media(max-height:480px){#mbi-root .mbi-header{min-height:48px;padding:5px 12px}#mbi-root .mbi-close{width:38px;height:38px}#mbi-root .mbi-main{padding-block:10px;gap:8px}}

#mbi-root .mbi-ai{display:flex;flex-direction:column;gap:7px;padding:12px;background:#f8f5ff;border:1px solid #e5dbfa;border-radius:12px;min-width:0;overflow-wrap:anywhere}#mbi-root .mbi-ai-heading{font-size:14px;font-weight:750;color:#624092}#mbi-root .mbi-ai small{font-size:12px;color:#5f586d}#mbi-root .mbi-ai .mbi-button{width:100%;min-width:0;white-space:normal}#mbi-root .mbi-ai-status{font-size:12px;color:#68438f}#mbi-root .mbi-ai-status:empty{display:none}#mbi-root .mbi-ai-result{display:flex;flex-direction:column;gap:8px;font-size:13px;line-height:1.45}#mbi-root .mbi-ai-result[hidden],#mbi-root .mbi-ai-action[hidden]{display:none!important}#mbi-root .mbi-ai-result p{margin:0;white-space:pre-wrap}#mbi-root .mbi-ai-result>strong{color:#4a247b;font-size:15px}
.mbi-timer{padding:11px 14px;margin:0 0 14px;background:#f0f8f8;border:1px solid #a9d7d3;border-radius:12px;color:#126b67;font-weight:700;font-variant-numeric:tabular-nums;text-align:center;direction:auto}.mbi-timer[data-expired=yes]{background:#fff1f0;border-color:#ffc2bc;color:#ae302c}


/* MonAvenir v2 — interface pédagogique fidèle au journal djiboutien */
#mbi-root .mbi-intro h2{font-size:clamp(20px,5vw,27px);letter-spacing:-.4px;color:#202839}
#mbi-root .mbi-intro p{font-size:13px;color:#626b77}
#mbi-root .mbi-category-chips{display:flex;gap:8px;overflow-x:auto;scrollbar-width:thin;padding:4px 1px 9px;flex:none}
#mbi-root .mbi-chip{border:1px solid #e5dfe4;background:#fff;color:#343a42;border-radius:22px;padding:9px 13px;font-weight:700;font-size:12px;white-space:nowrap;min-height:40px;cursor:pointer}
#mbi-root .mbi-chip.is-active{background:#c60835;color:white;border-color:#c60835}
#mbi-root .mbi-activity{box-shadow:0 4px 15px #2930440b}
#mbi-root .mbi-exercise-head small{color:#9b1239;font-size:12px;font-weight:800}
#mbi-root .mbi-exercise-head h2{font-size:19px;line-height:1.35}
#mbi-root .mbi-situation,#mbi-root .mbi-question,#mbi-root .mbi-journal,#mbi-root .mbi-assign,#mbi-root .mbi-correct-card{background:#fff;border:1px solid #e6e7ed;border-radius:14px;padding:13px;box-shadow:0 3px 15px #141d3008;min-width:0}
#mbi-root .mbi-situation{background:#fff4f7;border-color:#f4d9e1}
#mbi-root .mbi-situation strong{color:#ac0b36;font-size:14px}
#mbi-root .mbi-situation p{font-size:13px;color:#353d47;line-height:1.5}
#mbi-root .mbi-question{display:flex;align-items:flex-start;gap:10px}
#mbi-root .mbi-question-number{display:flex;flex:none;align-items:center;justify-content:center;width:29px;height:29px;border-radius:50%;background:#c60835;color:#fff;font-size:14px;font-weight:800}
#mbi-root .mbi-question h2{font-size:16px;line-height:1.4}
#mbi-root .mbi-sheet{padding:0;overflow:hidden;border:1px solid #e2e4ea;border-radius:14px;background:#fff;box-shadow:0 3px 12px #19243a0a}
#mbi-root .mbi-sheet-head{display:flex;justify-content:space-between;gap:9px;align-items:center;padding:13px 13px 8px}
#mbi-root .mbi-sheet-head div{display:flex;flex-direction:column;gap:3px;min-width:0}
#mbi-root .mbi-sheet-head small{font-size:10px;letter-spacing:.4px;font-weight:800;color:#a20932}
#mbi-root .mbi-sheet-head strong{font-size:15px;color:#252b37}
#mbi-root .mbi-sheet-head>span{font-size:10px;background:#f3f4f6;border-radius:7px;padding:5px 7px;white-space:nowrap}
#mbi-root .mbi-sheet-meta{display:flex;justify-content:space-between;gap:8px;padding:0 13px 10px;color:#5e6573;font-size:12px}
#mbi-root .mbi-sheet-table,#mbi-root .mbi-sheet-calc{width:100%;border-collapse:collapse;table-layout:fixed;font-size:12px}
#mbi-root .mbi-sheet-table th,#mbi-root .mbi-sheet-table td{border:1px solid #e6e8ec;text-align:center;padding:9px 5px}
#mbi-root .mbi-sheet-table th{background:#f4f5f7}
#mbi-root .mbi-sheet-tag{display:inline-block;background:#fdeff3;border-radius:7px;padding:5px 8px;margin:7px 0 7px 8px;color:#ac0b39;font-weight:700;font-size:11px}
#mbi-root .mbi-sheet-calc th,#mbi-root .mbi-sheet-calc td{border:1px solid #e7e9ed;padding:9px 7px;vertical-align:middle}
#mbi-root .mbi-sheet-calc th{background:#fafbfc;width:52%;font-weight:700;text-align:left}
#mbi-root .mbi-sheet-calc td{text-align:right;font-variant-numeric:tabular-nums}
#mbi-root .mbi-sheet-active{background:#fff3f7}
#mbi-root .mbi-sheet-active th{background:#ffe8ef;color:#a40a33}
#mbi-root .mbi-sheet-calc td input{width:100%!important;min-height:42px!important;font-size:15px!important;text-align:right!important;border:2px solid #c60835!important;background:white!important}
#mbi-root .mbi-sheet-empty{color:#999faa;font-size:12px;font-style:italic}
#mbi-root .mbi-sheet-details summary{font-weight:700;color:#a30b34;cursor:pointer;padding:10px 0}
#mbi-root .mbi-sheet-details .mbi-sheet{box-shadow:none}
#mbi-root .mbi-journal{display:flex;flex-direction:column;gap:10px;padding:10px}
#mbi-root .mbi-journal-title{display:flex;justify-content:space-between;gap:7px;flex-wrap:wrap}
#mbi-root .mbi-journal-title strong{font-size:15px;color:#9b0c34}
#mbi-root .mbi-journal-title small{font-size:10px;color:#65717d}
#mbi-root .mbi-journal-wrap{max-width:100%;overflow-x:auto;border:1px solid #eed9de;border-radius:9px}
#mbi-root .mbi-journal-table{min-width:570px;width:100%;table-layout:fixed;border-collapse:collapse;font-size:12px}
#mbi-root .mbi-journal-table th{background:#c60835;color:#fff;text-align:center;font-size:11px;padding:11px 4px}
#mbi-root .mbi-journal-table th:nth-child(1),#mbi-root .mbi-journal-table th:nth-child(2){width:12%}
#mbi-root .mbi-journal-table th:nth-child(3){width:36%}
#mbi-root .mbi-journal-table th:nth-child(4),#mbi-root .mbi-journal-table th:nth-child(5){width:20%}
#mbi-root .mbi-journal-table td{max-width:none;padding:5px;text-align:left;border:1px solid #e2e3e8;font-size:12px;overflow-wrap:anywhere}
#mbi-root .mbi-journal-table input{width:100%!important;min-width:0!important;max-width:100%!important;min-height:37px!important;padding:5px!important;font-size:13px!important}
#mbi-root .mbi-journal-date td{text-align:center;background:#fff5f8}
#mbi-root .mbi-journal-label td{text-align:center;background:#f8f9fb;font-size:11px;font-style:italic;padding:8px}
#mbi-root .mbi-journal-totals{background:#f6f7fa;border-radius:9px;padding:10px;font-weight:750;font-size:12px;text-align:center;font-variant-numeric:tabular-nums}
#mbi-root .mbi-journal .mbi-button{align-self:center}
#mbi-root .mbi-hint{border:1px solid #eddcae;background:#fffbf0;border-radius:12px;padding:11px}
#mbi-root .mbi-hint summary{cursor:pointer;color:#8f6915;font-weight:750}
#mbi-root .mbi-option-tag{display:inline-flex;align-items:center;justify-content:center;width:27px;height:27px;background:#fde9ef;border-radius:50%;color:#9f0d36;font-weight:800;font-size:12px}
#mbi-root .mbi-choice.mbi-true:has(input:checked){background:#edf9f2;border-color:#289a58}
#mbi-root .mbi-choice.mbi-false:has(input:checked){background:#fff1f3;border-color:#d13a54}
#mbi-root .mbi-feedback{padding:12px 13px;border-radius:11px;border:1px solid #eee0d5;font-size:13px;line-height:1.45}
#mbi-root .mbi-feedback.mbi-good{background:#edf9f1;color:#187c43;border-color:#c6e8d1}
#mbi-root .mbi-feedback.mbi-warning{background:#fff9ee;color:#815518;border-color:#f2dfbd}
#mbi-root .mbi-assign h3{margin:0 0 7px;font-size:15px;color:#a50b35}
#mbi-root .mbi-group-choice{display:flex;align-items:center;gap:10px;border:1px solid #e6e7ee;border-radius:10px;padding:10px;margin:7px 0;cursor:pointer}
#mbi-root .mbi-group-choice input{width:18px;height:18px;accent-color:#c60835}
#mbi-root .mbi-group-choice span{display:flex;flex-direction:column;gap:2px}
#mbi-root .mbi-group-choice small{font-size:11px;color:#686f7b}
#mbi-root .mbi-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
#mbi-root .mbi-stats>div{border:1px solid #eceef0;border-radius:11px;text-align:center;padding:12px 4px;display:flex;flex-direction:column;gap:4px}
#mbi-root .mbi-stats strong{font-size:19px;color:#ae0b35}
#mbi-root .mbi-stats small{font-size:10px;color:#5b6573}
#mbi-root .mbi-answer{background:#f5f7fa;padding:12px;border-radius:10px;display:flex;flex-direction:column;gap:5px}
#mbi-root .mbi-answer strong{font-size:16px;color:#a50a35;overflow-wrap:anywhere}
#mbi-root .mbi-correct-card{display:flex;flex-direction:column;gap:10px}
#mbi-root .mbi-correct-card p{font-size:13px}
@media(max-width:400px){#mbi-root .mbi-main{padding:12px 11px;gap:11px}#mbi-root .mbi-badge{max-width:50%}#mbi-root .mbi-stats strong{font-size:17px}#mbi-root .mbi-footer{gap:7px}}



#mbi-root .mbi-overview{border:1px solid #eedde3;background:linear-gradient(155deg,#fff7f9,#fff);padding:13px;border-radius:14px;display:flex;flex-direction:column;gap:12px}
#mbi-root .mbi-overview .mbi-row strong{color:#a70b36}
#mbi-root .mbi-overview-numbers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
#mbi-root .mbi-overview-numbers>div{border-radius:10px;background:white;border:1px solid #eee7e9;padding:9px 5px;display:flex;flex-direction:column;gap:3px;text-align:center}
#mbi-root .mbi-overview-numbers strong{font-size:20px;color:#b40b37;font-variant-numeric:tabular-nums}
#mbi-root .mbi-overview-numbers small{font-size:10px;color:#5f6877}
#mbi-root .mbi-review-suggestions{border-top:1px solid #eadfe3;padding-top:9px}
#mbi-root .mbi-review-suggestions summary{cursor:pointer;font-size:13px;color:#a60d38;font-weight:700}
#mbi-root .mbi-suggestion{width:100%;display:flex;align-items:center;justify-content:space-between;gap:8px;text-align:left;border:0;border-bottom:1px solid #eee;background:transparent;padding:10px 3px;font-size:12px;color:#37414e;cursor:pointer}
#mbi-root .mbi-suggestion span{font-weight:800;color:#b10e39;white-space:nowrap}


/* MonAvenir - écran intégré à Travailler, maquette rouge et blanc */
#mbi-root{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
#mbi-root .mbi-shell{background:#fff}
#mbi-root .mbi-intro h2{color:#17263e}
#mbi-root .mbi-category-chips{flex-wrap:nowrap;overflow-x:auto;display:flex;gap:8px;padding:7px 2px 12px}
#mbi-root .mbi-chip{font:700 13px/1.25 inherit;border-radius:12px;border:1px solid #ead6dd;background:#fff;color:#9f1339;white-space:nowrap;min-height:42px;padding:9px 14px}
#mbi-root .mbi-chip.is-active{background:#c60835;color:#fff;border-color:#c60835}
#mbi-root .mbi-overview{display:block;padding:14px 15px;background:#fff6f8;border:1px solid #f4dae2;border-radius:16px}
#mbi-root .mbi-overview>.mbi-row{display:flex;align-items:center;justify-content:space-between;gap:9px}
#mbi-root .mbi-overview-numbers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:12px}
#mbi-root .mbi-overview-numbers>div{min-width:0;display:flex;flex-direction:column;gap:4px;text-align:center;border-radius:10px;padding:9px 5px;background:#fff;border:1px solid #f0e5e9}
#mbi-root .mbi-overview-numbers strong{display:block;font-size:20px;color:#bb103d}
#mbi-root .mbi-overview-numbers small{font-size:10px;line-height:1.4;color:#65717f}
#mbi-root .mbi-sheet .mbi-sheet-head{display:flex;justify-content:space-between;align-items:center;gap:9px}
#mbi-root .mbi-sheet .mbi-sheet-table{width:100%;display:table;border-collapse:collapse}
#mbi-root .mbi-sheet .mbi-sheet-table th,#mbi-root .mbi-sheet .mbi-sheet-table td{border:1px solid #e5e7ec;padding:10px 7px}
#mbi-root .mbi-question{display:flex;align-items:start;gap:11px}
#mbi-root .mbi-situation{border-radius:14px;background:#fff5f7;border:1px solid #f3d8df;padding:14px}
#mbi-root .mbi-journal-wrap{overflow-x:auto;max-width:100%}
#mbi-root .mbi-journal-table{min-width:570px;table-layout:fixed}
#mbi-root .mbi-journal-table th{background:#c60835!important;color:white!important}
#mbi-root .mbi-footer{position:relative;flex-wrap:nowrap}
#mbi-root .mbi-button{display:inline-flex;align-items:center;justify-content:center;border-radius:11px}
#mbi-root .mbi-feedback{padding:11px 12px;border-radius:12px}
.lr-native-interactive{border:1px solid #ece7eb!important;border-radius:14px!important;padding:13px!important;margin:8px 0;background:#fff;box-shadow:0 4px 14px #10182809}
.lr-native-interactive>.lr-symbol{background:#fff0f4!important;color:#c60835!important}
.lr-native-interactive>div{flex:1;min-width:0}
.lr-native-interactive .btn{border-radius:11px;min-height:42px;background:#c60835;color:white}
.lr-tabs button[aria-pressed=true]{background:#c60835!important;border-color:#c60835!important;color:#fff!important}
@media(max-width:520px){
 #mbi-root .mbi-main{padding:14px 12px;gap:10px}
 #mbi-root .mbi-situation p{font-size:13px}
 #mbi-root .mbi-question h2{font-size:16px}
 #mbi-root .mbi-sheet-head strong{font-size:14px}
 .lr-native-interactive{display:grid!important;grid-template-columns:39px minmax(0,1fr);gap:9px!important}
 .lr-native-interactive>.lr-symbol{grid-row:1;grid-column:1}
 .lr-native-interactive>div{grid-column:2;grid-row:1}
 .lr-native-interactive>.btn{grid-column:1/-1;width:100%;margin-top:5px}
}
