/* Couleurs alignées sur l'appli de suivi financier de l'IFC Renmin (palette « renmin » de style-v3.css), octobre 2026 */
:root{--accent:#8a5a1c;--accent-dark:#6c4513;--accent-soft:#f6eee2;--accent-line:#e2cda9;--head:#f1e8d8;--row-alt:#fbf8f2;--row-hover:#f5ecdc;--input-line:#d6c6aa;--ink-soft:#5a4a35;--focus:#8a5a1c;--ok-bg:#e7f4ee;--ok-ink:#2f6f50;--warn-bg:#fff3d6;--warn-ink:#7a5410;--bad-bg:#fff0ed;--bad-ink:#9d2a22;--ink:#2f281f;--muted:#6b5a44;--paper:#f8f4ec;--line:#e6dac5;--line-soft:#efe6d6;--blue:var(--accent);--teal:var(--accent);--navy:var(--accent-dark);--warn:var(--warn-ink);--radius:12px;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans SC",Arial,sans-serif;color:var(--ink);font-size:16px;line-height:1.5;background:var(--paper)}
*{box-sizing:border-box}
body{margin:0}
button,input,select,textarea{font:inherit}
button,a,select,input,textarea{touch-action:manipulation}
button{cursor:pointer}
button:disabled{cursor:wait;opacity:.55}
a{color:var(--blue)}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
[hidden]{display:none!important}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.skip{position:fixed;left:12px;top:-60px;z-index:100;background:white;padding:12px}
.skip:focus{top:10px}
.brand{display:flex;gap:12px;align-items:center;color:var(--ink);text-decoration:none;font-size:22px;font-weight:650;letter-spacing:-.5px}
.brand small{display:block;font-size:12px;letter-spacing:1px;font-weight:400;color:var(--muted);margin-top:2px}
.brand-mark{display:grid;place-items:center;width:45px;height:45px;border:1px solid var(--accent);border-radius:11px;background:var(--accent);color:white;font-size:19px;font-weight:700;letter-spacing:0}
.sidebar{position:fixed;inset:0 auto 0 0;width:226px;background:white;color:var(--ink);border-right:1px solid var(--line);border-top:4px solid var(--accent);padding:25px 18px 20px;display:flex;flex-direction:column}
.nav-label{font-size:11px;letter-spacing:1.5px;font-weight:650;color:var(--muted);margin:42px 13px 13px}
nav{display:flex;flex-direction:column;gap:5px}
nav a{color:var(--ink-soft);border-radius:8px;padding:11px 13px;text-decoration:none;font-size:14px;display:flex;align-items:center;gap:12px}
nav a .nav-icon{font-size:18px;line-height:1;opacity:.8;width:22px;text-align:center}
nav a:hover{background:var(--row-hover)}
nav a.active{background:var(--accent-soft);color:var(--accent-dark);font-weight:600;box-shadow:inset 3px 0 var(--accent)}
.sidebar-bottom{margin-top:auto;padding:28px 12px 0;font-size:12px;color:var(--muted)}
.sidebar-bottom .plain{display:block;color:var(--ink-soft);margin-top:13px;font-size:13px}
.live-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#5f9f7e;margin-right:6px}
.workspace{margin-left:226px}
.topbar{display:flex;gap:20px;align-items:center;padding:18px 35px;border-top:4px solid var(--accent);border-bottom:1px solid var(--line);background:white;min-height:77px}
.topbar-label{font-size:14px;color:var(--muted);margin-right:auto}
.topbar select{max-width:250px}
.user-pill{font-size:13px;padding:7px 11px;background:var(--accent-soft);border-radius:20px;color:var(--accent-dark)}
main{padding:32px 35px 24px;max-width:1680px;margin:auto}
h1{font-size:30px;line-height:1.2;letter-spacing:-.7px;margin:0 0 10px;font-weight:650}
h2{font-size:20px;line-height:1.35;margin:0 0 9px;font-weight:650}
h3{font-size:16px;margin:0 0 8px}
.subtitle{color:var(--muted);margin:0;max-width:760px;font-size:15px}
.page-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:26px}
.eyebrow{font-size:11px;font-weight:650;letter-spacing:1.7px;color:var(--teal);margin:0 0 11px}
.btn{border:1px solid var(--line);background:white;color:var(--ink);padding:9px 16px;border-radius:8px;font-weight:550;font-size:14px;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;min-height:41px;white-space:nowrap}
.btn:hover{background:var(--row-hover);border-color:var(--accent-line)}
.btn.primary{background:var(--blue);color:white;border-color:var(--blue)}
.btn.primary:hover{background:var(--accent-dark);border-color:var(--accent-dark)}
.btn.danger{color:#9d3434;background:#fff7f5;border-color:#e3b7ae}
.btn.small{font-size:13px;min-height:32px;padding:5px 10px}
.plain{border:0;padding:0;background:transparent;color:var(--blue);text-decoration:none;font-size:14px}
.plain:hover{text-decoration:underline}
.actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.panel{background:white;border:1px solid var(--line);border-radius:var(--radius);padding:23px;margin-bottom:20px}
.notice{display:flex;align-items:flex-start;gap:12px;padding:14px 17px;border-radius:9px;background:var(--warn-bg);border:1px solid #f0dca6;color:var(--warn-ink);font-size:14px;margin-bottom:20px}
.notice.blue{background:#fffaf2;border-color:var(--accent-line);color:var(--accent-dark)}
.notice.green{background:var(--ok-bg);border-color:#bfe0cf;color:#235f46}
.notice strong{font-weight:650}
.notice p{margin:0}
.notice .plain{margin-left:auto;white-space:nowrap}
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:23px}
.stat{border:1px solid var(--line);background:white;padding:17px 20px;border-radius:10px}
.stat span{display:block;font-size:13px;color:var(--muted)}
.stat strong{font-size:27px;font-weight:600;display:block;line-height:1.3;margin:4px 0}
.stat small{font-size:12px;color:var(--muted)}
.filters{display:flex;gap:12px;flex-wrap:wrap;align-items:end;margin-bottom:20px}
.filters label{flex:1;min-width:150px}
.filters .compact{flex:0;min-width:100px}
label{display:block;font-size:14px;font-weight:550;color:var(--ink-soft)}
input,select,textarea{display:block;width:100%;padding:9px 11px;border:1px solid var(--input-line);border-radius:7px;color:var(--ink);background:white;margin-top:6px;min-height:41px;font-size:14px}
input[type=checkbox]{display:inline-block;width:17px;min-height:17px;margin:0 8px 0 0;accent-color:var(--blue);vertical-align:middle}
textarea{min-height:95px;resize:vertical}
select[multiple]{min-height:110px}
label small,.help{font-size:12px;line-height:1.5;color:var(--muted);font-weight:400;display:block;margin-top:6px}
.check{font-weight:450;display:flex;align-items:flex-start;margin:13px 0}
.check input{margin-top:3px;flex-shrink:0}
.week-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:25px 0 15px}
.week-head h2{margin:0;font-size:19px}
.week-head small{display:block;font-size:13px;color:var(--muted);font-weight:400;margin-top:3px}
.calendar{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));border:1px solid var(--line);border-radius:11px;overflow:hidden;background:white}
.calendar.weekend{grid-template-columns:repeat(7,minmax(0,1fr))}
.day{border-right:1px solid var(--line);min-height:310px;padding:12px}
.day:last-child{border-right:0}
.day-title{font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.6px;color:var(--muted);padding:0 2px 12px;display:flex;gap:10px;align-items:center}
.day-title b{font-size:22px;font-weight:550;color:var(--ink)}
.event{display:block;width:100%;text-align:left;border:0;border-left:3px solid #b07a35;background:var(--accent-soft);border-radius:5px;padding:10px 9px;margin:0 0 10px;color:#5c3d14;font-size:12px;line-height:1.4;overflow-wrap:anywhere}
.event.cn{background:#eef2f5;border-left-color:#8fa3b3;color:#3f5466}
.event.draft{border-left-style:dashed}
.event:hover{filter:brightness(.965)}
.event .event-time{font-weight:650;font-size:12px;display:block;margin-bottom:5px}
.event .event-name{font-weight:600;font-size:13px;display:block;margin-bottom:6px}
.event small{display:block;opacity:.88;font-size:11px;line-height:1.5}
.empty-day{font-size:12px;color:var(--muted);margin:14px 2px}
.legend{display:flex;gap:22px;font-size:12px;color:var(--muted);margin:13px 0}
.legend i{display:inline-block;width:10px;height:10px;border-radius:2px;margin-right:6px;background:#b07a35}
.legend .cn-key{background:#8fa3b3}
.table-wrap{overflow:auto}
table{border-collapse:collapse;width:100%;font-size:14px}
th{text-align:left;font-size:11px;text-transform:uppercase;letter-spacing:.6px;color:var(--muted);font-weight:650;background:var(--head);white-space:nowrap}
th,td{padding:13px 12px;border-bottom:1px solid var(--line-soft);vertical-align:top}
td small{display:block;color:var(--muted);font-size:12px;margin-top:4px}
td strong{font-weight:550}
td .btn{white-space:nowrap}
tr:last-child td{border-bottom:0}
.tag{display:inline-block;padding:3px 8px;border-radius:5px;font-size:11px;background:var(--head);color:var(--ink-soft);white-space:nowrap}
.tag.green{background:var(--ok-bg);color:var(--ok-ink)}
.tag.amber{background:var(--warn-bg);color:var(--warn-ink)}
.tag.red{background:var(--bad-bg);color:var(--bad-ink)}
.empty{text-align:center;padding:40px 20px}
.empty h2{margin:12px 0}
.empty p{color:var(--muted);font-size:14px;max-width:550px;margin:0 auto 20px}
.empty-icon{display:inline-grid;place-items:center;width:55px;height:55px;background:#f6eee2;border-radius:13px;font-size:24px;color:var(--blue)}
.split{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(250px,1fr);gap:20px}
.two-cols{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px}
.form-grid .full{grid-column:1/-1}
.form-actions{display:flex;gap:10px;align-items:center;justify-content:flex-end;margin-top:24px;padding-top:18px;border-top:1px solid var(--line)}
.form-actions .danger{margin-right:auto}
.tabs{display:flex;gap:8px;margin-bottom:21px;flex-wrap:wrap}
.tabs button{padding:8px 15px;border:1px solid transparent;background:transparent;border-radius:8px;font-size:14px;color:var(--muted)}
.tabs button.active{background:var(--accent-soft);border-color:var(--accent-line);color:var(--accent-dark);font-weight:600}
.steps{padding:0;list-style:none;counter-reset:step}
.steps li{counter-increment:step;position:relative;padding:0 0 23px 38px;font-size:14px}
.steps li:before{content:counter(step);position:absolute;left:0;top:0;width:24px;height:24px;border-radius:50%;background:#f6eee2;color:#6c4513;text-align:center;font-size:12px;line-height:24px;font-weight:650}
.steps p{margin:4px 0 0;color:var(--muted);font-size:13px}
.dropzone{padding:24px;border:1.5px dashed #d6c6aa;border-radius:10px;background:#fbf8f2}
.dropzone input{background:white;max-width:100%;font-size:14px}
.error{color:#903c31;background:var(--bad-bg);border:1px solid #efc3b9;border-radius:7px;padding:12px 14px;font-size:14px;margin:12px 0;white-space:pre-wrap;overflow-wrap:anywhere}
.error:empty{display:none}
.loading{color:var(--muted);padding:25px}
.list{list-style:none;padding:0;margin:0}
.list li{padding:13px 0;border-bottom:1px solid var(--line);font-size:14px}
.list li:last-child{border:0}
.muted{color:var(--muted)}
.break-word{overflow-wrap:anywhere}
.auth-shell{display:grid;place-items:center;min-height:100dvh;padding:24px;background:linear-gradient(135deg,#f3ebde,#faf7f1)}
.auth-card{width:100%;max-width:440px;border:1px solid var(--line);border-radius:17px;background:white;padding:38px;box-shadow:0 10px 45px #3a2a1409}
.auth-card .brand-mark{background:var(--navy);color:white;margin-bottom:23px}
.auth-card>p{font-size:14px;color:var(--muted)}
.auth-card h1{font-size:32px}
.auth-card label{margin:17px 0}
.auth-card .btn{width:100%;margin-top:12px}
dialog{border:1px solid var(--line);border-radius:15px;padding:0;width:min(760px,calc(100vw - 32px));max-height:90dvh;color:var(--ink);box-shadow:0 20px 100px #2f281f35}
dialog::backdrop{background:#2f281f6b;backdrop-filter:blur(2px)}
#dialog-content{padding:27px}
.dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:23px}
.dialog-head h2{font-size:24px}
.close{font-size:24px;line-height:1;border:0;background:transparent;color:var(--muted);padding:4px}
#toast{position:fixed;bottom:26px;right:25px;max-width:420px;z-index:50;background:#3a2f22;color:white;border-radius:10px;padding:14px 20px;box-shadow:0 8px 30px #2f281f25;font-size:14px;display:none}
#toast.visible{display:block}
.suggestion{padding:18px;border:1px solid var(--line);border-radius:9px;margin:15px 0}
.suggestion .actions{justify-content:space-between}
.suggestion ul{padding-left:19px;font-size:13px}
.help-box{font-size:14px;color:var(--muted);line-height:1.7}
footer{padding:25px 35px;color:var(--muted);font-size:11px}
.count-note{font-size:12px;color:var(--muted)}
.compact-input{max-width:220px}
.inline-warning{font-size:12px;color:var(--warn);margin-top:5px}
.review-table td{font-size:12px}
.review-table select{min-width:160px}
.review-table .warning-list{min-width:180px;max-width:240px}
.week-scroll{overflow:auto}
details{font-size:14px}
summary{cursor:pointer;color:var(--blue);padding:8px 0}
.danger-zone{border-color:#e3b7ae}
.radio-row{display:flex;gap:20px;align-items:center;margin:14px 0}
.radio-row input{width:16px;display:inline;min-height:16px;margin-right:7px}
.form-fieldset{border:0;padding:0;margin:0;min-width:0}
.checkset{border:1px solid var(--line);border-radius:7px;padding:5px 13px 10px;min-width:0}
.checkset legend{font-size:14px;font-weight:550;padding:0 5px}
.checkset-options{max-height:180px;overflow:auto;display:grid;grid-template-columns:1fr 1fr;gap:0 14px}
.checkset-options .check{font-size:13px;margin:7px 0}
.form-fieldset:disabled{opacity:.8}
@media(min-width:1500px){.day{padding:15px}.event{padding:12px}.event .event-name{font-size:14px}.event small{font-size:12px}}
@media(max-width:1050px){.sidebar{width:190px;padding-left:12px;padding-right:12px}.workspace{margin-left:190px}main{padding:25px}.topbar{padding:16px 25px}.topbar-label{display:none}.topbar select{margin-right:auto}.day{padding:8px}.stats{gap:10px}.stat{padding:13px}.calendar.weekend{min-width:980px}.split{grid-template-columns:1fr}.event small{font-size:11px}}
@media(max-width:760px){.sidebar{position:static;width:100%;padding:14px 16px}.brand{font-size:20px}.brand-mark{width:37px;height:37px;font-size:17px}.brand small{font-size:10px}.nav-label,.sidebar-bottom{display:none}nav{flex-direction:row;overflow:auto;margin-top:13px;gap:4px}nav a{padding:8px 11px;white-space:nowrap;font-size:13px}nav a .nav-icon{display:none}nav a.active{box-shadow:inset 0 -2px var(--accent)}.topbar{border-top:0}.workspace{margin:0}.topbar{padding:12px 17px;gap:10px;min-height:auto}.topbar select{max-width:65%;font-size:13px}.user-pill{font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}main{padding:23px 17px}h1{font-size:26px}.page-head{align-items:flex-start;gap:12px;margin-bottom:21px}.page-head .btn{padding:8px 11px}.subtitle{font-size:13px}.stats{grid-template-columns:1fr 1fr}.stat strong{font-size:24px}.filters label{min-width:130px}.calendar{min-width:760px}.week-scroll{margin-right:-17px;padding-right:17px}.week-head{align-items:flex-start}.week-head h2{font-size:16px}.week-head .btn{min-height:34px;padding:4px 9px}.panel{padding:17px}.form-grid,.two-cols{grid-template-columns:1fr}.form-grid .full{grid-column:auto}.notice{font-size:12px;padding:12px}.notice .plain{white-space:normal;font-size:12px}.legend{font-size:11px;gap:12px}#dialog-content{padding:20px}.auth-card{padding:28px}.auth-card>p{font-size:14px}footer{padding:20px 17px}.form-actions{flex-wrap:wrap}#toast{left:17px;right:17px;max-width:none}.review-table{min-width:760px}}
@media print{.sidebar,.topbar,footer,.actions,.filters,.btn,.notice,nav{display:none!important}.workspace{margin:0}main{padding:0}.calendar{min-width:0}.day{break-inside:avoid}.event{break-inside:avoid}.panel{border:0}body{background:white}}
/* Planning en grille horaire (octobre 2026) */
.segmented{display:inline-flex;border:1px solid var(--line);border-radius:8px;overflow:hidden}
.segmented .btn{border:0;border-radius:0}
.segmented .btn[aria-pressed="true"]{background:var(--accent-soft);color:var(--accent-dark);font-weight:650}
.grid-calendar{display:grid;border:1px solid var(--line);border-radius:11px;background:white;min-width:820px}
.grid-hours-wrap{border-right:1px solid var(--line)}
.grid-hours{position:relative}
.grid-hours span{position:absolute;right:8px;transform:translateY(-50%);font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums}
.grid-hours span:first-child{transform:none}
.grid-day{border-right:1px solid var(--line);min-width:0}
.grid-day:last-child{border-right:0}
.grid-calendar .day-title{padding:12px 10px;margin:0;border-bottom:1px solid var(--line);height:52px}
.grid-calendar .day-title .muted{margin-left:auto;font-size:11px;text-transform:none;letter-spacing:0;font-weight:500}
.grid-body{position:relative;background-image:linear-gradient(to bottom,#f1e9dc 1px,transparent 1px)}
.grid-event{position:absolute;margin:0;padding:5px 6px;overflow:hidden;font-size:11px;line-height:1.3;z-index:1}
.grid-event .event-time{font-size:11px;margin-bottom:2px}
.grid-event .event-name{font-size:12px;margin-bottom:2px;overflow:hidden;text-overflow:ellipsis}
.grid-event small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.grid-event:hover,.grid-event:focus-visible{z-index:5;overflow:visible;height:auto!important;min-height:fit-content;box-shadow:0 6px 18px #2f281f30}
.grid-more{position:absolute;right:2px;z-index:3;border:1px solid var(--line);background:white;border-radius:12px;font-size:11px;padding:2px 7px;color:var(--blue);transform:translateY(-6px)}
.grid-body .empty-day{text-align:center}
.event-zh{opacity:.75}
/* Liste des cours : tri, pagination, titre français en ligne */
.pager{display:flex;align-items:center;gap:10px;justify-content:flex-end;margin:0 0 12px;font-size:13px;color:var(--muted)}
.pager span{margin-right:auto}
.sort-head{border:0;background:none;padding:0;font:inherit;color:inherit;text-transform:inherit;letter-spacing:inherit;cursor:pointer}
.sort-head[aria-pressed="true"]{color:var(--ink)}
.inline-title{margin:6px 0 2px;font-weight:400}
.inline-title input{margin:0;min-height:32px;padding:5px 9px;font-size:13px;max-width:360px;border-style:dashed;background:#fbf8f2}
.inline-title input:focus{border-style:solid;background:white}
.inline-title.is-set{margin:0 0 2px}
.inline-title.is-set textarea{display:block;width:calc(100% + 8px);min-width:220px;min-height:0;margin:0 0 0 -8px;padding:3px 7px;font-size:14px;line-height:1.4;font-weight:600;color:var(--ink);border:1px dashed transparent;border-radius:6px;background:transparent;resize:none;overflow:hidden;field-sizing:content}
.inline-title.is-set textarea:hover{border-color:var(--line)}
.inline-title.is-set textarea:focus{border-style:solid;border-color:var(--blue);background:white}
.course-table td:first-child{min-width:280px}
.course-table td small.tags{margin-top:6px}
.course-table td{padding-top:11px;padding-bottom:11px}
.row-actions{flex-wrap:nowrap}
.compact-part{flex:0 0 190px!important}
.course-table td:first-child{min-width:320px}
.course-table td:last-child{width:1%}
/* Vérification des conflits regroupée par type */
.issue-summary{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:12px}
.issue-summary .stat.bad strong{color:#9d2a22}
#dialog-content h3{margin:22px 0 10px;font-size:15px;text-transform:uppercase;letter-spacing:.8px;color:var(--muted)}
.issue-group{border:1px solid var(--line);border-radius:10px;margin:0 0 10px;background:white}
.issue-group summary{cursor:pointer;padding:12px 14px;font-weight:600;display:flex;align-items:center;gap:10px}
.issue-group.is-error summary{color:#932f27}
.issue-count{display:inline-grid;place-items:center;min-width:30px;height:24px;padding:0 7px;border-radius:12px;background:#fff3d6;color:#7a5410;font-size:12px}
.issue-group.is-error .issue-count{background:#fff0ed;color:#9d2a22}
.issue-group .list,.issue-group .notice{margin:0 14px 12px}
.issue-item{display:flex;justify-content:space-between;gap:14px;align-items:flex-start}
.issue-item strong{display:block;font-weight:600}
.issue-item small{display:block;color:var(--muted);font-size:12px;margin-top:3px}
.issue-when{display:block;font-size:12px;color:var(--muted);margin-bottom:2px;font-variant-numeric:tabular-nums}
.issue-item .actions{flex-wrap:nowrap}
/* Polices auto-hébergées, identiques aux applications budgétaires */
@font-face{font-family:"Inter IFC";src:url(fonts/inter-regular.woff) format("woff");font-weight:400;font-display:swap}
@font-face{font-family:"Inter IFC";src:url(fonts/inter-semibold.woff) format("woff");font-weight:500 650;font-display:swap}
@font-face{font-family:"Inter IFC";src:url(fonts/inter-bold.woff) format("woff");font-weight:651 900;font-display:swap}
@font-face{font-family:"Lora IFC";src:url(fonts/lora-semibold.woff) format("woff");font-weight:400 700;font-display:swap}
:root{font-family:"Inter IFC",-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Noto Sans SC","Microsoft YaHei",Arial,sans-serif}
h1,.dialog-head h2,.page-head h1,.brand>span:not(.brand-mark),.auth-card h1{font-family:"Lora IFC",Georgia,"Songti SC",serif;font-weight:600;letter-spacing:-.2px}
.brand small{font-family:"Inter IFC",-apple-system,sans-serif}
.stat strong,td,.event-time{font-variant-numeric:tabular-nums}
/* Formulaires : créneaux, jours, listes filtrables */
.slot-picker>span{display:block;font-size:14px;font-weight:550;color:var(--ink-soft);margin-bottom:7px}
.slot-picker .btn{flex-direction:column;gap:0;line-height:1.2;padding:6px 10px}
.slot-picker .btn small{font-size:10.5px;color:var(--muted);font-weight:400}
.weekdays{border:0;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:4px 16px}
.weekdays legend{font-size:14px;font-weight:550;color:var(--ink-soft);margin-bottom:6px;padding:0}
.weekdays .day-check{margin:4px 0}
.weekdays small.help{flex-basis:100%}
.checkset-filter{margin:0 0 8px;min-height:34px;padding:6px 10px;font-size:13px}
label input[data-course-search]{margin-bottom:6px}
.topbar select{max-width:none;min-width:240px;width:auto}
.nowrap{white-space:nowrap}
@media(max-width:1400px){.course-table td:first-child{min-width:260px}.row-actions{flex-wrap:wrap;justify-content:flex-end}}
/* Emploi du temps, nouvelle séance, à traiter (octobre 2026) */
nav a .nav-badge{margin-left:auto;min-width:22px;height:20px;padding:0 6px;border-radius:10px;background:#fbe3b0;color:#6b4510;font-size:11px;font-weight:650;display:inline-grid;place-items:center}
nav a .nav-badge.bad{background:#f6cfc7;color:#8a2a20}
.tt-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:14px}
.tt-head h1{margin:0;display:flex;align-items:baseline;gap:14px;flex-wrap:wrap}
.tt-dates{font-family:"Inter IFC",-apple-system,sans-serif;font-size:15px;font-weight:450;color:var(--muted);letter-spacing:0}
.tt-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:10px 12px;background:white;border:1px solid var(--line);border-radius:11px;margin-bottom:12px;position:sticky;top:0;z-index:20}
.tt-bar .btn{min-height:36px;padding:6px 12px}
.tt-week select{margin:0;min-height:36px;padding:5px 10px;width:auto;min-width:210px}
.tt-alert{font-size:13px;font-weight:600;text-decoration:none;padding:6px 10px;border-radius:7px}
.tt-alert.bad{color:#932f27;background:#fff0ed}
.tt-alert.warn{color:#7a5410;background:#fff3d6}
.tt-alert:hover{filter:brightness(.96)}
.tt-filters{background:white;border:1px solid var(--line);border-radius:11px;padding:14px 14px 0;margin-bottom:12px}
.chips,.week-chips{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:0 0 12px}
.chip{border:1px solid #e2cda9;background:#f6eee2;color:#6c4513;border-radius:16px;padding:4px 11px;font-size:13px}
.chip:hover{background:#f1e2c8}
.mark{display:inline-block;margin-right:4px;font-style:normal;font-weight:700}
.mark.bad{color:#b33a3a}
.mark.warn{color:#c08a2c}
.event.has-conflict{border-left-color:#c24848!important;background:#fbeeee;color:#5e2626}
.event.has-conflict.cn{background:#f7ecef}
.event.has-missing{box-shadow:inset 0 0 0 1px #ead8b6}
.legend{flex-wrap:wrap;align-items:center}
.legend b.mark{margin-right:5px}
.legend .plain{font-size:12px;margin-left:auto}
/* Nouvelle séance */
.session-layout{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(300px,1fr);gap:20px;align-items:start}
.session-side{position:sticky;top:16px;max-height:calc(100dvh - 32px);overflow:auto}
.session-side h2{font-size:17px}
.session-side .side-h{margin-top:22px}
.repeat-box{border:1px solid var(--line);border-radius:9px;padding:6px 14px 10px;margin:0}
.repeat-box legend{font-size:14px;font-weight:550;color:var(--ink-soft);padding:0 5px}
.repeat-box .check{margin:8px 0}
.repeat-until{max-width:340px}
#session-check.is-loading{opacity:.55}
.check-head{font-weight:650;padding:10px 12px;border-radius:8px;margin-bottom:10px;font-size:14px}
.check-head.ok{background:var(--ok-bg);color:#235f46}
.check-head.bad{background:#fff0ed;color:#932f27}
.check-list{list-style:none;padding:0;margin:0}
.check-list li{padding:8px 0;border-bottom:1px solid #f1e9dc;font-size:13px}
.check-item{display:block;padding:2px 0 2px 16px;position:relative}
.check-item:before{content:"";position:absolute;left:3px;top:9px;width:7px;height:7px;border-radius:50%}
.check-item.bad{color:#932f27}
.check-item.bad:before{background:#c24848}
.check-item.warn{color:#7a5410}
.check-item.warn:before{background:#d5a646}
.check-item em{font-style:normal;color:var(--muted)}
.mini-day{display:grid;grid-template-columns:62px 1fr;gap:8px;padding:7px 0;border-bottom:1px solid #f1e9dc}
.mini-day.is-target .mini-date{color:var(--blue);font-weight:650}
.mini-date{font-size:12px;color:var(--muted);padding-top:3px}
.mini-items{display:flex;flex-direction:column;gap:4px}
.mini-item{display:block;width:100%;text-align:left;border:1px solid #e6dac5;background:#fbf8f2;border-radius:6px;padding:4px 8px;font-size:12px;line-height:1.35;color:var(--ink)}
.mini-item small{display:block;color:var(--muted);font-size:11px}
.mini-item.is-new{border:1.5px dashed var(--blue);background:#f6eee2;color:var(--blue);font-weight:550}
.mini-item.is-clash{border-color:#e2a9a9;background:#fbeeee;color:#6e2a2a}
/* À traiter */
.todo-stats .stat{text-align:left;font:inherit;color:inherit;cursor:pointer}
.todo-stats .stat:hover{border-color:#e2cda9}
.todo-stats .stat.bad strong{color:#9d2a22}
.todo-section{margin:30px 0 10px;scroll-margin-top:16px}
.todo-section h2{display:flex;align-items:center;gap:10px}
.todo-section>.help{margin:0 0 14px;max-width:820px}
.count{display:inline-grid;place-items:center;min-width:30px;height:24px;padding:0 8px;border-radius:12px;background:#f1e8d8;color:#5a4a35;font-size:13px;font-family:"Inter IFC",sans-serif}
.count.bad{background:#fff0ed;color:#9d2a22}
.issue-item .issue-main{flex:1;min-width:0}
.issue-item .pick{margin-top:4px}
.issue-item .actions{flex-wrap:wrap;justify-content:flex-end;max-width:56%}
.issue-item .actions .btn{min-height:32px;padding:4px 10px;font-size:13px}
.issue-item select.fix{width:auto;max-width:230px;min-height:32px;margin:0;padding:4px 8px;font-size:13px}
.bulk-bar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:0 14px 12px;padding:10px 12px;background:#fbf8f2;border:1px solid var(--line);border-radius:8px}
.todo-section>.bulk-bar{margin:0 0 12px}
.bulk-bar .check{margin:0}
.bulk-bar select{width:auto;min-width:200px;margin:0;min-height:36px}
.more-row{padding:0 14px 12px}
.todo-filters{margin-top:6px}
@media(max-width:1100px){.session-layout{grid-template-columns:1fr}.session-side{position:static;max-height:none}.issue-item{flex-direction:column}.issue-item .actions{max-width:none;justify-content:flex-start}}
.grid-event{display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch}
.issue-item small strong{display:inline;font-weight:650}
/* Espace « Étudiants et notes » (octobre 2026) */
.nav-switch{display:flex;gap:3px;background:var(--row-alt);border:1px solid var(--line);border-radius:9px;padding:3px;margin:0 0 14px}
.nav-switch a{flex:1;justify-content:center;text-align:center;padding:7px 6px;font-size:12.5px;border-radius:7px;line-height:1.25;gap:4px}
.nav-switch a.active{background:white;color:var(--accent-dark);font-weight:600;box-shadow:0 1px 3px #3a2a1424}
.nav-switch .nav-badge{margin-left:4px}
.etu-inline{margin:0;min-height:32px;padding:5px 9px;font-size:13px;max-width:180px;border-style:dashed;background:#fbf8f2}
.etu-inline:focus{border-style:solid;background:white}
.etu-inline::placeholder{color:#9a6a2c;font-style:italic}
.etu-table td{padding-top:9px;padding-bottom:9px}
.etu-table td .inline-warning{display:block}
.etu-list li{padding:7px 0;font-size:13px}
.etu-list li small{display:block;color:var(--muted);font-size:12px;margin-top:2px}
.etu-decide{display:flex;justify-content:space-between;align-items:center;gap:12px}
.etu-decide select{width:auto;max-width:320px;min-height:32px;margin:0;padding:4px 8px;font-size:13px}
.etu-section{padding:0 14px 12px}
.etu-section>.help{margin:0 0 10px}
.etu-section .bulk-bar{margin:0 0 10px}
.etu-report .stats{grid-template-columns:repeat(4,1fr)}
.etu-newgroup{display:grid;grid-template-columns:1.4fr .8fr 1fr;gap:8px;margin-top:8px}
.etu-newgroup label{font-size:12px}
.etu-newgroup input{min-height:32px;padding:5px 8px;font-size:13px;margin-top:3px}
.etu-import-opts{margin-top:16px;max-width:520px;grid-template-columns:1fr}
.etu-dossier{display:flex;justify-content:space-between;align-items:center;gap:18px;flex-wrap:wrap}
.etu-dossier .help{margin:0}
.etu-dossier select{width:auto;min-width:240px;margin:0}
.etu-inline-actions{display:flex;gap:8px;align-items:center;margin-top:6px}
.etu-inline-actions select{margin:0}
.etu-dist{display:flex;gap:4px;flex-wrap:wrap}
.etu-dist span{font-size:12px;padding:2px 6px;border-radius:5px;background:#f1e8d8;color:#5a4a35;font-variant-numeric:tabular-nums}
.etu-dist span.warn{background:#fff3d6;color:#7a5410}
.etu-dist span.bad{background:#fff0ed;color:#932f27}
.th-help{display:block;text-transform:none;letter-spacing:0;font-weight:500;margin-top:3px;font-size:11px;white-space:normal}
.etu-grades input{min-height:32px;padding:4px 7px;font-size:13px;margin:0;max-width:90px}
.etu-grades input[name=comment]{max-width:none;min-width:160px}
.etu-grades .etu-final{font-weight:650;color:var(--navy);text-align:center}
.etu-history{margin-top:16px}
.etu-targets{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;border:1px solid var(--line);border-radius:8px;padding:8px 12px 12px;margin:0}
.etu-targets legend{font-size:14px;font-weight:550;padding:0 5px}
.etu-todo-links{margin:0 0 10px}
.stat.warn strong{color:#7a5410}
button.stat{text-align:left;font:inherit;color:inherit;cursor:pointer}
button.stat:hover{border-color:#e2cda9}
@media(max-width:760px){.nav-switch{margin:0 8px 0 0;flex:0 0 auto}.nav-switch a{white-space:nowrap}.etu-report .stats{grid-template-columns:1fr 1fr}.etu-newgroup{grid-template-columns:1fr}.etu-decide{flex-direction:column;align-items:flex-start}.etu-targets{grid-template-columns:1fr 1fr}.etu-dossier select{min-width:0;width:100%}}
/* Notes sur 20 et conversion sur 100 ; doublons possibles (octobre 2026) */
.notice.red{background:var(--bad-bg);border-color:#efc3b9;color:#903c31}
.stats.etu-stats5{grid-template-columns:repeat(5,1fr)}
.etu-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:10px}
.etu-section-head h2{margin:0}
.etu-conv .notice{margin-bottom:14px}
.etu-bands{max-width:760px}
.etu-bands td,.etu-bands th{vertical-align:middle}
.etu-limit{display:inline-block;width:76px;min-height:32px;margin:0 4px;padding:4px 8px;font-size:13px;text-align:center;font-variant-numeric:tabular-nums}
.etu-share{font-size:12px;padding:2px 7px;border-radius:5px;background:#f1e8d8;color:#5a4a35;font-variant-numeric:tabular-nums}
.etu-share.warn{background:#fff3d6;color:#7a5410}
.etu-share.bad{background:#fff0ed;color:#932f27}
.etu-conv-notes{margin:12px 0 0;color:#7a5410;font-size:13px}
.etu-ranked td{white-space:nowrap}
.etu-ranked td:nth-child(2),.etu-ranked td:last-child{white-space:normal}
.etu-ranked tr.etu-nograde td{color:var(--muted)}
.etu-dups>div{flex:1;min-width:0}
.etu-dups .list{margin:8px 0 0}
.etu-dups li{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:6px 0;border-top:1px solid #f0dca6}
.etu-dups li .actions{flex:0 0 auto}
.etu-reviewed{margin-top:12px;font-size:13px;color:var(--muted)}
.etu-reviewed summary{cursor:pointer}
@media(max-width:1050px){.stats.etu-stats5{grid-template-columns:repeat(3,1fr)}}
@media(max-width:760px){.stats.etu-stats5{grid-template-columns:1fr 1fr}.etu-limit{width:64px}}
.etu-outside{margin-top:16px}
.etu-outside summary{cursor:pointer;font-weight:650;color:var(--navy)}
.etu-outside .help{margin:10px 0}

/* Étudiants et notes : repères lisibles, actions toujours accessibles (couleurs : jetons du thème ocre). */
.etu-rules summary,.etu-alerts summary{font-size:1rem;font-weight:600;cursor:pointer;padding:8px 0}
.etu-rules p{max-width:100ch;line-height:1.65}
.etu-alerts{margin-bottom:18px}.etu-alerts .notice{margin-top:12px}
.etu-table th{font-size:.85rem}.etu-table td small{line-height:1.5}
.etu-table input:focus,.etu-editor-table input:focus{outline:2px solid var(--focus);outline-offset:2px}
input[readonly]{background:var(--line-soft);color:var(--ink-soft)}
.etu-dossier .actions{align-items:center}.etu-dossier h2{margin-top:0}
#dialog [data-etu-workflow-item],#dialog [data-etu-prepare-item]{width:20px;height:20px}
#etu-workflow-reason{min-height:90px}
/* Liste des notes : états en pastilles compactes ; actions qui passent à la ligne. */
.etu-grade-tiles{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 6px}
.etu-tile{display:inline-flex;align-items:baseline;gap:8px;min-height:40px;padding:7px 14px;border:1px solid var(--line);border-radius:10px;background:white;color:var(--ink);font:inherit;font-size:13.5px;line-height:1.3;cursor:pointer;text-align:left}
.etu-tile strong{font-size:18px;font-weight:650;color:var(--accent-dark);font-variant-numeric:tabular-nums}
.etu-tile:hover{background:var(--row-hover)}
.etu-tile[aria-pressed=true]{border-color:var(--accent);background:var(--accent-soft);box-shadow:inset 0 0 0 1px var(--accent)}
.etu-tile.is-zero{color:var(--muted)}.etu-tile.is-zero strong{color:var(--muted);font-weight:500}
.etu-tile.is-alert{border-color:var(--accent-line);background:var(--warn-bg)}.etu-tile.is-alert strong{color:var(--warn-ink)}
.etu-tiles-help{margin:0 0 16px;font-size:12.5px}
.etu-table .row-actions,.etu-row-actions{flex-wrap:wrap;justify-content:flex-start}
/* Tableaux des étudiants et des cours : en-têtes, étiquettes et boutons longs passent à la ligne plutôt que d'élargir le tableau. */
.etu-table th{white-space:normal}
.etu-table td .tag{white-space:normal}
.etu-table td .btn{white-space:normal;text-align:left}
.etu-doc-actions{display:grid;grid-template-columns:repeat(2,max-content);gap:6px}
.etu-table .etu-doc-actions .btn{width:100%;min-height:32px;padding:5px 10px;font-size:13px;white-space:nowrap}
.etu-notes-table td:last-child{min-width:150px}
.etu-fold{display:block}
.etu-fold>summary{cursor:pointer;font-weight:600;color:var(--ink);padding:2px 0}
.etu-fold[open]>summary{margin-bottom:8px}
.etu-fold .help{margin:0 0 10px}
.etu-fold .actions{flex-wrap:wrap}
.etu-report-head{display:grid;gap:2px;margin-bottom:6px}
/* Page d'un cours : suivi de la grille, de la pondération et de la transmission. */
.etu-follow-list{margin:0 0 12px}
.etu-follow-list li{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;padding:6px 0;font-size:14px}
.etu-follow-list li>strong:first-child{min-width:120px;color:var(--ink-soft)}
/* Saisie des notes : pondération en tête, barre d'actions fixe au défilement, lignes compactes. */
.etu-editor-top{padding:16px 20px}
.etu-editor-weight{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px 28px}
.etu-editor-weight>label:first-child{margin:0;font-size:14px;font-weight:550}
.etu-editor-weight input[name=weightCC]{width:130px;margin:4px 0 0;font-size:1.05rem}
.etu-editor-cf span{display:block;font-size:14px;font-weight:550}
.etu-editor-cf output{display:block;font-size:1.25rem;font-weight:600;padding:6px 0 2px;color:var(--accent-dark);font-variant-numeric:tabular-nums}
.etu-confirm{display:flex;align-items:center;gap:8px;margin:0;padding:8px 12px;border:1px solid transparent;border-radius:9px;font-size:14px}
.etu-confirm input{width:auto;margin:0}
.etu-confirm.is-needed{background:var(--warn-bg);border-color:var(--accent-line);color:var(--warn-ink);font-weight:600}
#etu-weight-help{margin:10px 0 0}
.etu-editor-bar{position:sticky;top:0;z-index:12;display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;min-height:58px;padding:9px 14px;margin:0 0 12px;background:var(--paper);border:1px solid var(--line);border-radius:10px;box-shadow:0 4px 12px #2f281f14}
.etu-editor-bar input[data-etu-editor-search]{width:260px;max-width:100%;min-height:38px;margin:0}
.etu-editor-bar .check{display:flex;align-items:center;gap:6px;margin:0;font-size:14px}
.etu-editor-bar .check input{width:auto;margin:0}
#etu-edit-count{flex:1 1 180px;min-width:0;margin:0;font-size:13px}
.etu-editor-bar .error{flex:1 0 100%;margin:0}
.etu-editor-bar-actions{display:flex;gap:8px;margin-left:auto}
.etu-editor-table{overflow:visible;padding:0}
.etu-editor-table th{background:var(--head)}
.etu-editor-table thead th{position:sticky;top:var(--etu-bar-h,58px);z-index:2;box-shadow:inset 0 -1px var(--line)}
.etu-editor-table tr[hidden]{display:none}
.etu-editor-table input{scroll-margin-top:calc(var(--etu-bar-h,58px) + 46px);scroll-margin-bottom:16px}
.etu-compact td{padding:4px 8px;vertical-align:middle}
.etu-compact td.num{width:44px;text-align:right;color:var(--muted);font-variant-numeric:tabular-nums}
.etu-compact td.who{max-width:360px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.etu-compact td.who span{color:var(--muted);font-size:13px}
.etu-editor-table input.etu-grade{width:84px;min-width:0;max-width:none;min-height:34px;padding:4px 8px;font-size:15px;text-align:center;font-variant-numeric:tabular-nums}
.etu-compact input[name=comment]{min-height:34px;padding:4px 8px;font-size:14px;min-width:200px}
.etu-compact td.src{font-size:12px;color:var(--muted);white-space:nowrap}
/* Largeur répartie : les identités longues ne repoussent plus les notes hors de l’écran. */
.etu-editor-table .etu-compact{table-layout:fixed;min-width:0;width:100%}
.etu-compact .col-num{width:38px}.etu-compact .col-who{width:26%}
.etu-compact .col-grade{width:80px}.etu-compact .col-final{width:78px}.etu-compact .col-src{width:64px}
.etu-compact th{padding:10px 8px;white-space:normal}
.etu-compact td.who{white-space:normal;overflow-wrap:anywhere}
.etu-compact td.who strong,.etu-compact td.who span{display:block}
.etu-editor-table input.etu-grade{width:100%;max-width:80px}
.etu-compact input[name=comment]{min-width:0;width:100%}
.etu-compact td.src{white-space:normal;overflow-wrap:anywhere}
.issue-context{margin:12px 0}.todo-attention-filters label{max-width:100%;min-width:0}
.todo-attention-filters select{max-width:100%}
.etu-compact tr.is-draft td{background:var(--warn-bg)}
.etu-compact tr.is-draft td.num{box-shadow:inset 3px 0 var(--accent)}
/* Fenêtres : boutons d'action toujours visibles au bas d'une fenêtre longue. */
#dialog .form-actions{position:sticky;bottom:0;z-index:3;background:white;padding-bottom:14px;margin-bottom:-14px}
#dialog .error{scroll-margin-bottom:96px}
/* Planning en grille : défilement interne, noms des jours toujours visibles ; dans une séance courte, l'horaire et l'intitulé restent entiers. */
.grid-event>*{flex-shrink:0}
@media(min-width:761px){.week-scroll.is-grid{max-height:calc(100dvh - 190px)}.week-scroll.is-grid .day-title{position:sticky;top:0;z-index:6;background:white}}
/* Menu latéral : défilement si l'écran est bas ; liens du compte accessibles sur téléphone. */
.sidebar{overflow-y:auto}
@media(max-height:820px) and (min-width:761px){.sidebar{padding-top:16px;padding-bottom:14px}.nav-label{margin:22px 13px 8px}nav a{padding:8px 13px}.sidebar-bottom{padding-top:16px}.sidebar-bottom .plain{margin-top:8px}}
@media(max-width:760px){.sidebar-bottom{display:flex;flex-wrap:wrap;align-items:center;gap:4px 18px;margin:0;padding:10px 2px 0}.sidebar-bottom .live-dot,#sync-label{display:none}.sidebar-bottom .plain{display:inline-block;margin:0}.etu-editor-bar{position:static}.etu-editor-bar-actions{margin-left:0}.etu-editor-table{overflow-x:auto}.etu-editor-table thead th{position:static}.etu-compact td.who{max-width:220px}.etu-tile{padding:6px 11px}}
@media(max-width:1000px){
 .etu-editor-table{overflow:visible;border:0;background:transparent}
 .etu-editor-table .etu-compact,.etu-compact tbody{display:block}
 .etu-compact colgroup{display:none}
 .etu-compact thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .etu-compact tr[data-student]{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 12px;padding:14px;margin-bottom:12px;border:1px solid var(--line);border-radius:10px;background:var(--paper)}
 .etu-compact tr[hidden]{display:none}
 .etu-compact td{display:block;padding:0;border:0;min-width:0}
 .etu-compact td.num{display:none}
 .etu-compact td.who,.etu-compact td.etu-comment,.etu-compact td.src{grid-column:1/-1;max-width:none;width:auto}
 .etu-compact td.who{padding-bottom:6px;border-bottom:1px solid var(--line)}
 .etu-compact td[data-label]::before{content:attr(data-label);display:block;margin-bottom:4px;font-size:12px;color:var(--muted);font-weight:500}
 .etu-compact td.etu-final{text-align:center;font-size:17px}
 .etu-editor-table input.etu-grade{max-width:none;min-height:40px}
 .etu-compact input[name=comment]{min-height:40px}
 .etu-compact tr.is-draft{background:var(--warn-bg);border-left:3px solid var(--accent)}
 .etu-compact tr.is-draft td{background:transparent}
 .etu-editor-bar{position:static}
 .etu-editor-table input{scroll-margin-top:16px}
}
@media(max-width:760px){
 .topbar{flex-wrap:wrap;min-width:0}
 .topbar select{min-width:0;max-width:100%;flex:1 1 170px;width:auto}
 .user-pill{min-width:0;max-width:100%}
 .etu-editor-bar-actions{flex-wrap:wrap}
 .etu-editor-weight{gap:12px 18px}
 .todo-attention-filters{align-items:flex-start}
 .issue-item,.issue-item .actions{min-width:0;max-width:100%}
 .issue-item .fix{max-width:100%;min-width:0}
}

/* FR / 简体中文 — same DOM controls, drafts and selected files */
.language-top{position:fixed;top:12px;right:18px;z-index:80}.language-switch{display:inline-flex;gap:2px;border:1px solid var(--line,#ccd7d3);border-radius:8px;padding:3px;background:#fff}.language-switch button{border:0;background:transparent;color:#31443e;border-radius:5px;padding:6px 9px;font:inherit;font-size:12px;cursor:pointer;white-space:nowrap}.language-switch button[aria-pressed=true]{background:#183c31;color:white}.language-switch button:focus-visible{outline:2px solid #a26721;outline-offset:2px}.topbar{padding-right:210px!important}dialog>.language-switch{float:right;margin:0 0 12px 12px}.language-status{position:fixed;top:53px;right:18px;max-width:380px;z-index:81}html[lang=zh-CN] body{font-family:Inter,"PingFang SC","Microsoft YaHei","Noto Sans CJK SC",sans-serif}html[lang=zh-CN] h1,html[lang=zh-CN] h2{font-family:inherit}html[lang=zh-CN] .eyebrow{letter-spacing:.05em}@media(max-width:700px){.language-top{top:7px;right:8px}.topbar{padding-top:48px!important;padding-right:12px!important}.auth-card{margin-top:40px}.language-switch button{padding:6px 8px}.language-status{left:8px;right:8px;max-width:none}}

.file-input-shell{position:relative;display:flex;align-items:center;gap:10px;min-width:0;width:100%;background:#fff;border:1px solid #d5d5cb;border-radius:6px;padding:8px}.file-input-shell input[type=file]{position:absolute;inset:0;opacity:0;width:100%;height:100%;margin:0;padding:0;cursor:pointer}.file-input-shell:focus-within{outline:2px solid #a26721;outline-offset:2px}.file-input-choose{display:block;padding:6px 10px;background:#f4f0e7;border:1px solid #d5d5cb;border-radius:4px;flex-shrink:0}.file-input-names{overflow-wrap:anywhere;min-width:0;font-size:12px}

/* Course programming: readable preview and wrapping controls on narrow screens. */
#program-form{max-width:1100px}#program-form .repeat-box{margin-top:1rem}.program-review{margin-top:1.5rem;border-top:1px solid var(--line,#ddd);padding-top:1rem}.program-review td{vertical-align:top}.program-review td:first-child{white-space:nowrap}.program-review .error{margin:0}.tt-head>.actions{flex-wrap:wrap;justify-content:flex-end}#program-form [hidden]{display:none!important}@media(max-width:700px){.tt-head>.actions{justify-content:flex-start}.program-review table{min-width:480px}}

/* Opérations quotidiennes : sélection visible et lecture continue. */
.q-selection{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:14px 16px;margin:14px 0;border:1px solid var(--line);border-radius:10px;background:#f4f6f3;position:sticky;top:0;z-index:8;box-shadow:0 2px 8px #20382c0a}
.q-selection .check{margin:0}.q-selection input,.q-session-table input{width:18px;height:18px;accent-color:#285542}
.q-session-table{min-width:640px}.q-session-table td{vertical-align:top}.q-session-table td:nth-child(3){border-left:4px solid var(--program-line,transparent);background:var(--program-bg,transparent)}
.q-week{margin:20px 0}.q-week h2{padding:16px 18px;border-bottom:1px solid var(--line);margin:0}.q-color-legend{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:12px 0 18px}.q-key{font-size:12px;padding:4px 9px;border-radius:5px;background:var(--program-bg);border-left:4px solid var(--program-line)}
.event[style*="--program-bg"]{background-color:var(--program-bg);border-left-color:var(--program-line)}.event.has-conflict[style*="--program-bg"],.event.has-error[style*="--program-bg"]{outline:2px solid #b73f3f;outline-offset:-2px}.event.draft{border-right:3px dashed #ad761f}.event.cn::after{content:"CN";font-size:9px;opacity:.7;display:block}
.q-batch-fields{display:grid;gap:12px}.q-field{padding:14px;border:1px solid var(--line);border-radius:8px}.q-field>label{font-weight:600;margin-bottom:10px}.q-field>fieldset{border:0;padding:0;display:flex;flex-wrap:wrap;gap:12px}.q-field>fieldset:disabled{opacity:.45}.q-field>fieldset>label{flex:1;min-width:140px}.q-field textarea{width:100%;min-height:70px}.q-preview{margin:18px 0;padding:14px;border:1px solid #8aac9c;border-radius:8px;background:#f4faf6}.q-preview small,.q-session-extras small{display:block;margin-top:5px}.q-session-extras{padding:12px 0;display:flex;flex-wrap:wrap;gap:8px}.q-session-extras details{flex-basis:100%}
#case-form details{margin:12px 0}#case-form details p{white-space:pre-wrap;overflow-wrap:anywhere}#case-form .checkset-options{display:flex;gap:12px;flex-wrap:wrap}
@media(max-width:700px){.q-selection{position:static;padding:10px;gap:8px}.q-selection .btn{font-size:12px;padding:8px}.q-batch-fields{display:block}.q-field{margin:10px 0}.q-week h2{font-size:16px}.q-preview{padding:8px}.q-color-legend{gap:6px}}

/* ---------- Finition d'ensemble (13 octobre 2026) ----------
   Règles communes : un seul bouton ocre (principal) par page ; boutons secondaires identiques ;
   couleurs prises dans les jetons du thème (:root) ; états des séances : ✓ = confirmée, sans marque = en projet. */

/* Barre supérieure : le choix de langue y prend place (il reste en haut à droite sur l'écran de connexion). */
.topbar{padding-right:35px!important;gap:14px}
.topbar .language-switch{margin-left:4px}
body:has(#app:not([hidden])) .language-top{display:none}
.language-switch{border-color:var(--line)}
.language-switch button{color:var(--ink-soft)}
.language-switch button[aria-pressed=true]{background:var(--accent);color:#fff}
.language-switch button:focus-visible{outline:2px solid var(--focus)}
.language-status{top:84px}

/* Barre latérale : libellés sur une ligne. */
.sidebar{padding-left:14px;padding-right:14px}
nav a{gap:10px;padding:10px 12px;font-size:13.5px}
.nav-switch a{flex:1 1 auto;white-space:nowrap;padding:7px 8px;font-size:12px}

/* Boutons : hauteurs et styles harmonisés ; les icônes ne modifient pas l'alignement. */
.btn>span[aria-hidden="true"]{font-weight:600;line-height:1}
.btn.has-filters,.tt-bar .btn.has-filters{border-color:var(--accent-line);background:var(--accent-soft);color:var(--accent-dark)}
.page-head .actions,.tt-head>.actions{justify-content:flex-end}

/* Emploi du temps : barre d'outils et légende. */
.tt-bar>.actions:first-child .plain{margin-left:6px;font-size:13px}
.legend{gap:10px 22px;margin:14px 0 6px}
.legend .ok-mark{margin-right:6px}

/* Cartes de séance : bordure continue ; ✓ pour une séance confirmée ; jamais de coupure au milieu d'un mot. */
.event{overflow-wrap:break-word;word-break:normal;hyphens:auto}
.event.draft{border-left-style:solid;border-right:0}
.ok-mark{display:inline-grid;place-items:center;width:14px;height:14px;margin-right:5px;border-radius:50%;background:var(--ok-ink);color:#fff;font-size:9px;font-weight:700;line-height:1;vertical-align:1px}
.grid-event .event-time{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.grid-event .event-name{overflow-wrap:break-word;word-break:normal;hyphens:auto}
.grid-event.compact{padding:4px 5px}
.grid-event.compact small{display:none}
.grid-event.compact .event-name{display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;font-size:11.5px;line-height:1.25}
.grid-event.compact:hover,.grid-event.compact:focus-visible{min-width:190px}
.grid-event.compact:hover small,.grid-event.compact:focus-visible small{display:block}
.grid-event.compact:hover .event-name,.grid-event.compact:focus-visible .event-name{-webkit-line-clamp:unset}
.grid-more{border:1px solid var(--accent-line);background:#fff;color:var(--accent-dark);font-weight:600}

/* Vue continue : semaines à cocher. */
.q-weeks{background:#fff;border:1px solid var(--line);border-radius:11px;padding:12px 14px;margin:0 0 12px}
.q-weeks-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:10px}
.q-weeks-head .btn{min-height:32px;padding:4px 10px;font-size:13px}
.q-wk-list{display:flex;flex-wrap:wrap;gap:6px}
.q-wk{min-width:36px;height:32px;border:1px solid var(--line);border-radius:7px;background:#fff;color:var(--ink-soft);font-size:13px;font-variant-numeric:tabular-nums;cursor:pointer}
.q-wk:hover{border-color:var(--accent-line);background:var(--row-hover)}
.q-wk[aria-pressed="true"]{background:var(--accent);border-color:var(--accent);color:#fff;font-weight:600}
.q-wk.is-current{box-shadow:inset 0 -3px 0 var(--accent-line)}
.q-wk.is-current[aria-pressed="true"]{box-shadow:inset 0 -3px 0 var(--accent-dark)}
.q-dates{margin-top:10px}
.q-dates summary{cursor:pointer;color:var(--accent-dark);font-size:13px}
.q-dates .filters{margin:10px 0 0}
.q-week h2{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap}
.q-week h2 .tt-dates{font-size:14px}
.q-week .empty-day{padding:14px 18px;margin:0}

/* Sélection et aperçus groupés : couleurs du thème (et non plus vert). */
.q-selection{background:var(--row-alt);border-color:var(--line);box-shadow:0 2px 8px #2f281f0d}
.q-selection input,.q-session-table input{accent-color:var(--accent)}
.q-preview{border-color:var(--accent-line);background:var(--row-alt)}
.file-input-shell{border-color:var(--input-line)}
.file-input-choose{background:var(--accent-soft);border-color:var(--accent-line);color:var(--accent-dark)}
.file-input-shell:focus-within{outline-color:var(--focus)}

/* Tableaux : une action visible, les autres dans « Autres actions ». */
.row-actions{flex-wrap:nowrap;justify-content:flex-end;align-items:flex-start}
.row-menu{position:relative}
.row-menu>summary{list-style:none;min-height:41px;padding:6px 12px}
.row-menu>summary::-webkit-details-marker{display:none}
.row-menu-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.row-menu[open]>summary{background:var(--accent-soft);border-color:var(--accent-line)}
/* Liste dépliée dans la cellule (pas de menu flottant : les tableaux défilent et le couperaient). */
.row-menu-list{display:flex;flex-direction:column;align-items:stretch;gap:2px;min-width:210px;margin-top:6px;padding:5px;background:#fff;border:1px solid var(--line);border-radius:9px;box-shadow:0 6px 18px #2f281f1a}
.row-menu-list .btn{border-color:transparent;justify-content:flex-start;min-height:36px;width:100%}
.row-menu-list .btn:hover{background:var(--row-hover)}
.grid-more{transform:translateY(-75%);box-shadow:0 1px 3px #2f281f1f}
.grid-day .day-title{flex-wrap:wrap;row-gap:0;column-gap:8px}
.grid-day .day-title .muted{white-space:nowrap;font-size:11px;text-transform:none;letter-spacing:0}
.q-selection .btn{min-height:34px;padding:5px 12px;font-size:13px}
/* À traiter : contenu des rubriques aligné sur leur titre. */
.issue-group>.issue-context,.issue-group>.actions,.issue-group>.bulk-bar,.issue-group>.q-selection{margin-left:14px;margin-right:14px}
.issue-group>.actions{margin-bottom:10px}
/* Sélecteur Planning / Étudiants et notes : le nombre de conflits devient un point (détail au survol). */
.nav-switch .nav-badge{font-size:0;width:8px;height:8px;min-width:0;padding:0;border-radius:50%;display:inline-block;vertical-align:middle}
@media(max-width:700px){.topbar{padding-top:14px!important;flex-wrap:wrap;gap:10px}.topbar .language-switch{margin-left:auto}.q-weeks-head .actions{width:100%}.q-wk{min-width:32px}}
.grid-day .day-title{padding:6px 10px;align-content:center;line-height:1.25}
@media(max-width:700px){.topbar{min-height:0;align-content:flex-start}}
/* Corrections après relecture visuelle. */
.row-menu-list{position:fixed;z-index:60;margin:0;min-width:220px}
.row-menu:not([open]) .row-menu-list{display:none}
summary:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
.grid-more{z-index:7}
.grid-more.at-top{transform:none}
.grid-event.compact .ok-mark{position:absolute;top:3px;right:3px;width:12px;height:12px;margin:0;font-size:8px}
.grid-event.compact .ev-end{display:none}
.grid-event.compact:hover .ev-end,.grid-event.compact:focus-visible .ev-end{display:inline}
.grid-day .day-title .muted{flex-basis:100%}
.language-switch button[aria-pressed=true]{background:var(--accent-soft);color:var(--accent-dark);font-weight:650}
.q-wk[aria-pressed="true"]{background:var(--accent-soft);border-color:var(--accent);color:var(--accent-dark);font-weight:650}
.q-wk.is-current[aria-pressed="true"]{box-shadow:inset 0 -3px 0 var(--accent)}
.q-wk{height:36px;min-width:40px}
.q-selection .btn,.q-weeks-head .btn{min-height:36px;padding:6px 12px;font-size:13.5px}
@media(max-width:700px){.q-wk{height:40px;min-width:42px}}
/* « +N » dans une bande réservée à droite de la colonne du jour. */
.grid-more,.grid-more.at-top{transform:translateY(2px);right:1px;padding:2px 4px;min-width:24px}
.grid-event.compact{padding:4px}
.grid-event.compact .event-time{padding-right:13px}
.grid-event.compact .event-time .mark{position:absolute;top:3px;right:3px;margin:0;font-size:10px}
.grid-event.compact .mark~.ok-mark{right:16px}
.grid-event.compact .mark~.ok-mark+*{padding-right:0}

/* Grilles de semaines choisies et ajout direct, octobre 2026. */
.grid-body{isolation:isolate}
.grid-slot{position:absolute;left:0;width:100%;border:0;border-radius:0;background:transparent;padding:0;z-index:0;text-align:center;color:#24634f;cursor:cell;min-height:0;line-height:1;font:inherit}
.grid-slot span{opacity:0;font-size:11px;pointer-events:none}
.grid-slot:hover,.grid-slot:focus-visible{background:#dbece4;outline:2px solid #367762;outline-offset:-2px;z-index:1}
.grid-slot:hover span,.grid-slot:focus-visible span{opacity:1}
.grid-event{z-index:2}.grid-more{z-index:3}
.grid-empty-hint{pointer-events:none;position:relative;z-index:1}
.grid-event.context-event{background:#fff;border-left-color:var(--program-line,#8d979b);color:#505d63}
.q-week-grid{padding:14px 12px;margin-bottom:22px}
.q-week-grid .week-scroll.is-grid{max-height:none;overflow-y:visible}
.q-week-grid .grid-calendar{margin-top:10px}
.q-week-grid .grid-hours-wrap,.q-week-grid .grid-day>.day-title{position:relative;top:auto}
.parts-table{max-height:52vh;margin-top:10px}.parts-table thead{position:sticky;top:0;background:#fff;z-index:1}
.parts-table th:first-child{width:180px}.parts-table label{margin:0}
.student-order{display:flex;flex-direction:column;gap:3px;font-size:12px;color:var(--muted)}
.student-order select{min-width:145px;background:#fff}
.etu-editor-bar .student-order{min-width:145px}
.tt-bar>.actions{flex-wrap:wrap}

/* Navigation du planning : période, filtres et présentation indépendants. */
.planning-heading{margin-bottom:18px}
.planning-heading .eyebrow{margin-bottom:9px}
.planning-controls{background:#fff;border:1px solid var(--line);border-radius:12px;overflow:visible}
.planning-toolbar{display:grid;grid-template-columns:minmax(225px,1.1fr) minmax(255px,1.25fr) auto auto;gap:16px;align-items:end;padding:17px 18px}
.planning-toolbar>label,.planning-toolbar>div{min-width:0;margin:0}
.planning-label{display:block;font-size:12px;font-weight:600;color:var(--muted);margin:0 0 7px;letter-spacing:.02em}
.planning-toolbar select,.planning-toolbar .btn{min-height:40px;margin:0;font-size:14px}
.planning-toolbar select{width:100%;padding:8px 10px}
.planning-class #planning-group-kind{margin-bottom:7px;min-height:32px;padding:5px 9px;font-size:12px;background:var(--row-alt);color:var(--accent-dark)}
.planning-toolbar .btn{padding:8px 12px}
.planning-period-buttons{display:flex;gap:5px;min-width:0}
.planning-period-buttons>.btn{padding-inline:10px}
.planning-period-buttons [data-action=week]{flex:0 0 32px;padding-inline:0;font-size:20px;line-height:1}
#planning-period-trigger{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:1;min-width:0;text-align:left}
#planning-period-trigger>span:first-child{overflow-wrap:anywhere;white-space:normal}
.planning-toolbar button[aria-expanded=true]{background:var(--accent-soft);border-color:var(--accent-line);color:var(--accent-dark)}
.planning-display .segmented{padding:3px;gap:2px;background:var(--row-alt);border-radius:8px}
.planning-display .segmented .btn{min-height:32px;padding:5px 13px;border-radius:5px;background:transparent}
.planning-display .segmented .btn[aria-pressed=true]{background:var(--accent-soft);box-shadow:0 1px 3px #42301914;color:var(--accent-dark)}
.planning-controls button:disabled{cursor:default}
.planning-drawer{border-top:1px solid var(--line-soft);padding:18px;background:var(--row-alt);border-radius:0 0 12px 12px}
.planning-drawer .q-weeks{background:transparent;border:0;padding:0;margin:0;border-radius:0}
.planning-drawer .q-weeks-head{margin-bottom:14px;gap:14px}
.planning-drawer .q-wk-list{gap:7px}
.planning-drawer .q-wk{min-width:36px;min-height:36px}
.planning-drawer .q-wk[aria-pressed=true]{background:var(--accent-soft);border-color:var(--accent);color:var(--accent-dark);box-shadow:inset 0 -2px var(--accent);font-weight:650}
.planning-drawer .q-dates{margin-top:15px}
.planning-drawer .q-dates summary{width:max-content;max-width:100%}
.planning-drawer-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:14px}
.planning-extra-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 18px;margin:0}
.planning-extra-filters>label{min-width:0}
.planning-context{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:12px 2px 7px;color:var(--muted);font-size:13px}
.planning-context p{margin:0;line-height:1.7}
.planning-context .planning-clear{background:transparent;border:0;min-height:0;padding:2px 0;white-space:nowrap;color:var(--accent-dark);font-size:13px;font-weight:500}
.planning-chips{margin:3px 0 10px}
.planning-meta{display:flex;justify-content:space-between;align-items:baseline;gap:10px;flex-wrap:wrap;margin:0 0 9px}
.planning-meta>.actions{gap:8px}
.planning-meta>.actions:empty{display:none}
.planning-legend{margin-left:auto;font-size:12px;color:var(--muted)}
.planning-legend summary{cursor:pointer;width:max-content;margin-left:auto;padding:5px 0}
.planning-legend[open]{flex:1 0 100%;padding:0 0 9px;border-bottom:1px solid var(--line-soft)}
.planning-legend .q-color-legend{margin:8px 0}
.planning-legend .legend{margin:10px 0 0}
.planning-today{padding:4px 0;border:0;background:transparent;font-size:12px;color:var(--accent-dark);min-height:0}
.planning-controls~.q-week{margin-top:12px}
.q-week-grid h2{padding:5px 5px 12px}
.q-context-row td{background:#f0f1ef!important;color:#566057}
.q-context-row td:nth-child(3){border-left-color:#a5ada5}
.q-context-label{font-weight:600}
@media(max-width:1180px){.planning-toolbar{grid-template-columns:minmax(0,1fr) minmax(0,1.25fr);gap:14px 18px}.planning-display{justify-self:end}.planning-refine .btn{width:max-content;max-width:100%}.planning-toolbar select{max-width:100%}}
@media(max-width:540px){.planning-toolbar{grid-template-columns:minmax(0,1fr) auto;padding:14px;gap:14px}.planning-class,.planning-period{grid-column:1/-1}.planning-extra-filters{grid-template-columns:1fr}.planning-drawer{padding:14px}.planning-context{flex-wrap:wrap;gap:4px}.planning-context .planning-clear{margin-left:auto}.planning-heading{align-items:flex-start;flex-direction:column;gap:12px}.planning-drawer-actions{flex-wrap:wrap}.planning-drawer-actions .btn{flex:1}.planning-drawer .q-weeks-head .actions{width:auto}.planning-drawer .q-weeks-head .btn{font-size:12px}.planning-heading>.actions{justify-content:flex-start}}
@media(pointer:coarse){.planning-toolbar select,.planning-toolbar .btn,.planning-display .segmented .btn,.planning-drawer .q-wk,.planning-drawer .btn{min-height:44px}.planning-toolbar select,.planning-extra-filters select{font-size:16px}}
@media print{.planning-controls,.planning-context .btn,.planning-chips,.planning-meta,.q-selection{display:none!important}.q-week{break-inside:auto}.q-week-grid{break-before:page}}

/* Repères indépendants des couleurs de spécialité. */
.part-badge{display:inline-block!important;font:700 9px/1.5 Inter,sans-serif!important;padding:1px 5px;border-radius:3px;letter-spacing:.03em;white-space:nowrap;vertical-align:middle;width:max-content;max-width:100%;margin:2px 3px 2px 0;color:#fff!important;background:#80562e;border:1px solid #80562e;opacity:1!important}
.part-badge.part-cn{background:#f5f1e9;color:#353d49!important;border-color:#707886;border-style:dashed}
.part-badge.part-both{background:#4f5868;border-color:#4f5868;color:#fff!important}
.part-legend{display:flex;align-items:center;gap:5px;flex-wrap:wrap;font-size:11px}
.event.cn{border-left-style:dashed!important;border-left-width:4px!important;color:#252b32!important}
.event.both{border-left-style:double!important;border-left-width:6px!important;color:#252b32!important}
.event.compact .part-badge{font-size:8px!important;padding:0 3px;margin-top:1px}
.schedule-coverage{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:12px 0}
.parts-table th:nth-child(-n+2),.parts-table td:nth-child(-n+2){text-align:center;width:100px}
#undo-last{white-space:nowrap}
@media(max-width:800px){#undo-last{font-size:11px}.part-legend{width:100%}}

.topbar{flex-wrap:wrap}
#undo-last{font-size:12px}
#undo-last:disabled{cursor:default}

/* Partie chinoise seule : fond blanc, repères de spécialité conservés. */
.event.cn,.grid-event.cn.context-event{background:#fff!important}
.q-session-table .q-part-cn td{background:#fff!important}
.q-session-table .q-part-cn td:nth-child(3){border-left:4px dashed var(--program-line,#8fa3b3)}
.legend .cn-key{background:#fff;border:1px solid #8fa3b3;border-left:3px dashed #8fa3b3}

/* Pile de fenêtres : bouton « Retour » à gauche du titre de la fenêtre. */
.dialog-head .dialog-back{flex:0 0 auto;align-self:center;white-space:nowrap}
.dialog-head h2{flex:1 1 auto;min-width:0}
/* Lien de retour vers la fiche depuis les dossiers de suivi filtrés. */
.case-backlink{margin:-6px 0 14px}
.case-backlink .plain{font-weight:550}

/* Fiche étudiante : onglets Identité / Parcours et récapitulatif de parcours. */
.fiche-tabs{margin:0 0 20px}
.fiche-block{border-top:1px solid var(--line-soft);padding-top:16px;margin-top:16px}
.fiche-block:first-child,.fiche-head-block{border-top:0;padding-top:0;margin-top:0}
.fiche-block h3{margin:0 0 10px}
.fiche-block-head{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;flex-wrap:wrap}
.fiche-block-head h3{margin:0}
.fiche-sem{font-size:13px;min-width:200px}
.fiche-sem select{min-height:36px;margin-top:4px}
.fiche-who{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.fiche-name{font-size:21px;font-family:"Lora IFC",Georgia,"Songti SC",serif;letter-spacing:-.2px}
.fiche-zh{font-size:17px;color:var(--ink-soft)}
.fiche-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 16px;margin:0}
.fiche-fact dt{font-size:11px;text-transform:uppercase;letter-spacing:.6px;color:var(--muted);font-weight:650}
.fiche-fact dd{margin:3px 0 0;font-size:14px;overflow-wrap:anywhere}
.fiche-current{margin:0 0 10px;font-size:14px;color:var(--ink-soft)}
.fiche-hist{margin:0;padding:0;list-style:none}
.fiche-hist li{padding:9px 0;border-bottom:1px solid var(--line-soft);font-size:14px}
.fiche-hist li:last-child{border-bottom:0}
.fiche-hist .issue-when{display:block;font-size:12px;color:var(--muted);margin-bottom:3px}
.fiche-reason{color:var(--ink-soft);font-size:13px;margin-top:3px}
.fiche-courses td,.fiche-grades td{font-size:14px}
.fiche-mean{margin-top:10px}
.fiche-actions{flex-wrap:wrap}
@media(max-width:760px){.fiche-facts{grid-template-columns:1fr 1fr}.fiche-block-head{align-items:flex-start}}
@media(max-width:470px){.fiche-facts{grid-template-columns:1fr}}

/* Impression de la fiche (onglet Parcours seul) : bloc dédié, A4 propre, sans interface. */
#fiche-print{display:none}
@media print{
 body.print-fiche>*:not(#fiche-print){display:none!important}
 body.print-fiche #fiche-print{display:block;background:white;color:#000;font-size:12px;padding:0}
 body.print-fiche{background:white}
 #fiche-print .fiche-print-head{border-bottom:2px solid #000;padding-bottom:8px;margin-bottom:14px;font-size:16px}
 #fiche-print .fiche-block{break-inside:avoid;border-top:1px solid #bbb}
 #fiche-print .table-wrap{overflow:visible}
 #fiche-print table{width:100%;border-collapse:collapse}
 #fiche-print th,#fiche-print td{border-bottom:1px solid #ccc;padding:5px 7px;background:white}
 #fiche-print .tag{border:1px solid #999;background:white;color:#000}
 @page{size:A4;margin:16mm}
}
