/* 2026-10-10 - Editeur de modele de syllabus (etape 1) - autonome (aussi charge par le panneau plateforme, sans Bootstrap) */
.sylm { --b: #0073b1; --bd: #005a8c; --pale: #eef5fb; --line: #e3e8ee; --ink: #24313d; --mute: #6b7684; --ok: #1a7f37; --okbg: #e6f4ea; --warn: #8a5300; --warnbg: #fff4e5;
        font-size: 13px; color: var(--ink); line-height: 1.45; }
.sylm *, .sylm *::before, .sylm *::after { box-sizing: border-box; }
.sylm-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.sylm-kicker { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.sylm-title { font-size: 18px; font-weight: 600; color: var(--b); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.sylm-stats { color: var(--mute); font-size: 12px; margin-top: 3px; }
.sylm-chip { font-size: 11px; font-weight: 600; border-radius: 10px; padding: 2px 9px; white-space: nowrap; }
.sylm-chip-ok { background: var(--okbg); color: var(--ok); }
.sylm-chip-custom { background: var(--pale); color: var(--b); border: 1px solid #b9d3e6; }
.sylm-chip-ver { background: #f1f3f5; color: #555; }
.sylm-intro { color: var(--mute); margin: 0 0 12px; max-width: 70ch; }
.sylm-banner { display: flex; gap: 14px; align-items: center; justify-content: space-between; background: var(--pale); border: 1px solid #b9d3e6; border-radius: 8px; padding: 10px 14px; margin: 6px 0 12px; color: #1f4f73; }
.sylm-warn { color: var(--warn); }
.sylm-opts { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 10px 12px; background: #f8fafc; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 12px; }
.sylm-opt { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sylm-opt-label { font-weight: 600; color: #3c4a57; }
.sylm-seg { display: inline-flex; border: 1px solid #b9d3e6; border-radius: 6px; overflow: hidden; background: #fff; }
.sylm-seg button { border: 0; background: transparent; padding: 5px 11px; font-size: 12px; color: var(--b); cursor: pointer; }
.sylm-seg button + button { border-left: 1px solid #b9d3e6; }
.sylm-seg button.on { background: var(--b); color: #fff; }
.sylm-seg button:focus-visible, .sylm button:focus-visible, .sylm-input:focus-visible, .sylm-label:focus-visible { outline: 2px solid #7fb1d6; outline-offset: 1px; }
.sylm-body { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 14px; align-items: start; }
@media (max-width: 900px) { .sylm-body { grid-template-columns: minmax(0, 1fr); } .sylm-outline { order: -1; } }
.sylm-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.sylm-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; transition: border-color .15s, box-shadow .15s, opacity .15s; }
.sylm-card:hover { border-color: #c9d7e3; }
.sylm-card.open { border-color: #b9d3e6; box-shadow: 0 1px 4px rgba(0, 60, 110, .08); }
.sylm-card.off { background: #fafbfc; }
.sylm-card.off .sylm-label, .sylm-card.off .sylm-num { color: #9aa6b2; }
.sylm-card.dragging { opacity: .45; }
.sylm-card.over { border-color: var(--b); box-shadow: 0 -2px 0 var(--b) inset; }
.sylm-row { display: flex; align-items: center; gap: 6px 8px; padding: 7px 10px; flex-wrap: wrap; }
.sylm-grip { cursor: grab; color: #b3bec9; font-size: 13px; letter-spacing: -2px; user-select: none; padding: 0 2px; }
.sylm-num { min-width: 30px; text-align: center; font-weight: 700; color: var(--b); font-size: 12px; background: var(--pale); border-radius: 5px; padding: 2px 4px; }
.sylm-label { flex: 1 1 180px; min-width: 0; text-overflow: ellipsis; border: 1px solid transparent; background: transparent; border-radius: 5px; padding: 4px 6px; font-size: 13px; font-weight: 600; color: var(--ink); }
.sylm-label:hover { border-color: var(--line); }
.sylm-label:focus { border-color: #b9d3e6; background: #fff; outline: none; }
.sylm-type { font-size: 11px; border-radius: 10px; padding: 1px 8px; white-space: nowrap; background: #f1f3f5; color: #586470; }
.sylm-type-auto, .sylm-type-signatures { background: #eef2f6; color: #4f6375; }
.sylm-type-content, .sylm-type-criteria, .sylm-type-evaluation, .sylm-type-progression, .sylm-type-objectives { background: #f3effa; color: #5b4791; }
.sylm-type-list { background: #eef7f1; color: #2f6b45; }
.sylm-lock { font-size: 11px; color: var(--mute); white-space: nowrap; }
.sylm-switch { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; margin: 0; font-weight: normal; }
.sylm-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sylm-switch span { width: 34px; height: 19px; background: #cfd6dd; border-radius: 19px; position: relative; transition: background .15s; }
.sylm-switch span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; background: #fff; border-radius: 50%; transition: transform .15s; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.sylm-switch input:checked + span { background: var(--b); }
.sylm-switch input:checked + span::after { transform: translateX(15px); }
.sylm-switch input:focus-visible + span { outline: 2px solid #7fb1d6; outline-offset: 2px; }
.sylm-switch em { font-style: normal; font-size: 12px; color: var(--mute); }
.sylm-req { display: inline-flex; align-items: center; gap: 4px; margin: 0; font-weight: normal; font-size: 12px; color: #3c4a57; white-space: nowrap; }
.sylm-req input[disabled] + * , .sylm-card.off .sylm-req { color: #b3bec9; }
.sylm-move { display: inline-flex; border: 1px solid var(--line); border-radius: 5px; overflow: hidden; }
.sylm-move button { border: 0; background: #fff; color: #7b8996; font-size: 9px; padding: 3px 6px; cursor: pointer; line-height: 1; }
.sylm-move button + button { border-left: 1px solid var(--line); }
.sylm-move button:hover:not([disabled]) { background: var(--pale); color: var(--b); }
.sylm-move button[disabled] { color: #d3dae1; cursor: default; }
.sylm-more { border: 1px solid #b9d3e6; background: #fff; color: var(--b); width: 24px; height: 24px; border-radius: 50%; font-size: 14px; line-height: 1; cursor: pointer; padding: 0; }
.sylm-more:hover, .sylm-card.open .sylm-more { background: var(--b); color: #fff; }
.sylm-del { border: 0; background: transparent; color: #c9302c; cursor: pointer; font-size: 12px; padding: 2px 6px; border-radius: 4px; }
.sylm-del:hover { background: #fdf1f0; }
.sylm-detail { border-top: 1px dashed #d6e0ea; padding: 10px 12px 12px 52px; background: #fcfdfe; border-radius: 0 0 8px 8px; }
@media (max-width: 600px) { .sylm-detail { padding-left: 12px; } }
.sylm-desc { margin: 0 0 8px; color: var(--mute); font-size: 12px; }
.sylm-sub { display: block; font-weight: 600; font-size: 12px; color: #3c4a57; margin: 2px 0 6px; }
.sylm-hint { margin: 6px 0 0; font-size: 12px; color: var(--mute); font-style: italic; }
.sylm-input { width: 100%; border: 1px solid #d3dbe3; border-radius: 5px; padding: 5px 8px; font-size: 13px; background: #fff; color: var(--ink); font-family: inherit; }
.sylm-input:focus { border-color: #7fb1d6; outline: none; box-shadow: 0 0 0 2px rgba(0, 115, 177, .12); }
.sylm-input.sylm-err { border-color: #d9534f; box-shadow: 0 0 0 2px rgba(217, 83, 79, .15); }
.sylm-ta { resize: vertical; min-height: 64px; }
.sylm-fields, .sylm-evals { width: 100%; border-collapse: collapse; }
.sylm-fields td, .sylm-evals td, .sylm-evals th { padding: 3px 4px; vertical-align: middle; }
.sylm-evals th { font-size: 11px; font-weight: 600; color: var(--mute); text-align: left; }
.sylm-fields tr.off .sylm-input { color: #a3aeb8; background: #f8fafb; }
.sylm-fcb { width: 26px; text-align: center; }
.sylm-auto { display: inline-block; font-size: 11px; color: #4f6375; background: #eef2f6; border-radius: 10px; padding: 2px 8px; }
.sylm-w { width: 70px; text-align: right; }
.sylm-evalfoot { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.sylm-total { font-size: 12px; font-weight: 700; border-radius: 10px; padding: 2px 10px; }
.sylm-total.ok { background: var(--okbg); color: var(--ok); }
.sylm-total.bad { background: var(--warnbg); color: var(--warn); }
.sylm-outline { position: sticky; top: 8px; background: #f8fafc; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.sylm-outline-title { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); margin-bottom: 6px; }
.sylm-outline-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.sylm-outline-list li { display: flex; gap: 6px; font-size: 12px; color: #3c4a57; }
.sylm-onum { min-width: 26px; color: var(--b); font-weight: 700; }
.sylm-oreq { color: #c9302c; }
.sylm-add { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 12px; border: 1px dashed #b9d3e6; border-radius: 8px; background: #fbfdff; }
.sylm-add-title { font-weight: 600; color: #3c4a57; }
.sylm-add .sylm-input { width: auto; flex: 1 1 200px; }
.sylm-add select.sylm-input { flex: 0 0 auto; }
.sylm-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.sylm-dirty { margin-left: auto; font-size: 12px; color: var(--warn); }
.sylm-btn { border-radius: 6px; padding: 6px 14px; font-size: 13px; cursor: pointer; border: 1px solid transparent; font-family: inherit; }
.sylm-btn-xs { padding: 3px 9px; font-size: 12px; }
.sylm-btn-solid { background: var(--b); color: #fff; border-color: var(--b); }
.sylm-btn-solid:hover { background: var(--bd); border-color: var(--bd); }
.sylm-btn-soft { background: #fff; color: var(--b); border-color: #b9d3e6; }
.sylm-btn-soft:hover { background: var(--pale); border-color: var(--b); }
.sylm-btn-ghost { background: transparent; color: #586470; border-color: #d3dbe3; }
.sylm-btn-ghost:hover { background: #f4f6f8; }
.sylm-btn.busy { opacity: .6; cursor: progress; }
@media (prefers-reduced-motion: reduce) { .sylm-card, .sylm-switch span, .sylm-switch span::after { transition: none; } }
/* panneau plateforme : onglets des types d'ecole */
.sylm-typetabs { display: flex; gap: 6px; margin: 4px 0 12px; flex-wrap: wrap; }
.sylm-typetabs button { border: 1px solid #b9d3e6; background: #fff; color: #0073b1; border-radius: 16px; padding: 5px 14px; font-size: 13px; cursor: pointer; }
.sylm-typetabs button.on { background: #0073b1; color: #fff; border-color: #0073b1; }
.sylm-ctrls { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; margin-left: auto; }
.sylm-switch em { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 2026-10-10 - Saisie du syllabus selon le modele de l'ecole (etape 2) - public/js/syllabusForm.js */
.sylf { --b: #0073b1; --bd: #005a8c; --pale: #eef5fb; --line: #e3e8ee; --ink: #24313d; --mute: #6b7684; --ok: #1a7f37; --okbg: #e6f4ea;
        --warn: #8a5300; --warnbg: #fff4e5; --bad: #b42318; --badbg: #fdecea;
        display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; align-items: start; font-size: 13px; color: var(--ink); line-height: 1.45; }
.sylf *, .sylf *::before, .sylf *::after { box-sizing: border-box; }
@media (max-width: 900px) { .sylf { grid-template-columns: minmax(0, 1fr); } .sylf-side { position: static !important; max-height: none !important; } }
.sylf-muted { color: var(--mute); }
.sylf .form-control { font-size: 13px; height: auto; padding: 5px 8px; border-color: #d5dde5; box-shadow: none; }
.sylf .form-control:focus { border-color: #7fb1d6; box-shadow: 0 0 0 2px rgba(0, 115, 177, .12); }
.sylf textarea.form-control { resize: vertical; min-height: 38px; overflow: hidden; }
/* plan lateral */
.sylf-side { position: sticky; top: 0; max-height: 72vh; overflow: auto; background: #f8fafc; border: 1px solid var(--line); border-radius: 8px; padding: 10px; }
.sylf-side-t { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); font-weight: 600; margin-bottom: 6px; }
.sylf-progress { display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: var(--mute); margin-bottom: 8px; }
.sylf-prog-bar { height: 5px; background: #e3e8ee; border-radius: 3px; overflow: hidden; }
.sylf-prog-bar i { display: block; height: 100%; background: var(--b); border-radius: 3px; transition: width .3s; }
.sylf-ol { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 1px; }
.sylf-ol li { display: flex; align-items: center; gap: 7px; padding: 4px 6px; border-radius: 5px; cursor: pointer; font-size: 12px; color: #3c4a57; }
.sylf-ol li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sylf-ol li:hover { background: var(--pale); color: var(--bd); }
.sylf-dot { flex: 0 0 8px; height: 8px; border-radius: 50%; border: 1.5px solid #b3bec9; background: #fff; }
.sylf-ol-ok .sylf-dot { background: var(--ok); border-color: var(--ok); }
.sylf-ol-req .sylf-dot { background: #fff; border-color: var(--bad); box-shadow: 0 0 0 2px var(--badbg); }
.sylf-ol-req span { color: var(--bad); }
.sylf-checks { border-top: 1px solid var(--line); padding-top: 8px; display: flex; flex-direction: column; gap: 4px; font-size: 12px; }
.sylf-checks-t { font-weight: 600; color: #3c4a57; }
.sylf-checks a { display: block; padding: 4px 6px; border-radius: 5px; text-decoration: none; line-height: 1.35; }
.sylf-checks a:hover { text-decoration: none; filter: brightness(.97); }
.sylf-ck-err { background: var(--badbg); color: var(--bad); }
.sylf-ck-warn { background: var(--warnbg); color: var(--warn); }
.sylf-checks-ok { color: var(--ok); background: var(--okbg); border: 0; border-radius: 6px; padding: 7px 8px; display: block; }
/* rubriques */
.sylf-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.sylf-sec { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px 12px; scroll-margin-top: 8px; transition: box-shadow .3s, border-color .3s; }
.sylf-sec.sylf-flash { border-color: var(--b); box-shadow: 0 0 0 3px rgba(0, 115, 177, .15); }
.sylf-sec-h { margin-bottom: 8px; }
.sylf-sec-h h4 { margin: 0; font-size: 14px; font-weight: 700; color: var(--bd); text-wrap: balance; }
.sylf-req { color: var(--bad); font-weight: 700; }
.sylf-desc { margin: 2px 0 0; font-size: 12px; color: var(--mute); max-width: 75ch; }
.sylf-sublabel { display: block; font-size: 12px; font-weight: 600; color: #3c4a57; margin: 8px 0 4px; }
.sylf-sublabel:first-child { margin-top: 0; }
.sylf-ib { border: 1px solid transparent; background: transparent; color: #7a8794; border-radius: 5px; width: 26px; height: 26px; padding: 0; cursor: pointer; flex: 0 0 auto; }
.sylf-ib:hover { background: var(--pale); color: var(--b); border-color: #cfe0ee; }
.sylf-ib-del:hover { background: var(--badbg); color: var(--bad); border-color: #f5c2bd; }
.sylf-ib:focus-visible, .sylf-add:focus-visible, .sylf-ol li:focus-visible { outline: 2px solid #7fb1d6; outline-offset: 1px; }
.sylf-add { margin-top: 6px; border: 1px dashed #b9d3e6; background: #fff; color: var(--b); border-radius: 6px; padding: 4px 10px; font-size: 12px; cursor: pointer; }
.sylf-add:hover { background: var(--pale); border-style: solid; }
/* identification */
.sylf-idgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px 12px; }
.sylf-idcell label { display: block; font-size: 11px; font-weight: 600; color: var(--mute); text-transform: uppercase; letter-spacing: .03em; margin-bottom: 3px; }
.sylf-idcell label .fa { color: #9db9cf; margin-left: 3px; }
.sylf-idval { background: #f8fafc; border: 1px solid #edf1f5; border-radius: 5px; padding: 5px 8px; min-height: 30px; overflow-wrap: anywhere; }
/* listes */
.sylf-list-rows { display: flex; flex-direction: column; gap: 4px; }
.sylf-list-row { display: flex; align-items: center; gap: 6px; }
.sylf-list-n { flex: 0 0 22px; text-align: right; color: var(--b); font-weight: 700; font-size: 12px; }
/* criteres */
.sylf-crit-rows { display: flex; flex-direction: column; gap: 8px; }
.sylf-crit-row { border: 1px solid #edf1f5; border-radius: 6px; padding: 8px; background: #fbfcfd; }
.sylf-crit-head { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(140px, 220px) auto; gap: 6px; align-items: center; }
@media (max-width: 600px) { .sylf-crit-head { grid-template-columns: auto minmax(0, 1fr) auto; } .sylf-crit-obj { grid-column: 2 / 3; } }
.sylf-badge-n, .sylf-chap-n { min-width: 26px; height: 24px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; color: var(--b); background: var(--pale); border-radius: 5px; padding: 0 5px; }
/* chapitres + heures */
.sylf-chaps { display: flex; flex-direction: column; gap: 8px; }
.sylf-chap { border: 1px solid #e6ecf2; border-radius: 7px; padding: 8px; background: #fbfcfd; display: flex; flex-direction: column; gap: 6px; }
.sylf-chap-head { display: flex; align-items: center; gap: 6px; }
.sylf-chap-title { font-weight: 600; flex: 1 1 auto; min-width: 0; }
.sylf-chap-tools { display: inline-flex; gap: 2px; }
.sylf-chap-eval { margin-top: 8px; background: #f6f9fc; border-style: dashed; }
.sylf-chap-evlabel { color: #3c4a57; }
.sylf-hrs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding-left: 32px; }
.sylf-hr { display: inline-flex; align-items: center; gap: 4px; margin: 0; font-weight: 400; font-size: 12px; color: #3c4a57; }
.sylf-hr span { font-weight: 600; }
.sylf-hr em { font-style: normal; color: var(--mute); }
.sylf .sylf-hr-in { width: 66px; text-align: right; font-variant-numeric: tabular-nums; padding: 3px 6px; }
.sylf-chap-sub { font-size: 12px; font-weight: 700; color: var(--bd); font-variant-numeric: tabular-nums; }
.sylf-chap-items { margin-left: 32px; width: calc(100% - 32px) !important; }
.sylf-hbar { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 8px 10px; background: var(--pale); border: 1px solid #cfe0ee; border-radius: 7px; font-variant-numeric: tabular-nums; }
.sylf-hchip { font-size: 12px; color: #3c4a57; background: #fff; border: 1px solid #d8e6f1; border-radius: 10px; padding: 1px 8px; }
.sylf-htotal { font-size: 13px; color: var(--bd); margin-right: auto; }
.sylf-htotal b { font-size: 14px; }
.sylf-pill { font-size: 12px; font-weight: 600; border-radius: 10px; padding: 2px 9px; background: #f1f3f5; color: #586470; white-space: nowrap; }
.sylf-pill-ok { background: var(--okbg); color: var(--ok); }
.sylf-pill-bad { background: var(--badbg); color: var(--bad); }
/* calendrier */
.sylf-prog-head, .sylf-prog-row { display: grid; grid-template-columns: minmax(90px, 160px) minmax(0, 1fr) 26px; gap: 6px; align-items: center; }
.sylf-prog-head { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: var(--mute); margin-bottom: 4px; }
.sylf-prog-rows { display: flex; flex-direction: column; gap: 4px; }
/* evaluation */
.sylf-eval-rows { display: flex; flex-direction: column; gap: 4px; }
.sylf-eval-row { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(0, 1.4fr) 92px 26px; gap: 6px; align-items: center; }
.sylf-eval-row.sylf-noweight { grid-template-columns: minmax(120px, 1fr) minmax(0, 1.4fr) 26px; }
.sylf-eval-hd { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: var(--mute); margin-bottom: 4px; }
.sylf-pct { display: inline-flex; align-items: center; gap: 4px; }
.sylf-pct .form-control { text-align: right; font-variant-numeric: tabular-nums; }
.sylf-pct em { font-style: normal; color: var(--mute); }
.sylf-eval-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.sylf-eval-total { margin-top: 6px; font-size: 12px; font-weight: 600; border-radius: 10px; padding: 2px 10px; font-variant-numeric: tabular-nums; }
@media (max-width: 600px) { .sylf-eval-row, .sylf-eval-row.sylf-noweight { grid-template-columns: minmax(0, 1fr) auto; } }
/* signatures */
.sylf-signs-edit { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sylf-sign { border: 1px dashed #c9d7e3; border-radius: 6px; padding: 8px 14px; color: #3c4a57; min-width: 180px; }
.sylf-signs-edit p { flex-basis: 100%; margin: 0; font-size: 12px; }
.sylf-foot { position: sticky; bottom: -15px; background: #fff; padding-bottom: 6px; z-index: 2; }
@media (max-width: 600px) { .sylf-foot { position: static; } }
/* lecture */
.sylf-read { display: flex; flex-direction: column; gap: 14px; font-size: 13px; color: #24313d; }
.sylf-rsec { overflow-x: auto; }
.sylf-rsec h5 { margin: 0 0 6px; font-size: 14px; font-weight: 700; color: #005a8c; padding-bottom: 4px; border-bottom: 2px solid #eef5fb; }
.sylf-rsec p { margin: 0 0 6px; max-width: 80ch; }
.sylf-rsec ul, .sylf-rsec ol { margin: 0 0 6px; padding-left: 20px; }
.sylf-table, .sylf-idtable { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.sylf-table th, .sylf-table td, .sylf-idtable th, .sylf-idtable td { border: 1px solid #e3e8ee; padding: 5px 8px; vertical-align: top; text-align: left; }
.sylf-table thead th, .sylf-idtable th { background: #f4f8fb; color: #3c4a57; font-weight: 600; }
.sylf-idtable th { width: 34%; }
.sylf-table td ul { margin: 4px 0 0; padding-left: 18px; }
.sylf-table .sylf-h { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; width: 70px; }
.sylf-table .sylf-tot td { font-weight: 700; background: #eef5fb; color: #005a8c; }
.sylf-signs { width: 100%; border-collapse: separate; border-spacing: 10px 0; margin: 0 -10px; }
.sylf-signs td { border: 1px solid #e3e8ee; border-radius: 6px; height: 80px; padding: 6px 10px; color: #3c4a57; font-size: 12px; vertical-align: top; }
.sylf-signs span { font-weight: 600; }
.sylf-signline { color: #8a96a3; font-size: 11px; margin-top: 30px; }
.sylf-table .sylf-n { width: 34px; text-align: center; }
.sylf-table .sylf-w { width: 160px; }
.sylf-ref { font-weight: 400; color: #6b7684; font-size: 11.5px; }
/* etape 3 : groupes d'export (syllabus) et exemple (editeur de modele) */
.sylf-xgroup { display: inline-flex; align-items: stretch; border: 1px solid #cfe0ee; border-radius: 6px; overflow: hidden; background: #fff; vertical-align: middle; }
.sylf-xlabel { display: inline-flex; align-items: center; padding: 0 9px; font-size: 11px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: #5b6773; background: #f4f8fb; border-right: 1px solid #cfe0ee; }
.sylf-xbtn { border: 0; background: #fff; color: #0073b1; padding: 6px 10px; font-size: 12.5px; cursor: pointer; white-space: nowrap; }
.sylf-xbtn + .sylf-xbtn { border-left: 1px solid #e3edf5; }
.sylf-xbtn:hover { background: #eef5fb; color: #005a8c; }
.sylf-xbtn:focus-visible { outline: 2px solid #7fb1d6; outline-offset: -2px; }
.sylf-xbtn .fa-file-pdf-o { color: #c0392b; }
.sylf-xbtn .fa-file-word-o { color: #2b579a; }
/* 2026-10-11 : heures du chapitre = une ligne par activite de la matiere */
.sylf-content .sylf-hrs { flex-direction: column; align-items: stretch; gap: 3px; padding-left: 32px; }
.sylf-content .sylf-hr { display: grid; grid-template-columns: minmax(80px, 160px) 72px auto; align-items: center; gap: 6px; padding: 2px 8px; background: #fff; border: 1px solid #edf1f5; border-radius: 5px; max-width: 320px; }
.sylf-content .sylf-hr span { color: #3c4a57; }
.sylf-content .sylf-chap-sub { padding-left: 2px; }
.sylf-hchip-ok { border-color: #b7dfc3; background: #e6f4ea; color: #1a7f37; }
.sylf-hchip-bad { border-color: #f5c2bd; background: #fdecea; color: #b42318; }
.sylf-actnote { background: #fff4e5; border: 1px solid #f3d19e; color: #7a4a00; border-radius: 7px; padding: 7px 10px; font-size: 12.5px; margin-bottom: 8px; }
.sylf-actadd { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; padding: 6px 8px; border: 1px dashed #cfe0ee; border-radius: 7px; background: #f8fafc; }
.sylf-actadd-l { font-size: 12px; font-weight: 600; color: #3c4a57; }
.sylf .sylf-actsel { width: auto; min-width: 120px; }
.sylf-actadd .sylf-add { margin-top: 0; }
.sylf-table .sylf-act { width: 130px; color: #3c4a57; }
.sylf-ctable .sylf-act { width: 36%; }
.sylf-ctable td[rowspan] { background: #fff; }
.sylm-info { margin: 6px 0 0; font-size: 12px; color: #1f4f73; background: #eef5fb; border-radius: 6px; padding: 7px 9px; }
/* etape 5 : fiche de preparation */
.sylf-themes { display: flex; flex-direction: column; gap: 4px; }
.sylf-theme { display: flex; align-items: center; gap: 8px; margin: 0; padding: 6px 9px; border: 1px solid #e6ecf2; border-radius: 6px; background: #fbfcfd; font-weight: 400; cursor: pointer; transition: background .15s, border-color .15s; }
.sylf-theme:hover { border-color: #cfe0ee; }
.sylf-theme.on { background: #eef5fb; border-color: #b9d3e6; }
.sylf-theme input[type=checkbox] { margin: 0; flex: 0 0 auto; width: 16px; height: 16px; }
.sylf-theme-t { flex: 1 1 auto; min-width: 0; color: #24313d; }
.sylf-theme-t em { font-style: normal; color: #6b7684; font-size: 12px; }
.sylf-theme.on .sylf-theme-t { font-weight: 600; color: #005a8c; }
.sylf-theme-old .sylf-theme-t em { color: #8a5300; }
.sylf .sylf-theme-h { width: 64px; flex: 0 0 64px; text-align: right; padding: 3px 6px; }
.sylf-ph-rows { display: flex; flex-direction: column; gap: 5px; }
.sylf-ph-row { display: grid; grid-template-columns: minmax(110px, 1fr) 92px minmax(0, 1.4fr) minmax(0, 1.4fr) 26px; gap: 6px; align-items: start; }
.sylf-ph-hd { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: var(--mute); margin-bottom: 4px; align-items: end; }
.sylf .sylf-ph-name { font-weight: 600; }
@media (max-width: 700px) { .sylf-ph-row { grid-template-columns: minmax(0, 1fr) 92px 26px; } .sylf-ph-row > textarea { grid-column: 1 / -1; } .sylf-ph-hd span:nth-child(n+3) { display: none; } }
.sylf-pill-warn { background: #fff4e5; color: #8a5300; }
.sylf-xsel { border: 0; border-left: 1px solid #e3edf5; background: #fff; color: #24313d; font-size: 12.5px; padding: 0 6px; max-width: 260px; }
.sylf-xsel:focus-visible { outline: 2px solid #7fb1d6; outline-offset: -2px; }
.sylf-themes-read { margin: 0; padding-left: 18px; }
.prep-read-docs { margin: 12px 0 0; }
.prep-others-box { margin-top: 12px; }
.sylm-doctabs button { border-radius: 6px; font-weight: 600; }
/* 2026-10-11 : legende des sigles et description par activite */
.sylf-legend { margin: 6px 0 0; font-size: 12px; font-style: italic; color: #5b6773; }
.sylf-actdesc { font-size: 11.5px; color: #5b6773; margin-top: 2px; line-height: 1.35; }
.sylf-content .sylf-hr { grid-template-columns: minmax(60px, 110px) 72px auto minmax(0, 1fr); max-width: none; }
.sylf .sylf-hr-note { font-size: 12px; padding: 3px 7px; }
@media (max-width: 600px) { .sylf-content .sylf-hr { grid-template-columns: minmax(60px, 1fr) 72px auto; } .sylf .sylf-hr-note { grid-column: 1 / -1; } }
.matact-full { font-size: 12px; color: #5b6773; margin-left: 6px; }
/* 2026-10-11 : encadre "modele de l'ecole" en tete des ecrans */
.sylm-cfgcard { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 0 0 14px; padding: 12px 14px; border: 1px solid #b9d3e6; border-left: 4px solid #0073b1; border-radius: 8px; background: linear-gradient(90deg, #eef5fb, #fff 70%); }
.sylm-cfgicon { flex: 0 0 40px; height: 40px; border-radius: 10px; background: #eef5fb; color: #0073b1; border: 1px solid #b9d3e6; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; }
.sylm-cfgtext { flex: 1 1 260px; min-width: 0; }
.sylm-cfgtitle { font-size: 14.5px; font-weight: 700; color: #0b3c5d; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sylm-cfgdesc { font-size: 12px; color: #4a5866; margin-top: 2px; }
.sylm-cardchip { font-size: 11px; font-weight: 600; border-radius: 10px; padding: 1px 8px; background: #e6f4ea; color: #1a7f37; }
.sylm-cardchip-custom { background: #fff; color: #0073b1; border: 1px solid #b9d3e6; }
.sylm-cardchip-new { background: #fff4e5; color: #8a5300; border: 1px solid #f3d19e; }
/* couleurs = bandeau de titre de la modale ouverte (hdrbg-tsoft : bleu pale, texte bleu, bordure bleu clair) */
.sylm-cfgbtn { border: 2px solid #b9d3e6; background: #eef5fb; color: #0073b1; border-radius: 7px; padding: 8px 16px; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.sylm-cfgbtn:hover { background: #dcebf6; border-color: #0073b1; color: #005a8c; }
.sylm-cfgbtn:focus-visible { outline: 2px solid #7fb1d6; outline-offset: 2px; }
@media (max-width: 600px) { .sylm-cfgbtn { width: 100%; } }
.sylm-cfgtitle { font-size: 14px; font-weight: 600; }
/* echelle typographique unique dans les panneaux Referentiel pedagogique / Suivi des fiches : texte 13 px, titres internes
   14 px semi-gras bleu sombre (comme l'encadre du modele), libelles gris-bleu - plus aucun intertitre plus grand que la section */
#prep_container .prep-ui, #syn_container .syn-ui { font-size: 13px; color: #3c4a57; }
#prep_container .syn-intro, #syn_container .syn-intro { font-size: 13px; color: #5b6773; margin: 0 0 10px; }
#prep_container .prep-settings, #prep_container .prep-settings label { font-size: 13px; color: #3c4a57; font-weight: 400; }
#prep_container .prep-settings b { font-weight: 600; color: #0b3c5d; }
#prep_container .prep-h { font-size: 14px; font-weight: 600; color: #0b3c5d; margin: 16px 0 8px; }
#prep_container .prep-h .syn-muted { font-size: 12px; font-weight: 400; }
#prep_container .syn-empty { font-size: 13px; color: #5b6773; }
#prep_container .prep-settings .btn, #syn_container .syn-toolbar .btn { font-size: 12px; }
/* etape 6 : IA */
.sylf-xgroup-ai { border-color: #d9c9f0; }
.sylf-xgroup-ai .sylf-xlabel { background: #f5f0fc; color: #6b46a8; border-right-color: #d9c9f0; }
.sylf-xgroup-ai .sylf-xbtn { color: #6b46a8; }
.sylf-xgroup-ai .sylf-xbtn:hover { background: #f5f0fc; color: #553787; }
/* etape 4 : import */
.sylf-impnotice { background: #eef5fb; border: 1px solid #c9dcec; color: #174a6e; border-radius: 8px; padding: 9px 12px; margin: 0 0 12px; font-size: 13px; }
.sylf-impnotice .fa { color: #2b579a; }
.sylf-impwarn { margin-top: 6px; color: #8a5300; background: #fff4e5; border-radius: 6px; padding: 6px 8px; font-size: 12px; }
.sylf-impcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin: 10px 0 14px; }
.sylf-impcard { background: #fff; border: 1px solid #e3e8ee; border-radius: 8px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.sylf-impcard h5 { margin: 0; font-size: 14px; font-weight: 700; color: #005a8c; }
.sylf-impcard h5 .fa-file-word-o { color: #2b579a; }
.sylf-impcard .syn-hint { margin: 0; font-size: 12px; }
.sylf-impcard p { margin: 0; }
.sylf-impcard .btn { align-self: flex-start; }
.sylf-imptable td { vertical-align: top; }
.sylf-file { font-size: 12px; color: #3c4a57; overflow-wrap: anywhere; max-width: 260px; }
.sylf-code { display: inline-block; font-size: 11px; font-weight: 700; color: #005a8c; background: #eef5fb; border-radius: 4px; padding: 0 5px; margin-right: 3px; }
.sylf-rpill { display: inline-block; font-size: 12px; font-weight: 600; border-radius: 10px; padding: 1px 9px; }
.sylf-r-ok { background: #e6f4ea; color: #1a7f37; }
.sylf-r-warn { background: #fff4e5; color: #8a5300; }
.sylf-r-bad { background: #fdecea; color: #b42318; }
.sylm-example { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.sylm-example > span { font-size: 11px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--mute); }
@media (prefers-reduced-motion: reduce) { .sylf-sec, .sylf-prog-bar i { transition: none; } }

/* 2026-10-11 : modele impose par l'organisation */
.sylm-cardchip-org{background:#e0f2f1;color:#0b6e6e}
