/* eval1 - identité : bureau des examens (encre, papier, étiquettes kraft) */
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/sg-400.woff2) format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/sg-500.woff2) format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/sg-600.woff2) format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/sg-700.woff2) format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 800; font-display: swap; src: url(fonts/sg-800.woff2) format("woff2"); }
:root {
  --ink: #12343b; --ink2: #1d4a53; --ink-soft: #d7e4e2;
  --paper: #f1f3f8; --card: #fff; --line: #dde3e1; --txt: #17262b; --mut: #64757a;
  --sujet: #2e5eaa; --impression: #6b4fa0; --etiquette: #0891b2; --notes: #1f7a4d;
  --red: #c8102e; --amber: #9a6100; --amber-bg: #fcefd2; --red-bg: #fbe4e6;
  --pend: #e5eae8;
  /* familles de filières */
  --am: #e4572e; --ge: #0e9aa7; --ci: #5b4bdb; --di: #d99a00; --agc: #c2307a; --oth: #5f7a80;
  --font: "Schibsted Grotesk", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); background: var(--paper); color: var(--txt); font-size: 14.5px; line-height: 1.45; }
button, input, select, textarea { font: inherit; color: inherit; }
.muted { color: var(--mut); }
.num { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--sujet); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- barre du haut ---------- */
.topbar { position: sticky; top: 0; z-index: 20; background: var(--ink); color: #fff; }
.topbar-in { max-width: 1320px; margin: 0 auto; padding: 0 20px; display: flex; align-items: stretch; gap: 18px; min-height: 58px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; white-space: nowrap; letter-spacing: -.01em; }
.brand-mark { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 7px; background: #fff; color: var(--ink); font-weight: 800; font-size: 13px; }
.brand small { font-weight: 500; color: #9dbcb9; font-size: 13px; }
#sessionSel { align-self: center; background: transparent; color: #fff; border: 1px solid #3d6a72; border-radius: 6px; padding: 6px 28px 6px 10px; max-width: 240px; appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%239dbcb9' stroke-width='1.6' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
#sessionSel option { color: var(--txt); }
#tabs { display: flex; gap: 2px; flex: 1; align-items: stretch; overflow-x: auto; scrollbar-width: none; }
#tabs button { background: none; border: 0; color: #a9c4c1; padding: 0 11px; cursor: pointer; font-weight: 500; position: relative; white-space: nowrap; }
#tabs button:hover { color: #fff; }
#tabs button.on { color: #fff; font-weight: 600; }
#tabs button.on::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: #e9b949; }
.who { display: flex; align-items: center; gap: 12px; }
.who input { width: 116px; background: var(--ink2); border: 1px solid transparent; border-radius: 6px; padding: 6px 10px; color: #fff; }
.who input::placeholder { color: #86a7a4; }
.who a { color: #a9c4c1; text-decoration: none; font-size: 13px; }
.who a:hover { color: #fff; }

main { max-width: 1320px; margin: 0 auto; padding: 26px 20px 110px; }
h2 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; margin: 0; }
h3 { font-size: 15px; font-weight: 650; margin: 0 0 12px; display: flex; align-items: baseline; gap: 8px; }
h3 .muted { font-weight: 500; }

/* ---------- briques ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.grid { display: grid; gap: 16px; }
.g4 { grid-template-columns: repeat(4, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); } .g2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .g4 { grid-template-columns: repeat(2, 1fr); } .g3, .g2 { grid-template-columns: 1fr; } }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.toolbar .sp { flex: 1; }
.btn { border: 1px solid #cdd6d3; background: #fff; border-radius: 7px; padding: 8px 14px; cursor: pointer; font-weight: 550; white-space: nowrap; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.btn:hover { border-color: var(--ink); }
.btn:disabled { opacity: .45; cursor: default; }
.btn.primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.primary:hover { background: var(--ink2); }
.btn.danger { color: var(--red); }
.btn.sm { padding: 5px 10px; font-size: 13px; }
.btn.block { width: 100%; justify-content: center; }
input[type=text], input[type=search], input[type=date], input[type=number], input[type=password], select, textarea {
  border: 1px solid #cdd6d3; border-radius: 7px; padding: 8px 10px; background: #fff; min-width: 0; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--ink-soft); }
input[type=checkbox] { accent-color: var(--ink); width: 17px; height: 17px; cursor: pointer; margin: 0; }
label { display: grid; gap: 5px; font-size: 13px; color: var(--mut); font-weight: 550; }
label input, label select, label textarea { color: var(--txt); font-size: 14.5px; font-weight: 400; }
label.check { display: flex; gap: 9px; align-items: center; color: var(--txt); font-weight: 450; }

/* filières : 1re année en clair, 2e année en plein */
.fil { display: inline-grid; place-items: center; min-width: 46px; height: 26px; padding: 0 7px; font-weight: 700; font-size: 12.5px; border-radius: 6px; background: var(--ink-soft); color: var(--ink); letter-spacing: .02em; }
.fil.y2 { background: var(--ink); color: #fff; }

/* ---------- la chaîne des 4 étapes ---------- */
.steps { display: flex; gap: 2px; }
.pill { --c: var(--ink); position: relative; border: 0; background: var(--pend); color: #5b6b6f; font-size: 12.5px; font-weight: 600; padding: 7px 14px 7px 18px; cursor: pointer; white-space: nowrap; min-width: 82px; text-align: center;
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 50%, calc(100% - 9px) 100%, 0 100%, 9px 50%); transition: background .15s, color .15s; }
.pill:first-child { clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 50%, calc(100% - 9px) 100%, 0 100%); border-radius: 6px 0 0 6px; padding-left: 12px; }
.pill:last-child { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 9px 50%); border-radius: 0 6px 6px 0; padding-right: 12px; }
.pill:hover { background: #d3dbd8; color: var(--txt); }
.pill.done { background: var(--c); color: #fff; }
.pill.done:hover { filter: brightness(1.1); }
.pill.done::before { content: "✓ "; }
.pill.soon { background: var(--amber-bg); color: var(--amber); }
.pill.late { background: var(--red-bg); color: var(--red); }
.pill.s-sujet { --c: var(--sujet); } .pill.s-impression { --c: var(--impression); } .pill.s-etiquette { --c: var(--etiquette); } .pill.s-notes { --c: var(--notes); }
.pill .clip { font-size: 11px; }
.row .pill, .list .pill { width: 98px; min-width: 0; padding-left: 14px; padding-right: 10px; }
.row .pill:first-child { padding-left: 8px; }
.row .pill:last-child { padding-right: 6px; }
.pill:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--txt); }

/* ---------- liste des épreuves ---------- */
.day-head { position: sticky; top: 58px; z-index: 5; display: flex; align-items: center; gap: 14px; padding: 16px 4px 10px; background: var(--paper); }
.day-head .dnum { font-size: 34px; font-weight: 750; line-height: 1; letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.day-head .dtxt { line-height: 1.15; }
.day-head .dtxt b { display: block; font-size: 15px; }
.day-head .dtxt b::first-letter { text-transform: uppercase; }
.day-head .dtxt span { color: var(--mut); font-size: 13px; }
.list { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.row { display: grid; grid-template-columns: 22px 70px 56px minmax(0, 1fr) auto 32px; gap: 14px; align-items: center; padding: 11px 14px; border-top: 1px solid var(--line); background: #fff; }
.row:first-child { border-top: 0; }
.row:hover { background: #fafbfb; }
.row.sel { background: #eef5f4; box-shadow: inset 3px 0 0 var(--ink); }
.row .when { font-variant-numeric: tabular-nums; line-height: 1.2; }
.row .when b { font-size: 16px; font-weight: 700; display: block; }
.row .when span { font-size: 12px; color: var(--mut); }
.row .main { min-width: 0; }
.row .main > b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meta { display: flex; flex-wrap: wrap; column-gap: 14px; font-size: 12.5px; color: var(--mut); }
.meta .rq { color: var(--amber); }
.ico { border: 0; background: none; cursor: pointer; color: var(--mut); border-radius: 6px; width: 30px; height: 30px; display: grid; place-items: center; }
.ico:hover { background: var(--pend); color: var(--txt); }
.ico svg { width: 16px; height: 16px; }
@media (max-width: 1180px) { .brand small { display: none; } }
@media (max-width: 860px) {
  .row .pill { width: auto; }
  .row { grid-template-columns: 22px 60px minmax(0, 1fr) 32px; row-gap: 8px; }
  .row .fil { grid-column: 2; grid-row: 2; justify-self: start; }
  .row .main { grid-column: 3; grid-row: 1 / span 2; }
  .row .steps { grid-column: 1 / -1; }
  .row .steps .pill { flex: 1; min-width: 0; }
  .row .ico { grid-column: 4; grid-row: 1; }
}
.empty { color: var(--mut); padding: 14px 0; }

/* ---------- tableau de bord : la chaîne de production ---------- */
.pipe { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-bottom: 16px; }
.pipe .st { --c: var(--ink); background: #fff; border: 1px solid var(--line); padding: 18px 26px 16px 34px; position: relative;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%, 18px 50%); }
.pipe .st:first-child { clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%); border-radius: 12px 0 0 12px; padding-left: 20px; }
.pipe .st:last-child { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 18px 50%); border-radius: 0 12px 12px 0; }
.pipe .st .k { font-size: 13.5px; font-weight: 600; color: var(--c); }
.pipe .st .v { font-size: 34px; font-weight: 750; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.pipe .st .v small { font-size: 15px; color: var(--mut); font-weight: 500; letter-spacing: 0; }
.pipe .st .bar { margin-top: 10px; }
@media (max-width: 860px) { .pipe { grid-template-columns: 1fr 1fr; } .pipe .st, .pipe .st:first-child, .pipe .st:last-child { clip-path: none; border-radius: 12px; padding-left: 18px; } }
.bar { height: 6px; background: var(--pend); border-radius: 6px; overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 6px; transition: width .5s; }

.alist { display: flex; flex-direction: column; max-height: 380px; overflow: auto; margin: 0 -6px; }
.aitem { display: grid; grid-template-columns: 50px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 6px; border-top: 1px solid var(--line); }
.aitem:first-child { border-top: 0; }
.aitem[data-goprof] { cursor: pointer; }
.aitem[data-goprof]:hover { background: #f6f8f7; }
.aitem .t { font-size: 13.5px; min-width: 0; }
.aitem .t b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tag { font-size: 12px; font-weight: 650; padding: 3px 9px; border-radius: 5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tag.red { background: var(--red-bg); color: var(--red); } .tag.amb { background: var(--amber-bg); color: var(--amber); }
.tag.grey { background: var(--pend); color: var(--mut); } .tag.green { background: #dcefe4; color: var(--notes); }

/* ---------- profs ---------- */
.prof-card { cursor: pointer; transition: border-color .15s; }
.prof-card:hover { border-color: var(--ink); }
.prof-card .nm { font-weight: 700; font-size: 16px; margin-bottom: 4px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.prof-card .fils { display: flex; gap: 4px; flex-wrap: wrap; margin: 8px 0 12px; }
.prof-card .fils .fil { min-width: 38px; height: 22px; font-size: 11.5px; }
.mini { display: grid; grid-template-columns: 104px 1fr 38px; gap: 10px; align-items: center; font-size: 12.5px; color: var(--mut); margin-top: 6px; font-variant-numeric: tabular-nums; }

/* ---------- planning du jour ---------- */
.slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; align-items: start; }
.slot-h { display: flex; align-items: baseline; justify-content: space-between; padding: 0 4px 10px; border-bottom: 2px solid var(--ink); margin-bottom: 10px; }
.slot-h b { font-size: 22px; font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ecard { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin-bottom: 10px; }
.ecard .top { display: flex; gap: 9px; align-items: flex-start; margin-bottom: 4px; }
.ecard .top b { font-size: 14px; font-weight: 600; line-height: 1.3; }
.ecard .meta { margin-bottom: 10px; }
.ecard .steps .pill { flex: 1; min-width: 0; padding-left: 12px; padding-right: 8px; font-size: 11.5px; }
.ecard .pill.done::before { content: none; }
.cap::first-letter { text-transform: uppercase; }

/* ---------- planning général ---------- */
.gscroll { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 6px 10px 10px; }
.gtable { width: 100%; min-width: 980px; border-collapse: separate; border-spacing: 4px; table-layout: fixed; }
.gtable th { font-size: 12.5px; color: var(--mut); font-weight: 600; padding: 4px; text-align: left; vertical-align: top; font-variant-numeric: tabular-nums; }
.gtable thead th { text-align: center; padding: 8px 4px; }
.gtable td { overflow-wrap: break-word; hyphens: auto; border-radius: 6px; padding: 7px 8px; font-size: 11.5px; line-height: 1.25; vertical-align: top; height: 64px; }
.gtable td.e { cursor: pointer; background: #f4f6f5; box-shadow: inset 3px 0 0 #c3ccc9; }
.gtable td.e:hover { background: #e9eeec; }
.gtable td.e b { display: block; font-weight: 600; margin-bottom: 3px; }
.gtable td.e span { color: var(--mut); }
.gtable td.st1 { box-shadow: inset 3px 0 0 var(--sujet); } .gtable td.st2 { box-shadow: inset 3px 0 0 var(--impression); }
.gtable td.st4 { box-shadow: inset 3px 0 0 var(--notes); background: #e8f3ed; }
.gtable td.cont { opacity: .5; }
.gtable tr.newday th, .gtable tr.newday td { border-top: 0; }
.gtable tr.newday th:first-child { padding-top: 14px; }
.gtable tr.sep td { height: 6px; padding: 0; background: none; border-bottom: 1px solid var(--line); border-radius: 0; }
.legend { display: flex; gap: 16px; font-size: 12.5px; color: var(--mut); flex-wrap: wrap; }
.legend i { display: inline-block; width: 4px; height: 14px; border-radius: 2px; margin-right: 6px; vertical-align: -2px; }

/* ---------- étiquettes ---------- */
.etq-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; align-items: start; }
.etq-side { display: grid; gap: 14px; position: sticky; top: 76px; }
.etq-row { display: grid; grid-template-columns: 22px 140px 56px minmax(0, 1fr) 60px 92px; gap: 12px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--line); }
.etq-row:first-child { border-top: 0; }
.etq-row b { font-weight: 600; }
.etq-row .copies { font-variant-numeric: tabular-nums; color: var(--mut); text-align: right; }
@media (max-width: 860px) { .etq-layout { grid-template-columns: 1fr; } .etq-side { position: static; } .etq-row { grid-template-columns: 22px 56px minmax(0, 1fr) 92px; } .etq-row .pn, .etq-row .copies { display: none; } }

/* ---------- paramètres ---------- */
.etable { width: 100%; border-collapse: collapse; }
.etable td, .etable th { padding: 3px; text-align: left; font-size: 13px; font-weight: 550; color: var(--mut); }
.etable input, .etable select { width: 100%; }
.sitem { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); }
.sitem:first-of-type { border-top: 0; }
.sitem .cur { font-size: 12px; color: var(--notes); font-weight: 600; }

/* ---------- barre de sélection ---------- */
.selbar { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--ink); color: #fff; border-radius: 12px; padding: 10px 12px 10px 18px; display: flex; gap: 8px; align-items: center; box-shadow: 0 12px 32px rgba(18,52,59,.35); z-index: 30; flex-wrap: wrap; justify-content: center; max-width: 96vw; animation: up .2s ease-out; }
.selbar > b { margin-right: 6px; font-variant-numeric: tabular-nums; }
.selbar .btn { padding: 6px 11px; font-size: 13px; color: var(--txt); border-color: transparent; }
.selbar .btn.ghost { background: transparent; color: #a9c4c1; }
@keyframes up { from { transform: translate(-50%, 16px); opacity: 0; } }

/* ---------- modale ---------- */
.modal { position: fixed; inset: 0; background: rgba(18,38,43,.5); display: grid; place-items: center; z-index: 50; padding: 16px; }
.modal[hidden] { display: none; }
.modal-box { background: #fff; border-radius: 14px; width: min(660px, 100%); max-height: 92vh; overflow: auto; padding: 24px; box-shadow: 0 24px 60px rgba(0,0,0,.3); animation: pop .16s ease-out; }
@keyframes pop { from { transform: scale(.98); opacity: 0; } }
.modal-box h2 { font-size: 20px; margin-bottom: 18px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }
.att { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #f4f6f5; border-radius: 8px; font-size: 13px; }
.att a { color: var(--sujet); font-weight: 600; text-decoration: none; }

/* ---------- message ---------- */
.toast { position: fixed; right: 20px; bottom: 20px; background: var(--txt); color: #fff; padding: 11px 12px 11px 16px; border-radius: 10px; z-index: 60; display: flex; gap: 14px; align-items: center; box-shadow: 0 10px 28px rgba(0,0,0,.25); font-size: 14px; }
.toast button { background: none; border: 0; color: #e9b949; padding: 4px 6px; cursor: pointer; font-weight: 650; }
.toast.err { background: var(--red); }
.toast.err button { color: #fff; }

/* ---------- connexion ---------- */
.login-page { display: grid; place-items: center; min-height: 100vh; background: var(--ink); }
.login-card { background: #fff; padding: 34px; border-radius: 16px; width: min(380px, 92vw); display: grid; gap: 16px; }
.login-card h1 { margin: 0; font-size: 24px; letter-spacing: -.02em; }
.login-card p { margin: 0; }
.login-card .brand-mark { width: 42px; height: 42px; font-size: 16px; background: var(--ink); color: #fff; border-radius: 10px; }
.alert { background: var(--red-bg); color: var(--red); padding: 9px 12px; border-radius: 8px; font-size: 13.5px; }

/* ================= couleurs ================= */
.f-am { --f: var(--am); } .f-ge { --f: var(--ge); } .f-ci { --f: var(--ci); } .f-di { --f: var(--di); } .f-agc { --f: var(--agc); }
[class*=" f-"], [class^="f-"] { --fx: var(--f, var(--oth)); }
.fil { --fx: var(--f, var(--oth)); background: color-mix(in srgb, var(--fx) 16%, #fff); color: color-mix(in srgb, var(--fx) 80%, #000); }
.fil.y2 { background: var(--fx); color: #fff; }
.fil.f-di.y2 { color: #2b1d00; }

.row { box-shadow: inset 4px 0 0 var(--fx, transparent); padding-left: 18px; }
.row.sel { background: color-mix(in srgb, var(--fx, var(--ink)) 8%, #fff); box-shadow: inset 4px 0 0 var(--fx, var(--ink)); }

.ecard { border-top: 4px solid var(--fx, var(--line)); background: linear-gradient(color-mix(in srgb, var(--fx, #fff) 7%, #fff), #fff 60%); }

.slotcol .slot-h { border-bottom: 3px solid hsl(var(--h) 65% 45%); }
.slotcol .slot-h b { color: hsl(var(--h) 60% 35%); }

.gtable td.e { background: color-mix(in srgb, var(--fx, #888) 11%, #fff); }
.gtable td.e:hover { background: color-mix(in srgb, var(--fx, #888) 20%, #fff); }
.gtable td.st4 { background: color-mix(in srgb, var(--fx, #888) 11%, #fff); }
.gtable td.st4::after { content: "notes ✓"; display: block; margin-top: 4px; color: var(--notes); font-weight: 700; font-size: 10.5px; }

.pipe .st { background: color-mix(in srgb, var(--c) 9%, #fff); border-color: color-mix(in srgb, var(--c) 25%, #fff); }
.pipe .st .v { color: var(--c); }
.pipe .st .bar { background: color-mix(in srgb, var(--c) 15%, #fff); }

.card.topc { border-top: 4px solid var(--c); }
.card.topc h3 { color: color-mix(in srgb, var(--c) 85%, #000); }

.who-p { display: flex; align-items: center; gap: 10px; }
.av { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: hsl(var(--h) 70% 92%); color: hsl(var(--h) 55% 32%); font-size: 13px; font-weight: 750; flex: none; }
.prof-card { border-top: 4px solid hsl(var(--h, 190) 55% 55%); }

.topbar { background: linear-gradient(100deg, #12343b 0%, #1b4a6b 55%, #3a3f8f 100%); }
#tabs button.on::after { background: linear-gradient(90deg, #f5c542, #ff8a5b); }
.day-head .dnum { background: linear-gradient(135deg, #2e5eaa, #6b4fa0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.btn.primary { background: linear-gradient(135deg, #1d4a6b, #3a3f8f); border-color: transparent; }
.btn.primary:hover { filter: brightness(1.12); }
.selbar { background: linear-gradient(100deg, #12343b, #3a3f8f); }
.login-page { background: linear-gradient(135deg, #12343b, #1b4a6b 50%, #3a3f8f); }

/* ================= guichet ================= */
.strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.strip-i { background: color-mix(in srgb, var(--c) 8%, #fff); border: 1px solid color-mix(in srgb, var(--c) 22%, #fff); border-radius: 12px; padding: 10px 16px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px; }
.strip-i span { font-weight: 600; color: var(--c); font-size: 13.5px; }
.strip-i b { font-size: 22px; font-weight: 750; color: var(--c); }
.strip-i b small { font-size: 13px; color: var(--mut); font-weight: 500; }
.strip-i .bar { grid-column: 1 / -1; background: color-mix(in srgb, var(--c) 14%, #fff); }
.gx { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 18px; align-items: start; }
.gp-col { position: sticky; top: 76px; display: grid; gap: 10px; }
.gp-col input { width: 100%; padding: 12px 14px; font-size: 15px; border-radius: 10px; border: 2px solid #cfd6e4; }
.gp-col input:focus { border-color: #3a3f8f; box-shadow: 0 0 0 4px #e3e4f7; }
.gp-list { display: grid; gap: 6px; max-height: calc(100vh - 190px); overflow: auto; padding: 2px; }
.gp { display: grid; grid-template-columns: 36px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; cursor: pointer; }
.gp .av { grid-row: 1 / span 2; }
.gp-n { font-weight: 650; }
.gp-b { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 3px; }
.gp-b .tag { font-size: 11.5px; padding: 2px 7px; }
.gp:hover { border-color: #3a3f8f; }
.gp.on { border-color: #3a3f8f; background: #eef0fb; box-shadow: inset 4px 0 0 #3a3f8f; }
.tag.vio { background: #ece6f7; color: var(--impression); } .tag.blue { background: #e3ebf7; color: var(--sujet); }
.gp-main { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; min-height: 420px; }
.gp-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.gp-head .fils { display: flex; gap: 4px; margin-top: 6px; flex-wrap: wrap; }
.gp-head .sp { flex: 1; }
.av.big { width: 52px; height: 52px; font-size: 18px; }
.blk { margin-top: 18px; }
.blk-h { display: flex; align-items: center; justify-content: space-between; }
.blk-h h3 { margin: 0; }
.blk-hint { font-size: 13px; margin: 2px 0 10px; }
.tk { display: grid; grid-template-columns: 56px minmax(0, 1fr) 170px; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 10px; background: color-mix(in srgb, var(--fx, #888) 7%, #fff); border: 1px solid color-mix(in srgb, var(--fx, #888) 18%, #fff); margin-bottom: 8px; }
.tk .main b { display: block; font-weight: 650; font-size: 15px; }
.recv { --c: var(--ink); border: 2px solid var(--c); background: #fff; color: var(--c); border-radius: 10px; padding: 11px 14px; font-weight: 700; font-size: 14px; cursor: pointer; transition: background .12s, color .12s; }
.recv::before { content: ""; display: inline-block; width: 14px; height: 14px; border: 2px solid currentColor; border-radius: 4px; margin-right: 8px; vertical-align: -2px; }
.recv:hover { background: var(--c); color: #fff; }
.recv.done { background: var(--c); color: #fff; }
.recv.done::before { content: "✓"; border: 0; width: auto; height: auto; font-size: 14px; }
.recv.s-sujet { --c: var(--sujet); } .recv.s-notes { --c: var(--notes); } .recv.s-impression { --c: var(--impression); }
.recv.late:not(.done) { --c: var(--red); }
.ok-big { padding: 26px; text-align: center; background: #e6f4ec; color: var(--notes); border-radius: 12px; font-weight: 650; margin-top: 10px; }
.done-r { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto auto auto; gap: 10px; align-items: center; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.done-r .m { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home h2 { margin-bottom: 4px; }
.nudge { display: grid; grid-template-columns: 36px auto 1fr; gap: 10px; align-items: center; width: 100%; text-align: left; background: #fff7e6; border: 1px solid #f3dfb0; border-radius: 10px; padding: 9px 12px; margin-bottom: 6px; cursor: pointer; }
.nudge:hover { border-color: var(--amber); }
@media (max-width: 900px) { .gx { grid-template-columns: 1fr; } .gp-col { position: static; } .gp-list { max-height: 260px; } .tk { grid-template-columns: 50px 1fr; } .tk .recv { grid-column: 1 / -1; } .strip { grid-template-columns: 1fr; } }

/* ================= impression ================= */
.pday { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 16px; overflow: hidden; }
.pday-h { display: flex; align-items: center; gap: 14px; padding: 14px 18px; flex-wrap: wrap; background: linear-gradient(90deg, #f1f0fb, #fff 70%); border-bottom: 1px solid var(--line); }
.pday.complete .pday-h { background: linear-gradient(90deg, #e6f4ec, #fff 70%); }
.pd-date { display: flex; align-items: center; gap: 10px; }
.pd-date .dnum { font-size: 34px; font-weight: 800; line-height: 1; color: #3a3f8f; }
.pd-date > span:last-child { display: grid; line-height: 1.2; }
.pd-stats { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.pday-h .sp { flex: 1; }
.pd-ok { padding: 14px 18px; color: var(--notes); font-weight: 600; }
.pr { display: grid; grid-template-columns: 52px 56px minmax(0, 1fr) 60px 170px; gap: 12px; align-items: center; padding: 9px 18px; border-top: 1px solid var(--line); box-shadow: inset 4px 0 0 var(--fx, transparent); }
.pr:first-child { border-top: 0; }
.pr-h { font-weight: 700; }
.pr-c { color: var(--mut); text-align: right; }
.pr .main b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr .recv { padding: 8px 12px; font-size: 13px; }
@media (max-width: 760px) { .pr { grid-template-columns: 44px 52px 1fr; } .pr-c { display: none; } .pr .recv { grid-column: 1 / -1; } }

/* ================= planning : sélecteur ================= */
.seg { display: inline-flex; background: #e3e6ef; border-radius: 10px; padding: 3px; margin-bottom: 16px; }
.seg button { border: 0; background: none; padding: 7px 16px; border-radius: 8px; font-weight: 600; color: var(--mut); cursor: pointer; }
.seg button.on { background: #fff; color: var(--txt); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.toast[hidden] { display: none; }
