/* Campus LW 1.2 — feuille de style unique, polices hébergées localement (OFL). © Loïc Wilhelm */
@font-face { font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 200 800; src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2-variations"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 200 800; src: url("../fonts/manrope-latin-ext-wght-normal.woff2") format("woff2-variations"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-display: swap; font-weight: 100 800; src: url("../fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2-variations"); }
[hidden] { display: none !important; }
:root {
  color-scheme: light;
  --accent: #2563EB; --accent-2: #38BDF8; --navy: #0E1B36; --navy-2: #142a5c; --encre: #0A1530;
  --bg: #F5F7FB; --surface: #FFFFFF; --surface-2: #F8FAFD; --surface-3: #EEF2F8;
  --ink: #0F172A; --ink-2: #4B5870; --muted: #7D8AA0; --line: #E2E7F0; --line-2: #CCD5E3;
  --ok: #15803D; --ok-bg: #EBF8F0; --warn: #B45309; --warn-bg: #FFF6E8; --err: #DC2626; --err-bg: #FEF1F1; --info-bg: #EEF4FF;
  --violet: #7C3AED; --rose: #DB2777; --cyan: #0891B2;
  --r: 16px; --r-md: 12px; --r-sm: 9px;
  --sh-1: 0 1px 2px rgba(14,27,54,.05);
  --sh-2: 0 1px 2px rgba(14,27,54,.04), 0 10px 28px -12px rgba(14,27,54,.18);
  --sh-3: 0 24px 60px -16px rgba(14,27,54,.35);
  --font: "Manrope", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Code", Consolas, Menlo, monospace;
  --side: 248px;
  --focus: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0A1122; --surface: #101a30; --surface-2: #131f3a; --surface-3: #1a2846;
  --ink: #E6EBF4; --ink-2: #A8B5CB; --muted: #74849F; --line: #213052; --line-2: #2d3f66;
  --ok-bg: rgba(21,128,61,.18); --warn-bg: rgba(180,83,9,.2); --err-bg: rgba(220,38,38,.17); --info-bg: rgba(37,99,235,.17);
  --sh-1: 0 1px 2px rgba(0,0,0,.4); --sh-2: 0 10px 30px -12px rgba(0,0,0,.7); --sh-3: 0 30px 70px -16px rgba(0,0,0,.8);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 500 15px/1.6 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; font-feature-settings: "ss01"; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 750; }
h1 { font-size: 28px; font-weight: 780; }
h2 { font-size: 19px; }
h3 { font-size: 16px; letter-spacing: -.01em; }
p { margin: 0 0 .8em; }
b, strong { font-weight: 720; }
code, kbd, pre { font-family: var(--mono); font-size: .88em; }
code { background: var(--surface-3); padding: 1px 6px; border-radius: 6px; }
pre { background: var(--encre); color: #E2E8F0; padding: 14px 16px; border-radius: var(--r-sm); overflow: auto; }
hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -3px; }
.i.lg { width: 22px; height: 22px; } .i.xl { width: 28px; height: 28px; } .i.sm { width: 15px; height: 15px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- barre latérale ---------- */
.app { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; background: linear-gradient(90deg, #0c1833 var(--side), transparent var(--side)); }
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; color: #BCCAE1; padding: 16px 12px 12px; z-index: 30; display: flex; flex-direction: column; gap: 4px;
  background-color: var(--navy);
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
                    radial-gradient(420px 260px at 110% -5%, color-mix(in srgb, var(--accent) 50%, transparent) 0, transparent 70%),
                    linear-gradient(180deg, var(--encre), var(--navy) 50%, #0c1833);
  background-size: 28px 28px, 28px 28px, auto, auto;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.15) transparent; }
.brand { display: flex; align-items: center; gap: 11px; padding: 4px 8px 14px; color: #fff; text-decoration: none !important; }
.mono { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; letter-spacing: .02em; color: #fff; font-size: 15px;
  background: linear-gradient(135deg, var(--accent-2), var(--accent)); box-shadow: 0 8px 20px -6px color-mix(in srgb, var(--accent) 80%, transparent), inset 0 1px 0 rgba(255,255,255,.35); flex: none; }
.mono img { width: 100%; height: 100%; object-fit: contain; border-radius: 12px; }
.brand b { display: block; font-size: 15.5px; line-height: 1.15; font-weight: 780; }
.brand small { color: #8EA2C4; font-size: 12px; font-weight: 550; }
.classe { position: relative; display: flex; align-items: center; gap: 10px; margin: 0 2px 10px; padding: 9px 11px; border-radius: 12px; cursor: pointer;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.09); color: #fff; }
.classe:hover { background: rgba(255,255,255,.1); }
.classe-pt { width: 10px; height: 10px; border-radius: 50%; flex: none; box-shadow: 0 0 0 3px rgba(255,255,255,.12); }
.classe-t { flex: 1; min-width: 0; }
.classe-t small { display: block; font-size: 11.5px; color: #8EA2C4; font-weight: 600; }
.classe-t b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.classe .menu { left: 0; right: auto; width: 100%; color: var(--ink); top: calc(100% + 6px); }
.classe.open .menu { display: block; }
.classe .menu a.on { background: var(--info-bg); }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a, .nav-b { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; color: #BCCAE1; font-weight: 620; font-size: 14.4px; text-decoration: none !important; transition: background .15s, color .15s; position: relative; }
.nav a:hover, .nav-b:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav a.on, .nav-b.on { background: #fff; color: var(--navy); box-shadow: 0 6px 18px -8px rgba(0,0,0,.5); }
.nav a.on .i, .nav-b.on .i { color: var(--accent); }
.nbadge { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 99px; background: var(--accent-2); color: var(--encre); font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.side-bas { margin-top: auto; padding-top: 12px; display: flex; flex-direction: column; gap: 2px; border-top: 1px solid rgba(255,255,255,.08); }
.side-foot { padding: 10px 12px 2px; font-size: 11.5px; color: #6F84A8; line-height: 1.55; }
.side-foot a { color: #8EA2C4; }

/* ---------- barre du haut, sous-navigation ---------- */
.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 11px 28px; background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--line); }
.top .burger { display: none; }
.search { flex: 1; max-width: 440px; position: relative; }
.search input, .search input[type=search] { width: 100%; padding: 9px 14px 9px 38px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; }
.search .i { position: absolute; left: 13px; top: 12px; color: var(--muted); }
.top-r { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.ibtn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer; flex: none; }
.ibtn:hover { color: var(--ink); border-color: var(--line-2); text-decoration: none; }
.ibtn.on { background: var(--info-bg); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.me { display: flex; align-items: center; gap: 10px; padding: 4px 10px 4px 4px; border-radius: 13px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; color: var(--ink); position: relative; }
.me b { font-size: 13.5px; display: block; line-height: 1.15; }
.me small { color: var(--muted); font-size: 11.5px; font-weight: 600; }
.menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 240px; background: var(--surface); border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--sh-3); padding: 6px; display: none; z-index: 40; }
.me.open .menu { display: block; }
.menu a, .menu button { display: flex; gap: 10px; align-items: center; width: 100%; padding: 9px 10px; border-radius: 9px; color: var(--ink); background: none; border: 0; font: 600 14px var(--font); cursor: pointer; text-align: left; }
.menu a:hover, .menu button:hover { background: var(--surface-3); text-decoration: none; }
.sous-nav { border-bottom: 1px solid var(--line); background: var(--surface); }
.sous-nav-in { display: flex; gap: 4px; padding: 0 28px; overflow-x: auto; scrollbar-width: none; max-width: 1420px; }
.sous-nav a { position: relative; padding: 13px 12px 12px; color: var(--ink-2); font-weight: 650; font-size: 14px; white-space: nowrap; text-decoration: none !important; }
.sous-nav a:hover { color: var(--ink); }
.sous-nav a.on { color: var(--ink); }
.sous-nav a.on::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--accent); }
.content { padding: 28px 28px 64px; max-width: 1420px; width: 100%; }
.content.wide { max-width: none; }
.content.flush { padding: 0; max-width: none; }
.pfoot { margin-top: auto; padding: 18px 28px; color: var(--muted); font-size: 12.5px; display: flex; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); }
.pfoot a { color: var(--ink-2); }
.lw { color: var(--accent); font-weight: 800; }
.bandeau { display: flex; gap: 10px; align-items: center; padding: 10px 28px; font-size: 14px; border-bottom: 1px solid var(--line); }
.bandeau.info { background: var(--info-bg); } .bandeau.info .i { color: var(--accent); }
.bandeau.warn { background: var(--warn-bg); } .bandeau.warn .i { color: var(--warn); }
.vue-eleve .i { color: var(--accent); }

/* ---------- avatars, badges, statuts ---------- */
.av { width: 34px; height: 34px; border-radius: 11px; display: inline-grid; place-items: center; font-weight: 750; font-size: 13px; color: #fff; background: linear-gradient(135deg, #4F6BF2, var(--accent)); flex: none; overflow: hidden; }
.av img { width: 100%; height: 100%; object-fit: cover; }
.av.lg { width: 72px; height: 72px; border-radius: 22px; font-size: 26px; }
.av.xl { width: 104px; height: 104px; border-radius: 30px; font-size: 36px; }
.av.sm { width: 26px; height: 26px; border-radius: 8px; font-size: 11px; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--surface-3); color: var(--ink-2); white-space: nowrap; }
.badge.ok { background: var(--ok-bg); color: var(--ok); } .badge.warn { background: var(--warn-bg); color: var(--warn); } .badge.err { background: var(--err-bg); color: var(--err); }
.badge.info { background: var(--info-bg); color: var(--accent); } .badge.dark { background: var(--navy); color: #7DD3FC; }
.badge.dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; background: var(--surface-3); color: var(--ink-2); }
.st::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.st.ferme { color: var(--muted); } .st.programme { background: var(--info-bg); color: var(--accent); } .st.ouvert { background: var(--ok-bg); color: var(--ok); }
.st.echeance { background: var(--warn-bg); color: var(--warn); } .st.termine { background: color-mix(in srgb, var(--violet) 12%, transparent); color: var(--violet); }
.st.retard { background: var(--err-bg); color: var(--err); }
.tag { font: 700 12px var(--mono); padding: 3px 8px; border-radius: 7px; background: var(--navy); color: #7DD3FC; letter-spacing: 0; white-space: nowrap; }
.tag.TP { background: #1D4ED8; color: #fff; } .tag.TD { background: #6D28D9; color: #fff; }
.tag.CM { background: #0E7490; color: #fff; } .tag.QCM { background: #BE185D; color: #fff; }
.tag.DOC, .tag.COURS, .tag.GUIDE, .tag.OUTIL, .tag.SAE, .tag.PROF { background: var(--surface-3); color: var(--ink-2); }

/* ---------- cartes et grilles ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; min-width: 0; }
.card.pad0 { padding: 0; overflow: hidden; }
.card.flat { background: var(--surface-2); }
.card-h { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.card-h h2, .card-h h3 { margin: 0; }
.card-h .r { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-auto { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.g-main { grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); }
.stack > * + * { margin-top: 18px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; } .row.between { justify-content: space-between; } .row.nowrap { flex-wrap: nowrap; }
.muted { color: var(--muted); } .small { font-size: 13px; } .xs { font-size: 12px; } .b { font-weight: 720; } .nowrap { white-space: nowrap; }
.mt { margin-top: 16px; } .mb { margin-bottom: 16px; } .m0 { margin: 0; } .ml-auto { margin-left: auto; }
.center { text-align: center; } .right { text-align: right; }
.hero { position: relative; overflow: hidden; border-radius: 22px; padding: 28px 30px; color: #fff; margin-bottom: 22px; border: 0;
  background-color: var(--navy);
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px),
                    radial-gradient(600px 300px at 100% -20%, color-mix(in srgb, var(--accent) 75%, transparent) 0, transparent 65%), linear-gradient(135deg, var(--encre), var(--navy) 55%, var(--navy-2));
  background-size: 28px 28px, 28px 28px, auto, auto; }
.hero h1 { color: #fff; font-size: 30px; margin-bottom: 6px; letter-spacing: -.03em; }
.hero p { color: #C3D0E6; margin: 0; max-width: 680px; }
.hero .k { font-size: 13px; font-weight: 700; color: #7DD3FC; margin-bottom: 6px; }
.hero .stats { display: flex; gap: 32px; margin-top: 22px; flex-wrap: wrap; position: relative; z-index: 1; }
.hero .stats b { display: block; font-size: 28px; color: #fff; letter-spacing: -.02em; }
.hero .stats span { color: #9FB3D3; font-size: 13px; }
.hero .r { position: relative; z-index: 1; }
.ph { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.ph h1 { margin: 0; }
.ph .sub { color: var(--ink-2); margin: 6px 0 0; max-width: 760px; }
.ph .r { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 6px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-weight: 600; }
.crumbs a { color: var(--ink-2); }

/* ---------- KPI ---------- */
.kpi { position: relative; padding: 18px 18px 16px; }
.kpi .ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: var(--accent); background: var(--info-bg); margin-bottom: 12px; }
.kpi .ic.v { color: var(--violet); background: color-mix(in srgb, var(--violet) 12%, transparent); } .kpi .ic.g { color: var(--ok); background: var(--ok-bg); }
.kpi .ic.o { color: var(--warn); background: var(--warn-bg); } .kpi .ic.r { color: var(--rose); background: color-mix(in srgb, var(--rose) 12%, transparent); }
.kpi b { font-size: 28px; font-weight: 800; display: block; line-height: 1.1; letter-spacing: -.03em; }
.kpi span { color: var(--ink-2); font-size: 13px; font-weight: 600; }
.kpi .trend { position: absolute; right: 16px; top: 18px; }

/* ---------- boutons et formulaires ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink);
  font: 680 14px/1.2 var(--font); cursor: pointer; text-decoration: none !important; transition: transform .08s, box-shadow .15s, background .15s, border-color .15s; white-space: nowrap; }
.btn:hover { border-color: var(--muted); }
.btn:active { transform: translateY(1px); }
.btn.pri { background: var(--accent); color: #fff; border-color: transparent; box-shadow: 0 8px 18px -10px color-mix(in srgb, var(--accent) 90%, transparent), inset 0 1px 0 rgba(255,255,255,.2); }
.btn.pri:hover { background: color-mix(in srgb, var(--accent) 88%, #000); }
.btn.dark { background: var(--navy); color: #fff; border-color: transparent; }
.btn.ok { background: var(--ok); color: #fff; border-color: transparent; }
.btn.danger { color: var(--err); border-color: color-mix(in srgb, var(--err) 35%, transparent); }
.btn.danger.full { background: var(--err); color: #fff; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--surface-3); }
.btn.sm { padding: 6px 11px; font-size: 13px; border-radius: 9px; }
.btn.xs { padding: 3px 8px; font-size: 12px; border-radius: 7px; }
.btn.lg { padding: 13px 22px; font-size: 15.5px; border-radius: 13px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
label { font-weight: 680; font-size: 13.5px; color: var(--ink-2); display: block; margin-bottom: 6px; }
.field { margin-bottom: 14px; }
.field .hint, .hint { font-size: 12.5px; color: var(--muted); margin-top: 5px; font-weight: 500; }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=search], input[type=datetime-local], input[type=date], input[type=time], input[type=color], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); color: var(--ink); font: 550 14.5px var(--font); transition: border-color .15s, box-shadow .15s; }
input[type=color] { padding: 4px; height: 42px; }
input[type=range] { width: 100%; accent-color: var(--accent); }
textarea { min-height: 100px; resize: vertical; line-height: 1.55; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--focus); }
.chk { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; color: var(--ink); cursor: pointer; margin-bottom: 10px; }
.chk input { width: 18px; height: 18px; accent-color: var(--accent); margin-top: 2px; flex: none; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 620; color: var(--ink); margin-bottom: 10px; }
.switch input { appearance: none; width: 40px; height: 23px; border-radius: 99px; background: var(--line-2); position: relative; transition: background .2s; cursor: pointer; flex: none; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.switch input:checked { background: var(--accent); }
.switch input:checked::after { transform: translateX(17px); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.form-grid .full { grid-column: 1 / -1; }
.inline-form { display: inline; }
.drop { border: 2px dashed var(--line-2); border-radius: var(--r); padding: 26px; text-align: center; background: var(--surface-2); transition: border-color .2s, background .2s; cursor: pointer; display: block; }
.drop:hover, .drop.over { border-color: var(--accent); background: var(--info-bg); }
.drop input { display: none; }
.drop .i { width: 34px; height: 34px; color: var(--accent); margin-bottom: 6px; }
.seg { display: inline-flex; padding: 3px; border-radius: 11px; background: var(--surface-3); gap: 2px; }
.seg label, .seg a, .seg button { margin: 0; padding: 6px 12px; border-radius: 8px; color: var(--ink-2); font: 650 13.5px var(--font); cursor: pointer; border: 0; background: none; text-decoration: none !important; }
.seg input { display: none; }
.seg label:has(input:checked), .seg a.on, .seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--sh-1); }

/* ---------- tableaux ---------- */
.tbl-wrap { overflow-x: auto; border-radius: var(--r); }
table.t { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
table.t th { text-align: left; font-size: 12.5px; color: var(--muted); font-weight: 700; padding: 11px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; position: sticky; top: 0; z-index: 1; }
table.t td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t tbody tr:hover td { background: var(--surface-2); }
table.t td.num, table.t th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.t .who { display: flex; gap: 10px; align-items: center; }
table.t .who b { display: block; font-size: 14px; white-space: nowrap; }
table.t .who small { color: var(--muted); font-size: 12px; }
table.t.compact td, table.t.compact th { padding: 7px 10px; }
td input.cell { width: 76px; padding: 6px 8px; text-align: center; border-radius: 8px; font-variant-numeric: tabular-nums; }
td input.cell.saving { border-color: var(--warn); } td input.cell.saved { border-color: var(--ok); } td input.cell.bad { border-color: var(--err); background: var(--err-bg); }

/* ---------- progression ---------- */
.bar { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .4s; }
.bar.lg { height: 12px; } .bar.ok i { background: linear-gradient(90deg, #15803D, #4ADE80); }
.ring { --p: 0; --c: var(--accent); width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--surface-3) 0); position: relative; flex: none; }
.ring::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--surface); }
.ring b { position: relative; font-size: 15px; }
.ring.lg { width: 110px; height: 110px; } .ring.lg::before { inset: 11px; } .ring.lg b { font-size: 24px; }
.hero .ring::before { background: var(--navy); } .hero .ring b { color: #fff; }
.dots { display: flex; gap: 3px; flex-wrap: wrap; }
.dots i { width: 14px; height: 14px; border-radius: 4px; background: var(--surface-3); display: block; }
.dots i.on { background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.heat td.h { text-align: center; padding: 4px; }
.heat .hc { display: block; min-width: 46px; padding: 6px 4px; border-radius: 7px; font-size: 12px; font-weight: 750; color: var(--ink-2); background: var(--surface-3); }
.heat .hc.p1 { background: #DBEAFE; color: #1E40AF; } .heat .hc.p2 { background: #93C5FD; color: #1E3A8A; } .heat .hc.p3 { background: #3B82F6; color: #fff; } .heat .hc.p4 { background: #15803D; color: #fff; }
:root[data-theme="dark"] .heat .hc.p1 { background: #1E3A8A; color: #BFDBFE; } :root[data-theme="dark"] .heat .hc.p2 { background: #1D4ED8; color: #fff; }

/* ---------- séances (cartes élève) ---------- */
.mod-h { display: flex; align-items: center; gap: 14px; margin: 26px 0 14px; }
.mod-h .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--accent-2), var(--accent)); }
.mod-h h2 { margin: 0; } .mod-h p { margin: 0; color: var(--muted); font-size: 13.5px; }
.sc { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line);
  color: var(--ink); text-decoration: none !important; transition: transform .15s, box-shadow .15s, border-color .15s; min-height: 170px; }
a.sc:hover { transform: translateY(-2px); box-shadow: var(--sh-2); border-color: var(--line-2); }
.sc .top-l { display: flex; align-items: center; gap: 8px; }
.sc h3 { margin: 0; font-size: 16.5px; }
.sc p { margin: 0; color: var(--ink-2); font-size: 13.5px; flex: 1; }
.sc .foot { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); }
.sc .foot .bar { flex: 1; }
.sc.lock { background: repeating-linear-gradient(-45deg, var(--surface-2), var(--surface-2) 10px, var(--surface) 10px, var(--surface) 20px); color: var(--muted); }
.sc.lock h3 { color: var(--ink-2); }
.sc .lockic { position: absolute; right: 16px; top: 16px; color: var(--muted); }
.sc.done::after { content: "✓"; position: absolute; right: 14px; top: 12px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: #fff; font-weight: 800; font-size: 14px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.tabs a, .tabs button { padding: 10px 14px; color: var(--ink-2); font-weight: 650; font-size: 14px; border: 0; background: none; border-bottom: 3px solid transparent; margin-bottom: -1px; cursor: pointer; display: flex; gap: 8px; align-items: center; white-space: nowrap; text-decoration: none !important; font-family: inherit; }
.tabs a:hover, .tabs button:hover { color: var(--ink); }
.tabs a.on, .tabs button.on { color: var(--ink); border-bottom-color: var(--accent); }
.seance-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.frame { width: 100%; height: calc(100vh - 210px); min-height: 560px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.frame.auto { height: 900px; min-height: 0; }
.steps { list-style: none; padding: 0; margin: 0; }
.steps li { display: flex; gap: 10px; align-items: flex-start; padding: 7px 6px; border-radius: 9px; font-size: 13.5px; }
.steps li .n { width: 24px; height: 24px; border-radius: 7px; background: var(--surface-3); color: var(--ink-2); display: grid; place-items: center; font: 700 12px var(--mono); flex: none; }
.steps li.on .n { background: var(--ok); color: #fff; }
.steps li.on span { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 50%, transparent); }
.stars { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.stars input { display: none; }
.stars label { font-size: 26px; color: var(--line-2); cursor: pointer; margin: 0; line-height: 1; }
.stars input:checked ~ label, .stars label:hover, .stars label:hover ~ label { color: #F59E0B; }

/* ---------- toasts, modales, alertes ---------- */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 100; display: flex; flex-direction: column; gap: 10px; max-width: min(440px, calc(100vw - 40px)); }
.toast { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 13px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-3); animation: tin .3s ease; font-size: 14px; }
.toast .i { margin-top: 1px; }
.toast.ok .i { color: var(--ok); } .toast.erreur .i { color: var(--err); } .toast.info .i { color: var(--accent); }
.toast.ok { border-left: 4px solid var(--ok); } .toast.erreur { border-left: 4px solid var(--err); } .toast.info { border-left: 4px solid var(--accent); }
.toast button { margin-left: auto; background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 18px; line-height: 1; }
@keyframes tin { from { opacity: 0; transform: translateY(10px); } }
.alert { display: flex; gap: 12px; padding: 14px 16px; border-radius: 13px; border: 1px solid var(--line); background: var(--surface-2); margin-bottom: 16px; font-size: 14px; }
.alert.info { background: var(--info-bg); border-color: color-mix(in srgb, var(--accent) 25%, transparent); } .alert.info .i { color: var(--accent); }
.alert.warn { background: var(--warn-bg); border-color: color-mix(in srgb, var(--warn) 25%, transparent); } .alert.warn .i { color: var(--warn); }
.alert.ok { background: var(--ok-bg); border-color: color-mix(in srgb, var(--ok) 25%, transparent); } .alert.ok .i { color: var(--ok); }
.alert.err { background: var(--err-bg); border-color: color-mix(in srgb, var(--err) 25%, transparent); } .alert.err .i { color: var(--err); }
.alert p:last-child { margin: 0; }
dialog.modal { border: 0; border-radius: 20px; padding: 0; max-width: min(560px, calc(100vw - 32px)); width: 100%; background: var(--surface); color: var(--ink); box-shadow: var(--sh-3); }
dialog.modal::backdrop { background: rgba(10,16,32,.55); backdrop-filter: blur(3px); }
dialog.modal .mh { padding: 20px 22px 0; display: flex; align-items: center; gap: 10px; }
dialog.modal .mh h3 { margin: 0; }
dialog.modal .mb { padding: 16px 22px; }
dialog.modal .mf { padding: 14px 22px 20px; display: flex; gap: 10px; justify-content: flex-end; }
dialog.modal.lg { max-width: min(860px, calc(100vw - 32px)); }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty .i { width: 44px; height: 44px; margin-bottom: 10px; color: var(--line-2); }
.empty h3 { color: var(--ink-2); }
.liste-choix { max-height: 50vh; overflow: auto; display: flex; flex-direction: column; gap: 4px; }
.liste-choix button { display: flex; gap: 10px; align-items: center; width: 100%; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; font: inherit; text-align: left; }
.liste-choix button:hover { border-color: var(--accent); background: var(--info-bg); }
.liste-choix button span { flex: 1; } .liste-choix b { display: block; font-size: 14px; } .liste-choix small { color: var(--muted); font-size: 12.5px; }

/* ---------- listes ---------- */
.list { list-style: none; padding: 0; margin: 0; }
.list > li { display: flex; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.list > li:last-child { border-bottom: 0; }
.list .grow { flex: 1; min-width: 0; }
.list .grow b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list .grow small { color: var(--muted); font-size: 12.5px; }
.ico-box { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--info-bg); color: var(--accent); flex: none; }
.ico-box.v { background: color-mix(in srgb, var(--violet) 12%, transparent); color: var(--violet); } .ico-box.g { background: var(--ok-bg); color: var(--ok); }
.ico-box.o { background: var(--warn-bg); color: var(--warn); } .ico-box.r { background: color-mix(in srgb, var(--rose) 12%, transparent); color: var(--rose); }
.ico-box.c { background: color-mix(in srgb, var(--cyan) 12%, transparent); color: var(--cyan); }
.kv { display: grid; grid-template-columns: 170px 1fr; gap: 8px 16px; font-size: 14px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; font-weight: 620; }

/* ---------- graphiques ---------- */
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart .ax { stroke: var(--line); } .chart text { fill: var(--muted); font-size: 10px; font-family: var(--font); }
.chart .ln { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.hist { display: flex; align-items: flex-end; gap: 4px; height: 120px; padding-top: 8px; }
.hist div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; }
.hist i { display: block; width: 100%; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--accent-2), var(--accent)); min-height: 2px; transition: height .35s; }
.hist i.bad { background: linear-gradient(180deg, #FCA5A5, #EF4444); }
.hist i.avant { background: var(--line-2); }
.hist span { font-size: 10.5px; color: var(--muted); }
.hist b { font-size: 11px; color: var(--ink-2); }

/* ---------- connexion / pages publiques ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-art { position: relative; overflow: hidden; color: #fff; padding: 48px; display: flex; flex-direction: column;
  background: radial-gradient(900px 500px at 100% -10%, color-mix(in srgb, var(--accent) 85%, transparent) 0, transparent 60%), radial-gradient(500px 300px at -10% 110%, rgba(56,189,248,.35), transparent 60%), linear-gradient(140deg, var(--encre), var(--navy) 50%, var(--navy-2)); }
.auth-art .grid-bg { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 75%); }
.auth-art .hex { position: absolute; right: -120px; top: -60px; width: 520px; height: 520px; opacity: .5; }
.auth-art .brand { position: relative; padding: 0; }
.auth-art .pitch { position: relative; margin-top: auto; max-width: 520px; }
.auth-art .pitch h1 { font-size: 42px; line-height: 1.08; color: #fff; letter-spacing: -.035em; }
.auth-art .pitch p { color: #BFD0EA; font-size: 16px; }
.auth-art .feats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 26px; }
.auth-art .feat { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); font-size: 13.5px; color: #DCE6F5; backdrop-filter: blur(6px); }
.auth-art .feat .i { color: #7DD3FC; }
.auth-art .legal { position: relative; margin-top: 34px; font-size: 12px; color: #7C90B3; }
.auth-art .legal a { color: #9FB3D3; }
.auth-form { display: grid; place-items: center; padding: 40px 24px; background: var(--surface); }
.auth-box { width: 100%; max-width: 400px; }
.auth-box h2 { font-size: 27px; margin-bottom: 6px; }
.auth-box .sub { color: var(--ink-2); margin-bottom: 26px; }
.auth-box .btn.lg { width: 100%; }
.pw { position: relative; }
.pw button { position: absolute; right: 8px; top: 7px; border: 0; background: none; color: var(--muted); cursor: pointer; padding: 4px; }
.meter { height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; margin-top: 8px; }
.meter i { display: block; height: 100%; width: 0; transition: width .25s, background .25s; }
.public { max-width: 900px; margin: 0 auto; padding: 40px 24px 80px; }
.public .card { padding: 32px 36px; }
.public h2 { margin-top: 26px; }

/* ---------- lecteur PDF ---------- */
.viewer { display: flex; flex-direction: column; height: calc(100vh - 64px); }
.viewer.embed { height: 100vh; }
.vbar { display: flex; align-items: center; gap: 6px; padding: 8px 14px; background: var(--surface); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.vbar .sep { width: 1px; height: 24px; background: var(--line); margin: 0 6px; }
.vbar .tool { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; border: 1px solid transparent; background: none; color: var(--ink-2); cursor: pointer; }
.vbar .tool:hover { background: var(--surface-3); color: var(--ink); }
.vbar .tool.on { background: var(--info-bg); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.vbar input.pg { width: 56px; text-align: center; padding: 6px; }
.vbar .sw { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line-2); cursor: pointer; }
.vbar .sw.on { box-shadow: 0 0 0 2px var(--accent); }
.vpages { flex: 1; overflow: auto; background: var(--surface-3); padding: 24px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.vpage { position: relative; background: #fff; box-shadow: var(--sh-2); border-radius: 4px; }
.vpage canvas { display: block; border-radius: 4px; }
.vpage .textLayer { z-index: 1; }
.vpage .textLayer ::selection { background: rgba(37,99,235,.3); }
.vpage svg.ann { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.vpage.draw svg.ann { pointer-events: auto; }
.vpage svg.ann rect, .vpage svg.ann polyline { pointer-events: visiblePainted; }
.vpage.draw .textLayer { pointer-events: none; }
.vpage.draw svg.ann { cursor: crosshair; }
.vpage .note-pin { position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 8px 8px 8px 2px; background: #F59E0B; color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 800; box-shadow: 0 3px 8px rgba(0,0,0,.25); cursor: pointer; z-index: 3; }
.vpage .note-pin.prof { background: var(--violet); }
.vpage .note-pop { position: absolute; z-index: 4; width: 240px; background: #FFFBEB; color: #422006; border: 1px solid #FCD34D; border-radius: 10px; padding: 10px; box-shadow: var(--sh-2); font-size: 13px; }
.vpage .note-pop textarea { min-height: 70px; background: #fff; color: #111; font-size: 13px; }
.vside { width: 300px; border-left: 1px solid var(--line); background: var(--surface); overflow: auto; padding: 14px; }
.vwrap { flex: 1; display: flex; min-height: 0; }

/* ---------- carnet (éditeur) ---------- */
.nb { display: grid; grid-template-columns: 300px minmax(0, 1fr); height: calc(100vh - 112px); }
.nb-list { border-right: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; min-height: 0; }
.nb-list .h { padding: 16px; border-bottom: 1px solid var(--line); }
.nb-list ul { list-style: none; margin: 0; padding: 8px; overflow: auto; flex: 1; }
.nb-list li a { display: block; padding: 10px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.nb-list li a:hover { background: var(--surface-3); }
.nb-list li a.on { background: var(--info-bg); box-shadow: inset 3px 0 0 var(--accent); }
.nb-list li b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nb-list li small { color: var(--muted); font-size: 12px; }
.nb-ed { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--surface-3); }
.nb-ed .head { display: flex; gap: 10px; align-items: center; padding: 12px 18px; background: var(--surface); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.nb-ed .head input.title { flex: 1; min-width: 200px; font-size: 19px; font-weight: 750; border: 0; background: transparent; padding: 6px 4px; }
.nb-ed .head input.title:focus { box-shadow: none; }
.nb-ed .paper-wrap { flex: 1; overflow: auto; padding: 26px 20px 60px; }
.nb-ed .paper { max-width: 860px; margin: 0 auto; background: var(--surface); border-radius: 8px; box-shadow: var(--sh-2); min-height: 1000px; }
.nb-ed .ql-toolbar.ql-snow { position: sticky; top: 0; z-index: 2; border: 0; border-bottom: 1px solid var(--line); background: var(--surface); border-radius: 8px 8px 0 0; padding: 10px 14px; }
.nb-ed .ql-container.ql-snow { border: 0; font: 15.5px/1.7 var(--font); color: var(--ink); }
.nb-ed .ql-editor { padding: 40px 56px 80px; min-height: 900px; }
.nb-ed .ql-editor h1, .nb-ed .ql-editor h2, .nb-ed .ql-editor h3 { color: var(--ink); }
.nb-ed .ql-editor pre.ql-syntax { background: var(--encre); color: #E2E8F0; border-radius: 8px; }
.nb-ed .ql-editor.ql-blank::before { color: var(--muted); font-style: normal; left: 56px; }
:root[data-theme="dark"] .ql-snow .ql-stroke { stroke: var(--ink-2); } :root[data-theme="dark"] .ql-snow .ql-fill { fill: var(--ink-2); } :root[data-theme="dark"] .ql-snow .ql-picker { color: var(--ink-2); }
:root[data-theme="dark"] .ql-snow .ql-picker-options { background: var(--surface); }
.saved-state { font-size: 12.5px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.saved-state.ok { color: var(--ok); }

/* ---------- QCM ---------- */
.qz { max-width: 820px; margin: 0 auto; }
.qz-bar { position: sticky; top: 64px; z-index: 5; display: flex; gap: 16px; align-items: center; padding: 12px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--sh-2); margin-bottom: 18px; }
.timer { font: 800 22px var(--mono); color: var(--ink); display: flex; gap: 8px; align-items: center; }
.timer.low { color: var(--err); animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .55; } }
.q { margin-bottom: 16px; }
.q .num { font-size: 13px; font-weight: 750; color: var(--accent); }
.q h3 { font-size: 16.5px; font-weight: 680; margin: 6px 0 14px; line-height: 1.45; }
.opt { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; margin-bottom: 8px; cursor: pointer; font-weight: 600; color: var(--ink); transition: border-color .15s, background .15s; }
.opt:hover { border-color: var(--line-2); background: var(--surface-2); }
.opt input { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; }
.opt:has(input:checked) { border-color: var(--accent); background: var(--info-bg); }
.opt .l { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-3); font-weight: 800; font-size: 13px; color: var(--ink-2); flex: none; }
.opt.good { border-color: var(--ok); background: var(--ok-bg); } .opt.bad { border-color: var(--err); background: var(--err-bg); }
.qnav { display: flex; gap: 5px; flex-wrap: wrap; }
.qnav a { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-size: 12.5px; font-weight: 750; background: var(--surface-3); color: var(--ink-2); text-decoration: none; }
.qnav a.on { background: var(--accent); color: #fff; }

/* ---------- console API ---------- */
.console { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 18px; }
.eps { max-height: 640px; overflow: auto; }
.ep { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 9px; cursor: pointer; font-size: 13.5px; border: 1px solid transparent; }
.ep:hover { background: var(--surface-3); }
.ep.on { border-color: var(--accent); background: var(--info-bg); }
.meth { font: 800 10.5px var(--mono); padding: 3px 6px; border-radius: 5px; min-width: 44px; text-align: center; }
.meth.GET { background: #DCFCE7; color: #166534; } .meth.POST { background: #DBEAFE; color: #1E40AF; } .meth.DELETE { background: #FEE2E2; color: #991B1B; }
.resp { background: var(--encre); color: #C7F9D4; border-radius: 12px; padding: 14px 16px; font: 12.5px/1.55 var(--mono); max-height: 460px; overflow: auto; white-space: pre-wrap; word-break: break-word; margin: 0; }
.resp.err { color: #FCA5A5; }
.curl { background: var(--surface-3); color: var(--ink); }

/* ---------- divers ---------- */
.kbd { font: 600 11.5px var(--mono); padding: 2px 6px; border-radius: 5px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--ink-2); }
.pill-tabs { display: inline-flex; padding: 4px; border-radius: 11px; background: var(--surface-3); gap: 2px; flex-wrap: wrap; }
.pill-tabs a { padding: 6px 12px; border-radius: 8px; color: var(--ink-2); font-weight: 650; font-size: 13.5px; text-decoration: none; }
.pill-tabs a.on { background: var(--surface); color: var(--ink); box-shadow: var(--sh-1); }
.secret { font-family: var(--mono); background: var(--surface-3); padding: 12px 14px; border-radius: 10px; word-break: break-all; border: 1px dashed var(--line-2); }
.labo { white-space: pre-wrap; font-family: var(--mono); font-size: 14px; background: var(--encre); color: #E2E8F0; padding: 18px; border-radius: 12px; line-height: 1.7; }
.mail-prev { width: 100%; height: 640px; border: 1px solid var(--line); border-radius: 12px; background: #EEF2F8; }
.annonce { border-left: 4px solid var(--accent); padding: 12px 14px; background: var(--surface-2); border-radius: 0 10px 10px 0; margin-bottom: 10px; }
.annonce.warn { border-left-color: var(--warn); } .annonce.err { border-left-color: var(--err); } .annonce.ok { border-left-color: var(--ok); }
.annonce b { display: block; } .annonce small { color: var(--muted); }
.code-edit { font-family: var(--mono); font-size: 13px; min-height: 420px; tab-size: 2; }
.qb { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 12px; background: var(--surface-2); }
.qb .opts input[type=text] { margin-bottom: 6px; }
.qb .opts .o { display: flex; gap: 8px; align-items: center; }
.qb .opts .o input[type=radio] { width: 18px; height: 18px; accent-color: var(--ok); }
.sticky-act { position: sticky; bottom: 0; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(8px); padding: 12px 0; border-top: 1px solid var(--line); margin-top: 16px; z-index: 5; }
.scrim { display: none; }
.welcome { display: flex; gap: 16px; align-items: center; }
.credit { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 14px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, transparent), transparent); border: 1px solid var(--line); }
.banniere-apercu { background: repeating-linear-gradient(-45deg, #F59E0B, #F59E0B 12px, #FBBF24 12px, #FBBF24 24px); color: #422006; padding: 8px 28px; font-weight: 750; display: flex; gap: 12px; align-items: center; font-size: 14px; }

/* ---------- actions principales (tuiles) ---------- */
.tuiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.tuile { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none !important; font-weight: 700; transition: border-color .15s, transform .15s; cursor: pointer; font-family: inherit; font-size: 14.5px; text-align: left; }
.tuile:hover { border-color: var(--accent); transform: translateY(-1px); }
.tuile small { display: block; font-weight: 550; color: var(--muted); font-size: 12.5px; }

/* ---------- cours : liste des séances (enseignant) ---------- */
.cours-l { list-style: none; margin: 0; padding: 0; }
.cours-l > li { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.cours-l > li:last-child { border-bottom: 0; }
.cours-l .t b { display: block; font-size: 15px; }
.cours-l .t small { color: var(--muted); font-size: 12.5px; }
.cours-l .etat { text-align: right; min-width: 180px; }
.cours-l .etat small { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.cours-l .act { display: flex; gap: 6px; justify-content: flex-end; }
.cours-l .mini { width: 110px; }
.mod-band { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.mod-band h2 { margin: 0; font-size: 17px; }
.mod-band .r { margin-left: auto; display: flex; gap: 8px; align-items: center; }

/* ---------- binômes : tableau à glisser-déposer ---------- */
.board { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 18px; align-items: start; }
.bpool { position: sticky; top: 130px; max-height: calc(100vh - 150px); overflow: auto; }
.bgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.bcard { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; min-height: 120px; transition: border-color .15s, background .15s; }
.bcard.over, .bpool .zone.over { border-color: var(--accent); background: var(--info-bg); }
.bcard-h { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.bcard-h input { border: 0; background: transparent; font: 750 14.5px var(--font); padding: 4px 6px; border-radius: 7px; flex: 1; min-width: 0; color: var(--ink); }
.bcard-h input:hover { background: var(--surface-3); }
.bcard .zone, .bpool .zone { display: flex; flex-direction: column; gap: 6px; min-height: 60px; border-radius: 10px; padding: 2px; }
.eleve { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); cursor: grab; font-size: 13.5px; font-weight: 650; user-select: none; }
.eleve:active { cursor: grabbing; } .eleve.drag { opacity: .4; }
.eleve .i { color: var(--muted); }
.eleve small { color: var(--muted); font-weight: 550; margin-left: auto; font-size: 11.5px; }
.bcard .vide { color: var(--muted); font-size: 12.5px; text-align: center; padding: 14px 4px; border: 1px dashed var(--line-2); border-radius: 10px; }
.bcard.alerte { border-color: color-mix(in srgb, var(--warn) 45%, transparent); }

/* ---------- séance : vue côte à côte ---------- */
.seance-top { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.seance-top h1 { margin: 0; font-size: 25px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.split.duo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.split .colonne { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 14px; max-height: calc(100vh - 92px); overflow: auto; padding-bottom: 6px; scrollbar-width: thin; }
.dl { display: flex; flex-direction: column; gap: 6px; }
.dl a { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 11px; border: 1px solid var(--line); color: var(--ink); text-decoration: none !important; font-weight: 680; font-size: 14px; background: var(--surface); }
.dl a:hover { border-color: var(--accent); }
.dl a small { display: block; font-weight: 550; font-size: 12px; color: var(--muted); }
.dl a .ico-box { width: 34px; height: 34px; }
.dl a .go { margin-left: auto; color: var(--muted); }
.pdf-pane { height: calc(100vh - 140px); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface-3); position: sticky; top: 76px; }
.pdf-pane iframe { width: 100%; height: 100%; border: 0; }

/* ---------- timeline (points d'avancement, activité) ---------- */
.tl { list-style: none; margin: 0; padding: 0 0 0 26px; position: relative; }
.tl::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--line); border-radius: 2px; }
.tl > li { position: relative; margin-bottom: 18px; }
.tl > li::before { content: ""; position: absolute; left: -22px; top: 18px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 3px solid var(--accent); }
.point { padding: 16px 18px; }
.point h4 { margin: 0 0 8px; font-size: 13px; color: var(--muted); font-weight: 700; }
.point .cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.point .cols div p { white-space: pre-wrap; font-size: 14px; margin: 0; }
.point .retour { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--violet) 8%, var(--surface)); border: 1px solid color-mix(in srgb, var(--violet) 25%, transparent); font-size: 14px; }
.point .retour b { color: var(--violet); }
.humeur { font-size: 20px; letter-spacing: 2px; }

/* ---------- cloud ---------- */
.cloud-h { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.quota { min-width: 220px; }
.quota .bar { margin: 6px 0 4px; }
.flist { list-style: none; margin: 0; padding: 0; }
.flist > li { display: grid; grid-template-columns: 40px minmax(0, 1fr) 110px 150px auto; gap: 12px; align-items: center; padding: 9px 16px; border-bottom: 1px solid var(--line); }
.flist > li:last-child { border-bottom: 0; }
.flist > li:hover { background: var(--surface-2); }
.flist > li.over { background: var(--info-bg); }
.flist .nom { font-weight: 650; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; }
.flist .nom:hover { color: var(--accent); }
.flist .meta { color: var(--muted); font-size: 12.5px; }
.flist .act { display: flex; gap: 4px; justify-content: flex-end; }
.ficon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-3); color: var(--ink-2); }
.ficon.dossier { background: color-mix(in srgb, #F59E0B 16%, transparent); color: #B45309; }
.ficon.pdf { background: var(--err-bg); color: var(--err); } .ficon.word { background: var(--info-bg); color: var(--accent); }
.ficon.cell { background: var(--ok-bg); color: var(--ok); } .ficon.slide { background: var(--warn-bg); color: var(--warn); }
.ficon.schema { background: color-mix(in srgb, var(--violet) 12%, transparent); color: var(--violet); } .ficon.image { background: color-mix(in srgb, var(--cyan) 12%, transparent); color: var(--cyan); }
.chemin { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; font-weight: 650; }
.chemin a { color: var(--ink-2); padding: 3px 6px; border-radius: 7px; }
.chemin a:hover { background: var(--surface-3); text-decoration: none; }
.chemin .i { color: var(--muted); }
.editeur-texte { width: 100%; min-height: calc(100vh - 230px); font: 14px/1.65 var(--mono); border-radius: 12px; padding: 18px; tab-size: 4; }
.dessin-frame { width: 100%; height: calc(100vh - 150px); border: 1px solid var(--line); border-radius: var(--r); background: #fff; }

/* ---------- visio ---------- */
.visio { position: fixed; inset: 0; z-index: 60; background: #070d1c; color: #fff; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.visio-h { display: flex; align-items: center; gap: 12px; padding: 12px 18px; }
.visio-h b { font-size: 16px; } .visio-h small { color: #8EA2C4; }
.visio-corps { display: grid; grid-template-columns: minmax(0, 1fr) 0; transition: grid-template-columns .2s; min-height: 0; }
.visio-corps.chat-on { grid-template-columns: minmax(0, 1fr) 320px; }
.vgrid { display: grid; gap: 10px; padding: 10px 18px; align-content: center; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); min-height: 0; overflow: auto; }
.vtile { position: relative; aspect-ratio: 16 / 10; background: #0f1a33; border-radius: 16px; overflow: hidden; border: 2px solid transparent; }
.vtile.parle { border-color: var(--accent-2); }
.vtile video { width: 100%; height: 100%; object-fit: cover; background: #0f1a33; }
.vtile.ecran video { object-fit: contain; }
.vtile .nomv { position: absolute; left: 10px; bottom: 10px; padding: 4px 10px; border-radius: 99px; background: rgba(0,0,0,.55); font-size: 13px; font-weight: 700; display: flex; gap: 6px; align-items: center; }
.vtile .sans { position: absolute; inset: 0; display: grid; place-items: center; }
.vtile .sans span { width: 84px; height: 84px; border-radius: 26px; display: grid; place-items: center; font-size: 30px; font-weight: 800; background: linear-gradient(135deg, var(--accent-2), var(--accent)); }
.vtile.moi video { transform: scaleX(-1); }
.vtile.moi.ecran video { transform: none; }
.visio-chat { background: #0d1630; border-left: 1px solid #1d2a4a; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.visio-chat .msgs { flex: 1; overflow: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.visio-chat .msgs b { color: #7DD3FC; font-size: 12.5px; display: block; }
.visio-chat form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid #1d2a4a; }
.visio-chat input { background: #101d3a; border-color: #23355e; color: #fff; }
.visio-bar { display: flex; justify-content: center; gap: 10px; padding: 14px; flex-wrap: wrap; }
.vbtn { width: 52px; height: 52px; border-radius: 16px; border: 0; background: #1a2848; color: #fff; display: grid; place-items: center; cursor: pointer; position: relative; }
.vbtn:hover { background: #24365f; }
.vbtn.off { background: #fff; color: #0E1B36; }
.vbtn.rouge { background: var(--err); width: 70px; }
.vbtn .vnb { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; border-radius: 99px; background: var(--accent-2); color: var(--encre); font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.visio-prep { max-width: 820px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px; align-items: center; }
.visio-prep .vtile { aspect-ratio: 16 / 10; }

/* ---------- visite guidée ---------- */
.tour-voile { position: fixed; inset: 0; z-index: 200; pointer-events: none; }
.tour-trou { position: fixed; z-index: 201; border-radius: 12px; box-shadow: 0 0 0 9999px rgba(7,13,28,.62); transition: all .25s ease; pointer-events: none; outline: 2px solid var(--accent-2); outline-offset: 3px; }
.tour-bulle { position: fixed; z-index: 202; width: min(360px, calc(100vw - 32px)); background: var(--surface); color: var(--ink); border-radius: 16px; box-shadow: var(--sh-3); padding: 18px 20px 14px; transition: top .25s, left .25s; }
.tour-bulle h3 { margin: 0 0 6px; font-size: 17px; }
.tour-bulle p { margin: 0 0 14px; color: var(--ink-2); font-size: 14px; }
.tour-bulle .pied { display: flex; align-items: center; gap: 8px; }
.tour-bulle .pas { color: var(--muted); font-size: 12.5px; font-weight: 700; margin-right: auto; }

/* ---------- nouveautés, guide ---------- */
.nouv { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.nouv .card { display: flex; gap: 14px; }
.nouv .card p { margin: 4px 0 0; color: var(--ink-2); font-size: 14px; }
.guide { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 32px; align-items: start; }
.guide-nav { position: sticky; top: 130px; display: flex; flex-direction: column; gap: 1px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.guide-nav .gn-t { font-size: 11.5px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); padding: 2px 8px 8px; }
.guide-nav a { display: flex; gap: 10px; padding: 6px 8px; border-radius: 8px; color: var(--ink-2); font-weight: 650; font-size: 13.5px; line-height: 1.3; }
.guide-nav a span { color: var(--accent); font-weight: 800; font-variant-numeric: tabular-nums; }
.guide-nav a:hover { background: var(--surface-3); text-decoration: none; }
.guide-hero { position: relative; border-radius: 18px; overflow: hidden; background: #0B1530 center 30% / cover no-repeat; color: #fff; margin-bottom: 18px; }
.guide-hero .gh-in { padding: 34px 36px 30px; background: linear-gradient(90deg, rgba(11, 21, 48, .92) 35%, rgba(11, 21, 48, .2)); }
.guide-hero .gh-k { font-size: 11.5px; font-weight: 800; letter-spacing: .3em; text-transform: uppercase; color: #7DD3FC; }
.guide-hero h1 { margin: 14px 0 8px; font-size: 38px; line-height: 1.05; letter-spacing: -.02em; color: #fff; }
.guide-hero h1 span { color: #38BDF8; }
.guide-hero p { margin: 0 0 20px; color: #CBD5E1; font-size: 16px; max-width: 560px; }
.guide-hero .gh-act { display: flex; flex-wrap: wrap; gap: 8px; }
.guide-hero .gh-b { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .22); color: #fff; }
.guide-hero .gh-b:hover { background: rgba(255, 255, 255, .16); }
.guide-corps { max-width: 800px; }
.guide-corps > p:first-child { font-size: 17px; color: var(--ink); }
.guide-corps h2 { margin: 42px 0 14px; padding-bottom: 10px; font-size: 25px; letter-spacing: -.01em; border-bottom: 3px solid var(--accent); scroll-margin-top: 130px; }
.guide-corps h2 .chap { display: block; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: #0891B2; font-weight: 800; margin-bottom: 4px; }
.guide-corps h3 { margin: 26px 0 8px; color: var(--accent); font-size: 18px; }
.guide-corps p, .guide-corps li { color: var(--ink-2); line-height: 1.7; }
.guide-corps li { margin-bottom: 4px; } .guide-corps li::marker { color: var(--accent); }
.guide-corps .etape { display: flex; align-items: stretch; margin: 0 0 6px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 0 10px 10px 0; overflow: hidden; }
.guide-corps .etape b.n { flex: none; width: 54px; background: #0F1E3D; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 19px; font-weight: 800; line-height: 1; padding: 8px 0; }
.guide-corps .etape b.n small { font-size: 8px; letter-spacing: .2em; text-transform: uppercase; color: #7DD3FC; margin-bottom: 3px; }
.guide-corps .etape > div { padding: 10px 14px; align-self: center; color: var(--ink-2); }
.encadre { display: block; border-left: 5px solid var(--c); background: var(--f); border-radius: 0 12px 12px 0; padding: 12px 18px; margin: 16px 0; }
.encadre .lab { display: block; color: var(--c); font-weight: 800; font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 4px; }
.encadre p { margin: 0; color: var(--ink); }
.encadre.astuce { --c: #0891B2; --f: color-mix(in srgb, #06B6D4 10%, var(--surface)); }
.encadre.attention { --c: #DC2626; --f: color-mix(in srgb, #EF4444 9%, var(--surface)); }
.encadre.info { --c: var(--accent); --f: color-mix(in srgb, var(--accent) 9%, var(--surface)); }
.capture { margin: 20px 0 24px; }
.capture .fen { display: flex; align-items: center; gap: 6px; background: #1E293B; height: 26px; padding: 0 12px; border-radius: 12px 12px 0 0; }
.capture .fen i { width: 9px; height: 9px; border-radius: 50%; background: #FF5F57; } .capture .fen i:nth-child(2) { background: #FEBC2E; } .capture .fen i:nth-child(3) { background: #28C840; }
.capture .fen span { margin-left: 10px; color: #94A3B8; font-size: 11.5px; font-weight: 700; }
.guide-corps .capture img { display: block; width: 100%; margin: 0; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 12px 12px; box-shadow: var(--sh-2); }
.capture figcaption { text-align: center; margin-top: 8px; color: var(--muted); font-size: 13px; font-style: italic; }
.capture figcaption b { color: var(--ink); font-style: normal; }
.guide-corps h2#questions-frequentes ~ h3 { color: var(--ink); font-size: 16px; display: flex; gap: 10px; align-items: center; }
.guide-corps h2#questions-frequentes ~ h3::before { content: "?"; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 13px; display: grid; place-items: center; }
.guide-corps h2#questions-frequentes ~ p { padding-left: 34px; }

/* ---------- agenda ---------- */
.cal-h, .cal-w { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-h div { padding: 8px 10px; font-size: 12.5px; font-weight: 700; color: var(--muted); border-bottom: 1px solid var(--line); }
.cal-d { min-height: 112px; padding: 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-w .cal-d:nth-child(7) { border-right: 0; }
.cal-d.hors { background: var(--surface-2); } .cal-d.hors .cal-n { color: var(--line-2); } .cal-d.we { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
.cal-n { font-size: 12.5px; font-weight: 750; color: var(--ink-2); width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; }
.cal-d.auj .cal-n { background: var(--accent); color: #fff; }
.cal-e { display: block; font-size: 11.5px; padding: 3px 6px; border-radius: 6px; background: color-mix(in srgb, var(--c) 14%, transparent); color: color-mix(in srgb, var(--c) 80%, var(--ink)); border-left: 3px solid var(--c); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none !important; cursor: default; }
a.cal-e, .cal-e[data-ev] { cursor: pointer; } .cal-e b { font-weight: 750; }
/* ---------- kanban ---------- */
.kanban { display: grid; grid-template-columns: repeat(4, minmax(240px, 1fr)); gap: 14px; overflow-x: auto; align-items: start; }
.kcol { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; min-height: 300px; }
.kcol.over { outline: 2px dashed var(--accent); }
.kcol h3 { font-size: 13.5px; color: var(--ink-2); display: flex; justify-content: space-between; margin: 4px 6px 10px; }
.kcard { background: var(--surface); border: 1px solid var(--line); border-radius: 11px; padding: 11px 12px; margin-bottom: 8px; cursor: grab; }
.kcard:active { cursor: grabbing; } .kcard.drag { opacity: .4; }
.kcard b { display: block; font-size: 14px; } .kcard .row { margin-top: 6px; gap: 6px; }
.kcard.haute { border-left: 4px solid var(--err); } .kcard.basse { border-left: 4px solid var(--line-2); }
/* ---------- assistant ---------- */
.chat { display: flex; flex-direction: column; height: calc(100vh - 260px); min-height: 480px; }
.chat-msgs { flex: 1; overflow: auto; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.bulle-m { max-width: 82%; padding: 12px 15px; border-radius: 16px; line-height: 1.6; white-space: pre-wrap; font-size: 14.5px; }
.bulle-m.moi { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.bulle-m.ia { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.bulle-m.ia code { background: var(--surface-3); } .bulle-m .src { display: block; margin-top: 8px; font-size: 11.5px; color: var(--muted); }
.chat-in { border-top: 1px solid var(--line); padding: 14px; display: flex; gap: 10px; align-items: flex-end; }
.chat-in textarea { min-height: 48px; max-height: 180px; }
.typing::after { content: "▍"; animation: pulse 1s infinite; }
.sugg { display: flex; gap: 8px; flex-wrap: wrap; }
.sugg button { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 12px; font: 600 13px var(--font); color: var(--ink-2); cursor: pointer; }
.sugg button:hover { border-color: var(--accent); color: var(--accent); }

/* Quill en français */
.nb-ed .ql-snow .ql-picker.ql-header .ql-picker-label::before, .nb-ed .ql-snow .ql-picker.ql-header .ql-picker-item::before { content: "Texte"; }
.nb-ed .ql-snow .ql-picker.ql-header .ql-picker-label[data-value="1"]::before, .nb-ed .ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]::before { content: "Titre 1"; }
.nb-ed .ql-snow .ql-picker.ql-header .ql-picker-label[data-value="2"]::before, .nb-ed .ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]::before { content: "Titre 2"; }
.nb-ed .ql-snow .ql-picker.ql-header .ql-picker-label[data-value="3"]::before, .nb-ed .ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]::before { content: "Titre 3"; }
.ql-snow .ql-tooltip[data-mode=link]::before { content: "Lien :"; } .ql-snow .ql-tooltip.ql-editing a.ql-action::after { content: "Enregistrer"; }
.ql-snow .ql-tooltip::before { content: "Ouvrir :"; } .ql-snow .ql-tooltip a.ql-action::after { content: "Modifier"; } .ql-snow .ql-tooltip a.ql-remove::before { content: "Retirer"; }
.ql-snow .ql-tooltip { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: var(--sh-2); }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g-main, .seance-layout, .split, .split.duo { grid-template-columns: minmax(0, 1fr); } .console { grid-template-columns: minmax(0, 1fr); }
  .split .colonne, .pdf-pane { position: static; max-height: none; } .pdf-pane { height: 70vh; } .board { grid-template-columns: minmax(0, 1fr); } .bpool { position: static; max-height: none; }
  .guide { grid-template-columns: minmax(0, 1fr); } .guide-nav { position: static; flex-direction: row; flex-wrap: wrap; } .guide-nav .gn-t { width: 100%; } .guide-hero .gh-in { padding: 24px 20px; } .guide-hero h1 { font-size: 28px; }
}
@media (max-width: 900px) {
  .app { grid-template-columns: minmax(0, 1fr); background: none; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: var(--side); transform: translateX(-100%); transition: transform .25s; box-shadow: var(--sh-3); }
  .app.nav-open .side { transform: none; }
  .app.nav-open .scrim { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 25; }
  .top .burger { display: inline-grid; } .top { padding: 10px 16px; } .content { padding: 18px 16px 50px; } .sous-nav-in { padding: 0 12px; } .bandeau, .banniere-apercu { padding: 8px 16px; }
  .g2, .g3 { grid-template-columns: minmax(0, 1fr); } .form-grid { grid-template-columns: minmax(0, 1fr); } .grid[style*='grid-template-columns'] { grid-template-columns: minmax(0, 1fr) !important; }
  .kanban { grid-template-columns: repeat(4, 260px); } .cal-d { min-height: 70px; } .cal-e b { display: none; }
  .auth { grid-template-columns: 1fr; } .auth-art { padding: 28px; min-height: 260px; } .auth-art .pitch h1 { font-size: 29px; } .auth-art .feats { display: none; }
  .nb { grid-template-columns: 1fr; height: auto; } .nb-list { max-height: 260px; } .nb-ed .ql-editor { padding: 24px 20px; }
  .vside { display: none; } .me b, .me small { display: none; } .me { padding: 4px; } .search { display: none; } .vue-eleve span { display: none; }
  .kv { grid-template-columns: 1fr; }
  .cours-l > li { grid-template-columns: 56px minmax(0, 1fr); } .cours-l .etat, .cours-l .act { grid-column: 1 / -1; text-align: left; justify-content: flex-start; }
  .flist > li { grid-template-columns: 40px minmax(0, 1fr) auto; } .flist .meta { display: none; }
  .point .cols { grid-template-columns: minmax(0, 1fr); } .visio-prep { grid-template-columns: minmax(0, 1fr); } .visio-corps.chat-on { grid-template-columns: 0 minmax(0, 1fr); }
  .vgrid { grid-template-columns: minmax(0, 1fr); padding: 8px; }
}
@media (max-width: 560px) { .g4 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .ph .r { margin-left: 0; } .hero .stats { gap: 18px; } .hero { padding: 22px; } .hero h1 { font-size: 23px; } .tuiles { grid-template-columns: minmax(0, 1fr); } }
@media print { .side, .top, .pfoot, .toasts, .no-print, .sous-nav { display: none !important; } .app { display: block; } .content { padding: 0; } .card { box-shadow: none; } body { background: #fff; } }
#zone-cloud { position: relative; }
.cloud-drop { position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; justify-items: center; gap: 8px; border: 2px dashed var(--accent); border-radius: var(--r); background: color-mix(in srgb, var(--info-bg) 92%, transparent); color: var(--accent); }
.cloud-drop:not([hidden]) { display: grid; }
.avap { padding: 14px 16px; }
.avap small { display: block; color: var(--ink-2); font-weight: 650; font-size: 13px; margin-bottom: 4px; }
.avap .v0 { font-size: 17px; font-weight: 700; color: var(--muted); }
.avap .fl { margin: 0 8px; color: var(--muted); }
.avap .v1 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: var(--accent); }
.hist.grand { height: 190px; }
table.t td.num { white-space: nowrap; }
.row > .bar { flex: 1; min-width: 60px; }
.tuiles { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.etapes { margin: 8px 0 14px; }
.seg-humeur label { font-size: 21px; padding: 4px 12px; }
@media print { .guide { display: block; } .guide-nav, .ph .r, .seg, .bandeau, .banniere-apercu { display: none !important; } .guide-corps { max-width: none; } .capture { break-inside: avoid; } .guide-hero { display: none; } .guide-corps h2 { break-after: avoid; } }
@media (max-width: 900px) { .mod-band { flex-wrap: wrap; } .mod-band .r { margin-left: 0; width: 100%; flex-wrap: wrap; } }

/* ---------- règles du mot de passe ---------- */
.regles { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; font-size: 12.5px; color: var(--muted); }
.regles li { display: flex; gap: 6px; align-items: center; }
.regles li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--line-2); flex: none; transition: .15s; }
.regles li.ok { color: var(--ok, #15803D); }
.regles li.ok::before { background: var(--ok, #15803D) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' stroke='white' stroke-width='2' fill='none'/%3E%3C/svg%3E") center/12px no-repeat; border-color: transparent; }
@media (max-width: 520px) { .regles { grid-template-columns: 1fr; } }

/* ---------- 1.3 : comptes, accès, sécurité ---------- */
.mono-txt { font-family: var(--mono); font-size: .92em; letter-spacing: -.01em; }
.list.compact li { padding-top: 6px; padding-bottom: 6px; }
.ico-box.ok { background: var(--ok-bg); color: var(--ok); } .ico-box.err { background: var(--err-bg); color: var(--err); } .ico-box.warn { background: var(--warn-bg); color: var(--warn); }
.mt0 { margin-top: 0; }
.danger-zone { border-color: color-mix(in srgb, var(--err) 35%, var(--line)); }
.ou { display: flex; align-items: center; gap: 12px; margin: 18px 0 12px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.ou::before, .ou::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.btn.block { width: 100%; justify-content: center; }
.info-rgpd { margin: 6px 0 16px; font-size: 13.5px; line-height: 1.5; align-items: flex-start; }
.info-rgpd input { margin-top: 3px; }
.code-saisie { font-family: var(--mono); font-size: 22px; letter-spacing: .25em; text-align: center; text-transform: uppercase; }
.etapes-acces { display: flex; gap: 6px; margin-bottom: 18px; }
.etapes-acces span { flex: 1; font-size: 11.5px; font-weight: 700; color: var(--muted); padding-top: 8px; border-top: 3px solid var(--line); }
.etapes-acces span.on { color: var(--accent); border-color: var(--accent); }
svg.qr { display: block; width: 100%; height: auto; image-rendering: pixelated; }

/* ---------- fiche d'accès à QR code ---------- */
.fiches { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 14px; }
.fiche-qr { border: 1.5px dashed var(--line-2); border-radius: 14px; background: var(--surface); overflow: hidden; break-inside: avoid; display: flex; flex-direction: column; }
.fiche-qr header { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #0F1E3D; color: #fff; }
.fiche-qr header small { display: block; color: #BFDBFE; font-size: 11.5px; }
.fq-logo { width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg, #38BDF8, #2563EB); display: grid; place-items: center; font-weight: 800; font-size: 11px; }
.fq-tag { margin-left: auto; font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #0F1E3D; background: #38BDF8; padding: 3px 7px; border-radius: 4px; }
.fq-corps { display: flex; gap: 14px; padding: 14px; align-items: center; }
.fq-qr { flex: none; width: 132px; }
.fq-txt { min-width: 0; font-size: 12.5px; }
.fq-nom { font-size: 17px; font-weight: 800; margin: 0 0 6px; color: var(--ink); }
.fq-txt dl { display: grid; grid-template-columns: 74px 1fr; gap: 2px 8px; margin: 0 0 8px; }
.fq-txt dt { color: var(--muted); } .fq-txt dd { margin: 0; font-weight: 700; }
.fq-code { font-size: 15px; letter-spacing: .12em; color: var(--accent); }
.fq-txt ol { margin: 0 0 6px; padding-left: 16px; } .fq-txt li { margin: 1px 0; }
.fq-alt { margin: 0; color: var(--muted); font-size: 11.5px; word-break: break-all; }
.fiche-qr footer { margin-top: auto; padding: 6px 14px; font-size: 10.5px; color: var(--muted); border-top: 1px solid var(--line); background: var(--surface-2); }
@media print {
  .fiches { grid-template-columns: 1fr 1fr; gap: 6mm; }
  .fiche-qr { border-color: #999; background: #fff; } .fiche-qr header { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .fq-qr { width: 30mm; } .fq-corps { padding: 3mm; gap: 3mm; } .fq-txt { font-size: 9pt; }
}

/* ---------- QR code à l'écran (récupération, émargement) ---------- */
body.qr-ecran { min-height: 100vh; margin: 0; display: grid; place-items: center; color: #fff; background: #0B1530 url("../img/doc/couv.jpg") center / cover no-repeat; font-family: var(--font, "Manrope", system-ui, sans-serif); }
.qe { width: min(720px, calc(100vw - 32px)); text-align: center; padding: 28px 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.qe-k { font-size: 12px; font-weight: 800; letter-spacing: .3em; text-transform: uppercase; color: #7DD3FC; }
.qe h1 { margin: 0; font-size: clamp(28px, 5vw, 44px); letter-spacing: -.02em; color: #fff; }
.qe-sous { margin: 0; color: #CBD5E1; font-size: 17px; max-width: 520px; }
.qe-qr { width: min(420px, 78vw); background: #fff; padding: 14px; border-radius: 22px; box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
.qe-pied { display: flex; flex-direction: column; gap: 6px; color: #CBD5E1; font-size: 14px; }
.qe-pied b { color: #fff; }
.qe-temps b { color: #38BDF8; font-variant-numeric: tabular-nums; }
.qe-ok { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 30px; color: #4ADE80; }
.qe-ok b { font-size: 30px; color: #fff; } .qe-ok span { color: #CBD5E1; }
.qe-ok.expire { color: #FBBF24; }
.qe .btn { margin-top: 8px; background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .25); }

/* ---------- comptes et accès ---------- */
.kpis-etat { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.ke { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink-2); font-size: 13px; font-weight: 650; }
.ke b { font-size: 16px; color: var(--ink); font-variant-numeric: tabular-nums; }
.ke:hover { text-decoration: none; border-color: var(--line-2); }
.ke.on { border-color: var(--accent); background: var(--info-bg); color: var(--accent); }
.ke-invite b, .ke-provisoire b { color: var(--warn); } .ke-verrouille b { color: var(--err); }
small.block, .block { display: block; }
.lot-barre { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.lot-g { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.lot-plus { position: relative; }
.lot-plus summary { list-style: none; cursor: pointer; } .lot-plus summary::-webkit-details-marker { display: none; }
.lot-menu { position: absolute; bottom: calc(100% + 8px); right: 0; z-index: 30; display: flex; flex-direction: column; gap: 8px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--sh-3); min-width: 300px; }
.ident-apercu { display: flex; flex-direction: column; justify-content: center; min-height: 42px; padding: 6px 12px; border-radius: 10px; background: var(--surface-2); border: 1px dashed var(--line-2); }
.ident-apercu span { font-weight: 700; color: var(--accent); } .ident-apercu small { color: var(--muted); font-size: 11.5px; }
.choix-acces { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ca { position: relative; cursor: pointer; }
.ca input { position: absolute; opacity: 0; }
.ca > span { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 12px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); }
.ca > span .i { color: var(--accent); } .ca b { font-size: 13.5px; } .ca small { color: var(--muted); font-size: 12px; line-height: 1.4; }
.ca input:checked + span { border-color: var(--accent); background: var(--info-bg); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.ca input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.ca input:disabled + span { opacity: .45; cursor: not-allowed; }
@media (max-width: 720px) { .choix-acces { grid-template-columns: 1fr; } .lot-menu { right: auto; left: 0; } }

/* ---------- sécurité, droits, registre ---------- */
.sec-tete { display: flex; align-items: center; gap: 22px; margin-bottom: 16px; flex-wrap: wrap; }
.sec-score { --c: var(--ok); width: 104px; height: 104px; border-radius: 50%; display: grid; place-content: center; text-align: center; flex: none;
  background: radial-gradient(closest-side, var(--surface) 78%, transparent 80% 100%), conic-gradient(var(--c) calc(var(--v) * 1%), var(--line) 0); }
.sec-score b { font-size: 30px; line-height: 1; color: var(--ink); } .sec-score span { font-size: 11px; color: var(--muted); font-weight: 700; }
.sec-score.swarn { --c: var(--warn); } .sec-score.serr { --c: var(--err); }
.ctrl { list-style: none; margin: 0; padding: 0; }
.ctrl li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ctrl li:last-child { border-bottom: 0; }
.ctrl b { display: block; font-size: 14px; } .ctrl small { color: var(--muted); font-size: 12.5px; }
.ctrl .pastille { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--ok-bg); color: var(--ok); }
.ctrl .warn .pastille { background: var(--warn-bg); color: var(--warn); } .ctrl .err .pastille { background: var(--err-bg); color: var(--err); }
.txt-err { color: var(--err); }
table.droits td { font-size: 13px; } table.droits td.oui { color: var(--ok); font-weight: 700; } table.droits td.non { color: var(--line-2); } table.droits td.part { color: var(--ink-2); }
.registre th { width: 30%; text-align: left; vertical-align: top; }
@media print { .registre { border: 0; box-shadow: none; } }

/* ---------- nom de domaine ---------- */
.dom-etat { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.dom-etat b { display: block; font-size: 16px; } .dom-etat small { color: var(--muted); }
.dom-etapes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.dom-etapes .card { position: relative; padding-top: 22px; }
.dom-n { position: absolute; top: -12px; left: 18px; width: 28px; height: 28px; border-radius: 9px; background: #0F1E3D; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.dom-etapes h3 { margin-top: 0; }
.code-mini { display: flex; align-items: center; gap: 8px; justify-content: space-between; font: 12.5px/1.5 var(--mono); background: #0B1220; color: #E2E8F0; border-radius: 9px; padding: 8px 10px; margin: 6px 0; overflow-x: auto; }
.code-mini .muted { color: #94A3B8; } .code-mini .btn { flex: none; }
@media (max-width: 1000px) { .dom-etapes { grid-template-columns: 1fr; } }
.etapes-ia { display: block; font-size: 11.5px; color: var(--muted); font-style: italic; margin-bottom: 6px; }
.etapes-ia::before { content: "◆ "; color: var(--accent); font-style: normal; }
.ia-install { margin-top: 6px; } .ia-install small { color: var(--muted); font-size: 12px; }

/* ---------- labo ---------- */
.labo-grille input { min-width: 120px; padding: 7px 9px; font-size: 13px; }
.labo-grille td { vertical-align: middle; }
.labo-grille tr.sep td { background: var(--surface-2); }
.labo-cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.labo-vm header { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.labo-vm header b { font-size: 17px; display: block; font-family: var(--mono); } .labo-vm header small { color: var(--muted); font-size: 12px; }
.labo-vm dl { display: grid; grid-template-columns: 100px 1fr; gap: 6px 10px; margin: 0 0 10px; font-size: 13.5px; align-items: center; }
.labo-vm dt { color: var(--muted); } .labo-vm dd { margin: 0; display: flex; align-items: center; gap: 6px; }
.code-bloc { background: #0B1220; color: #E2E8F0; font: 13px/1.6 var(--mono); padding: 12px 14px; border-radius: 10px; margin: 0; overflow-x: auto; }

/* ---------- émargement ---------- */
.em-grille { display: grid; grid-template-columns: minmax(320px, 440px) minmax(0, 1fr); gap: 18px; align-items: start; }
.em-qr { position: sticky; top: 120px; display: flex; flex-direction: column; gap: 10px; align-items: center; background: #0F1E3D url("../img/doc/couv.jpg") center / cover; border-radius: 18px; padding: 22px; color: #fff; }
.em-qr:fullscreen { justify-content: center; } .em-qr:fullscreen .em-qr-box { width: min(70vh, 80vw); }
.em-qr-box { width: 100%; background: #fff; border-radius: 16px; padding: 10px; aspect-ratio: 1; display: grid; place-items: center; }
.em-attente { color: #64748B; font-weight: 700; }
.em-compte b { font-size: 40px; font-weight: 800; } .em-compte span { color: #BFDBFE; margin-left: 6px; }
.em-barre { width: 100%; height: 5px; background: rgba(255, 255, 255, .15); border-radius: 4px; overflow: hidden; } .em-barre i { display: block; height: 100%; background: #38BDF8; width: 100%; }
.em-qr .muted { color: #CBD5E1 !important; }
.seg-st label { font-size: 12px; padding: 4px 9px; }
.seg-st label.st-ok:has(input:checked) { background: var(--ok-bg); color: var(--ok); } .seg-st label.st-warn:has(input:checked) { background: var(--warn-bg); color: var(--warn); }
.seg-st label.st-err:has(input:checked) { background: var(--err-bg); color: var(--err); } .seg-st label.st-info:has(input:checked) { background: var(--info-bg); color: var(--accent); }
tr.em-arrive { animation: em-flash 1.6s ease; } @keyframes em-flash { 0% { background: var(--ok-bg); } 100% { background: transparent; } }
.print-only { display: none; } @media print { .print-only { display: inline; } .em-grille { display: block; } }
.emarger { max-width: 460px; margin: 40px auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.emarger .em-icone { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-bg); color: var(--ok); }
.emarger .em-icone .i { width: 54px; height: 54px; } .emarger.ko .em-icone { background: var(--err-bg); color: var(--err); }
.emarger h1 { margin: 8px 0 0; } .em-statut { font-size: 20px; font-weight: 800; margin: 0; } .em-statut.st-ok { color: var(--ok); } .em-statut.st-warn { color: var(--warn); }
@media (max-width: 900px) { .em-grille { grid-template-columns: 1fr; } .em-qr { position: static; } }

/* ---------- parcours par groupe ---------- */
.parcours { margin-bottom: 26px; }
.pc-mod { font-size: 19px; display: flex; gap: 10px; align-items: center; }
.pc-fil { list-style: none; margin: 0; padding: 0; position: relative; }
.pc-fil::before { content: ""; position: absolute; left: 25px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.pc-l { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; margin-bottom: 12px; position: relative; }
.pc-pt { display: flex; justify-content: center; padding-top: 14px; }
.pc-pt span { width: 44px; height: 30px; border-radius: 9px; display: grid; place-items: center; font: 800 11.5px var(--mono); color: #fff; background: #64748B; position: relative; z-index: 1; }
.t-cm .pc-pt span { background: #7C3AED; } .t-td .pc-pt span { background: #0891B2; } .t-tp .pc-pt span { background: #2563EB; } .t-sae .pc-pt span, .t-qcm .pc-pt span { background: #B45309; }
.e-ferme .pc-c { opacity: .72; }
.pc-h { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pc-h b { display: block; } .pc-h small { color: var(--muted); font-size: 12.5px; }
.pc-k { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 10px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.pc-k > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pc-k span { font-size: 11.5px; color: var(--muted); font-weight: 700; }
.pc-k b { font-size: 15px; font-variant-numeric: tabular-nums; margin-right: 8px; } .pc-k b small { color: var(--muted); font-weight: 600; }
.pc-k .bar { margin: 3px 0; }
.pc-j { margin-top: 10px; } .pc-j summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--ink-2); display: flex; gap: 6px; align-items: center; }
@media (max-width: 760px) { .pc-k { grid-template-columns: 1fr 1fr; } .pc-l { grid-template-columns: 40px minmax(0, 1fr); } .pc-fil::before { left: 19px; } .pc-pt span { width: 36px; } }

/* ---------- cloche et palette ---------- */
.cloche { position: relative; }
.cl-nb { position: absolute; top: 2px; right: 2px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--err); color: #fff; font-size: 10.5px; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--surface); }
.cl-panneau { position: absolute; right: 0; top: calc(100% + 8px); width: min(380px, calc(100vw - 24px)); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--sh-3); z-index: 60; overflow: hidden; }
.cl-h { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.cl-liste { max-height: 420px; overflow-y: auto; }
.cl-it { display: grid; gap: 2px; padding: 10px 14px 10px 26px; border-bottom: 1px solid var(--line); color: var(--ink); position: relative; }
.cl-it:hover { background: var(--surface-2); text-decoration: none; }
.cl-it b { font-size: 13.5px; } .cl-it span { font-size: 12.5px; color: var(--ink-2); } .cl-it small { font-size: 11.5px; color: var(--muted); }
.cl-it.nl::before { content: ""; position: absolute; left: 11px; top: 16px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.cl-vide { padding: 22px; }
.palette { width: min(620px, calc(100vw - 24px)); padding: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px rgba(2, 8, 23, .35); margin-top: 12vh; }
.palette::backdrop { background: rgba(11, 21, 48, .45); backdrop-filter: blur(2px); }
.pa-in { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.pa-in input { border: 0; outline: 0; background: transparent; font-size: 17px; flex: 1; padding: 4px 0; box-shadow: none; }
.pa-liste { list-style: none; margin: 0; padding: 6px; max-height: 50vh; overflow-y: auto; }
.pa-liste li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; cursor: pointer; }
.pa-liste li.on { background: var(--info-bg); } .pa-liste li.on b { color: var(--accent); }
.pa-liste li small { color: var(--muted); font-size: 12px; } .pa-liste li.vide { color: var(--muted); cursor: default; }
.pa-pied { display: flex; gap: 16px; padding: 9px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); background: var(--surface-2); }
kbd { font: 700 11px var(--mono); padding: 2px 6px; border-radius: 5px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); margin: 0 2px; }
@media (max-width: 720px) { .palette-btn { display: none; } .pa-pied { display: none; } }
.labo-grille td:first-child { min-width: 150px; white-space: nowrap; }
.labo-grille td:first-child small { white-space: normal; max-width: 180px; }
.labo-grille .chk { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; font-size: 12px; margin: 0; }
.labo-grille input[type=password] { min-width: 150px; }
.fq-qr svg, .qe-qr svg, .em-qr-box svg { width: 100%; height: auto; display: block; }

.pc-h .grow { flex: 1; min-width: 0; }
.code-mini span { white-space: pre; }

/* ---------- application mobile : barre d'onglets, scanner ---------- */
.mob-barre { display: none; }
@media (max-width: 760px) {
  .mob-barre { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--line);
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); }
  .mob-barre a, .mob-barre button { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; color: var(--muted); font: 700 10.5px var(--font); background: none; border: 0; border-radius: 12px; }
  .mob-barre a:hover { text-decoration: none; }
  .mob-barre a.on { color: var(--accent); }
  .mob-barre .i { width: 22px; height: 22px; }
  .mob-barre a.centre { color: #fff; }
  .mob-barre a.centre .i { width: 46px; height: 46px; padding: 11px; border-radius: 16px; background: linear-gradient(135deg, #38BDF8, #2563EB); margin-top: -20px; box-shadow: 0 8px 20px rgba(37, 99, 235, .4); }
  .mob-barre a.centre span { color: var(--ink-2); }
  .main { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .en-app .pfoot { display: none; }
}
.en-app .top { padding-top: max(10px, env(safe-area-inset-top)); }
.scan { max-width: 520px; margin: 0 auto; }
.scan-tete { text-align: center; margin-bottom: 14px; } .scan-tete h1 { margin: 0 0 4px; }
.scan-cadre { position: relative; aspect-ratio: 3 / 4; border-radius: 22px; overflow: hidden; background: #0B1530 url("../img/doc/couv.jpg") center / cover; }
.scan-cadre video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scan-visee { position: absolute; inset: 18%; }
.scan-visee i { position: absolute; width: 38px; height: 38px; border: 4px solid #38BDF8; }
.scan-visee i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; border-radius: 12px 0 0 0; } .scan-visee i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; border-radius: 0 12px 0 0; }
.scan-visee i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 12px; } .scan-visee i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; border-radius: 0 0 12px 0; }
.scan-cadre.ok .scan-visee i { border-color: #4ADE80; }
.scan-msg { position: absolute; left: 12px; right: 12px; bottom: 12px; text-align: center; color: #fff; font-weight: 700; font-size: 14px; background: rgba(11, 21, 48, .7); padding: 9px 12px; border-radius: 12px; }
.app-mobile { display: flex; gap: 16px; align-items: center; }
.app-mobile img { width: 64px; height: 64px; border-radius: 16px; flex: none; }

/* 1.4 : emploi du temps */
.edt-g { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 900px) { .edt-g { grid-template-columns: 1fr; } }
.edt-reco { padding-left: 18px; margin: 0 0 14px; } .edt-reco li { margin-bottom: 6px; }
.edt-t td { vertical-align: middle; } .edt-t select { max-width: 340px; }
.edt-s.vide { border-color: var(--warn); }
.edt-c { display: block; color: var(--muted); font-size: 11.5px; margin-top: 3px; } .edt-c.warn { color: var(--warn); font-weight: 650; }
.edt-brut { max-width: 260px; white-space: normal; }
tr.muted td { opacity: .6; }
.pc-cr { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; } .pc-cr .badge { font-weight: 600; }
/* 1.4 : grilles de soutenance */
.gr-carte h3 a { color: inherit; }
.gr-crit { display: grid; gap: 8px; }
.gr-l { display: grid; grid-template-columns: 30px minmax(140px, 1fr) minmax(160px, 1.6fr) 96px 34px; gap: 8px; align-items: center; }
.gr-poignee { width: 28px; height: 28px; border-radius: 8px; background: var(--surface-3); display: grid; place-items: center; font: 700 12px var(--mono); color: var(--ink-2); }
.gr-pts { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; color: var(--muted); } .gr-pts input { width: 64px; }
@media (max-width: 760px) { .gr-l { grid-template-columns: 28px 1fr 80px 34px; } .gr-l [name=c_aide] { grid-column: 2 / 5; grid-row: 2; } }
.gr-tuiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.gr-tuile { display: flex; flex-direction: column; gap: 4px; padding: 18px; min-height: 128px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--sh-1); color: var(--ink); text-decoration: none !important; transition: transform .12s, border-color .12s; }
.gr-tuile:hover, .gr-tuile:focus-visible { border-color: var(--accent); transform: translateY(-1px); }
.gr-tuile b { font-size: 17px; } .gr-tuile small { color: var(--muted); }
.gr-note { margin-top: auto; font: 760 22px var(--font); color: var(--accent); } .gr-note small { font-size: 13px; color: var(--muted); }
.gr-tuile:not(.fait) .gr-note { font-size: 13px; font-weight: 650; color: var(--warn); }
.gr-tuile.fait { border-left: 4px solid var(--ok); }
.gr-ecran { max-width: 880px; margin: 0 auto; }
.gr-c { padding: 16px 18px; margin-bottom: 12px; }
.gr-c-h { display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; }
.gr-c-h b { font-size: 16.5px; } .gr-c-h small { display: block; color: var(--muted); margin-top: 2px; font-size: 13px; }
.gr-val { display: flex; align-items: baseline; gap: 4px; margin: 0; } .gr-val input { width: 78px; font: 760 20px var(--font); text-align: center; padding: 6px; }
.gr-val span { color: var(--muted); font-weight: 650; }
.gr-niv { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.gr-niv button { border: 1.5px solid var(--line-2); background: var(--surface-2); border-radius: 12px; padding: 12px 6px; min-height: 58px; cursor: pointer; color: var(--ink);
  display: flex; flex-direction: column; align-items: center; gap: 2px; font: 650 14px var(--font); touch-action: manipulation; }
.gr-niv button small { color: var(--muted); font-weight: 700; }
.gr-niv button:nth-child(1).on { background: var(--err-bg); border-color: var(--err); } .gr-niv button:nth-child(2).on { background: var(--warn-bg); border-color: var(--warn); }
.gr-niv button:nth-child(3).on { background: var(--info-bg); border-color: var(--accent); } .gr-niv button:nth-child(4).on { background: var(--ok-bg); border-color: var(--ok); }
@media (max-width: 520px) { .gr-niv { grid-template-columns: repeat(2, 1fr); } }
.gr-aj { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; } .gr-aj label { display: flex; gap: 8px; align-items: center; margin: 0; font-size: 14px; } .gr-aj input { width: 72px; }
.gr-barre { position: sticky; bottom: 12px; z-index: 20; display: flex; gap: 10px; align-items: center; justify-content: flex-end; padding: 12px 16px; border-radius: var(--r);
  background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(10px); border: 1px solid var(--line); box-shadow: var(--sh-2, 0 8px 24px rgba(15,30,61,.12)); }
.gr-total { margin-right: auto; display: flex; align-items: baseline; gap: 6px; } .gr-total span { color: var(--muted); font-weight: 650; }
.gr-total b { font: 800 28px var(--font); color: var(--accent); } .gr-total em { font-style: normal; color: var(--muted); font-size: 13px; margin-left: 6px; }
#gr-form.incomplet .gr-total b { color: var(--warn); }
@media (max-width: 760px) { .gr-barre { bottom: calc(72px + env(safe-area-inset-bottom)); flex-wrap: wrap; } }
.imp-grille { background: #fff; color: #0F1E3D; font-family: var(--font); }
.imp-page { max-width: 190mm; margin: 0 auto; padding: 12mm 0; page-break-after: always; }
.imp-page header { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 3px solid #2563EB; padding-bottom: 8px; margin-bottom: 12px; }
.imp-page h1 { font-size: 20px; margin: 0; } .imp-page header p { margin: 4px 0 0; }
.imp-page .lw { font: 800 18px var(--font); color: #fff; background: #0F1E3D; border-radius: 8px; padding: 6px 9px; }
.imp-page table { width: 100%; border-collapse: collapse; font-size: 12.5px; } .imp-page th, .imp-page td { border: 1px solid #CBD5E1; padding: 7px 8px; vertical-align: top; }
.imp-page th { background: #0F1E3D; color: #fff; text-align: left; } .imp-page td.c { text-align: center; white-space: nowrap; } .imp-page td.pts { font-weight: 700; }
.imp-page tr.tot td { background: #EEF2FF; font-weight: 800; } .imp-page small { color: #64748B; }
.imp-comm { border: 1px solid #CBD5E1; min-height: 34mm; padding: 8px; margin-top: 12px; } .imp-comm p { margin: 4px 0 0; }
.imp-page footer { margin-top: 14px; font-size: 11px; color: #64748B; } .imp-cons { font-size: 12.5px; color: #475569; }
@media print { .imp-page { padding: 0; } }
.gr-det td { background: var(--surface-2); padding-top: 6px !important; } .gr-det-l { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--ink-2); } .gr-det-l b { color: var(--accent); }
/* 1.4 : banque de questions */
.bq-job { margin-bottom: 16px; border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.bq-lot { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 10px 14px; position: sticky; top: 64px; z-index: 5; margin-bottom: 12px; }
.bq-liste { display: grid; gap: 12px; }
.bq-q { padding: 16px 18px; } .bq-h { display: flex; gap: 12px; align-items: flex-start; } .bq-h input[type=checkbox] { margin-top: 4px; }
.bq-h b { font-size: 15.5px; line-height: 1.4; }
.bq-opts { margin: 10px 0 8px 30px; padding-left: 18px; display: grid; gap: 4px; font-size: 14px; }
.bq-opts li.bonne { color: var(--ok); font-weight: 700; } .bq-opts li.bonne::marker { content: "✓ "; }
.bq-ed { margin-top: 8px; } .bq-ed summary { cursor: pointer; color: var(--accent); }
.bq-o { display: flex; gap: 8px; align-items: center; margin: 0 0 6px; } .bq-o input[type=radio] { flex: none; } .bq-o input[name=option] { flex: 1; }
.sco-g { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; } @media (max-width: 900px) { .sco-g { grid-template-columns: 1fr; } }
.warn-txt { color: var(--warn); font-weight: 650; }
.app-android { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line-2); }
.migr { border-top: 1px solid var(--line); padding-top: 14px; } .migr summary { cursor: pointer; font-weight: 650; color: var(--ink-2); }
/* 1.4 : cloud (vues, recherche, sélection, vignettes) */
.cloud-g { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 18px; align-items: start; }
.cloud-nav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 76px; }
.cloud-nav a { display: flex; align-items: center; gap: 9px; padding: 8px 12px; border-radius: 10px; color: var(--ink-2); font-weight: 650; font-size: 14px; text-decoration: none; }
.cloud-nav a:hover { background: var(--surface-3); } .cloud-nav a.on { background: var(--info-bg); color: var(--accent); }
.cloud-nav .badge { margin-left: auto; }
@media (max-width: 860px) { .cloud-g { grid-template-columns: 1fr; } .cloud-nav { flex-direction: row; overflow-x: auto; position: static; } .cloud-nav a { white-space: nowrap; } }
.cloud-q { display: flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 11px; padding: 0 10px; min-width: 220px; flex: 1; max-width: 360px; }
.cloud-q input { border: 0; background: none; padding: 8px 2px; box-shadow: none !important; } .cloud-q span { color: var(--muted); display: flex; }
.cloud-barre { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; min-height: 34px; }
.cloud-barre .chemin { margin: 0; }
.seg-vue button { padding: 5px 9px; }
.cloud-lot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 12px; margin-bottom: 10px; border-radius: 12px; background: var(--info-bg); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); }
.flist > li { grid-template-columns: 22px 40px minmax(0, 1fr) 100px 150px auto; }
.flist > li:not(:has(.fsel)) { grid-template-columns: 40px minmax(0, 1fr) 100px 170px auto; }
.flist > li.sel { background: var(--info-bg); }
.fsel { width: 17px; height: 17px; margin: 0; }
.ficon { position: relative; overflow: hidden; } .ficon img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.ficon img + .i { visibility: hidden; }
@media (max-width: 700px) { .flist > li, .flist > li:not(:has(.fsel)) { grid-template-columns: 22px 36px minmax(0, 1fr) auto; } .flist > li .meta { display: none; } }
.flist.grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; padding: 14px; }
.flist.grille > li { display: flex; flex-direction: column; align-items: stretch; gap: 6px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; position: relative; text-align: center; }
.flist.grille > li .ficon { width: 100%; height: 104px; border-radius: 10px; display: grid; place-items: center; }
.flist.grille > li .ficon .i { width: 38px; height: 38px; }
.flist.grille > li .fsel { position: absolute; top: 14px; left: 14px; z-index: 2; }
.flist.grille > li .meta:last-of-type { display: none; } .flist.grille > li .meta { font-size: 11.5px; }
.flist.grille > li .act { justify-content: center; } .flist.grille .nom { display: block; font-size: 13.5px; }
/* 1.4 : supervision */
.sup-etat { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-radius: var(--r); margin-bottom: 16px; border: 1px solid var(--line); background: var(--surface); }
.sup-etat b { display: block; font-size: 18px; } .sup-etat small { color: var(--muted); }
.sup-pastille { width: 14px; height: 14px; border-radius: 50%; flex: none; box-shadow: 0 0 0 5px color-mix(in srgb, currentColor 18%, transparent); background: currentColor; }
.sup-etat.ok { color: var(--ok); } .sup-etat.warn { color: var(--warn); } .sup-etat.err { color: var(--err); }
.sup-etat.ok, .sup-etat.warn, .sup-etat.err { background: color-mix(in srgb, currentColor 7%, var(--surface)); border-color: color-mix(in srgb, currentColor 30%, transparent); }
.sup-etat div { color: var(--ink); }
.sup-g { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 10px; }
.sup-c { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--surface);
  border: 1px solid var(--line); border-left: 4px solid var(--line-2); color: var(--ink); text-decoration: none !important; }
.sup-c:hover { border-color: var(--accent); } .sup-c b { display: block; font-size: 14.5px; } .sup-c small { color: var(--muted); font-size: 12.5px; line-height: 1.35; display: block; }
.sup-e { font: 700 11.5px var(--font); padding: 3px 8px; border-radius: 7px; white-space: nowrap; }
.sup-c.e-ok { border-left-color: var(--ok); } .sup-c.e-ok .sup-e { background: var(--ok-bg); color: var(--ok); }
.sup-c.e-warn { border-left-color: var(--warn); } .sup-c.e-warn .sup-e { background: var(--warn-bg); color: var(--warn); }
.sup-c.e-err { border-left-color: var(--err); } .sup-c.e-err .sup-e { background: var(--err-bg); color: var(--err); }
.sup-c.e-off { opacity: .7; } .sup-c.e-off .sup-e { background: var(--surface-3); color: var(--muted); }
.sup-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } @media (max-width: 900px) { .sup-2 { grid-template-columns: 1fr; } }
.dot-on { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); flex: none; box-shadow: 0 0 0 4px var(--ok-bg); }
.mono-clip { font-family: var(--mono); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; max-width: 100%; }
.logs { font: 12px/1.5 var(--mono); max-height: 70vh; overflow: auto; }
.log-l { border-bottom: 1px solid var(--line); } .log-l summary { display: grid; grid-template-columns: 150px 72px 120px minmax(0, 1fr); gap: 10px; padding: 5px 14px; cursor: pointer; list-style: none; }
.log-l summary::-webkit-details-marker { display: none; }
.log-d { color: var(--muted); } .log-s { color: var(--muted); overflow: hidden; text-overflow: ellipsis; } .log-m { white-space: pre-wrap; word-break: break-word; }
.log-n { font-weight: 700; } .n-error .log-n, .n-critical .log-n { color: var(--err); } .n-warning .log-n { color: var(--warn); } .n-info .log-n { color: var(--accent); }
.n-error, .n-critical { background: color-mix(in srgb, var(--err) 5%, transparent); }
.log-l pre { margin: 0; padding: 8px 14px 12px 14px; background: var(--surface-2); white-space: pre-wrap; font-size: 11.5px; }
@media (max-width: 760px) { .log-l summary { grid-template-columns: 1fr; gap: 0; } }
.jr-f input, .jr-f select { margin: 0; }
/* 1.4 : rédaction des séances */
.red-meta { display: grid; grid-template-columns: 1.2fr 2fr auto; gap: 12px; padding: 14px 16px; margin-bottom: 12px; } @media (max-width: 800px) { .red-meta { grid-template-columns: 1fr; } }
.red-g { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; } @media (max-width: 1000px) { .red-g { grid-template-columns: 1fr; } }
.red-outils { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.red-ed textarea { width: 100%; min-height: 66vh; border: 0; border-radius: 0 0 var(--r) var(--r); resize: vertical; font: 13.5px/1.6 var(--mono); padding: 14px 16px; box-shadow: none !important; background: var(--surface); }
.red-ap iframe { width: 100%; height: 66vh; border: 0; border-radius: 0 0 var(--r) var(--r); background: #F6F8FC; display: block; }
.red-barre { position: sticky; bottom: 12px; z-index: 10; display: flex; gap: 10px; align-items: center; margin-top: 12px; padding: 10px 14px; border-radius: var(--r);
  background: color-mix(in srgb, var(--surface) 94%, transparent); border: 1px solid var(--line); backdrop-filter: blur(8px); }
@media (max-width: 760px) { .red-barre { bottom: calc(72px + env(safe-area-inset-bottom)); } }
.red-aide td:first-child { white-space: nowrap; }
.nm-plan { grid-template-columns: repeat(3, 1fr); }
.edt-t td:nth-child(5) select { min-width: 160px; }
