/* MathsTD — Composer un devoir (enseignant). Préfixe mtdco-. Identité « bureau d'examinateur » : papier blanc, encre
   marine, or pour les points. Aucun orange, aucun emoji, police du site (Calisto MT), aucune ressource externe. */
html body.mtdco-page { background: #F3F1EA !important; }
body.mtdco-page .site-main, body.mtdco-page .page-content, body.mtdco-page main { max-width: none !important; padding: 0 !important; margin: 0 !important; }
body.mtdco-page .page-header, body.mtdco-page .entry-title { display: none !important; }

.mtdco {
  --ink: #0f1b4c; --ink2: #24305e; --muted: #5b6380; --line: #E4E0D4; --line2: #CFC9B8; --desk: #F3F1EA; --card: #fff;
  --gold: #c9a84c; --gold-d: #8a6d1f; --gold-bg: #FBF5E4; --grn: #1f7a4d; --grn-bg: #E9F6EF; --red: #b42318; --red-bg: #FDEDEC;
  --blue: #2f4bb8; --blue-bg: #EEF1FB; --r: 14px; --sh: 0 1px 2px rgba(15,27,76,.06), 0 8px 24px rgba(15,27,76,.07);
  font-family: 'Calisto MT', 'Bookman Old Style', Georgia, serif; color: var(--ink); font-size: 16px; line-height: 1.45;
  max-width: 1320px; margin: 0 auto; padding: 14px 16px 96px; box-sizing: border-box;
}
.mtdco *, .mtdco *::before, .mtdco *::after { box-sizing: border-box; }
.mtdco svg { flex: none; }
.mtdco h1, .mtdco h2, .mtdco h3 { font-family: inherit; color: var(--ink); margin: 0; line-height: 1.2; }
.mtdco h2 { font-size: 1.05rem; } .mtdco h3 { font-size: 1rem; }
.mtdco p { margin: 0; }
.mtdco [hidden] { display: none !important; }
.mtdco button, .mtdco input, .mtdco select, .mtdco textarea { font: inherit; color: var(--ink); }

/* Chargement, erreurs */
.mtdco-boot { min-height: 50vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--muted); }
.mtdco-spin { width: 32px; height: 32px; border-radius: 50%; border: 3px solid var(--line2); border-top-color: var(--ink); animation: mtdco-rot .8s linear infinite; }
@keyframes mtdco-rot { to { transform: rotate(360deg); } }
.mtdco-msg { border-radius: 12px; padding: 14px 16px; border: 1px solid var(--line); background: #fff; }
.mtdco-msg.err { background: var(--red-bg); border-color: #F5C2BE; color: #6b130c; }
.mtdco-msg.warn { background: var(--gold-bg); border-color: #EBD9A6; color: #5c4612; }
.mtdco-msg.ok { background: var(--grn-bg); border-color: #BFE3CF; color: #10462b; }
.mtdco-msg .mtdco-row { margin-top: 10px; }

/* Boutons (préfixés par l'id : le thème colore tout bouton en rose) */
html body #mtdco .mtdco-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 9px 16px; border-radius: 12px;
  border: 1px solid var(--line2); background: #fff; color: var(--ink); font-weight: 700; font-size: .95rem; cursor: pointer; text-decoration: none; white-space: nowrap; transition: box-shadow .15s, background .15s; }
html body #mtdco .mtdco-btn:hover { box-shadow: var(--sh); color: var(--ink); background: #fff; }
html body #mtdco .mtdco-btn:focus-visible, html body #mtdco .mtdco-ibtn:focus-visible, .mtdco input:focus-visible, .mtdco textarea:focus-visible, .mtdco select:focus-visible { outline: 3px solid rgba(201,168,76,.55); outline-offset: 1px; }
html body #mtdco .mtdco-btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
html body #mtdco .mtdco-btn.pri { background: var(--ink); color: #fff; border-color: var(--ink); }
html body #mtdco .mtdco-btn.pri:hover { background: #18276a; color: #fff; }
html body #mtdco .mtdco-btn.gold { background: var(--gold); color: var(--ink); border-color: var(--gold); }
html body #mtdco .mtdco-btn.danger { color: var(--red); border-color: #F0B4AE; }
html body #mtdco .mtdco-btn.quiet { border-color: transparent; background: transparent; }
html body #mtdco .mtdco-btn.quiet:hover { background: rgba(15,27,76,.06); box-shadow: none; }
html body #mtdco .mtdco-btn.sm { min-height: 36px; padding: 6px 12px; font-size: .86rem; border-radius: 10px; }
html body #mtdco .mtdco-ibtn { width: 44px; height: 44px; border-radius: 11px; display: inline-grid; place-items: center; border: 1px solid var(--line); background: #fff; color: var(--ink2); cursor: pointer; padding: 0; }
html body #mtdco .mtdco-ibtn:hover { border-color: var(--ink); color: var(--ink); background: #fff; }
html body #mtdco .mtdco-ibtn:disabled { opacity: .35; cursor: default; }
html body #mtdco .mtdco-ibtn.sm { width: 36px; height: 36px; border-radius: 9px; }
.mtdco-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mtdco-grow { flex: 1 1 auto; min-width: 0; }

/* Champs */
.mtdco-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mtdco-field > span { font-size: .8rem; font-weight: 700; color: var(--muted); letter-spacing: .02em; }
.mtdco input[type=text], .mtdco input[type=number], .mtdco input[type=date], .mtdco select, .mtdco textarea {
  width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid var(--line2); border-radius: 10px; background: #fff; font-size: 16px; }
.mtdco textarea { min-height: 88px; resize: vertical; line-height: 1.5; font-family: inherit; }
.mtdco textarea.mtdco-short { min-height: 56px; }
.mtdco input:focus, .mtdco textarea:focus, .mtdco select:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(201,168,76,.3); }
.mtdco-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mtdco-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 560px) { .mtdco-grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Chips */
.mtdco-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: #EFEDE6; color: var(--ink2); white-space: nowrap; }
.mtdco-chip.gold { background: var(--gold-bg); color: var(--gold-d); }
.mtdco-chip.grn { background: var(--grn-bg); color: var(--grn); }
.mtdco-chip.red { background: var(--red-bg); color: var(--red); }
.mtdco-chip.blue { background: var(--blue-bg); color: var(--blue); }

/* ── Bibliothèque de sujets ──────────────────────────────────────────── */
.mtdco-hero { border-radius: 20px; padding: 22px 20px; color: #fff; background: linear-gradient(135deg, #0f1b4c 0%, #1a2e6b 70%, #24397f 100%); box-shadow: 0 14px 40px rgba(15,27,76,.25); position: relative; overflow: hidden; }
.mtdco-hero::after { content: ''; position: absolute; right: -50px; top: -60px; width: 220px; height: 220px; border-radius: 50%; border: 28px solid rgba(201,168,76,.16); }
.mtdco-hero h1 { color: #fff; font-size: 1.6rem; }
.mtdco-hero p { color: rgba(255,255,255,.82); margin-top: 6px; max-width: 640px; }
.mtdco-hero .mtdco-row { margin-top: 16px; position: relative; z-index: 1; }
.mtdco-quota { margin-top: 12px; font-size: .88rem; color: rgba(255,255,255,.85); position: relative; z-index: 1; }
.mtdco-quota b { color: var(--gold); }
.mtdco-section { margin-top: 22px; }
.mtdco-section > h2 { font-size: 1.1rem; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mtdco-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.mtdco-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); padding: 14px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.mtdco-card h3 { font-size: 1.02rem; overflow-wrap: anywhere; }
.mtdco-card .mtdco-meta { font-size: .84rem; color: var(--muted); }
.mtdco-card .mtdco-row:last-child { margin-top: auto; }
.mtdco-models { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
html body #mtdco .mtdco-model { white-space: normal; text-align: left; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px; cursor: pointer; min-height: 92px; color: var(--ink); }
html body #mtdco .mtdco-model:hover { border-color: var(--gold); box-shadow: var(--sh); background: #fff; }
.mtdco-model b { font-size: 1rem; }
.mtdco-model span { font-size: .84rem; color: var(--muted); font-weight: 400; }
.mtdco-empty { text-align: center; padding: 30px 16px; color: var(--muted); background: #fff; border: 1px dashed var(--line2); border-radius: var(--r); }

/* ── Éditeur ─────────────────────────────────────────────────────────── */
.mtdco-top { position: sticky; top: var(--mtdco-hd, 0px); z-index: 50; background: rgba(243,241,234,.96); backdrop-filter: blur(6px); margin: -14px -16px 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); display: flex; gap: 8px; align-items: center; }
.mtdco-top .mtdco-title { font-weight: 700; font-size: 1.02rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1 1 auto; }
.mtdco-save { font-size: .8rem; color: var(--muted); white-space: nowrap; }
.mtdco-save.err { color: var(--red); font-weight: 700; }
.mtdco-save.ok { color: var(--grn); }
.mtdco-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 1080px) {
  .mtdco-layout { grid-template-columns: minmax(0, 1fr) 560px; align-items: start; }
  .mtdco-side[data-side=apercu] .mtdco-pane-apercu, .mtdco-side[data-side=apercu] .mtdco-pane-controle, .mtdco-side[data-side=banque] .mtdco-pane-banque { display: block !important; }
  .mtdco-side .mtdco-pane { display: none; }
  .mtdco-side { position: sticky; top: calc(var(--mtdco-hd, 0px) + 72px); max-height: calc(100vh - var(--mtdco-hd, 0px) - 88px); overflow: auto; display: flex; flex-direction: column; gap: 14px; padding-bottom: 8px; }
  .mtdco-tabs { display: none !important; }
}
@media (max-width: 1079px) {
  .mtdco-pane { display: none; }
  .mtdco-pane.on { display: block; }
  .mtdco-side { display: contents; }
  .mtdco-sideswitch { display: none !important; }
}
.mtdco-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #fff; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr); padding: 4px 6px calc(4px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 20px rgba(15,27,76,.08); }
html body #mtdco .mtdco-tab { min-height: 52px; border: 0; background: transparent; color: var(--muted); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: .8rem; font-weight: 700; cursor: pointer; border-radius: 10px; position: relative; padding: 4px; }
html body #mtdco .mtdco-tab.on { color: var(--ink); background: var(--gold-bg); }
.mtdco-tab .mtdco-badge { position: absolute; top: 4px; right: calc(50% - 22px); min-width: 18px; height: 18px; border-radius: 9px; background: var(--red); color: #fff; font-size: .7rem; display: grid; place-items: center; padding: 0 4px; }

.mtdco-box { background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); padding: 14px; min-width: 0; }
.mtdco-box + .mtdco-box { margin-top: 12px; }
.mtdco-box > h2 { font-size: 1.02rem; margin-bottom: 10px; }
html body #mtdco .mtdco-fold { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; background: transparent; border: 0; padding: 0; min-height: 44px; cursor: pointer; text-align: left; color: var(--ink); }
.mtdco-fold b { font-size: 1.02rem; }
.mtdco-fold small { color: var(--muted); font-size: .84rem; display: block; font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mtdco-fold svg { transition: transform .2s; }
.mtdco-fold[aria-expanded=true] svg { transform: rotate(180deg); }
.mtdco-entete-body { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }

/* Barre de formules (collante sous la barre du haut quand un champ est actif) */
.mtdco-kb { display: flex; gap: 6px; overflow-x: auto; padding: 8px; margin: 0 0 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; position: sticky; top: calc(var(--mtdco-hd, 0px) + 62px); z-index: 40; scrollbar-width: thin; }
html body #mtdco .mtdco-kb button { flex: none; min-width: 44px; min-height: 40px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 9px; background: #FAF9F5; color: var(--ink); cursor: pointer; font-size: .92rem; white-space: nowrap; }
html body #mtdco .mtdco-kb button:hover { border-color: var(--gold); background: #fff; }
html body #mtdco .mtdco-kb button.main { background: var(--ink); color: #fff; border-color: var(--ink); font-weight: 700; }

/* Parties, exercices, questions */
.mtdco-part { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--ink); border-radius: var(--r); box-shadow: var(--sh); padding: 12px; margin-top: 12px; min-width: 0; }
.mtdco-part-head { display: flex; gap: 8px; align-items: center; }
.mtdco-part-head input { font-weight: 700; font-size: 1.05rem; }
.mtdco-pts { flex: none; font-weight: 700; color: var(--gold-d); background: var(--gold-bg); border-radius: 999px; padding: 4px 10px; font-size: .86rem; white-space: nowrap; }
.mtdco-part-tools { display: flex; gap: 6px; align-items: center; justify-content: flex-end; flex-wrap: wrap; margin-top: 8px; }
.mtdco-item { border-top: 1px dashed var(--line2); margin-top: 12px; padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.mtdco-item:first-of-type { border-top: 0; padding-top: 0; }
.mtdco-q { border: 1px solid var(--line); border-radius: 12px; padding: 10px; background: #FCFBF8; display: flex; flex-direction: column; gap: 8px; }
.mtdco-q-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mtdco-q-head input.mtdco-label { width: 74px; flex: none; text-align: center; font-weight: 700; }
.mtdco-step { display: inline-flex; align-items: center; border: 1px solid var(--line2); border-radius: 11px; overflow: hidden; background: #fff; flex: none; }
html body #mtdco .mtdco-step button { width: 40px; height: 42px; border: 0; background: #fff; color: var(--ink); cursor: pointer; font-size: 1.1rem; font-weight: 700; padding: 0; }
html body #mtdco .mtdco-step button:hover { background: var(--gold-bg); }
.mtdco .mtdco-step input { width: 62px; min-height: 42px; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); border-radius: 0; text-align: center; padding: 4px; font-weight: 700; color: var(--gold-d); }
.mtdco-step em { font-style: normal; font-size: .8rem; color: var(--muted); padding: 0 8px 0 4px; }
.mtdco-q-tools { display: flex; gap: 4px; margin-left: auto; }
.mtdco-live { border: 1px solid #EBD9A6; background: var(--gold-bg); border-radius: 10px; padding: 8px 10px; font-size: .95rem; overflow-x: auto; }
.mtdco-live::before { content: 'Aperçu'; display: block; font-size: .72rem; font-weight: 700; color: var(--gold-d); margin-bottom: 2px; letter-spacing: .04em; text-transform: uppercase; }
.mtdco-add { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
html body #mtdco .mtdco-add .mtdco-btn { border-style: dashed; }
.mtdco-confirm { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: .88rem; background: var(--red-bg); border-radius: 10px; padding: 6px 8px; }

/* Contrôle */
.mtdco-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.mtdco-checks li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 10px; background: #FAF9F5; font-size: .92rem; }
.mtdco-checks li i { flex: none; width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; background: var(--grn); }
.mtdco-checks li.warn i { background: var(--gold); }
.mtdco-checks li.err i { background: var(--red); }
.mtdco-checks li small { display: block; color: var(--muted); }
.mtdco-checks li.info i { background: transparent; border: 2px solid var(--muted); width: 8px; height: 8px; }
.mtdco-checks li small a { color: var(--ink); font-weight: 700; text-decoration: underline; display: inline-flex; align-items: center; min-height: 32px; }
.mtdco-total { display: flex; align-items: baseline; gap: 6px; font-size: 1.5rem; font-weight: 700; }
.mtdco-total small { font-size: .9rem; color: var(--muted); font-weight: 400; }
.mtdco-versions { list-style: none; margin: 8px 0 0; padding: 0; max-height: 220px; overflow: auto; }
.mtdco-versions li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--line); font-size: .86rem; }

/* ── Aperçu A4 ───────────────────────────────────────────────────────── */
.mtdco-apercu-bar { display: flex; gap: 8px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 10px; }
.mtdco-viewport { position: relative; overflow: hidden; background: #DCD8CC; border-radius: 12px; padding: 12px; }
.mtdco-scaler { transform-origin: top left; }
.mtdco-break { position: absolute; left: 0; right: 0; border-top: 2px dashed #9AA3C4; pointer-events: none; }
.mtdco-break span { position: absolute; right: 6px; top: -11px; background: #9AA3C4; color: #fff; font-size: 11px; padding: 1px 6px; border-radius: 8px; font-family: Georgia, serif; }

/* La feuille : mêmes règles à l'écran et à l'impression. Unités physiques pour mesurer les pages. */
.mtdco-sheet { width: 210mm; min-height: 297mm; background: #fff; color: #000; padding: 14mm 16mm; font-family: 'Calisto MT', 'Bookman Old Style', Georgia, serif;
  font-size: 11.5pt; line-height: 1.45; box-shadow: 0 6px 24px rgba(0,0,0,.18); position: relative; box-sizing: border-box; }
.mtdco-sheet.t-petite { font-size: 10.5pt; } .mtdco-sheet.t-grande { font-size: 12.5pt; }
.mtdco-sheet * { box-sizing: border-box; }
.mtdco-sh-head { border: 1.5px solid #000; display: grid; grid-template-columns: 1fr 1fr; font-size: .92em; }
.mtdco-sh-head > div { padding: 2.5mm 3mm; }
.mtdco-sh-head > div + div { border-left: 1.5px solid #000; text-align: right; }
.mtdco-sh-head b { font-weight: 700; }
.mtdco-sh-title { text-align: center; margin: 4mm 0 1mm; font-size: 1.18em; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.mtdco-sh-sub { text-align: center; font-size: .95em; }
.mtdco-sh-cons { margin-top: 2mm; text-align: center; font-style: italic; font-size: .9em; white-space: pre-wrap; }
.mtdco-sh-rule { border: 0; border-top: 1px solid #000; margin: 3mm 0 4mm; }
.mtdco-sh-part { margin-top: 5mm; }
.mtdco-sh-part.sp { break-before: page; page-break-before: always; }
.mtdco-sh-ph { display: flex; justify-content: space-between; align-items: baseline; gap: 4mm; font-weight: 700; text-transform: uppercase; border-bottom: 1px solid #000; padding-bottom: 1mm; margin-bottom: 2mm; break-after: avoid; page-break-after: avoid; }
.mtdco-sh-ph span:last-child { text-transform: none; font-weight: 400; font-style: italic; white-space: nowrap; }
.mtdco-sh-it + .mtdco-sh-it { margin-top: 3mm; }
.mtdco-sh-it > h4 { font-size: 1em; font-weight: 700; margin: 0 0 1mm; font-family: inherit; color: #000; }
.mtdco-sh-en { margin: 0 0 1.5mm; overflow-wrap: anywhere; }
.mtdco-sh-q { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 2mm; margin: 1.2mm 0; break-inside: avoid; page-break-inside: avoid; }
.mtdco-sh-q .l { font-weight: 700; min-width: 6mm; }
.mtdco-sh-q .t { overflow-wrap: anywhere; }
.mtdco-sh-q .p { font-style: italic; font-size: .9em; white-space: nowrap; }
.mtdco-sh-end { text-align: center; margin-top: 8mm; font-size: .9em; font-style: italic; }
.mtdco-sheet mjx-container[display=true] { margin: 1.5mm 0 !important; }
.mtdco-sheet mjx-container { max-width: 100%; overflow-x: auto; overflow-y: hidden; }

/* Impression : seule la feuille sort ; elle est posée à la racine du document par le script. */
#mtdco-print { display: none; }
@media print {
  @page { size: A4; margin: 14mm 16mm; }
  html body.mtdco-printing { background: #fff !important; }
  body.mtdco-printing > *:not(#mtdco-print) { display: none !important; }
  body.mtdco-printing #mtdco-print { display: block !important; }
  #mtdco-print .mtdco-sheet { box-shadow: none; min-height: 0; width: auto; padding: 0; }
}
html body #mtdco .mtdco-ibtn.armed { background: var(--red); border-color: var(--red); color: #fff; }
/* Bulle du Tuteur IA (site) : au-dessus des onglets du bas sur téléphone et tablette. */
@media (max-width: 1079px) { html body.mtdco-page #mtd-bubble-root { bottom: calc(78px + env(safe-area-inset-bottom)) !important; } }

/* ── Lots 2 et 3 ─────────────────────────────────────────────────────── */
.mtdco-hint { font-size: .88rem; color: var(--muted); margin: 0 0 10px; line-height: 1.45; }
.mtdco-hint a { color: var(--ink); font-weight: 700; }
.mtdco-msg.sm { padding: 8px 10px; font-size: .86rem; border-radius: 10px; }
.mtdco-meta { font-size: .84rem; color: var(--muted); }
/* Sélecteur segmenté (sorties de l'aperçu, panneau latéral) */
.mtdco-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; background: #EFEDE6; border-radius: 12px; padding: 4px; margin-bottom: 10px; }
html body #mtdco .mtdco-seg button { min-height: 40px; border: 0; border-radius: 9px; background: transparent; color: var(--ink2); font-weight: 700; font-size: .88rem; cursor: pointer; padding: 4px 8px; }
html body #mtdco .mtdco-seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(15,27,76,.15); }
.mtdco-sideswitch { margin: 0; }
/* Barre du haut : libellés courts sur téléphone */
@media (max-width: 560px) { .mtdco-top .mtdco-btn span:not(.mtdco-give-l) { display: none; } .mtdco-top .mtdco-save { display: none; } }
/* Origine d'un exercice dans l'éditeur */
.mtdco-src { display: flex; align-items: center; gap: 8px; font-size: .84rem; color: var(--blue); background: var(--blue-bg); border-radius: 10px; padding: 6px 10px; }
.mtdco-src span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
/* Banque */
.mtdco-bq-search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line2); border-radius: 10px; padding: 0 10px; background: #fff; margin: 10px 0; color: var(--muted); }
.mtdco .mtdco-bq-search input[type=search] { border: 0; box-shadow: none; padding: 9px 0; min-height: 44px; width: 100%; background: transparent; font-size: 16px; }
.mtdco .mtdco-bq-search input[type=search]:focus { box-shadow: none; }
.mtdco-bq-search:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(201,168,76,.3); }
.mtdco-bq .mtdco-grid3 { margin-top: 0; }
.mtdco-bq-res { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.mtdco-bq-count { font-size: .86rem; font-weight: 700; color: var(--muted); }
.mtdco-bqc { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: #FCFBF8; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mtdco-bqc h3 { font-size: 1rem; overflow-wrap: anywhere; }
.mtdco-bqc.locked { background: #F7F6F2; }
.mtdco-bqc.locked h3, .mtdco-bqc.locked .mtdco-bq-x { color: var(--muted); }
.mtdco-bq-x { font-size: .92rem; overflow-wrap: anywhere; overflow-x: auto; overflow-y: hidden; }
.mtdco-bq-pub { font-size: .78rem; color: var(--muted); font-style: italic; }
.mtdco-bq-prev { border-top: 1px dashed var(--line2); padding-top: 8px; font-size: .95rem; overflow-x: auto; }
.mtdco-bq-prev .mtdco-sh-en { margin: 0 0 6px; }
.mtdco-bq-prev .mtdco-sh-q { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px; margin: 4px 0; }
.mtdco-bq-pager { justify-content: space-between; font-size: .86rem; color: var(--muted); }
.mtdco-chip svg { width: 13px; height: 13px; }
/* Message bref (ajout depuis la banque) */
.mtdco-toast { position: fixed; left: 50%; bottom: calc(76px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); z-index: 80; width: min(560px, calc(100vw - 32px));
  background: var(--ink); color: #fff; border-radius: 14px; padding: 12px 14px; display: flex; gap: 10px; align-items: center; justify-content: space-between; box-shadow: 0 12px 30px rgba(15,27,76,.3);
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; font-size: .92rem; }
.mtdco-toast.on { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
@media (min-width: 1080px) { .mtdco-toast { bottom: 24px; } }
/* Donner le sujet */
.mtdco-dif { display: flex; flex-direction: column; gap: 12px; max-width: 980px; margin: 0 auto; }
.mtdco-dif .mtdco-box + .mtdco-box { margin-top: 0; }
.mtdco-difcards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 860px) { .mtdco-difcards { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: start; } }
.mtdco-dif form { display: flex; flex-direction: column; gap: 10px; }
.mtdco-h-ico { display: flex; align-items: center; gap: 8px; }
.mtdco-soon { background: #FAF9F5; }
.mtdco-radios { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.mtdco-radios legend { font-size: .8rem; font-weight: 700; color: var(--muted); margin-bottom: 4px; padding: 0; width: 100%; }
.mtdco-radios label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px; border: 1px solid var(--line2); border-radius: 10px; background: #fff; cursor: pointer; }
.mtdco-radios input { width: 18px; height: 18px; accent-color: var(--ink); }
.mtdco-radios label:has(input:checked) { border-color: var(--ink); background: var(--blue-bg); }
.mtdco input[type=datetime-local] { width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid var(--line2); border-radius: 10px; background: #fff; font-size: 16px; }
html body #mtdco .mtdco-btn.mtdco-wide { width: 100%; }
.mtdco-diflist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.mtdco-diflist li { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mtdco-diflist li:last-child { border-bottom: 0; }
.mtdco-diflist small { display: block; color: var(--muted); font-size: .82rem; margin-top: 2px; }
/* Feuille : corrigé et barème */
.mtdco-sh-q.cor .t { font-size: .92em; color: #333; }
.mtdco-sh-cor { margin: 0 0 2.5mm 8mm; padding-left: 3mm; border-left: 2px solid #9AA3C4; }
.mtdco-sh-cor .mtdco-sh-en { margin: 0 0 1mm; }
.mtdco-sh-cor .vide { font-style: italic; color: #777; }
.mtdco-sh-cor.gen { margin-left: 0; margin-top: 2mm; }
.mtdco-sh-cor.gen > b { display: block; margin-bottom: 1mm; }
.mtdco-sh-bar { width: 100%; border-collapse: collapse; font-size: .92em; }
.mtdco-sh-bar th, .mtdco-sh-bar td { border: 1px solid #000; padding: 1.5mm 2mm; text-align: left; vertical-align: top; }
.mtdco-sh-bar th { font-weight: 700; background: #f2f2f2; }
.mtdco-sh-bar td.l { font-weight: 700; white-space: nowrap; width: 12mm; }
.mtdco-sh-bar td.n { text-align: center; width: 16mm; white-space: nowrap; }
.mtdco-sh-bar td.o { width: 18mm; }
.mtdco-sh-bar tr.pt td { font-weight: 700; text-transform: uppercase; background: #f7f7f7; }
.mtdco-sh-bar tr.st td { font-style: italic; }
.mtdco-sh-bar tfoot td { font-weight: 700; }
.mtdco-sh-bar tr { break-inside: avoid; page-break-inside: avoid; }

/* Documents joints */
.mtdco-pieces { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.mtdco-pc-head b { display: block; font-size: 1.02rem; }
.mtdco-pc-head small { color: var(--muted); font-size: .84rem; }
.mtdco-pc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.mtdco-pc-list li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: #FCFBF8; min-width: 0; flex-wrap: wrap; }
.mtdco-pc-list a, .mtdco-pc-list .mtdco-grow { color: var(--ink); text-decoration: none; font-weight: 700; min-width: 0; overflow-wrap: anywhere; flex: 1 1 150px; }
.mtdco-pc-list small { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; }
.mtdco-pc-ico { flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-size: .72rem; font-weight: 700; background: var(--blue-bg); color: var(--blue); }
.mtdco-pc-ico.pdf { background: var(--red-bg); color: var(--red); }
.mtdco-pc-lib { border-top: 1px dashed var(--line2); padding-top: 10px; max-height: 360px; overflow: auto; }
/* Lot 4 : devoir surveillé sur papier. */
.mtdco-pap form { display: flex; flex-direction: column; gap: 10px; }
.mtdco-pap-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mtdco-pap-grid .mtdco-field:first-child { grid-column: 1 / -1; }
.mtdco-pap-calc { margin: 0; padding: 10px 12px; background: var(--gold-bg); border: 1px solid #EADCB0; border-radius: 10px; color: var(--ink); }
.mtdco-pap-calc b { color: var(--gold-d); }
.mtdco-pap .mtdco-row { margin-top: 10px; }
.mtdco-pap-li { flex-direction: column; align-items: stretch !important; }
.mtdco-pap-li .mtdco-row { flex-wrap: wrap; gap: 6px; margin-top: 6px; }
/* Page du secrétariat (/secretariat/?j=…) : autonome, sans thème. */
html body.mtdco-sec-page { margin: 0; background: #F3F1EA; }
.mtdco-sec { max-width: 900px; padding: 16px 16px 48px; }
.mtdco-sec-fiche { margin-bottom: 14px; }
.mtdco-sec-fiche h1 { font-size: 1.45rem; margin: 2px 0 10px; }
.mtdco-sec-k { margin: 0; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-d); }
.mtdco-sec-dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 14px; margin: 0 0 12px; }
.mtdco-sec-dl dt { color: var(--muted); } .mtdco-sec-dl dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.mtdco-sec-copies { font-size: 1.1rem; padding: 10px 12px; background: var(--gold-bg); border-radius: 10px; margin-bottom: 10px; }
.mtdco-sec-copies b { font-size: 1.5rem; color: var(--gold-d); }
.mtdco-sec-docs ul { margin: 6px 0 10px; padding-left: 20px; } .mtdco-sec-docs a { color: var(--blue); }
.mtdco-sec-vp { overflow: hidden; }
.mtdco-sec-sc { transform-origin: 0 0; }
.mtdco-sec-sc .mtdco-sheet { box-shadow: 0 1px 2px rgba(15,27,76,.08), 0 8px 24px rgba(15,27,76,.08); }
@media print {
  html body.mtdco-sec-page { background: #fff !important; }
  .mtdco-sec-page .mtdco-sec-fiche { display: none !important; }
  .mtdco-sec-page .mtdco-sec { padding: 0; max-width: none; }
  .mtdco-sec-page .mtdco-sec-vp { overflow: visible; height: auto !important; }
  .mtdco-sec-page .mtdco-sec-sc { transform: none !important; width: auto !important; }
  .mtdco-sec-page .mtdco-sheet { box-shadow: none; min-height: 0; width: auto; padding: 0; }
}
/* Lot 5 : questions à choix, grille de réponses, mise en page compacte, exercices générés, sujet B. */
.mtdco-sh-ch { display: flex; flex-wrap: wrap; gap: 1mm 7mm; margin: -.4mm 0 1.6mm 8mm; break-inside: avoid; page-break-inside: avoid; }
.mtdco-sh-ch span { overflow-wrap: anywhere; }
.mtdco-sh-ch b { font-weight: 700; margin-right: 1mm; }
.mtdco-sh-ch span.ok { font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.mtdco-sh-ch span.ok i { font-weight: 400; font-size: .85em; text-decoration: none; }
.mtdco-sh-gid { display: flex; align-items: flex-end; gap: 2mm; margin-top: 3mm; }
.mtdco-sh-gid > i { flex: 1 1 auto; border-bottom: 1px dotted #000; height: 5mm; }
.mtdco-sh-grid { width: 100%; border-collapse: collapse; }
.mtdco-sh-grid td { border: 1px solid #000; padding: 1.6mm 2mm; vertical-align: middle; }
.mtdco-sh-grid td.l { width: 52mm; font-weight: 700; overflow-wrap: anywhere; }
.mtdco-sh-grid tr { break-inside: avoid; page-break-inside: avoid; }
.mtdco-sh-bx { display: inline-flex; align-items: center; justify-content: center; width: 7mm; height: 7mm; border: 1.2px solid #000; margin-right: 3.5mm; font-weight: 400; font-size: .85em; vertical-align: middle; }
.mtdco-sheet.compact { padding: 9mm 10mm; font-size: 10pt; line-height: 1.3; }
.mtdco-sheet.compact.t-petite { font-size: 9pt; } .mtdco-sheet.compact.t-grande { font-size: 11pt; }
.mtdco-sheet.compact .mtdco-sh-head { font-size: .86em; } .mtdco-sheet.compact .mtdco-sh-head > div { padding: 1.4mm 2.2mm; }
.mtdco-sheet.compact .mtdco-sh-title { margin: 2mm 0 0; font-size: 1.06em; }
.mtdco-sheet.compact .mtdco-sh-rule { margin: 2mm 0 2.5mm; }
.mtdco-sheet.compact .mtdco-sh-part { margin-top: 3mm; }
.mtdco-sheet.compact .mtdco-sh-it + .mtdco-sh-it { margin-top: 1.8mm; }
.mtdco-sheet.compact .mtdco-sh-q { margin: .5mm 0; gap: 1.5mm; }
.mtdco-sheet.compact .mtdco-sh-en { margin: 0 0 .8mm; }
.mtdco-sheet.compact .mtdco-sh-ch { margin-bottom: .8mm; }
.mtdco-sheet.compact .mtdco-sh-end { margin-top: 4mm; }
.mtdco-sheet.compact mjx-container[display=true] { margin: .8mm 0 !important; }
@media print { #mtdco-print .mtdco-sheet.compact, .mtdco-sec-page .mtdco-sheet.compact { padding: 0; } }
html body #mtdco .mtdco-seg button[hidden] { display: none; }
html body #mtdco .mtdco-seg button:disabled { opacity: .45; cursor: not-allowed; }
.mtdco-apopts { display: flex; flex-wrap: wrap; gap: 0 8px; }
.mtdco-apopts .mtdco-seg { flex: 1 1 150px; }
.mtdco-chip.vio { background: #F2EEFB; color: #5b3a9c; }
.mtdco-q-acts { gap: 6px; margin-top: 4px; }
.mtdco-qcm { display: flex; flex-direction: column; gap: 6px; margin: 8px 0 4px; padding: 8px 10px; border: 1px dashed var(--line2); border-radius: 10px; }
.mtdco-qcm-r { display: flex; align-items: center; gap: 6px; }
.mtdco-qcm-r input[type=text] { flex: 1 1 auto; min-width: 0; }
.mtdco-qcm-ok { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; min-width: 52px; cursor: pointer; flex: none; }
.mtdco-qcm-ok input { width: 20px; height: 20px; accent-color: var(--grn); margin: 0; }
.mtdco-qcm-ok b { color: var(--ink); }
.mtdco-qcm .mtdco-hint { margin: 0; }
.mtdco-qcm > .mtdco-btn { align-self: flex-start; }
.mtdco-gen { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.mtdco-gen .mtdco-src { color: #5b3a9c; background: #F2EEFB; }
.mtdco-gen .mtdco-hint { margin: 0; }
.mtdco-gen .mtdco-row { align-items: flex-end; }
.mtdco-gen-n { margin: 0; flex: 0 0 110px; }
.mtdco-pap-tir { border: 1px solid var(--line); border-radius: 10px; padding: 6px 12px 8px; margin: 0; min-width: 0; }
.mtdco-pap-tir legend { font-weight: 700; padding: 0 4px; }
.mtdco-pap-tir label { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-height: 44px; padding: 6px 0; cursor: pointer; }
.mtdco-pap-tir input { width: 20px; height: 20px; accent-color: var(--ink); margin: 0; flex: none; }
.mtdco-pap-tir input:disabled + * { opacity: .6; }
.mtdco-pap-tir small { flex-basis: 100%; padding-left: 30px; color: var(--muted); font-size: .82rem; }
.mtdco-pap-tir .mtdco-meta { margin: 4px 0 0; }
.mtdco-sec-docsel { margin: 4px 0 10px; }
/* Dogfooding du 2026-10-17 : structure au choix, écriture naturelle des maths, sujet moins chargé. */
html body #mtdco .mtdco-model.on { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink) inset; }
.mtdco-pick { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.mtdco-pick h3 { margin: 0; font-size: 1.05rem; }
.mtdco-pick .mtdco-hint { margin: 0; }
.mtdco-pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.mtdco-pick-opt { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: pointer; background: #fff; min-height: 44px; }
.mtdco-pick-opt:has(input:checked) { border-color: var(--ink); background: #F4F6FB; }
.mtdco-pick-opt input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }
.mtdco-pick-opt b { display: block; font-size: .95rem; }
.mtdco-pick-opt small { color: var(--muted); font-size: .82rem; }
.mtdco-pick-dur { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.mtdco-pick-dur > span { font-weight: 700; margin-right: 4px; }
.mtdco-pick-dur label { display: inline-flex; cursor: pointer; }
.mtdco-pick-dur input { position: absolute; opacity: 0; pointer-events: none; }
.mtdco-pick-dur label span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.mtdco-pick-dur input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.mtdco-pick-dur input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.mtdco-pick > .mtdco-btn { align-self: flex-start; }
.mtdco-pieces.mini { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 6px 8px; padding-top: 10px; padding-bottom: 10px; }
.mtdco-pieces.mini small { color: var(--muted); font-size: .84rem; }
.mtdco-part:not(.more) .mtdco-opt { display: none !important; }
html body #mtdco .mtdco-more svg { transition: transform .15s; }
html body #mtdco .mtdco-part.more .mtdco-more svg { transform: rotate(180deg); }
.mtdco-more .c, .mtdco-part.more .mtdco-more .o { display: none; }
.mtdco-part.more .mtdco-more .c { display: inline; }
html body #mtdco .mtdco-kb button.help { background: #fff; border-style: dashed; color: var(--ink); font-weight: 600; }
.mtdco-fxaide { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin: -4px 0 12px; overflow-x: auto; }
.mtdco-fxaide p { margin: 0 0 8px; font-size: .9rem; }
.mtdco-fxaide table { border-collapse: collapse; width: 100%; font-size: .88rem; }
.mtdco-fxaide td { padding: 5px 8px; border-top: 1px solid var(--line); vertical-align: middle; }
.mtdco-fxaide code { font-family: Consolas, "Courier New", monospace; background: #F4F2EC; padding: 2px 6px; border-radius: 6px; white-space: pre; }
.mtdco-fxaide td.r { white-space: nowrap; }
@media (max-width: 1079px) { html body.mtdco-page #mtd-bubble-root, html body.mtdco-page #td-calc-bubble { display: none !important; } }
.mtdco-sec-tips { border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; margin: 8px 0; background: #fff; }
.mtdco-sec-tips summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 700; }
.mtdco-sec-tips ul { margin: 0 0 10px; padding-left: 18px; font-size: .9rem; }
.mtdco-sec-tips li { margin: 4px 0; }
.mtdco-secvu { flex-basis: 100%; margin: 6px 0 0; }
@media print { .mtdco-sec-tips { display: none; } }
/* Lot 7 (2026-10-18) : équipe d'établissement, sujets partagés, résultats par question. Violet = fonction « équipe ». */
.mtdco-eqmh { margin: 16px 0 8px; font-size: .95rem; color: var(--ink2); }
html body #mtdco .mtdco-model-eq { border-left: 4px solid #5b3a9c; }
.mtdco-eqforms { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 12px; }
@media (min-width: 860px) { .mtdco-eqforms { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
.mtdco-eqform { display: flex; flex-direction: column; gap: 10px; }
.mtdco-eqform .mtdco-hint { margin: 0; }
.mtdco-eqform .mtdco-row input { min-width: 0; flex: 1 1 160px; }
.mtdco .mtdco-eqcode-in { text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.mtdco-eqcard { border-left: 4px solid #5b3a9c; }
.mtdco-eqlay { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (min-width: 1000px) { .mtdco-eqlay { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } }
.mtdco-eqmain, .mtdco-eqside { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.mtdco-eqmain .mtdco-box > h2, .mtdco-eqside .mtdco-box > h2 { margin-bottom: 8px; }
.mtdco-eqcode { font-size: 1.7rem; font-weight: 700; letter-spacing: .18em; color: #5b3a9c; background: #F2EEFB; border-radius: 12px; padding: 10px 12px; text-align: center; margin: 0 0 10px; overflow-wrap: anywhere; }
.mtdco-eqmembers { list-style: none; margin: 0; padding: 0; }
.mtdco-eqmembers li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid var(--line); min-height: 44px; }
.mtdco-eqmembers li:last-child { border-bottom: 0; }
.mtdco-eqset summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.mtdco-eqset form { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.mtdco-share .mtdco-meta { margin-top: 8px; }
.mtdco-sharerow { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.mtdco-sharerow p small { display: block; color: var(--muted); font-size: .82rem; margin-top: 2px; }
.mtdco-sharerow select { flex: 1 1 200px; width: auto; min-width: 0; }
.mtdco-reshead { margin-bottom: 12px; }
.mtdco-reshead h2 { margin-bottom: 6px; }
.mtdco-reshead .mtdco-hint { margin: 6px 0 0; }
.mtdco-reslist { list-style: none; margin: 0; padding: 0; }
.mtdco-reslist li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto; gap: 6px 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mtdco-reslist li:last-child { border-bottom: 0; }
.mtdco-resq b { display: block; overflow-wrap: anywhere; }
.mtdco-resq small, .mtdco-resnum small { display: block; color: var(--muted); font-size: .8rem; }
.mtdco-resnum { text-align: right; }
.mtdco-resnum b { font-size: 1.05rem; }
.mtdco-resbar { height: 12px; border-radius: 999px; background: #EFEDE6; overflow: hidden; }
.mtdco-resbar i { display: block; height: 100%; border-radius: 999px; background: var(--blue); }
.mtdco-reslist li.haut .mtdco-resbar i { background: var(--grn); }
.mtdco-reslist li.bas .mtdco-resbar i { background: var(--red); }
.mtdco-reslist li.bas .mtdco-resnum b { color: var(--red); }
@media (max-width: 620px) {
  .mtdco-reslist li { grid-template-columns: minmax(0, 1fr) auto; }
  .mtdco-resbar { grid-column: 1 / -1; grid-row: 2; }
  .mtdco-resnum small:last-child { display: none; }
}
.mtdco-rest { display: block; font-size: .86rem; color: var(--ink2); margin-top: 2px; overflow-wrap: anywhere; }
[data-shvp] .mtdco-sec-sc { margin: 0 auto; }
/* Lot 8 : épreuve chronométrée (option de l'envoi en ligne). */
.mtdco-chrono { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.mtdco-chrono-on { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; min-height: 44px; }
.mtdco-chrono-on input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }
.mtdco-chrono-on input:disabled + span { opacity: .65; }
.mtdco-chrono-on small { display: block; color: var(--muted); font-size: .82rem; margin-top: 2px; }
