/* =====================================================================
   Campus en ligne — feuille de style
   Barre latérale marine, contenus clairs, couleur propre à chaque bloc.
   Polices auto-hébergées (aucun appel externe).
   ===================================================================== */
@font-face { font-family: "Sora"; src: url(fonts/sora-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Sora"; src: url(fonts/sora-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Sora"; src: url(fonts/sora-latin-800-normal.woff2) format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url(fonts/public-sans-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url(fonts/public-sans-latin-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url(fonts/public-sans-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url(fonts/public-sans-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url(fonts/public-sans-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --night: #0c1838;
  --navy: #13264f;
  --ink: #1d2f5a;
  --muted: #5e6e90;
  --blue: #1d4fb8;
  --blue-2: #2f6fdb;
  --sky: #e8f0fe;
  --sky-2: #f3f7ff;
  --line: #dce4f4;
  --bg: #f3f6fc;
  --white: #ffffff;
  --sun: #ffc94d;
  --orange: #f26b21;        /* orange de la charte Voltaire Business School (v1.26.1) : nom de l'école, chapitre affiché */
  --coral: #D64550;
  --amber: #a85b00;
  --amber-bg: #fff3dd;
  /* Couleur d'accent (rouge-corail) : touches ponctuelles uniquement, jamais en aplat large */
  --accent: #D64550;        /* liserés, traits, pastilles décoratives */
  --accent-ink: #B8303C;    /* texte / fonds de badge sur fond clair (AA ≥ 4.5:1) */
  --accent-soft: #FBE9EB;   /* fond clair des badges */
  --accent-light: #F4959C;  /* texte d'accent sur fond marine (AA) */
  --red: var(--accent-ink);
  --red-bg: var(--accent-soft);
  --c: var(--blue-2); --c2: var(--blue); --c-soft: var(--sky);
  --radius: 18px;
  --shadow: 0 1px 2px rgba(15, 30, 70, .05), 0 8px 24px rgba(15, 30, 70, .07);
  --shadow-lg: 0 18px 50px rgba(15, 30, 70, .16);
  --display: "Sora", "Segoe UI", system-ui, sans-serif;
  --body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --side-w: 268px;
}
/* Couleur propre à chaque bloc */
.b1 { --c: #2f6fdb; --c2: #143a8f; --c-soft: #e6efff; }
.b2 { --c: #5b5ef0; --c2: #26258f; --c-soft: #ececff; }
.b3 { --c: #8b5cf6; --c2: #3b1f8f; --c-soft: #f1ebff; }
.b4 { --c: #1a9ad6; --c2: #1e4fa8; --c-soft: #e3f4fc; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--bg); line-height: 1.55; font-size: 1rem; /* v1.31 : suit la taille choisie (accessibilité) */ }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--display); color: var(--navy); line-height: 1.22; margin: 0 0 .5em; text-wrap: balance; letter-spacing: -.01em; }
h1 { font-size: clamp(1.55rem, 3vw, 2.05rem); font-weight: 800; }
h2 { font-size: 1.22rem; font-weight: 700; }
h3 { font-size: 1.04rem; font-weight: 700; }
p { margin: 0 0 .8em; }
img { max-width: 100%; }
code { background: var(--sky); padding: .1em .4em; border-radius: 6px; font-size: .92em; }
code.pw { font-size: 1.05em; font-weight: 700; color: var(--navy); letter-spacing: .03em; }
:focus-visible { outline: 3px solid rgba(47, 111, 219, .45); outline-offset: 2px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: var(--white); padding: 8px 12px; z-index: 30; border-radius: 8px; }
.ic { width: 1.15em; height: 1.15em; vertical-align: -.2em; flex: none; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.right { text-align: right; }
.warn { color: var(--amber); }
.hint { font-size: .85rem; color: var(--muted); margin: -.2em 0 .6em; font-weight: 400; }
.grow { flex: 1; }
[hidden] { display: none !important; }

/* ---------- Structure : barre latérale + contenu ---------- */
.app { display: flex; min-height: 100vh; }
.side {
  width: var(--side-w); flex: none; position: sticky; top: 0; height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column; gap: 6px; padding: 22px 16px 16px;
  background: radial-gradient(120% 60% at 0% 0%, #1d3f8f 0%, transparent 60%), linear-gradient(180deg, var(--navy), var(--night));
  color: #dbe6fb;
}
.side .brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; padding: 0 6px 18px; }
.brand-mark { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; flex: none; background: linear-gradient(135deg, #4b8af0, var(--blue)); color: #fff; font-family: var(--display); font-weight: 800; font-size: .95rem; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .2), 0 6px 16px rgba(0, 0, 0, .25); }
.brand-mark.big { width: 60px; height: 60px; font-size: 1.25rem; border-radius: 18px; }
.brand-logo { height: 42px; width: auto; max-width: 140px; object-fit: contain; border-radius: 8px; background: #fff; padding: 4px; }
.brand-logo.big { height: 64px; max-width: 220px; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-txt strong { font-family: var(--display); font-weight: 700; font-size: 1rem; }
.brand-txt small { color: #a9bde6; font-size: .78rem; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-group { margin: 14px 10px 6px; font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: #7f95c4; font-weight: 700; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: #d3def6; font-weight: 500; font-size: .95rem; text-decoration: none; transition: background .15s, color .15s; }
.nav a .ic { width: 1.2em; height: 1.2em; color: #8fa7d8; }
.nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.nav a.on { background: linear-gradient(90deg, rgba(75, 138, 240, .35), rgba(75, 138, 240, .12)); color: #fff; font-weight: 600; box-shadow: inset 3px 0 0 var(--accent); }
.nav a.on .ic { color: #fff; }
.badge { margin-left: auto; min-width: 22px; padding: 1px 7px; border-radius: 10px; background: var(--accent-ink); color: #fff; box-shadow: 0 0 0 2px rgba(255, 255, 255, .18); font-size: .74rem; font-weight: 800; text-align: center; }
.side-foot { margin-top: auto; display: flex; align-items: center; gap: 8px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .1); }
.me { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; color: #fff; text-decoration: none !important; padding: 6px; border-radius: 12px; }
.me:hover, .me.on { background: rgba(255, 255, 255, .07); }
.me-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.me-txt strong { font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-txt small { font-size: .74rem; color: #a9bde6; }
.avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; flex: none; background: linear-gradient(135deg, var(--sun), #ff9f68); color: var(--navy); font-weight: 800; font-size: .85rem; font-family: var(--display); }
.logout { margin: 0; }
.logout button { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; border: 0; background: rgba(255, 255, 255, .07); color: #c9d6f2; cursor: pointer; }
.logout button:hover { background: rgba(214, 69, 80, .35); color: #fff; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mtop { display: none; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 28px 32px 48px; flex: 1; }
.foot { text-align: center; padding: 18px 16px 28px; font-size: .84rem; color: var(--muted); display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.scrim { position: fixed; inset: 0; background: rgba(8, 15, 35, .5); z-index: 19; }

@media (max-width: 960px) {
  .side { position: fixed; z-index: 20; left: 0; top: 0; bottom: 0; transform: translateX(-105%); transition: transform .25s ease; box-shadow: var(--shadow-lg); padding-top: calc(22px + env(safe-area-inset-top, 0px)); }
  .side.open { transform: none; }
  .mtop { display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 10; padding: 10px 16px; padding-top: calc(10px + env(safe-area-inset-top, 0px)); background: var(--navy); color: #fff; }
  .mtop .brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
  .mtop .brand-mark { width: 34px; height: 34px; border-radius: 10px; font-size: .8rem; }
  .mtop .brand-logo { height: 34px; }
  .menu-btn { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .1); color: #fff; border: 0; border-radius: 12px; padding: 8px 12px; font: inherit; font-weight: 600; cursor: pointer; }
  .wrap { padding: 20px 16px 40px; }
}
@media (prefers-reduced-motion: reduce) { .side { transition: none; } * { scroll-behavior: auto !important; } }

/* ---------- En-têtes de page ---------- */
.page-head { margin-bottom: 22px; }
.page-head .lead, .lead { color: var(--muted); max-width: 70ch; font-size: 1.02rem; }
.row-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .1em; font-size: .74rem; font-weight: 700; color: var(--accent-ink); margin-bottom: .45em; display: flex; align-items: center; gap: 6px; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 16px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.section-title { display: flex; align-items: center; gap: 12px; margin: 34px 0 14px; font-size: 1.18rem; }
.section-title .more { margin-left: auto; font-family: var(--body); font-size: .9rem; font-weight: 600; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.two-col > * { min-width: 0; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); margin-bottom: 22px; }
.card.narrow { max-width: 760px; width: 100%; margin-left: auto; margin-right: auto; }
.card h2 { margin-top: 1.3em; }
.card h2:first-child, .card h1 + h2 { margin-top: 0; }
.empty { display: flex; flex-direction: column; align-items: center; gap: 8px; background: var(--white); border: 1.5px dashed var(--line); border-radius: var(--radius); padding: 34px 20px; text-align: center; color: var(--muted); }
.empty::before { content: ""; width: 54px; height: 54px; border-radius: 50%; background: radial-gradient(circle at 50% 50%, var(--white) 0 30%, var(--sky) 31% 60%, var(--sky-2) 61%); }

/* ---------- Pastilles, étiquettes ---------- */
.pill-ic { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--c-soft); color: var(--c); flex: none; }
.pill-ic.sm { width: 30px; height: 30px; }
.pill-ic.sm .ic { width: .95em; height: .95em; }
/* couleur par type de ressource */
.t-support { --c: #2f6fdb; --c-soft: #e6efff; }
.t-video { --c: #8b5cf6; --c-soft: #f1ebff; }
.t-exercice { --c: #c77700; --c-soft: #fff1d6; }
.t-corrige { --c: #1a9ad6; --c-soft: #e3f4fc; }
.t-projet { --c: #5b5ef0; --c-soft: #ececff; }
.t-consigne_examen { --c: #d4473f; --c-soft: #fdeceb; }
.t-lien { --c: #5e6e90; --c-soft: #eef1f7; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: .77rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: #eef1f7; color: var(--muted); white-space: nowrap; }
.tag .ic { width: 1em; height: 1em; }
.tag-ok { background: var(--sky); color: var(--blue); }
.tag-warn { background: var(--amber-bg); color: var(--amber); }
.tag-err { background: var(--accent-soft); color: var(--accent-ink); }
.tag-due { background: var(--accent-soft); color: var(--accent-ink); box-shadow: inset 0 0 0 1px #f3c3c7; }
.tag-new { background: var(--accent-ink); color: #fff; }
.tag-sun { background: #fff4d1; color: #8a5a00; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: .8rem; font-weight: 500; background: var(--c-soft); color: var(--ink); padding: 4px 10px; border-radius: 999px; }
.chip .ic { color: var(--c); width: 1em; height: 1em; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--blue); color: #fff; border: 0; border-radius: 12px; padding: 11px 18px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none !important; transition: background .15s, transform .15s, box-shadow .15s; box-shadow: 0 4px 12px rgba(29, 79, 184, .25); }
.btn:hover { background: var(--navy); transform: translateY(-1px); }
.btn-ghost { background: var(--white); color: var(--blue); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { background: var(--sky); }
.btn-sun { background: var(--sun); color: var(--navy); box-shadow: 0 6px 16px rgba(255, 201, 77, .35); }
.btn-sun:hover { background: #ffd56f; }
.btn-light { background: rgba(255, 255, 255, .16); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35); }
.btn-light:hover { background: rgba(255, 255, 255, .26); }
.btn-danger { background: var(--white); color: var(--accent-ink); box-shadow: inset 0 0 0 1.5px #f3c3c7; }
.btn-danger:hover { background: var(--red-bg); }
.btn-sm { padding: 7px 12px; font-size: .88rem; border-radius: 10px; }
.btn-wide { width: 100%; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--blue); font: inherit; font-size: .9rem; cursor: pointer; text-decoration: underline; }
.iconbtn { background: var(--sky-2); border: 1px solid var(--line); color: var(--muted); width: 26px; height: 26px; border-radius: 8px; cursor: pointer; font-size: .8rem; padding: 0; }
.iconbtn:hover { color: var(--blue); background: var(--sky); }
form.inline { display: inline; margin: 0; }
.danger-zone { display: block; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }

/* ---------- Formulaires ---------- */
.form { display: flex; flex-direction: column; gap: 14px; margin-top: 12px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .92rem; color: var(--navy); }
.form label.check { flex-direction: row; align-items: center; gap: 10px; font-weight: 500; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=url], input[type=search], input[type=datetime-local], input:not([type]), select, textarea {
  font: inherit; font-weight: 400; color: var(--ink); background: var(--white); border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 13px; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue-2); box-shadow: 0 0 0 4px rgba(47, 111, 219, .14); }
input[type=file] { font: inherit; font-weight: 400; padding: 12px; border: 1.5px dashed #b9cbef; border-radius: 12px; background: var(--sky-2); width: 100%; cursor: pointer; }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--blue); flex: none; }
textarea { resize: vertical; }
fieldset { border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px 8px; margin: 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
legend { font-weight: 700; color: var(--blue-2); padding: 0 6px; font-size: .9rem; font-family: var(--display); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid2 > * { min-width: 0; }
@media (max-width: 640px) { .grid2 { grid-template-columns: 1fr; } }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.filters input, .filters select { width: auto; flex: 1 1 200px; }
.checks { list-style: none; padding: 0; }
.checks .ok { color: var(--blue); }
.checks .ko { color: var(--red); font-weight: 600; }
.img-field { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.img-field img { width: 160px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.img-field.logo img { width: auto; height: 64px; aspect-ratio: auto; object-fit: contain; background: #fff; padding: 6px; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.check-grid label { background: var(--sky-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.check-grid small { display: block; color: var(--muted); font-weight: 400; }

/* ---------- Messages ---------- */
.flash { border-radius: 14px; padding: 13px 16px; margin-bottom: 18px; font-size: .95rem; border: 1px solid transparent; }
.flash-success, .flash-info { background: var(--sky); border-color: #c9dafb; color: var(--navy); }
.flash-error { background: var(--accent-soft); border-color: #f3c3c7; color: var(--accent-ink); }

/* ---------- Connexion ---------- */
.guest-wrap { min-height: calc(100vh - 70px); display: flex; align-items: center; justify-content: center; padding: 24px 16px; flex-direction: column; background: var(--bg); }
.login { display: grid; grid-template-columns: 1.1fr 1fr; max-width: 1040px; width: 100%; background: var(--white); border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg); }
.login-side { position: relative; overflow: hidden; color: #fff; padding: 42px 40px 0; display: flex; flex-direction: column;
  background: radial-gradient(90% 70% at 100% 0%, #5b5ef0 0%, transparent 60%), radial-gradient(80% 60% at 0% 100%, #2f6fdb 0%, transparent 60%), linear-gradient(160deg, var(--navy), var(--night)); }
.login-side h2 { color: #fff; font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1.1; font-weight: 800; margin: 0 0 .45em; }
.login-side p { color: #c9d8f6; max-width: 36ch; font-size: 1.02rem; line-height: 1.55; }
.login-side .login-school, .login-school { text-transform: uppercase; letter-spacing: .1em; font-size: clamp(1.2rem, 1.9vw, 1.5rem); letter-spacing: .08em; line-height: 1.15; color: var(--orange) !important; font-family: var(--display); font-weight: 800; margin-bottom: 18px; }
.login-art { margin-top: auto; width: 100%; max-width: 460px; align-self: center; display: block; }
.login-photo { margin-top: auto; width: calc(100% + 80px); margin-left: -40px; max-width: none; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.login-card { padding: 46px 42px; display: flex; flex-direction: column; justify-content: center; }
.login-card h1 { font-size: 1.45rem; line-height: 1.2; margin-top: 18px; }
.login-card h1 + p, .login-card .lead { font-size: .95rem; color: var(--muted); }
.login-card .form { margin-top: 18px; }
@media (max-width: 820px) { .login { grid-template-columns: 1fr; } .login-side { padding: 28px 24px 0; } .login-art { max-width: 300px; } .login-card { padding: 28px 24px 32px; } }

/* ---------- Accueil étudiant ---------- */
.hero { position: relative; overflow: hidden; border-radius: 26px; padding: 30px 32px; color: #fff; margin-bottom: 24px;
  background: radial-gradient(70% 90% at 100% 0%, #5b5ef0 0%, transparent 60%), radial-gradient(60% 80% at 0% 100%, #2f6fdb 0%, transparent 65%), linear-gradient(135deg, var(--navy), #18306b);
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; box-shadow: var(--shadow-lg); }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .09); }
.hero::before { width: 360px; height: 360px; right: -90px; top: -150px; }
.hero::after { width: 520px; height: 520px; right: -170px; top: -230px; }
.hero > * { position: relative; z-index: 1; min-width: 0; }
.hero h1 { color: #fff; margin-bottom: .25em; }
.hero .eyebrow { color: var(--accent-light); }
.hero h1::after, .page-head h1::after { content: ""; display: block; width: 44px; height: 4px; border-radius: 2px; background: var(--accent); margin-top: 10px; }
.hero p { color: #d3e0fa; margin: 0; }
.hero-stats { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.hero-stat { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; font-size: .82rem; color: #c9d8f6; }
.hero-stat strong { font-family: var(--display); font-size: 1.7rem; color: #fff; line-height: 1; }
.hero .ring { width: 96px; height: 96px; }
.hero .ring-bg { stroke: rgba(255, 255, 255, .16); }
.hero .ring-fg { stroke: var(--sun); }
.hero .ring-n { fill: #fff; }
.resume { margin-top: 18px; display: flex; align-items: center; gap: 14px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); border-radius: 16px; padding: 12px 14px; max-width: 560px; }
.resume .pill-ic { background: var(--sun); color: var(--navy); }
.resume div { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.resume small { color: #b8caf0; font-size: .8rem; }
.resume strong { color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 760px) { .hero { grid-template-columns: 1fr; padding: 24px 20px; } .hero-stats { justify-content: flex-start; } }

.ring { width: 76px; height: 76px; flex: none; }
.ring-bg { fill: none; stroke: var(--sky); stroke-width: 10; }
.ring-fg { fill: none; stroke: var(--c); stroke-width: 10; stroke-linecap: round; }
.ring-n { font-family: var(--display); font-weight: 800; font-size: 24px; fill: var(--navy); text-anchor: middle; dominant-baseline: central; }
.ring-u { font-size: 13px; font-weight: 700; }

.news { display: grid; gap: 10px; }
.news-item { display: flex; gap: 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.news-item > div { min-width: 0; }
.news-item .pill-ic { background: #fff4d1; color: #b07400; }
.news-item.pinned, .news-full.pinned { border-color: #ffd98a; box-shadow: inset 4px 0 0 var(--sun); }
.news-item h3 { margin-bottom: 0; }
.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Cartes de blocs avec image de couverture */
.bloc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 18px; }
.bloc-card { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 22px; color: var(--ink); text-decoration: none !important; box-shadow: var(--shadow); overflow: hidden; transition: transform .2s, box-shadow .2s; }
a.bloc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.bloc-cover { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--c), var(--c2)); overflow: hidden; }
.bloc-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
a.bloc-card:hover .bloc-cover img { transform: scale(1.04); }
.bloc-num { position: absolute; left: 14px; top: 14px; background: rgba(255, 255, 255, .95); color: var(--c2); font-family: var(--display); font-weight: 800; font-size: .8rem; padding: 5px 12px; border-radius: 999px; box-shadow: 0 4px 12px rgba(0, 0, 0, .15); }
.bloc-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.bloc-body h3 { margin: 0; font-size: 1.08rem; }
.bloc-state { font-size: .8rem; font-weight: 700; color: var(--c); display: flex; align-items: center; gap: 5px; }
.bloc-meta { font-size: .85rem; color: var(--muted); margin: 0; }
.bloc-body .prog { margin-top: auto; padding-top: 8px; --c: inherit; }
.bloc-card.locked { box-shadow: none; background: #f6f8fc; }
.bloc-card.locked .bloc-cover img { filter: grayscale(1) brightness(1.1) contrast(.7); opacity: .55; }
.bloc-card.locked .bloc-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(19, 38, 79, .15), rgba(19, 38, 79, .55)); }
.lock-badge { position: absolute; z-index: 1; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px; background: rgba(12, 24, 56, .8); color: #fff; font-size: .78rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; }
.bloc-card.locked h3 { color: #52627f; }
.bloc-card.locked .bloc-state { color: var(--muted); }
.locked-note { color: var(--muted); font-size: .9rem; display: flex; gap: 6px; align-items: center; }

.prog { display: flex; align-items: center; gap: 10px; font-size: .82rem; font-weight: 700; color: var(--c); }
.prog span { min-width: 3em; text-align: right; }
progress { flex: 1; height: 8px; border: 0; border-radius: 99px; background: var(--c-soft); overflow: hidden; -webkit-appearance: none; appearance: none; min-width: 60px; color: var(--c); }
progress::-webkit-progress-bar { background: var(--c-soft); border-radius: 99px; }
progress::-webkit-progress-value { background: var(--c); border-radius: 99px; }
progress::-moz-progress-bar { background: var(--c); border-radius: 99px; }

/* ---------- Listes ---------- */
.list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.list .row { display: flex; align-items: center; gap: 14px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 13px 16px; transition: border-color .15s, box-shadow .15s; }
.list .row:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.list.compact .row { padding: 10px 12px; border-radius: 12px; }
.list.compact .row:hover { box-shadow: none; }
.row-main { flex: 1; display: flex; flex-direction: column; min-width: 0; color: var(--ink); text-decoration: none !important; }
.row-main strong { color: var(--navy); }
.row-main:hover strong { color: var(--blue); }
.row-main small { color: var(--muted); font-size: .85rem; }
.row .go { color: #a4b4d4; }

/* ---------- Bloc : bannière ---------- */
.banner { position: relative; overflow: hidden; border-radius: 26px; margin-bottom: 26px; min-height: 220px; display: flex; align-items: flex-end; color: #fff; box-shadow: var(--shadow-lg); background: linear-gradient(135deg, var(--c), var(--c2)); }
.banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 20, 50, .88) 0%, rgba(10, 20, 50, .55) 55%, rgba(10, 20, 50, .1) 100%); }
.banner-in { position: relative; z-index: 1; padding: 30px 32px; max-width: 720px; }
.banner h1 { color: #fff; }
.banner .eyebrow { color: var(--accent-light); }
.banner p { color: #dbe6fb; margin: 0; }
.banner .crumbs, .banner .crumbs a { color: #c9d8f6; }
.banner-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.banner-meta .tag { background: rgba(255, 255, 255, .16); color: #fff; }
@media (max-width: 640px) { .banner-in { padding: 22px 20px; } .banner { min-height: 200px; } .banner::after { background: linear-gradient(180deg, rgba(10, 20, 50, .72) 0%, rgba(10, 20, 50, .9) 100%) !important; } }

.module-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.module-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 20px; color: var(--ink); text-decoration: none !important; box-shadow: var(--shadow); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.module-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.module-thumb { position: relative; height: 150px; overflow: hidden; background: radial-gradient(60% 120% at 100% 0%, rgba(255, 255, 255, .25), transparent 60%), linear-gradient(135deg, var(--c), var(--c2)); }
.module-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.module-thumb::before, .module-thumb::after { content: ""; position: absolute; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .18); }
.module-thumb::before { width: 140px; height: 140px; right: -30px; top: -50px; }
.module-thumb::after { width: 220px; height: 220px; right: -70px; top: -90px; }
.module-thumb.has-img::before, .module-thumb.has-img::after { display: none; }
.module-thumb.has-img img { transition: transform .4s; }
a.module-card:hover .module-thumb.has-img img { transform: scale(1.04); }
.module-thumb.has-img .lock-badge { box-shadow: 0 4px 12px rgba(12, 24, 56, .35); }
.module-idx { position: absolute; z-index: 1; left: 16px; bottom: -22px; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--white); color: var(--c); font-family: var(--display); font-weight: 800; font-size: 1.1rem; box-shadow: 0 6px 16px rgba(15, 30, 70, .15); }
.module-body { padding: 30px 18px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.module-body h3 { margin: 0; }
.module-body .prog { margin-top: auto; padding-top: 12px; }
.teacher-line { font-size: .84rem; color: var(--muted); display: flex; gap: 6px; align-items: center; }

/* ---------- Intitulés officiels (libellés RNCP longs, jamais tronqués) ---------- */
.mod-title { overflow-wrap: break-word; text-wrap: pretty; hyphens: manual; }
.mod-short { text-transform: none; letter-spacing: 0; font-size: .82rem; margin-bottom: .35em; display: block; overflow-wrap: break-word; }
.module-body h3.mod-title { font-size: .98rem; line-height: 1.32; }
.module-body h3.title-long { font-size: .86rem; font-weight: 600; line-height: 1.4; color: #2b3a5e; }
.banner h1.mod-title { line-height: 1.28; }
.banner h1.title-long { font-size: clamp(1rem, 1.5vw, 1.25rem); font-weight: 700; line-height: 1.4; }
.banner .eyebrow.mod-short { color: #fff; font-size: 1rem; font-weight: 800; font-family: var(--display); }
.banner-in { max-width: 820px; }
.banner .eyebrow.bloc-full { text-transform: none; letter-spacing: 0; font-size: .86rem; display: block; overflow-wrap: break-word; }
.banner h1.mod-title.title-long { font-size: clamp(1.1rem, 1.7vw, 1.4rem); }
.bloc-admin-head h2.title-long { font-size: 1rem; font-weight: 600; }
.mod-admin-title { flex: 1 1 320px; min-width: 0; }
.mod-admin-title .mod-short { margin-bottom: 2px; font-size: .78rem; }
.mod-admin-title strong.mod-title { display: block; font-weight: 600; font-size: .92rem; line-height: 1.35; }
.mod-admin-title strong.title-long { font-size: .84rem; font-weight: 500; color: #3b4a6b; }
p.mod-title.title-long { font-size: .84rem; }

/* ---------- Modules verrouillés pour le parcours (même style que les blocs 3-4) ---------- */
.module-card.locked { box-shadow: none; background: #f6f8fc; cursor: not-allowed; }
.module-card.locked:hover { transform: none; box-shadow: none; }
.module-card.locked .module-thumb img { filter: grayscale(1) brightness(1.1) contrast(.7); opacity: .55; }
.module-card.locked .module-thumb::after, .module-card.locked .module-thumb::before { opacity: .4; }
.module-card.locked .module-thumb { background: linear-gradient(135deg, #8795b3, #5f6f94); }
.module-card.locked .module-idx { color: #52627f; }
.module-card.locked h3 { color: #52627f; }
.module-card.locked .mod-short { color: #52627f; }
.module-card.locked .locked-note { margin-top: auto; padding-top: 12px; font-weight: 600; }

/* ---------- Administration : modules accessibles par étudiant ---------- */
.access-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-bottom: 14px; }
.access-bloc { border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px 8px; margin: 0; min-width: 0; background: var(--white); }
.access-bloc legend { font-weight: 700; color: var(--navy); padding: 0 6px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.access-tools { margin: 0 0 8px; font-size: .84rem; color: var(--muted); }
.access-mod { display: flex; gap: 8px; align-items: flex-start; padding: 7px 0; border-top: 1px dashed var(--line); font-weight: 500; }
.access-mod input { margin-top: 3px; flex: none; }
.access-mod span { min-width: 0; }
.access-mod small { display: block; color: var(--muted); font-weight: 400; font-size: .78rem; line-height: 1.35; overflow-wrap: break-word; }
.access-mod small.title-long { font-size: .74rem; }
.access-form .btn { margin-top: 4px; }

/* ---------- Module : ressources ---------- */
.res-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 6px; }
.res-tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); color: var(--ink); font-size: .88rem; font-weight: 600; text-decoration: none; }
.res-tabs a .ic { color: var(--c); }
.res-tabs a:hover { border-color: var(--c); }
.res-tabs b { color: var(--muted); font-weight: 600; }
.res-section { scroll-margin-top: 80px; }
.res-section .section-title .pill-ic { width: 38px; height: 38px; }

/* ---------- Détail ressource ---------- */
.res-detail h1 { font-size: clamp(1.4rem, 2.6vw, 1.75rem); }
.res-head { display: flex; gap: 16px; align-items: flex-start; }
.res-head .pill-ic { width: 54px; height: 54px; border-radius: 16px; }
.res-head .pill-ic .ic { width: 1.5em; height: 1.5em; }
.res-head > div { min-width: 0; }
.prose { max-width: 75ch; }
.prose p { margin-bottom: .8em; }
.file-box { display: flex; align-items: center; gap: 14px; background: var(--sky-2); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; margin: 20px 0; flex-wrap: wrap; }
.file-box > div:nth-child(2) { flex: 1; display: flex; flex-direction: column; min-width: 160px; word-break: break-word; }
.file-box small { color: var(--muted); }
.file-ext { display: grid; place-items: center; width: 50px; height: 58px; border-radius: 10px 18px 10px 10px; background: linear-gradient(160deg, var(--blue-2), var(--blue)); color: #fff; font-weight: 800; font-size: .72rem; flex: none; font-family: var(--display); }
.file-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.video { position: relative; aspect-ratio: 16 / 9; max-width: 100%; margin: 20px 0; border-radius: 16px; overflow: hidden; background: var(--night); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.submit-box { margin-top: 26px; padding: 22px; border-radius: 20px; background: linear-gradient(180deg, var(--sky-2), var(--white)); border: 1px solid var(--line); }
.submit-box h2 { margin-top: 0; display: flex; align-items: center; gap: 10px; }
.deadline { display: inline-flex; align-items: center; gap: 8px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; font-size: .92rem; }
.deadline.late { border-color: #f3c3c7; background: var(--accent-soft); color: var(--accent-ink); }
.sub-status { background: var(--white); border-radius: 14px; padding: 12px 14px; margin: 14px 0 12px; border: 1px solid var(--line); }
.sub-status p { margin: 0; }
.grade { display: flex; gap: 18px; align-items: center; background: var(--white); border: 1.5px solid #bcd0f6; border-radius: 16px; padding: 16px 18px; margin-bottom: 12px; }
.grade > div { min-width: 0; }
.grade-n { display: grid; place-items: center; width: 92px; height: 92px; flex: none; border-radius: 50%; background: radial-gradient(circle, var(--white) 0 58%, transparent 59%), conic-gradient(var(--blue-2), #5b5ef0, var(--blue-2)); font-family: var(--display); font-size: 1.25rem; font-weight: 800; color: var(--blue); margin: 0; }
.done-form { margin-top: 24px; }
.admin-bar { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 16px; display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Tableaux ---------- */
.table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 22px; box-shadow: var(--shadow); }
.table { width: 100%; border-collapse: collapse; font-size: .93rem; font-variant-numeric: tabular-nums; }
.table th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--sky-2); padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #fafcff; }
.table tr.dim td { opacity: .55; }
.table .prog { min-width: 120px; }
.who { display: flex; align-items: center; gap: 10px; }
.who .avatar { width: 34px; height: 34px; font-size: .78rem; background: var(--sky); color: var(--blue); }
.who > div { min-width: 0; }
.bulk-bar { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.bulk-bar select { width: auto; flex: 1 1 260px; max-width: 440px; }

/* ---------- Administration ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; margin-bottom: 22px; }
.stat { position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px; color: var(--ink); text-decoration: none !important; box-shadow: var(--shadow); transition: transform .2s; }
.stat:hover { transform: translateY(-2px); border-color: var(--accent); }
.stat::after { content: ""; position: absolute; right: -30px; top: -30px; width: 90px; height: 90px; border-radius: 50%; background: var(--c-soft); opacity: .7; }
.stat .pill-ic { grid-row: span 2; width: 48px; height: 48px; border-radius: 14px; position: relative; z-index: 1; }
.stat strong { font-family: var(--display); font-size: 1.7rem; color: var(--navy); line-height: 1.1; position: relative; z-index: 1; }
.stat span:last-child { color: var(--muted); font-size: .86rem; position: relative; z-index: 1; }
.bloc-admin { padding: 0; overflow: hidden; }
.bloc-admin-head { display: flex; gap: 18px; align-items: center; padding: 18px 22px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.bloc-admin-head img { width: 132px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; flex: none; }
.bloc-admin-head > div:nth-child(2) { flex: 1; min-width: 220px; }
.bloc-admin-head h2 { margin: 0; }
.bloc-admin-body { padding: 4px 22px 20px; }
.mod-admin { border: 1px solid var(--line); border-radius: 16px; margin-top: 14px; overflow: hidden; }
.mod-admin-head { display: flex; align-items: center; gap: 10px; padding: 11px 14px; background: var(--sky-2); flex-wrap: wrap; }
.res-admin { list-style: none; margin: 0; padding: 6px 14px 10px; }
.res-admin li { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px dashed var(--line); flex-wrap: wrap; }
.res-admin li:last-child { border-bottom: 0; }
.move { display: inline-flex; gap: 3px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0 0 16px; }
.kv dt { color: var(--muted); font-size: .9rem; }
.kv dd { margin: 0; min-width: 0; }
.news-full h2 { margin-top: 0; }
.teach-card { display: flex; gap: 14px; align-items: center; }
.matrix td.cell { text-align: center; }

@media print { .side, .mtop, .foot, .btn { display: none !important; } body { background: #fff; } }

/* ---------- Espace de rédaction ---------- */
.editor-wrap { border: 1.5px solid var(--line); border-radius: 16px; background: var(--white); overflow: hidden; }
.editor-wrap:focus-within { border-color: var(--blue-2); box-shadow: 0 0 0 4px rgba(47, 111, 219, .12); }
.editor-bar { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px; background: var(--sky-2); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 2; }
.editor-bar button { font: inherit; font-size: .86rem; min-width: 34px; height: 34px; padding: 0 10px; border-radius: 9px; border: 1px solid transparent; background: transparent; color: var(--ink); cursor: pointer; }
.editor-bar button:hover { background: var(--white); border-color: var(--line); }
.editor-bar .sep { width: 1px; background: var(--line); margin: 4px 4px; }
.editor { min-height: 320px; max-height: 70vh; overflow-y: auto; overflow-x: auto; padding: 18px 20px; outline: none; font-size: 1rem; line-height: 1.65; }
.editor:empty::before { content: attr(data-placeholder); color: #98a6c2; }
.editor h3, .answer-view h3 { font-size: 1.12rem; margin: 1em 0 .4em; }
.editor table, .answer-view table { border-collapse: collapse; width: 100%; margin: .6em 0; }
.editor td, .editor th, .answer-view td, .answer-view th { border: 1px solid #b9c6e0; padding: 6px 8px; min-width: 60px; vertical-align: top; }
.editor blockquote, .answer-view blockquote { margin: .6em 0; padding-left: 12px; border-left: 3px solid var(--line); color: var(--muted); }
.editor-foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 8px 14px; border-top: 1px solid var(--line); background: var(--sky-2); font-size: .83rem; color: var(--muted); }
.save-state.ok { color: var(--blue); font-weight: 600; }
.save-state.err { color: var(--red); font-weight: 600; }
.answer-view { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin: 12px 0 18px; line-height: 1.65; overflow-x: auto; }
.answer-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.answer-head h2 { margin: 0; }
.resume { text-decoration: none !important; color: inherit; }

/* Ajustements */
@media (min-width: 961px) { .app { background: linear-gradient(90deg, var(--night) 0 var(--side-w), var(--bg) var(--side-w)); } .main { background: var(--bg); } }
.banner::after { background: linear-gradient(90deg, rgba(10, 20, 50, .92) 0%, rgba(10, 20, 50, .72) 50%, rgba(10, 20, 50, .2) 100%); }
@media (max-width: 560px) {
  .resume { flex-wrap: wrap; }
  .resume .btn { width: 100%; }
  .resume strong { white-space: normal; }
}
.module-thumb { overflow: visible; }
.module-thumb::after { top: -110px; }
.module-thumb img { border-radius: 0; }

/* Logo de l'établissement */
.brand-logo { height: 40px; width: auto; max-width: 190px; object-fit: contain; display: block; background: none; padding: 0; border-radius: 0; }
.brand-logo.custom { background: #fff; padding: 4px; border-radius: 8px; }
.brand-logo.big { height: 58px; max-width: 240px; }
.side .brand { flex-direction: column; align-items: flex-start; gap: 12px; }
.side .brand-txt { padding-left: 2px; }
.mtop .brand-txt { display: none; }
.mtop .brand-logo { height: 32px; }

/* =====================================================================
   Contenus de cours (pages riches : infographies, tableaux, encadrés)
   ===================================================================== */
.course { font-size: 1.02rem; line-height: 1.7; color: var(--ink); max-width: 900px; min-width: 0; overflow-wrap: break-word; }
.course p, .course li, .course h3, .course h4 { overflow-wrap: break-word; }
/* Tableaux : les mots ne sont jamais coupés en fin de ligne ; un tableau trop large défile horizontalement (.c-table-wrap / .table-wrap) */
.course td, .course th, .table td, .table th { overflow-wrap: normal; word-break: keep-all; hyphens: manual; }
.course td, .course th { min-width: 7em; }
.course td a, .table td a { overflow-wrap: break-word; }
.c-table-wrap table, .table-wrap table { width: 100%; }
.course td, .course th { max-width: 28em; }
.course > * + * { margin-top: 1rem; }
.course p { margin: 0 0 .9em; }
.course h2 { font-size: 1.42rem; margin: 2.2em 0 .7em; padding-top: 1.1em; border-top: 1px solid var(--line); display: flex; gap: 12px; align-items: baseline; }
.course > h2:first-child { border-top: 0; padding-top: 0; margin-top: .4em; }
.course h3 { font-size: 1.14rem; margin: 1.6em 0 .5em; color: var(--blue); }
.course h4 { font-family: var(--display); font-size: 1rem; color: var(--navy); margin: 0 0 .4em; }
.course ul, .course ol { padding-left: 1.3em; margin: 0 0 1em; }
.course li { margin: .25em 0; }
.course li::marker { color: var(--blue-2); font-weight: 700; }
.course a { text-decoration: underline; text-underline-offset: 2px; }
.course mark { background: #fff1c2; padding: 0 .2em; border-radius: 4px; }
.course hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.c-lead { font-size: 1.12rem; line-height: 1.65; color: var(--navy); background: linear-gradient(90deg, var(--sky-2), transparent); border-left: 4px solid var(--blue-2); padding: 14px 18px; border-radius: 0 14px 14px 0; }
.c-obj { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.c-obj li { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px 12px 46px; position: relative; margin: 0; font-size: .95rem; line-height: 1.45; }
.c-obj li::before { content: ""; position: absolute; left: 14px; top: 13px; width: 20px; height: 20px; border-radius: 50%; background: radial-gradient(circle, var(--white) 0 30%, var(--blue-2) 32% 100%); }
.c-box { border-radius: 16px; padding: 16px 20px 6px 58px; position: relative; margin: 1.3em 0; background: var(--sky-2); border: 1px solid var(--line); }
.c-box::before { content: ""; position: absolute; left: 16px; top: 16px; width: 28px; height: 28px; border-radius: 9px; background: var(--blue-2) center / 18px no-repeat; }
.c-box h4 { margin-bottom: .35em; }
.c-box > :last-child { margin-bottom: 10px; }
.c-def { background: #eef3ff; border-color: #cddcfb; }
.c-def::before { background-color: var(--blue); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M4 5a2 2 0 012-2h13v16H6a2 2 0 00-2 2zM4 19V5M8 7h7'/%3E%3C/svg%3E"); }
.c-key { background: #fff8e1; border-color: #ffe08a; }
.c-key::before { background-color: #f0a500; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 3l2.7 5.6 6.1.9-4.4 4.3 1 6.1L12 17l-5.4 2.9 1-6.1L3.2 9.5l6.1-.9z'/%3E%3C/svg%3E"); }
.c-warn { background: #fff1ef; border-color: #f8c9c4; }
.c-warn::before { background-color: #e0574f; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 7v6M12 17v.01'/%3E%3C/svg%3E"); }
.c-law { background: #f2efff; border-color: #d9d0fb; }
.c-law::before { background-color: #6d4ce0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 3v18M5 7h14M7 21h10M5 7l-3 7h6zM19 7l-3 7h6z'/%3E%3C/svg%3E"); }
.c-ex { background: #eef7fc; border-color: #c4e5f5; }
.c-ex::before { background-color: #1a9ad6; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M9 18h6M10 21h4M12 3a6 6 0 00-4 10.5c.7.7 1 1.5 1 2.5h6c0-1 .3-1.8 1-2.5A6 6 0 0012 3z'/%3E%3C/svg%3E"); }
.c-pro { background: #f3f6fc; border-color: #d4dced; }
.c-pro::before { background-color: var(--navy); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0116 0'/%3E%3C/svg%3E"); }
.c-case { background: linear-gradient(135deg, #eef3ff, #f4f0ff); border-color: #cdd5fb; }
.c-case::before { background-color: #5b5ef0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Crect x='4' y='3' width='16' height='18' rx='1'/%3E%3Cpath d='M8 7h2M14 7h2M8 11h2M14 11h2M11 21v-3h2v3'/%3E%3C/svg%3E"); }
.c-method { background: #f0f6ff; border-color: #c9dafb; }
.c-method::before { background-color: var(--blue-2); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M5 12l4 4 10-10'/%3E%3C/svg%3E"); }
.c-formula { border: 2px solid #cddcfb; border-radius: 18px; padding: 18px 22px; background: var(--white); margin: 1.4em 0; overflow-x: auto; }
.c-formula-title { font-family: var(--display); font-weight: 700; color: var(--blue); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .5em !important; }
.c-formula-eq { font-family: var(--display); font-size: 1.12rem; font-weight: 700; color: var(--navy); background: var(--sky-2); border-radius: 12px; padding: 12px 16px; line-height: 1.5; overflow-x: auto; overflow-wrap: normal; word-break: normal; }
.c-formula p, .c-formula li { overflow-wrap: normal; word-break: normal; }
.c-formula-vars { font-size: .93rem; color: var(--muted); }
.c-formula-app { font-size: .95rem; border-top: 1px dashed var(--line); padding-top: 10px; }
.c-table-wrap { overflow-x: auto; margin: 1.3em 0; border-radius: 16px; border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow); }
.c-table { width: 100%; border-collapse: collapse; font-size: .93rem; line-height: 1.45; font-variant-numeric: tabular-nums; }
.c-table caption { caption-side: top; text-align: left; font-family: var(--display); font-weight: 700; color: var(--navy); padding: 14px 16px 6px; }
.c-table th { background: var(--navy); color: #fff; text-align: left; font-weight: 600; padding: 11px 14px; font-size: .86rem; vertical-align: bottom; }
.c-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.c-table tbody tr:nth-child(even) td { background: var(--sky-2); }
.c-table tr:last-child td { border-bottom: 0; }
.c-table td.c-num, .c-table th.c-num { text-align: right; white-space: nowrap; }
.c-table tr.c-total td { font-weight: 700; background: #e6efff !important; color: var(--navy); border-top: 2px solid var(--blue-2); }
.c-table tr.c-hl td, .c-table td.c-hl { background: #fff4d1 !important; }
.c-pos { color: var(--blue); font-weight: 700; }
.c-neg { color: var(--accent-ink); font-weight: 700; }
.c-cards { display: grid; gap: 14px; margin: 1.3em 0; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.c-cards.c-cols-2 { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.c-cards.c-cols-3 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.c-cards.c-cols-4 { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.c-card { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 18px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.c-card::after { content: ""; position: absolute; right: -26px; top: -26px; width: 80px; height: 80px; border-radius: 50%; border: 10px solid var(--sky); }
.c-card > * { position: relative; z-index: 1; }
.c-card h4 { margin: 10px 0 6px; }
.c-card p, .c-card ul { font-size: .93rem; line-height: 1.5; margin-bottom: .4em; }
.c-card:nth-child(4n+2) { --c: #5b5ef0; --c-soft: #ececff; }
.c-card:nth-child(4n+3) { --c: #8b5cf6; --c-soft: #f1ebff; }
.c-card:nth-child(4n+4) { --c: #1a9ad6; --c-soft: #e3f4fc; }
.c-ic { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--c-soft); color: var(--c); }
.c-ic-svg { width: 24px; height: 24px; }
.c-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin: 1.3em 0; }
.c-kpi { background: linear-gradient(160deg, var(--navy), #1d3f8f); color: #fff; border-radius: 18px; padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; }
.c-kpi strong { font-family: var(--display); font-size: 1.55rem; font-weight: 800; line-height: 1.1; }
.c-kpi span { color: #c9d8f6; font-size: .86rem; line-height: 1.35; }
.c-kpi:nth-child(3n+2) { background: linear-gradient(160deg, #3b3fc4, #5b5ef0); }
.c-kpi:nth-child(3n+3) { background: linear-gradient(160deg, #136f9e, #1a9ad6); }
.c-compare, .c-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 1.3em 0; }
.c-compare > div, .c-two > div { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; min-width: 0; }
.c-compare > div:first-child { border-top: 5px solid var(--blue-2); }
.c-compare > div:last-child { border-top: 5px solid #8b5cf6; }
@media (max-width: 680px) { .c-compare, .c-two { grid-template-columns: 1fr; } }
.c-check { list-style: none; padding: 0 !important; }
.c-check li { position: relative; padding-left: 32px; }
.c-check li::before { content: ""; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 6px; background: var(--blue-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M5 12l4 4 10-10'/%3E%3C/svg%3E") center / 14px no-repeat; }
.c-quote { margin: 1.4em 0; padding: 16px 22px; border-radius: 16px; background: var(--white); border: 1px solid var(--line); font-size: 1.05rem; font-style: italic; color: var(--navy); position: relative; }
.c-quote::before { content: "«"; position: absolute; left: -6px; top: -18px; font-size: 3.4rem; color: var(--blue-2); font-style: normal; font-family: var(--display); }
.c-details { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 4px 16px; margin: 1em 0; }
.c-details summary { cursor: pointer; font-weight: 700; color: var(--blue); padding: 10px 0; }
.c-fig { margin: 1.6em 0; background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 18px 18px 12px; box-shadow: var(--shadow); overflow-x: auto; }
.c-fig-svg { overflow-x: auto; }
.c-svg { width: 100%; height: auto; display: block; min-width: 520px; }
.c-fig figcaption { font-size: .88rem; color: var(--muted); margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.c-fig figcaption strong { color: var(--navy); }
.c-timeline { list-style: none; padding: 0 0 0 26px !important; border-left: 3px solid #cddcfb; margin-left: 10px; }
.c-tl-item { position: relative; padding: 0 0 14px; }
.c-tl-item::before { content: ""; position: absolute; left: -36px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--white); border: 4px solid var(--blue-2); }
.c-steps-list { counter-reset: st; list-style: none; padding: 0 !important; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.c-steps-list > li { min-width: 0; overflow-wrap: break-word; }
.c-steps-list > li { counter-increment: st; position: relative; padding: 12px 14px 12px 60px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; margin: 0; }
.c-steps-list > li::before { content: counter(st); position: absolute; left: 14px; top: 12px; width: 32px; height: 32px; border-radius: 50%; background: var(--blue-2); color: #fff; font-family: var(--display); font-weight: 800; display: grid; place-items: center; }
.c-tag { display: inline-block; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 3px 10px; border-radius: 999px; background: var(--sky); color: var(--blue); }
.c-doc { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 22px 26px; box-shadow: 0 10px 30px rgba(15, 30, 70, .1); margin: 1.4em 0; font-size: .95rem; }
.c-doc-head { border-bottom: 2px solid var(--navy); margin-bottom: 12px; padding-bottom: 8px; font-family: var(--display); font-weight: 700; color: var(--navy); }
.c-grid-eval th:first-child { width: 34%; }
.c-answer-zone { border: 2px dashed #b9cbef; border-radius: 14px; padding: 12px 16px; color: var(--muted); background: var(--sky-2); }
.c-note { font-size: .86rem; color: var(--muted); }
.c-sources { margin-top: 2.4em; font-size: .88rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 1em; }
.c-sources a { word-break: break-word; }

/* Module : compétence et objectifs ; QCM ; corrigé verrouillé */
.mod-intro { display: grid; grid-template-columns: 1fr 1.4fr; gap: 18px; margin: 0 0 22px; }
.mod-intro > div { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); min-width: 0; }
.mod-comp { border-top: 5px solid var(--c) !important; }
.mod-comp p { margin: 10px 0 0; line-height: 1.55; }
.mod-obj h2 { font-size: 1.05rem; margin: 0 0 12px; }
.mod-obj .c-obj { grid-template-columns: 1fr; }
@media (max-width: 860px) { .mod-intro { grid-template-columns: 1fr; } }
.res-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.locked-panel { display: flex; gap: 16px; align-items: flex-start; background: var(--sky-2); border: 1.5px dashed #b9cbef; border-radius: 18px; padding: 20px; margin: 18px 0; }
.locked-panel p { margin: 6px 0 12px; color: var(--muted); }
.quiz { margin-top: 18px; display: grid; gap: 14px; }
.quiz-form { display: grid; gap: 14px; }
.quiz-q { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; margin: 0; }
.quiz-q.ok { border-left: 5px solid var(--blue-2); }
.quiz-q.ko { border-left: 5px solid var(--coral); }
.quiz-n { font-weight: 700; color: var(--navy); margin: 0 0 10px; padding: 0; font-family: var(--body); font-size: 1rem; line-height: 1.45; }
.quiz-opt { display: flex; gap: 10px; align-items: flex-start; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--line); margin-top: 8px; cursor: pointer; min-width: 0; }
.quiz-opt span, .quiz-n, .quiz-q { overflow-wrap: break-word; min-width: 0; }
.quiz-opt:hover { background: var(--sky-2); }
.quiz-opt input { margin-top: 3px; accent-color: var(--blue); }
.quiz-opt:has(input:checked) { border-color: var(--blue-2); background: var(--sky); }
.quiz-opts { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.quiz-opts li { padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); }
.quiz-opts li.is-right { border-color: #9cbaf3; background: var(--sky); font-weight: 600; }
.quiz-opts li.is-wrong { border-color: #f4b4ae; background: var(--red-bg); }
.quiz-exp { margin: 10px 0 0; font-size: .93rem; color: var(--ink); }
.quiz-score { display: flex; gap: 18px; align-items: center; background: linear-gradient(135deg, var(--sky-2), var(--white)); border: 1px solid var(--line); border-radius: 18px; padding: 16px 20px; }
.quiz-score p { margin: 4px 0 10px; color: var(--muted); }
@media print {
  .app, .main { display: block; }
  .crumbs, .res-meta, .admin-bar, .submit-box, .done-form, .mtop, .side { display: none !important; }
  .card { box-shadow: none; border: 0; padding: 0; }
  .course { max-width: none; font-size: 11pt; }
  .c-fig, .c-table-wrap, .c-box, .c-formula, .c-card { break-inside: avoid; box-shadow: none; }
  .c-svg { min-width: 0; }
}

/* ---------- Formations FEDE : sélecteur de formation, états de progression, demandes, calendrier ---------- */
.prog-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.prog-tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); color: var(--ink); font-weight: 700; font-size: .9rem; }
.prog-tabs a small { font-weight: 500; color: var(--muted); }
.prog-tabs a.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.prog-tabs a.on small { color: #cdd8f3; }
.prog-tabs a:hover { text-decoration: none; border-color: var(--blue-2); }
.prog-state { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 18px; }
.state-line { margin-top: 6px; }
.tag.state-none { background: #eef1f7; color: var(--muted); }
.tag.state-consulte { background: var(--sky-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.tag.state-termine { background: var(--sky); color: var(--blue); }
.tag.state-reussi { background: #fff4d1; color: #8a5a00; }
.linkbtn.small { font-size: .8rem; }
.help-item.focus { box-shadow: 0 0 0 2px var(--blue-2), var(--shadow); }
.help-item h3 { margin-top: 4px; }
.table.plan tr.group td { background: var(--sky-2); }
.table.plan tr.now td { background: #fffbea; }
.table.plan input, .table.links input, .table.links select { width: 100%; min-width: 120px; font: inherit; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; }
.table.plan input[type=date] { min-width: 150px; }
.table.plan input[type=datetime-local] { min-width: 190px; }
.table .states .tag { margin: 2px 2px 2px 0; }
input.w-sm { width: 64px; padding: 4px 6px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.section-title small { font-weight: 500; font-size: .85rem; margin-left: 6px; }
@media (max-width: 720px) { .prog-tabs a small { display: none; } }
/* Édition des contenus FEDE (administration) */
.content-editor { border: 1.5px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--white); }
.content-editor .ce-visual { max-height: 70vh; overflow: auto; padding: 16px 18px; outline: none; }
.content-editor .ce-source { border: 0; border-radius: 0; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .82rem; min-height: 50vh; }
.quiz-edit .qz-row { display: flex; flex-direction: column; gap: 8px; padding: 12px 0; border-top: 1px dashed var(--line); }
.quiz-edit .qz-row:first-of-type { border-top: 0; }
.quiz-edit .qz-opt { display: flex; align-items: center; gap: 8px; }
.quiz-edit .qz-opt input[type=radio] { width: auto; flex: none; }
.attention .tag { margin: 2px 2px 2px 0; }

/* Formations FEDE : matières (Unité → Matière → Chapitre) */
.bloc-matieres { list-style: none; margin: 4px 0 2px; padding: 0; font-size: .84rem; border-top: 1px solid var(--line); }
.bloc-matieres li { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px dashed var(--line); min-width: 0; }
.bloc-matieres li span { min-width: 0; overflow-wrap: break-word; }
.bloc-matieres li small { flex: none; color: var(--muted); font-weight: 600; }
.bloc-matieres li.more { color: var(--muted); border-bottom: 0; }
.matiere-group { margin-top: 8px; }
.matiere-group .matiere-title { margin-bottom: 8px; flex-wrap: wrap; }
.matiere-group > .prog { max-width: 420px; margin: 0 0 14px; }
.mat-admin-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 18px 0 0; padding: 6px 2px; border-bottom: 2px solid var(--line); }
.mat-admin-head strong { display: inline-flex; align-items: center; gap: 6px; }
.mat-edit { border: 1px solid var(--line); border-radius: 16px; margin-top: 14px; overflow: hidden; }
.mat-edit-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--sky-2); flex-wrap: wrap; }
.mat-edit-form { padding: 12px 14px 14px; }
.mat-add { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.mat-add h3 { margin: 0; font-size: 1rem; }

/* ---------- Calendrier individuel de tâches (étudiants) et suivi des tâches (direction) ---------- */
.stat.stat-late { --c: var(--accent-ink); --c-soft: var(--accent-soft); }
.stat.stat-late strong { color: var(--accent-ink); }
.cal-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 22px; align-items: start; }
.cal-main { min-width: 0; }
.cal-side { position: sticky; top: 16px; }
.cal-side .card { padding: 20px; }
@media (max-width: 1000px) { .cal-layout { grid-template-columns: 1fr; } .cal-side { position: static; order: -1; } }
.week-group { margin-bottom: 22px; scroll-margin-top: 70px; }
.week-title { font-size: 1.05rem; flex-wrap: wrap; }
.week-group.is-now .task-list .row { border-color: #f3c3c7; }
.task-list .row { gap: 12px; }
.task-list .row.st-fait .row-main strong { color: var(--muted); text-decoration: line-through; text-decoration-color: #a4b4d4; }
.task-list .row.st-retard { box-shadow: inset 4px 0 0 var(--accent); }
.task-details { font-style: italic; }
.task-check { display: inline-grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 10px; border: 2px solid #b9c6e2; background: var(--white); color: transparent; cursor: pointer; padding: 0; }
.task-check .ic { width: 1.1em; height: 1.1em; }
.task-check:hover:not([disabled]) { border-color: var(--blue-2); color: #b9c6e2; }
.task-check.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.task-check[disabled], .task-check.is-auto { cursor: default; }
.task-check.is-auto:not(.on) { border-style: dashed; }
.month-card h2 { font-size: 1.05rem; margin: 0; }
.month-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.month-nav { font-size: 1.3rem; line-height: 1; padding: 2px 10px; border-radius: 8px; color: var(--navy); }
.month-nav:hover { background: var(--sky); text-decoration: none; }
table.month { width: 100%; border-collapse: collapse; table-layout: fixed; text-align: center; font-size: .86rem; font-variant-numeric: tabular-nums; }
table.month th { font-size: .72rem; color: var(--muted); font-weight: 700; padding: 4px 0; }
table.month td { padding: 2px; }
table.month td > a, table.month td > span { display: grid; place-items: center; height: 32px; border-radius: 9px; color: var(--ink); }
table.month td.out > a, table.month td.out > span { color: #b3bfd8; }
table.month td.today > a, table.month td.today > span { box-shadow: inset 0 0 0 2px var(--navy); font-weight: 800; }
table.month td.has-due > a { background: var(--sky); color: var(--blue); font-weight: 800; }
table.month td.has-late > a { background: var(--accent-soft); color: var(--accent-ink); font-weight: 800; }
table.month td > a:hover { text-decoration: none; outline: 2px solid var(--blue-2); }
.month-legend { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 10px 0 0; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.dot-due { background: var(--sky); box-shadow: inset 0 0 0 1px var(--blue-2); }
.dot-late { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); margin-left: 8px; }
.table.task-table input { width: 100%; min-width: 160px; font: inherit; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 4px; }
.table.task-table input[type=datetime-local] { min-width: 190px; }
.table.task-table tr.st-retard td:first-child { box-shadow: inset 4px 0 0 var(--accent); }
.task-actions { white-space: nowrap; }
.task-actions form { display: inline-block; margin: 2px 4px 2px 0; }
.task-overview .late-cell .tag { font-size: .85rem; }
.filters .btn.on { background: var(--navy); color: #fff; }
.filters .small { align-self: center; }
@media (max-width: 560px) {
  .task-list .row { flex-wrap: wrap; }
  .task-list .row .row-main { flex-basis: calc(100% - 60px); }
}
.cal-side input[type=date] { font: inherit; font-weight: 400; color: var(--ink); background: var(--white); border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 13px; width: 100%; }
/* Calendrier de la formation */
.table.fcal tr.fcal-matiere td { background: #f4f7fc; font-size: .9rem; }
.table.fcal tr.fcal-mod td { background: #fbfcfe; font-weight: 700; color: var(--navy); }
.table.fcal tr.is-hidden td { opacity: .55; }
.table.fcal tr.is-hidden td:last-child { opacity: 1; }
.table.fcal .row-head { align-items: center; }
.shift-form select { font: inherit; padding: 4px 6px; border: 1px solid var(--line); border-radius: 8px; }
.table.fcal input[type=checkbox] { width: auto; min-width: 0; }
.table.fcal .shift-form label { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; font-weight: 400; }
.table.fcal .shift-form input.w-sm { width: 64px; min-width: 0; padding: 4px 6px; }
.table.fcal .shift-form select { width: auto; min-width: 0; }
.table.fcal td:nth-child(2) input { min-width: 220px; }

/* ---------- Déroulé pédagogique par séance (page deroule, accueil formateur, module) ---------- */
.deroule-tools { margin: 0 0 14px; }
.sess-index { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.sess-index a { display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 6px; border-radius: 10px; background: var(--white); border: 1px solid var(--line); font-weight: 700; color: var(--navy); font-size: .88rem; }
.sess-index a.is-done { background: var(--sky); color: var(--blue); border-color: #bcd0f5; }
.sess-index a:hover { text-decoration: none; border-color: var(--blue-2); }
.sess-list { list-style: none; margin: 0; padding: 0; }
.sess { padding: 20px 22px; scroll-margin-top: 16px; }
.sess.is-done { border-left: 4px solid var(--blue-2); }
.sess-head { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.sess-n { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; flex: none; background: var(--navy); color: #fff; font-family: var(--display); font-weight: 800; font-size: 1.05rem; }
.sess.is-done .sess-n { background: var(--blue-2); }
.sess-title { flex: 1 1 260px; min-width: 0; }
.sess-title h2 { font-size: 1.08rem; margin: 0 0 4px; overflow-wrap: break-word; }
.sess-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin: 0; font-size: .88rem; color: var(--ink); }
.sess-meta .ic { width: 1em; height: 1em; vertical-align: -2px; color: var(--muted); }
.sess-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.sess-obj { margin: 12px 0 0; padding: 10px 14px; background: var(--sky-2); border-radius: 12px; font-size: .92rem; }
.sess-obj ul { margin: 4px 0 0; padding-left: 1.2em; }
.sess-obj p { margin: 2px 0 0; }
.steps { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; counter-reset: step; }
.step { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.step .pill-ic.sm { width: 32px; height: 32px; }
.step .pill-ic.sm .ic { width: 16px; height: 16px; }
.step-main { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow-wrap: break-word; }
.step-kind { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: var(--c); }
.step-note { font-size: .82rem; }
.sess-box { margin: 12px 0 0; padding: 10px 14px; border-radius: 12px; font-size: .92rem; }
.sess-box strong { display: flex; align-items: center; gap: 6px; color: var(--navy); }
.sess-box strong .ic { width: 1.1em; height: 1.1em; }
.sess-box p { margin: 4px 0 0; }
.sess-hw { background: var(--amber-bg); }
.sess-notes { background: #f4f6fb; border: 1px dashed var(--line); }
.sess-edit { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 8px; }
.sess-edit summary { cursor: pointer; font-weight: 700; color: var(--blue); font-size: .92rem; }
.sess-edit input[type=date], .sess-edit input[type=time], .sess-edit input[type=number] { font: inherit; padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--white); color: var(--ink); width: 100%; box-sizing: border-box; }
.sess-del { display: block; margin-top: 10px; }
.linkbtn.danger { color: var(--accent-ink); }
textarea.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86rem; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid3 > * { min-width: 0; }
@media (max-width: 640px) { .grid3 { grid-template-columns: 1fr; } .sess { padding: 16px; } .sess-actions { width: 100%; } }
.mcard { display: flex; flex-direction: column; gap: 6px; }
.mcard > .module-card { flex: 1; }
.mcard-links { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin: 0 4px; font-size: .88rem; font-weight: 600; }
.mcard-links .muted { font-weight: 400; }
.sess-public .row-main small { white-space: normal; }
@media print {
  .no-print, .sess-edit, .sess-actions, .sess-index, .flash { display: none !important; }
  .sess { break-inside: avoid; box-shadow: none; border: 1px solid #999; }
  .sess-n { background: #fff !important; color: #000 !important; border: 1px solid #000; }
  .step { border-color: #bbb; }
}
.mcard-links a { display: inline-flex; align-items: center; gap: 5px; }
.mcard-links .ic, .next-session .ic { width: 1em; height: 1em; vertical-align: -2px; }
.next-session { margin: 8px 0 0; color: var(--ink); font-weight: 600; }
.sess-prep { display: block; margin-top: 4px; color: var(--ink); }
.table.deroules tr.group td { background: var(--sky-2); }

/* Suivi des modifications des contenus : journal, versions, différences mot à mot */
.table.changes td.summary { min-width: 260px; max-width: 520px; font-size: .9rem; }
.table.changes tr.unseen td { background: #fffbea; }
.table td.nowrap, .nowrap { white-space: nowrap; }
.table.versions tr.original td { background: #fff8e1; }
.table.versions tr.current td { background: var(--sky); }
.table.versions tr.on td { outline: 2px solid var(--blue-2, #3b6fd8); outline-offset: -2px; }
.diff { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff; font-size: .95rem; line-height: 1.6; overflow-wrap: break-word; }
.diff p { margin: 0 0 .5em; }
.diff p:last-child { margin-bottom: 0; }
.diff ins, .diff-key ins { background: #d6f5df; color: #0b5d2a; text-decoration: none; border-radius: 3px; padding: 0 2px; }
.diff del, .diff-key del { background: #fde0de; color: #8a1c14; text-decoration: line-through; border-radius: 3px; padding: 0 2px; }
.diff .diff-skip { color: var(--muted); font-style: italic; font-size: .85rem; }
.diff .diff-chg { border-left: 3px solid #f0c24b; padding-left: 8px; }
.compare h3 { margin-top: 1.2em; }
.preview-box { max-height: 520px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: .92rem; }
.snapshot-form input { width: auto; }
.recent-changes { margin-top: 22px; }

/* ---------- Mention obligatoire de la certification (Bachelor CMDE) ---------- */
.cert-mention { font-size: .8rem; line-height: 1.45; color: var(--muted); max-width: 90ch; margin: 8px 0 0; overflow-wrap: break-word; }
.hero .cert-mention { color: rgba(255, 255, 255, .78); }
.login-side .cert-mention { color: inherit; opacity: .85; }

/* ---------- Ma formation en un clin d'œil ---------- */
.fx-cert { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-weight: 600; color: var(--ink); margin: 6px 0 0; }
.fx-cert .ic { width: 18px; height: 18px; color: var(--accent); }
.fx-legend { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.fx-st { display: inline-flex; align-items: center; font-size: .74rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; background: #eef1f7; color: var(--muted); }
.fx-encours { background: var(--sky); color: var(--blue); }
.fx-termine { background: #e3f4ea; color: #1e6b3d; }
.fx-reussi { background: #fff4d1; color: #8a5a00; }
.fx-blocs { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.fx-bloc { background: var(--white); border: 1px solid var(--line); border-left: 6px solid var(--c); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; min-width: 0; }
.fx-bloc.is-future { opacity: .7; }
.fx-bloc-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-bottom: 12px; }
.fx-bloc-head h2 { margin: 0; font-size: 1.12rem; flex: 1 1 320px; min-width: 0; }
.fx-num { font-family: var(--display); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--c2); background: var(--c-soft); padding: 4px 10px; border-radius: 999px; }
.fx-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 300px); gap: 18px; align-items: start; }
.fx-mat + .fx-mat { margin-top: 12px; }
.fx-mat h3 { font-size: .98rem; margin: 0 0 6px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.fx-kind { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.fx-chaps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.fx-chap { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 7px 10px; border-radius: 12px; background: var(--sky-2); min-width: 0; }
.fx-chap a, .fx-chap .fx-t { flex: 1 1 220px; min-width: 0; font-weight: 600; overflow-wrap: break-word; }
.fx-chap.is-future { background: #f4f5f8; color: #8a93a8; }
.fx-chap.is-future .fx-t { font-weight: 500; }
.fx-idx { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; font-size: .75rem; font-weight: 700; background: var(--c-soft); color: var(--c2); }
.fx-eval { background: var(--sky-2); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; min-width: 0; }
.fx-eval h3 { font-size: .92rem; margin: 0 0 8px; display: flex; gap: 6px; align-items: center; }
.fx-dates { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fx-dates li { display: grid; gap: 2px; font-size: .86rem; }
.fx-dates small { color: var(--muted); overflow-wrap: break-word; }
.fx-modal { color: var(--muted); margin: 10px 0 0; overflow-wrap: break-word; }
.fx-comp { margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 8px; }
.fx-comp summary { cursor: pointer; font-weight: 700; color: var(--blue); }
.fx-comp ul { margin: 8px 0 0; padding-left: 1.1em; display: grid; gap: 6px; font-size: .88rem; }
@media (max-width: 760px) {
  .fx-body { grid-template-columns: 1fr; }
  .fx-bloc { padding: 14px; }
}
@media print {
  .no-print, .fx-legend { display: none !important; }
  .fx-bloc { box-shadow: none; break-inside: avoid-page; border-color: #999; }
  .fx-chap { background: none; padding: 2px 0; }
  .fx-eval { background: none; }
  .fx-comp > summary { list-style: none; }
}

/* Aucun mot coupé par le navigateur : la césure automatique est désactivée sur tout le site */
html, body { hyphens: manual; -webkit-hyphens: manual; }

/* Petits écrans : plus de largeur utile dans les listes d'étapes et les encadrés, pour qu'aucun mot ne soit coupé */
@media (max-width: 520px) {
  .c-steps-list > li { padding: 10px 10px 10px 44px; }
  .c-steps-list > li::before { left: 8px; top: 10px; width: 28px; height: 28px; font-size: .9rem; }
  .c-box { padding: 12px 12px; }
  .course { font-size: .98rem; }
}

/* ---------- v1.9 : publication, cartes des formations, temps de connexion, travaux demandés ---------- */
/* Boutons Publier (vert) / Dépublier (contour gris), alignés à droite de leur ligne */
.btn-pub { background: #1f8a4c; color: #fff; box-shadow: 0 3px 10px rgba(31, 138, 76, .25); }
.btn-pub:hover { background: #166b3a; }
.btn-unpub { background: var(--white); color: var(--muted); box-shadow: inset 0 0 0 1.5px #c7d0e2; }
.btn-unpub:hover { background: #eef1f7; color: var(--ink); }
.btn.btn-sm.btn-pub, .btn.btn-sm.btn-unpub { padding: 5px 12px; font-size: .82rem; }
.mod-admin-head .pub-form, .res-admin .pub-form { order: 10; margin-left: auto; }
.res-admin .pub-form ~ * { order: 9; }
.mat-admin-head .pub-form { margin-left: auto; }

/* Tableau de bord de la direction : une carte par formation */
/* Cartes des formations (tableau de bord de la direction, v1.11) : grille 3 / 2 / 1 colonnes, bandeau coloré par formation */
.prog-card.pc-ma { --pc: #2f6fdb; --pc-soft: #e6efff; }
.prog-card.pc-md { --pc: #5b5ef0; --pc-soft: #ececff; }
.prog-card.pc-mse { --pc: #8b5cf6; --pc-soft: #f1ebff; }
.prog-card.pc-cmde { --pc: #0e86b8; --pc-soft: #e3f4fc; }
.prog-card.pc-rda { --pc: #b4540a; --pc-soft: #fdf0e3; }
.prog-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; align-items: stretch; }
@media (max-width: 1240px) { .prog-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .prog-cards { grid-template-columns: minmax(0, 1fr); } }
.prog-card { --pc: var(--blue-2); --pc-soft: var(--sky); margin: 0; display: flex; flex-direction: column; gap: 10px; padding: 18px 16px 12px; position: relative; overflow: hidden; border-top: 6px solid var(--pc); min-width: 0; }
.prog-card-head { display: grid; grid-template-columns: auto 1fr; gap: 8px 10px; align-items: center; }
.prog-card-head h3 { grid-column: 1 / -1; }
.prog-card-head h3 { margin: 0; font-size: .95rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }
.prog-code { display: inline-grid; place-items: center; min-width: 48px; height: 32px; padding: 0 10px; border-radius: 999px; background: var(--pc); color: #fff; font-family: var(--display); font-weight: 800; font-size: .82rem; letter-spacing: .03em; }
.pc-state { justify-self: end; }
.pc-figs { margin: 0; font-size: .86rem; color: var(--ink); font-weight: 600; }
.pc-people { margin: 0; font-size: .84rem; color: var(--muted); }
.pc-people .is-strong { color: var(--ink); font-weight: 700; }
.pc-people .is-warn { color: var(--amber); font-weight: 800; }
.pc-pub { display: flex; align-items: center; gap: 10px; }
.pc-pub progress { flex: 1; min-width: 0; height: 8px; appearance: none; -webkit-appearance: none; border: 0; border-radius: 999px; background: var(--pc-soft); overflow: hidden; }
.pc-pub progress::-webkit-progress-bar { background: var(--pc-soft); border-radius: 999px; }
.pc-pub progress::-webkit-progress-value { background: var(--pc); border-radius: 999px; }
.pc-pub progress::-moz-progress-bar { background: var(--pc); border-radius: 999px; }
.pc-pub small { flex: none; font-size: .75rem; color: var(--muted); font-weight: 700; }
.prog-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.prog-links a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 2px 5px; border-radius: 10px; color: var(--ink); text-decoration: none; min-width: 0; }
.prog-links a .ic { width: 20px; height: 20px; color: var(--pc); }
.prog-links a span { font-size: .7rem; font-weight: 600; line-height: 1.1; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prog-links a:hover, .prog-links a:focus-visible { background: var(--pc-soft); }
.prog-links a:focus-visible { outline: 2px solid var(--pc); outline-offset: 1px; }

/* Temps de connexion */
.time-table th a { color: inherit; }
.time-days .time-bar { flex: 0 0 34%; }
.time-days progress { width: 100%; height: 8px; accent-color: var(--blue-2); }
.time-stats .stat span:last-child { font-size: .8rem; }

/* Travaux demandés */
.travaux-demandes { margin-bottom: 22px; }
.travaux-demandes .section-title { margin-top: 0; }
.travail-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.student-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 14px; margin: 6px 0 4px 26px; }
.answer-editor .ce-visual { min-height: 180px; }
.label-like { font-weight: 600; margin: 0 0 4px; }
.mod-admin-head .mod-admin-title { flex: 1 1 200px; min-width: 0; }
.mod-admin-head .grow { flex: 0 1 0; }

/* Suivi détaillé (v1.10) : dossier de suivi, graphiques SVG, journal */
.dossier-stats .stat span:last-child { font-size: .8rem; }
.dossier-stats .stat strong { font-size: 1.35rem; }
.chart-days, .chart-split { width: 100%; height: auto; display: block; }
.chart-days .bar { fill: var(--blue-2); }
.chart-days .bar:hover { fill: var(--navy); }
.chart-days .axis { stroke: var(--line); stroke-width: 1; }
.chart-days .lbl, .chart-split text { font-size: 11px; fill: var(--muted); font-family: var(--body); }
.chart-days .lbl { text-anchor: middle; }
.chart-days .lbl.max { text-anchor: start; }
.chart-split .lbl-l { font-size: 12px; fill: var(--ink); }
.chart-split .track { fill: var(--sky-2); }
.chart-split .seg { fill: var(--c); }
.chart-split .seg-hors { fill: #aab6cf; }
.dossier-bloc { border: 1px solid var(--line); border-left: 4px solid var(--c); border-radius: 14px; margin: 0 0 12px; background: var(--white); }
.dossier-bloc > summary { cursor: pointer; padding: 12px 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dossier-bloc > summary strong { color: var(--c2); font-family: var(--display); }
.dossier-bloc .dossier-tot { margin-left: auto; display: flex; flex-wrap: wrap; gap: 6px; }
.dossier-bloc .table-wrap { margin: 0 12px 12px; }
.dossier-mods tfoot th { background: var(--sky-2); color: var(--navy); }
.dossier-mods tr.is-current td { background: var(--sky); }
.journal-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.journal-filters a.tag:hover { background: var(--sky); color: var(--blue); }
.dossier-table td.c-pct .prog { min-width: 120px; }
.res-track td small { line-height: 1.35; }
@media (max-width: 640px) { .dossier-bloc .dossier-tot { margin-left: 0; } .dossier-bloc .table-wrap { margin: 0 6px 8px; } }
.dossier-mods td:first-child { min-width: 220px; }
.dossier-mods td.m-quiz, .dossier-mods td.m-subs { min-width: 110px; }

/* « Voir comme cet étudiant » (v1.11) : bandeau ambre fixe en haut de toutes les pages, mode lecture */
body.is-impersonating { --imp-h: 48px; padding-top: var(--imp-h); }
.imp-bar { position: fixed; z-index: 50; top: 0; left: 0; right: 0; min-height: var(--imp-h, 48px); display: flex; align-items: center; justify-content: center; gap: 8px 16px; flex-wrap: wrap; padding: 6px 16px; background: #ffb020; color: #2b1700; border-bottom: 2px solid #b36b00; box-shadow: 0 4px 14px rgba(80, 45, 0, .25); font-size: .92rem; }
.imp-bar .imp-txt { min-width: 0; line-height: 1.35; }
.imp-bar .imp-txt .ic { width: 1.2em; height: 1.2em; vertical-align: -.25em; margin-right: 4px; }
.imp-bar strong { font-weight: 800; }
.imp-short { display: none; }
@media (max-width: 560px) { .imp-long { display: none; } .imp-short { display: inline; } }
.imp-form { margin: 0; }
.imp-back { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 999px; padding: 7px 14px; background: #2b1700; color: #fff; font: inherit; font-weight: 700; font-size: .86rem; cursor: pointer; white-space: nowrap; }
.imp-back:hover, .imp-back:focus-visible { background: #4a2a00; outline: 2px solid #2b1700; outline-offset: 2px; }
.imp-back .ic { width: 1.05em; height: 1.05em; }
body.is-impersonating .side { top: var(--imp-h); height: calc(100vh - var(--imp-h)); }
@media (max-width: 960px) {
  body.is-impersonating { --imp-h: 56px; }
  .imp-bar { flex-wrap: nowrap; padding: 6px 10px; }
  .imp-bar .imp-txt { flex: 1; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; }
  .imp-back { padding: 7px 11px; font-size: .8rem; flex: none; }
  body.is-impersonating .side { top: var(--imp-h); bottom: 0; height: auto; }
  body.is-impersonating .mtop { top: var(--imp-h); }
  .imp-bar { font-size: .84rem; justify-content: space-between; }
}
.btn-imp { background: #fff3dd; color: #6b3d00; border: 1px solid #f0c27a; box-shadow: none; }
.btn-imp:hover { background: #ffe6b8; color: #4a2a00; }
.btn-imp.is-compact { padding: 6px 8px; }
.btn-imp .ic { width: 1.1em; height: 1.1em; }
@media print { .imp-bar { display: none !important; } body.is-impersonating { padding-top: 0; } }
.imp-cta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 16px; padding: 12px; border-radius: 14px; background: #fffaf0; border: 1px solid #f6dca8; }
.imp-cta small { flex: 1 1 220px; min-width: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.color-field { display: inline-flex; align-items: center; gap: 10px; }
.color-field input[type=color] { width: 56px; height: 36px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; }

/* =====================================================================
   v1.18 — Page Programme (un bloc, un module à la fois), catégories de ressources repliables,
   recherche « Aller à… », barre fixe de la page du module, message discret (.toast)
   ===================================================================== */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.js .js-hide { display: none !important; }
.wrap:has(> .pg) { max-width: 1440px; }

/* Couleurs des catégories (pastilles, en-têtes) : texte marine sur fond clair (AA), icône colorée */
.k-cours { --c: #1d4fb8; --c-soft: #e6efff; }
.k-supports { --c: #0f6fa8; --c-soft: #e3f4fc; }
.k-exercices { --c: #a35f00; --c-soft: #fff1d6; }
.k-corriges { --c: #17784a; --c-soft: #e5f5ec; }
.k-qcm { --c: #4b4ed8; --c-soft: #ececff; }
.k-projets { --c: #7a46e0; --c-soft: #f1ebff; }
.k-examen { --c: #c0392f; --c-soft: #fdeceb; }
.k-seances { --c: #5e6e90; --c-soft: #eef1f7; }

/* Recherche (page Programme, page du module) */
.srch { position: relative; display: flex; gap: 8px; align-items: center; margin: 0 0 14px; max-width: 620px; }
.srch-box { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; background: var(--white); border: 1.5px solid var(--line); border-radius: 12px; padding: 0 10px 0 12px; }
.srch-box:focus-within { border-color: var(--blue-2); box-shadow: 0 0 0 4px rgba(47, 111, 219, .14); }
.srch-box > .ic { width: 18px; height: 18px; color: var(--muted); flex: none; }
.srch-box input[type=search] { border: 0; border-radius: 0; padding: 10px 0; background: transparent; min-width: 0; flex: 1; }
.srch-box input[type=search]:focus { box-shadow: none; }
.srch-kbd { font: 600 .72rem var(--body); color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; white-space: nowrap; }
.srch-hits { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); max-height: min(62vh, 480px); overflow: auto; overscroll-behavior: contain; }
.srch-group-h { padding: 9px 12px 3px; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.srch-hit { display: flex; align-items: center; gap: 10px; padding: 8px 12px; color: var(--ink); border-top: 1px solid #edf1f9; text-decoration: none !important; font-size: .92rem; }
.srch-hit:hover, .srch-hit.on { background: var(--sky); }
.srch-hit .pill-ic.sm { width: 26px; height: 26px; }
.srch-hit-t { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.srch-hit small { color: var(--muted); white-space: nowrap; }
.srch-hit.is-mod .srch-hit-t { font-weight: 700; color: var(--navy); }
.srch-empty, .srch-more { display: block; padding: 11px 12px; color: var(--muted); font-size: .9rem; border-top: 1px solid #edf1f9; }
.srch-more { color: var(--blue); font-weight: 600; }
.srch-hit.is-notion { padding-left: 34px; }
.srch-hit.is-notion .srch-hit-t { font-weight: 600; }
.srch-hit .srch-snip { display: block; font-weight: 400; font-size: .82rem; color: var(--muted); margin-top: 2px; }
.srch-snip mark, .srch-list mark, .srch-hit-t mark { background: var(--amber-bg, #fff3d1); color: inherit; padding: 0 2px; border-radius: 3px; }
.srch-page { max-width: 820px; flex-wrap: wrap; }
.srch-prog { max-width: 260px; }
.srch-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 14px; }
.srch-tabs .chip { text-decoration: none; cursor: pointer; }
.srch-tabs .chip.on { background: var(--navy); color: #fff; }
.srch-tabs .chip b { font-weight: 800; }
.srch-it { display: flex; gap: 10px; align-items: flex-start; width: 100%; }
.srch-it-b { flex: 1; min-width: 0; }
.srch-it-b .srch-snip { margin: 2px 0 0; font-size: .88rem; color: var(--muted); }
.srch-secs { list-style: none; margin: 6px 0 2px; padding: 0 0 0 12px; border-left: 2px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.srch-list .srch-secs li { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; font-size: .92rem; }
.srch-secs a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.srch-secs a .ic { width: 14px; height: 14px; color: var(--muted); }
.srch-secs .srch-snip { font-size: .84rem; }
/* Palette de recherche globale (v1.23) */
.gs-open { display: flex; align-items: center; gap: 10px; width: 100%; margin: 0 0 8px; padding: 9px 12px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 12px; background: rgba(255, 255, 255, .07); color: #c9d6f2; font: inherit; font-size: .9rem; cursor: pointer; text-align: left; }
.gs-open:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.gs-open .ic { width: 1.1em; height: 1.1em; flex: none; }
.gs-open span { flex: 1; }
.gs-open .srch-kbd { color: #a9bde6; border-color: rgba(255, 255, 255, .2); }
.gs-open-m { display: none; width: auto; margin: 0 0 0 auto; padding: 8px 10px; }
.gs { position: fixed; inset: 0; z-index: 60; }
.gs-scrim { position: absolute; inset: 0; background: rgba(8, 15, 35, .55); }
.gs-dlg { position: relative; width: min(760px, calc(100% - 24px)); margin: 10vh auto 0; background: var(--white); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 14px 16px 12px; }
.gs-form { max-width: none; margin: 0; }
.gs-form .srch-box input[type=search] { font-size: 1.05rem; padding: 11px 0; }
.gs-x { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 12px; background: var(--sky); color: var(--muted); cursor: pointer; flex: none; }
.gs-x .ic { width: 18px; height: 18px; }
.gs-form { flex-wrap: wrap; }
.gs-hits { position: static; flex-basis: 100%; margin-top: 10px; max-height: min(62vh, 560px); border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; }
.gs-hint { margin: 10px 2px 0; font-size: .78rem; color: var(--muted); }
.gs-hint kbd { font: 600 .72rem var(--body); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; }
body.gs-on { overflow: hidden; }
@media (max-width: 960px) {
  .gs-open-m { display: inline-flex; }
  .gs-dlg { margin-top: calc(8px + env(safe-area-inset-top, 0px)); padding: 10px 10px 8px; }
  .gs-hint { display: none; }
  .srch-prog { max-width: none; width: 100%; }
}
.srch-results { display: flex; flex-direction: column; gap: 4px; }
.srch-group { padding: 18px 22px; margin-bottom: 12px; }
.srch-group h2 { font-size: 1.05rem; margin: 0 0 8px; }
.srch-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.srch-list li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* Catégories repliables (page Programme) */
.pg-cat-head { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; padding: 3px 12px 3px 3px; background: var(--c-soft); }
.pg-cat-toggle { flex: 1 1 260px; display: flex; align-items: center; gap: 10px; min-width: 0; padding: 7px 8px; border: 0; border-radius: 10px; background: transparent; color: var(--navy); font: inherit; text-align: left; cursor: pointer; }
.pg-cat-toggle:hover { background: rgba(255, 255, 255, .55); }
.pg-cat-toggle:focus-visible { outline: 3px solid var(--blue-2); outline-offset: 1px; }
.pg-cat-name { font-weight: 800; font-size: .95rem; }
.pg-cat .pill-ic { background: var(--white); color: var(--c); }
.pg-cat-count { background: var(--white); color: var(--ink); }
.chev { display: inline-grid; place-items: center; flex: none; }
.chev .ic { width: 16px; height: 16px; color: var(--muted); transition: transform .15s; }
.pg-cat-toggle[aria-expanded="true"] .chev .ic { transform: rotate(90deg); }
.pg-cat-actions { display: inline-flex; gap: 10px; }
.pg-res-t { flex: 1 1 220px; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.move-none { width: 55px; }
.pg-prevnext { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 16px 18px 4px; }
.hl { animation: hl 2s ease-out; }
@keyframes hl { 0%, 40% { background: #fff4d1; } 100% { background: transparent; } }

/* Page du module : barre fixe (fil d'Ariane, précédent / suivant, recherche) et catégories */
.mod-bar { position: sticky; top: var(--mtop-h, 0px); z-index: 8; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: -12px 0 16px; padding: 10px 0; background: rgba(243, 246, 252, .96); border-bottom: 1px solid var(--line); }
.mod-bar .crumbs { flex: 1 1 260px; min-width: 0; margin: 0; }
.mod-bar-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.mod-bar .srch { flex: 1 1 260px; max-width: 360px; margin: 0; }
.mod-bar .srch-box input[type=search] { padding: 7px 0; }
.cat-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 26px 0 0; }
.res-section.pg-cat .cat-title { margin: 22px 0 12px; font-size: 1.12rem; }
.res-section.pg-cat .pg-cat-toggle { flex: 1; padding: 6px 8px 6px 0; font-family: var(--display); font-weight: 700; color: var(--navy); }
.res-section.pg-cat .pg-cat-toggle:hover { background: transparent; color: var(--blue); }
.res-section.pg-cat .pg-cat-name { font-weight: 700; font-size: 1.12rem; }
.res-section.pg-cat .pill-ic { width: 38px; height: 38px; background: var(--c-soft); }
.res-section.pg-cat .pg-cat-count { background: var(--c-soft); font-family: var(--body); }
.res-section.pg-cat .row .pill-ic { background: var(--c-soft); color: var(--c); }

/* Message discret après une action en arrière-plan */
.toast { position: fixed; left: 50%; bottom: 22px; z-index: 60; transform: translateX(-50%); max-width: calc(100vw - 32px); padding: 11px 18px; border-radius: 12px; background: var(--navy); color: #fff; font-size: .92rem; box-shadow: var(--shadow-lg); }
.toast.err { background: var(--accent-ink); }

@media (max-width: 600px) {
  .srch-kbd { display: none; }
  .mod-bar-nav span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .mod-bar .srch { max-width: none; flex-basis: 100%; }
}
@media print { .mod-bar, .pg-search, .toast, .cat-tools { display: none !important; } .pg-cat-body[hidden] { display: block !important; } }

/* ---------- v1.19 — Mode lecture des cours longs : barre fixe, sommaire à gauche, confort de lecture ---------- */
.wrap:has(> .reader) { max-width: 1320px; }
.read-bar { gap: 8px 12px; }
.read-bar .crumbs { flex: 1 1 280px; flex-wrap: nowrap; overflow: hidden; }
.read-bar .crumbs a { white-space: nowrap; }
.read-bar .crumb-cur { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); font-weight: 600; }
.read-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.read-actions form.inline { display: inline-flex; margin: 0; }
.btn.dl .ic { transform: rotate(180deg); }
.reader { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 26px; align-items: start; }
.reader.toc-off { grid-template-columns: minmax(0, 1fr); }
.reader.toc-off .course-toc { display: none; }
.reader > .res-detail { min-width: 0; max-width: 900px; width: 100%; margin-left: auto; margin-right: auto; }
.course-toc { position: sticky; top: calc(var(--mtop-h, 0px) + var(--read-bar-h, 58px) + 10px); max-height: calc(100vh - var(--mtop-h, 0px) - var(--read-bar-h, 58px) - 22px); overflow-y: auto; overscroll-behavior: contain;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 12px 12px; font-size: .9rem; scrollbar-width: thin; }
.toc-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.toc-kicker { margin: 0; text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; font-weight: 700; color: var(--accent-ink); }
.toc-close { display: none; border: 0; background: var(--sky); color: var(--navy); width: 36px; height: 36px; border-radius: 10px; font-size: 1.05rem; cursor: pointer; }
.toc-title { margin: 4px 0 10px; font-family: var(--display); font-weight: 700; color: var(--navy); line-height: 1.3; font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.toc-prog { display: flex; align-items: center; gap: 8px; }
.toc-bar { flex: 1; height: 8px; border-radius: 999px; background: var(--sky); overflow: hidden; }
.toc-bar span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--blue-2), var(--blue)); transform-origin: left center; transform: scaleX(0); transition: transform .15s linear; }
.toc-pct { font-size: .78rem; font-weight: 700; color: var(--blue); min-width: 3.2em; text-align: right; font-variant-numeric: tabular-nums; }
.toc-time { margin: 8px 0 10px; font-size: .8rem; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.toc-list, .toc-sub { list-style: none; margin: 0; padding: 0; }
.toc-list { border-top: 1px solid var(--line); padding-top: 8px; }
.toc-row { display: flex; align-items: flex-start; gap: 2px; }
.toc-row > a { flex: 1; }
.course-toc a[data-toc-link] { display: flex; gap: 6px; padding: 6px 8px; border-radius: 9px; color: var(--ink); line-height: 1.35; text-decoration: none; border-left: 3px solid transparent; }
.course-toc a[data-toc-link]:hover { background: var(--sky-2); color: var(--blue); }
.course-toc a[data-toc-link][aria-current="true"] { background: var(--sky); color: var(--blue); font-weight: 700; border-left-color: var(--blue); }
.toc-item > .toc-row > a { font-weight: 600; }
.toc-item.is-in > .toc-row > a { color: var(--blue); }
.toc-n { flex: none; color: var(--blue); font-weight: 700; font-variant-numeric: tabular-nums; }
.toc-sub { margin: 0 0 4px 14px; border-left: 1px solid var(--line); padding-left: 4px; }
.toc-sub a[data-toc-link] { font-size: .85rem; padding: 4px 8px; }
.toc-sub[hidden] { display: none; }
.toc-tog { flex: none; border: 0; background: none; width: 30px; height: 30px; border-radius: 8px; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.toc-tog:hover { background: var(--sky-2); color: var(--blue); }
.toc-tog .ic { transition: transform .15s; }
.toc-tog[aria-expanded="true"] .ic { transform: rotate(90deg); }
.toc-foot { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 10px; display: grid; gap: 6px; }
.toc-foot a { display: grid; gap: 1px; padding: 7px 9px; border-radius: 10px; background: var(--sky-2); color: var(--ink); text-decoration: none; font-size: .84rem; line-height: 1.3; }
.toc-foot a small { color: var(--blue); font-weight: 700; font-size: .74rem; }
.toc-foot a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toc-foot a:hover { background: var(--sky); }
.toc-scrim { position: fixed; inset: 0; background: rgba(8, 15, 35, .5); z-index: 40; }
/* Colonne de lecture : ~75 caractères par ligne, interligne confortable */
.course-read { max-width: 820px; margin: 0 auto; font-size: 1.04rem; line-height: 1.75; }
.course-read p, .course-read li { max-width: 72ch; }
.course-read h2, .course-read h3 { scroll-margin-top: calc(var(--mtop-h, 0px) + var(--read-bar-h, 58px) + 14px); position: relative; }
.course-read h2[tabindex="-1"]:focus, .course-read h3[tabindex="-1"]:focus { outline: none; }
.course-read h2[tabindex="-1"]:focus-visible, .course-read h3[tabindex="-1"]:focus-visible { outline: 3px solid rgba(47, 111, 219, .45); outline-offset: 4px; border-radius: 4px; }
.h-anchor { display: inline-flex; align-items: center; margin-left: 6px; color: var(--muted); opacity: 0; transition: opacity .15s; text-decoration: none !important; font-size: .8em; }
.course h2:hover .h-anchor, .course h3:hover .h-anchor, .h-anchor:focus-visible { opacity: 1; }
.h-anchor:hover { color: var(--blue); }
.read-resume { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; background: var(--sky); border: 1px solid #c6d7f7; border-radius: 14px; padding: 10px 14px; margin: 0 0 16px; color: var(--navy); font-weight: 600; }
.read-resume[hidden] { display: none; }
.read-fab { position: fixed; right: 18px; bottom: 18px; z-index: 30; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.read-fab[hidden] { display: none; }
.read-fab .btn { box-shadow: var(--shadow-lg); }
.read-fab [data-read-top].off, .read-fab [data-read-next].off { display: none; }
@media (max-width: 900px) {
  .reader { display: block; }
  .reader.toc-off .course-toc { display: block; }
  .course-toc { position: fixed; z-index: 41; top: 0; bottom: 0; left: 0; width: min(88vw, 340px); max-height: none; border-radius: 0 var(--radius) var(--radius) 0; padding-top: calc(16px + env(safe-area-inset-top, 0px));
    transform: translateX(-105%); visibility: hidden; transition: transform .22s ease, visibility 0s linear .22s; }
  .course-toc.open { transform: none; visibility: visible; transition: transform .22s ease; box-shadow: var(--shadow-lg); }
  .toc-close { display: inline-flex; align-items: center; justify-content: center; }
  .course-toc a[data-toc-link] { padding-top: 8px; padding-bottom: 8px; }
  .reader > .res-detail { max-width: none; }
}
@media (max-width: 600px) {
  .read-bar .crumbs { flex-basis: calc(100% - 140px); }
  .read-actions { flex-basis: 100%; }
  .read-actions .btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .read-actions .btn { padding: 7px 10px; }
  .read-fab { right: 12px; bottom: 12px; }
  .read-fab .btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .read-fab .btn { width: 44px; height: 44px; padding: 0; border-radius: 50%; font-size: 1.1rem; }
  .course-read { font-size: 1rem; line-height: 1.7; }
}
@media (prefers-reduced-motion: reduce) { .course-toc, .toc-bar span, .toc-tog .ic { transition: none !important; } }
@media print {
  .course-toc, .toc-scrim, .read-fab, .read-resume, .h-anchor, .read-bar { display: none !important; }
  .reader { display: block; }
  .reader > .res-detail { max-width: none; }
  .course-read { max-width: none; font-size: 11pt; line-height: 1.55; }
  .course-read p, .course-read li { max-width: none; }
  .course-read h2 { break-after: avoid; }
}

/* =====================================================================
   v1.20 — Explorateur en trois colonnes (page Programme, vue bloc étudiant / formateur), interrupteurs Publié / Brouillon,
   filtres et sélection multiple, espace formateur « Mes cours », ressource commune (formations concernées)
   ===================================================================== */
.tag-common { background: #ececff; color: #3730a3; }
.tag-cur { background: #fff1d6; color: #7a4700; }
.pf { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 22px; padding: 0 7px; border-radius: 6px; font: 800 .72rem var(--body); color: #fff; letter-spacing: .02em; }
.pf-ma { background: #1d4fb8; } .pf-md { background: #4338ca; } .pf-mse { background: #6d28d9; } .pf-cmde { background: #0b5f8f; } .pf-rda { background: #8a4b00; } .pf-x { background: var(--muted); }

/* Interrupteur (role="switch") : vert = publié, gris = brouillon ; cible tactile de 44 px par la marge du formulaire */
.sw { position: relative; width: 40px; height: 24px; flex: none; border: 0; border-radius: 999px; background: #8f9bb3; cursor: pointer; padding: 0; transition: background .15s; vertical-align: middle; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(12, 24, 56, .35); transition: left .15s; }
.sw[aria-checked="true"] { background: #1a7f47; }
.sw[aria-checked="true"]::after { left: 19px; }
.sw:hover { filter: brightness(.92); }
.sw:focus-visible { outline: 3px solid rgba(47, 111, 219, .55); outline-offset: 2px; }
.sw:disabled { opacity: .55; cursor: progress; }
.sw-form { display: inline-flex; align-items: center; padding: 10px 2px; margin: -10px 0; }
@media (prefers-reduced-motion: reduce) { .sw, .sw::after { transition: none; } }

progress.xp-prog { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 5px; border: 0; border-radius: 999px; background: #dfe6f4; color: var(--blue); overflow: hidden; }
progress.xp-prog::-webkit-progress-bar { background: #dfe6f4; border-radius: 999px; }
progress.xp-prog::-webkit-progress-value { background: var(--blue); border-radius: 999px; }
progress.xp-prog::-moz-progress-bar { background: var(--blue); border-radius: 999px; }

/* Structure : hauteur de la fenêtre, seules les colonnes défilent (bureau) */
.xp-grid { display: grid; grid-template-columns: 236px 330px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.xp-col { min-width: 0; min-height: 0; }
.xp-c1 { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: 4px; padding: 12px 8px 12px 0; background: #eef3fd; border-right: 1px solid var(--line); overflow-y: auto; overscroll-behavior: contain; }
.xp .pg-bloc { display: contents; }
.xp .pg-bloc[hidden] { display: none !important; }
.xp-c2 { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: var(--white); }
.xp-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.xp-c3 { grid-column: 3; grid-row: 1; overflow-y: auto; overscroll-behavior: contain; background: #f8faff; }
.xp-h { margin: 2px 16px 6px; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 800; }
@media (min-width: 901px) {
  .main:has(.xp) { height: 100vh; }
  .main:has(.xp) > .foot { display: none; }
  .wrap:has(> .xp) { max-width: none; display: flex; flex-direction: column; min-height: 0; padding: 18px 22px 14px; }
  .xp { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
  .xp-grid { flex: 1 1 0; min-height: 440px; }
  body.is-impersonating .main:has(.xp) { height: calc(100vh - 46px); }
}
@media (min-width: 901px) and (max-width: 1280px) { .xp-grid { grid-template-columns: 200px 270px minmax(0, 1fr); } }

/* Colonne 1 : blocs (vignette, numéro, titre court, compteur, progression) */
.xp-bloc { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; align-items: start; padding: 10px 12px; border-left: 4px solid transparent; border-radius: 0 12px 12px 0; color: var(--ink); text-decoration: none !important; }
a.xp-bloc:hover { background: #e3ebfb; }
.xp-bloc.on { background: var(--white); border-left-color: var(--blue); box-shadow: 0 4px 14px rgba(19, 38, 79, .08); }
.xp-bloc.lock { opacity: .62; cursor: not-allowed; filter: grayscale(.6); }
.xp-thumb { width: 44px; height: 44px; object-fit: cover; border-radius: 10px; background: var(--sky); display: block; }
.xp-thumb.sm { width: 38px; height: 38px; border-radius: 9px; }
.xp-bloc-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.xp-bloc-l { display: flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 700; color: var(--muted); flex-wrap: wrap; }
.xp-bloc-l .tag { padding: 1px 6px; font-size: .68rem; }
.xp-bloc strong, .xp-bloc .pg-tab-s { font: 700 .86rem/1.25 var(--body); color: var(--navy); overflow-wrap: anywhere; }
.xp-bloc .pg-tab-count, .xp-sub { font-size: .74rem; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.pg-num { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; flex: none; background: var(--navy); color: #fff; font: 800 .7rem var(--display); }
.xp-keys { margin: auto 12px 0 16px; padding-top: 10px; font-size: .74rem; color: var(--muted); }
.xp-keys kbd, .xp kbd { font: 600 .7rem var(--body); border: 1px solid #c9d3e6; border-radius: 5px; padding: 1px 5px; background: #fff; color: var(--muted); }
.xp-excl { margin: 12px 8px 0 12px; padding: 12px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.xp-excl h2 { font-size: .9rem; margin: 0 0 4px; }
.xp-excl .list { gap: 6px; } .xp-excl .list .row { padding: 8px 10px; border-radius: 10px; font-size: .85rem; }

/* Colonne 2 : en-tête du bloc et modules */
.xp-head { padding: 12px 14px; border-bottom: 1px solid #edf1f9; }
.xp-head .eyebrow { margin-bottom: 2px; }
.xp-head h1, .xp-head h2 { font-size: .98rem; line-height: 1.3; margin: 0; }
.xp-head h2.title-long, .xp-head h1.title-long { font-size: .9rem; }
.xp-head .small { margin: 4px 0 0; font-size: .8rem; }
.xp-head-actions { margin-top: 8px; gap: 6px; }
.xp-head-actions .btn-sm { padding: 5px 10px; font-size: .8rem; }
.xp-head-actions form.inline { display: inline-flex; }
.xp-c2 .mat-admin-head { margin: 10px 10px 0; padding: 6px 4px; font-size: .84rem; gap: 6px; }
.xp-c2 .mat-admin-head .btn { padding: 4px 9px; font-size: .78rem; }
.xp-mod { position: relative; display: flex; align-items: center; gap: 6px; padding: 0 8px 0 0; border-top: 1px solid #edf1f9; }
.xp-mod:hover { background: #f3f6fc; }
.xp-mod.on { background: #eef3fd; box-shadow: inset 3px 0 0 var(--blue); }
.xp-mod-link { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 9px; padding: 9px 4px 9px 12px; color: var(--ink); text-decoration: none !important; }
.xp-mod.on .pg-num { background: var(--blue); }
.xp-mod.is-draft .xp-thumb { filter: grayscale(.7); opacity: .8; }
.pg-mod-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pg-mod-t { font-weight: 700; font-size: .84rem; line-height: 1.28; color: var(--navy); overflow-wrap: anywhere; }
.pg-mod-count { font-size: .74rem; color: var(--muted); }
.xp-mod .move { flex-direction: column; gap: 2px; opacity: 0; transition: opacity .12s; }
.xp-mod:hover .move, .xp-mod:focus-within .move, .xp-row:hover .move, .xp-row:focus-within .move { opacity: 1; }
.xp-mod .iconbtn { width: 22px; height: 18px; font-size: .7rem; line-height: 1; }
@media (hover: none) { .xp-mod .move, .xp-row .move { opacity: 1; } }

/* Colonne 3 : module (bandeau, en-tête, filtres, sélection, ressources) */
.xp-banner { height: 112px; overflow: hidden; background: linear-gradient(135deg, var(--c), var(--c2)); }
.xp-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pg-detail .mod-admin { border: 0; border-radius: 0; margin: 0; overflow: visible; }
.xp-mhead { position: sticky; top: 0; z-index: 3; padding: 12px 16px; background: var(--white); border-bottom: 1px solid var(--line); align-items: flex-start; }
.xp-mhead .mod-admin-title strong.mod-title { font-size: 1rem; font-weight: 800; color: var(--navy); }
.xp-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 0; }
.pg-mod-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 6px; margin-left: auto; }
.pg-mod-actions .btn-sm { padding: 6px 11px; font-size: .82rem; }
.xp-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; padding: 10px 16px; background: var(--white); border-bottom: 1px solid #edf1f9; }
.xp-tools .pg-tools-all { display: inline-flex; gap: 6px; margin-left: auto; }
.xp-tools .pg-tools-all .btn-sm { padding: 5px 10px; font-size: .8rem; }
.xp-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.xp-filters .chip { padding: 5px 11px; border-radius: 999px; border: 1px solid #c9d3e6; background: var(--white); color: #4a5876; font-size: .8rem; font-weight: 700; text-decoration: none !important; }
.xp-filters .chip:hover { border-color: var(--blue-2); color: var(--navy); }
.xp-filters .chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip-n { opacity: .8; font-weight: 600; }
.xp-selbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 10px 16px 0; padding: 8px 12px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.xp-selall { display: inline-flex; align-items: center; gap: 8px; font-size: .84rem; color: var(--muted); font-weight: 600; }
.xp-selbar .btn:disabled { opacity: .45; cursor: default; transform: none; }
.xp-rows.res-admin { margin: 10px 16px 6px; padding: 0; background: var(--white); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.xp-row { display: grid !important; grid-template-columns: 22px 30px minmax(0, 1fr) auto 44px 24px; align-items: center; gap: 10px; padding: 8px 12px !important; border-bottom: 1px solid #edf1f9 !important; font-size: .88rem; }
.xp-row:last-child { border-bottom: 0 !important; }
.xp-row[hidden] { display: none !important; }
.xp-row:hover { background: #fbfcff; }
.xp-row.is-draft { background: #fffcf4; }
.xp-row .pub-form, .xp-row .pub-form ~ * { order: 0; margin: 0; }
.xp-row .pill-ic { background: var(--c-soft); color: var(--c); }
.xp-check, .xp-selall input { width: 18px; height: 18px; accent-color: var(--blue); }
.xp-row-main { min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.xp-row-main .pg-res-t { font-weight: 600; color: var(--navy); overflow-wrap: anywhere; }
.xp-row-type { flex-basis: 100%; font-size: .76rem; }
.xp-row-st { display: flex; flex-wrap: wrap; gap: 4px; }
.xp-row .move { gap: 2px; opacity: 0; transition: opacity .12s; }
.xp-row .move .iconbtn { width: 22px; height: 20px; }
.xp-row .move-none { width: 24px; }
.pg-none { padding: 14px 18px; margin: 0; }
.pg-prevnext { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 12px 16px 16px; }

/* Barre du haut (page Programme) : onglets de formation, filtre, état de la formation */
.pg-head { margin-bottom: 10px; align-items: center; flex-wrap: nowrap; }
.pg-title { flex: 1 1 auto; min-width: 0; }
.pg-head h1 { font-size: 1.35rem; margin: 0; }
.pg-head .lead { font-size: .82rem; margin: 2px 0 0; max-width: none; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.pg-head .actions { flex: none; justify-content: flex-end; }
.pg-bar .prog-tabs a small { display: none; }
.pg-head .actions .btn-sm { padding: 6px 11px; font-size: .84rem; }
.pg-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 12px; }
.pg-bar .prog-tabs { margin: 0; gap: 6px; }
.pg-bar .prog-tabs a { padding: 5px 12px; font-size: .84rem; }
.pg-bar .srch { flex: 1 1 280px; max-width: 520px; margin: 0 0 0 auto; }
.pg-bar .srch-box input[type=search] { padding: 8px 0; }
.pg-bar .prog-state { margin: 0; flex-basis: 100%; }
.prog-pick, .pg-bloc-pick { display: none; }

/* Vue bloc étudiant / formateur */
.xp-topbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0 0 12px; }
.xp-topbar .crumbs { margin: 0; }
.xp-prog-title { margin: 0; font-size: .84rem; color: var(--muted); font-weight: 600; }
.xp-topbar .srch { flex: 1 1 260px; max-width: 460px; margin: 0 0 0 auto; }
.xp-topbar .srch-box input[type=search] { padding: 8px 0; }
.xp-due { margin: auto 8px 0 12px; padding: 12px 14px; background: var(--white); border-radius: 12px; border: 1px solid var(--line); font-size: .84rem; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.xp-due strong { color: var(--navy); }
.xp-mat { display: flex; align-items: center; gap: 8px; margin: 12px 12px 4px; padding: 0 0 4px; font-size: .84rem; border-bottom: 2px solid var(--line); }
.xp-mat span { flex: 1; min-width: 0; }
.xp-mat small { font-weight: 600; color: var(--muted); }
.xp .module-card.xp-smod { display: flex; flex-direction: row; align-items: center; gap: 9px; padding: 9px 12px; border: 0; border-top: 1px solid #edf1f9; border-radius: 0; box-shadow: none; background: var(--white); overflow: visible; transform: none; color: var(--ink); }
.xp .module-card.xp-smod:hover { transform: none; box-shadow: none; background: #f3f6fc; border-color: #edf1f9; }
.xp .module-card.xp-smod.on { background: #eef3fd; box-shadow: inset 3px 0 0 var(--blue); }
.xp .module-card.xp-smod.locked { opacity: .62; cursor: not-allowed; }
.xp-smod-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.xp-smod-main strong { font-size: .84rem; line-height: 1.28; color: var(--navy); overflow-wrap: anywhere; }
.xp-smod-main small { font-size: .74rem; color: var(--muted); }
.xp-smod .tag { font-size: .7rem; padding: 3px 8px; }
.xp-dot { width: 10px; height: 10px; border-radius: 50%; background: #b8c3d9; flex: none; }
.xp-dot.ok { background: #1a7f47; } .xp-dot.cur { background: #e3a21a; } .xp-dot.due { background: var(--accent); }
.xp-dot.lock { width: auto; height: auto; background: none; color: var(--muted); }
.xp-panel { padding-bottom: 18px; }
.xp-phead { position: sticky; top: 0; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 16px; background: var(--white); border-bottom: 1px solid var(--line); }
.xp-ptitle { flex: 1 1 260px; min-width: 0; }
.xp-ptitle h2 { font-size: 1.05rem; margin: 0; }
.xp-ptitle .small { margin: 3px 0 0; }
.xp-pactions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.xp-resume { padding: 8px 14px; font-size: .86rem; max-width: 100%; }
.xp-resume span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 26ch; }
.xp-nav { display: inline-flex; gap: 4px; }
.xp-pbar { flex-basis: 100%; display: flex; align-items: center; gap: 10px; font-size: .8rem; color: var(--muted); font-weight: 700; }
.xp-pbar progress { flex: 1; height: 6px; }
.xp-cat { margin: 12px 16px 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--white); }
.xp-cat-h { margin: 0; font-size: inherit; }
.xp-cat .pg-cat-toggle { width: 100%; padding: 9px 12px; border-radius: 0; background: var(--c-soft); }
.xp-cat .pg-cat-toggle:hover { background: var(--c-soft); filter: brightness(.98); }
.xp-cat .pg-cat-name { flex: 1; font-size: .9rem; }
.xp-cat .pill-ic { background: var(--white); color: var(--c); }
.xp-cat .pg-cat-count { background: var(--white); color: var(--ink); }
.xp-res { list-style: none; margin: 0; padding: 0; }
.xp-r { display: flex; align-items: center; gap: 12px; padding: 9px 14px; border-top: 1px solid #edf1f9; font-size: .88rem; flex-wrap: wrap; }
.xp-r-main { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; }
.xp-r-main a { font-weight: 600; color: var(--navy); overflow-wrap: anywhere; }
.xp-r-main small { color: var(--muted); font-size: .78rem; }
.xp-r-main .tag-common { align-self: flex-start; margin: 2px 0; }
.xp-r.is-locked .xp-r-main a { color: var(--muted); }
.xp-open { padding: 5px 10px; font-size: .8rem; }
.xp-empty { margin: 16px; }

/* Espace formateur « Mes cours » */
.wrap:has(> .fm) { max-width: 1320px; }
.fm-head { align-items: flex-end; }
.fm-head h1 { margin: 2px 0 4px; }
.fm-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 14px; }
.fm-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.fm-filters .chip { padding: 5px 11px; border-radius: 999px; border: 1px solid #c9d3e6; background: var(--white); color: #4a5876; font: 700 .8rem var(--body); cursor: pointer; }
.fm-filters .chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.fm-q { flex: 0 1 300px; margin-left: auto; }
.fm-q input[type=search] { border: 0; padding: 9px 0; background: transparent; flex: 1; min-width: 0; }
.fm-table { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.fm-row { display: grid; grid-template-columns: minmax(0, 1.5fr) 120px minmax(0, .8fr) minmax(0, .9fr) 170px 120px; gap: 12px; align-items: center; padding: 12px 16px; border-top: 1px solid #edf1f9; font-size: .88rem; }
.fm-row:hover { background: #fbfcff; }
.fm-hd { border-top: 0; background: #f8faff; font-size: .72rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.fm-hd:hover { background: #f8faff; }
.fm-c { min-width: 0; overflow-wrap: anywhere; color: var(--ink); }
.fm-course { display: flex; flex-direction: column; gap: 3px; }
.fm-title { font-weight: 700; color: var(--navy); }
.fm-common { align-self: flex-start; white-space: normal; }
.fm-course .mcard-links { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .8rem; }
.fm-course .mcard-links a { display: inline-flex; align-items: center; gap: 4px; }
.fm-progs { display: flex; flex-wrap: wrap; gap: 4px; }
.fm-adv { display: flex; flex-direction: column; gap: 4px; }
.fm-bar { display: flex; flex-direction: column; gap: 3px; font-size: .78rem; color: var(--muted); }
.fm-pub { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fm-lbl { display: none; }
.fm-none { padding: 14px 16px; margin: 0; }
.fm-side { margin-top: 18px; }
.fm-box { padding: 18px 20px; margin: 0; }
.fm-box h2 { display: flex; align-items: center; gap: 8px; font-size: 1rem; margin: 0 0 10px; }
.fm-box .list .row { padding: 10px 12px; border-radius: 12px; }
.fm-pfs { display: inline-flex; flex-wrap: wrap; gap: 4px; }
@media (max-width: 1100px) {
  .fm-hd { display: none; }
  .fm-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 14px; }
  .fm-course { grid-column: 1 / -1; }
  .fm-lbl { display: block; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 2px; flex-basis: 100%; }
}
@media (max-width: 520px) { .fm-row { grid-template-columns: minmax(0, 1fr); } .fm-q { flex-basis: 100%; margin-left: 0; } }

/* Ressource : formations concernées (module commun) */
.res-layout.has-share { display: grid; grid-template-columns: minmax(0, 760px) minmax(260px, 340px); gap: 20px; align-items: start; justify-content: center; }
.res-layout.has-share > .card.narrow { margin: 0; }
.share-where { position: sticky; top: 16px; padding: 18px; margin: 0; }
.share-where h2 { font-size: 1rem; margin: 0 0 8px; }
.share-list { list-style: none; margin: 0 0 10px; padding: 0; }
.share-list li { display: flex; gap: 8px; align-items: flex-start; padding: 7px 0; border-top: 1px solid #edf1f9; font-size: .86rem; }
.share-box { border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px 14px; margin: 4px 0 12px; }
.share-box legend { font-weight: 800; padding: 0 6px; }
.share-opts { display: flex; flex-direction: column; gap: 8px; }
.share-opt { display: flex; align-items: flex-start; gap: 12px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); cursor: pointer; font-weight: 400; }
.share-opt.on { border-color: var(--blue); background: #eef3fd; }
.share-opt input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--blue); flex: none; }
.share-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.share-l { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.share-main small { color: var(--muted); font-size: .8rem; }
.share-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 0; }
.pub-now { padding: 10px 12px; border-radius: 12px; background: #f8faff; border: 1px solid var(--line); }
@media (max-width: 1100px) { .res-layout.has-share { grid-template-columns: minmax(0, 1fr); } .share-where { position: static; } }

/* Écrans moyens et petits : colonnes superposées, la page défile normalement */
@media (max-width: 900px) {
  .xp-grid { display: block; border-radius: 14px; }
  .xp-c1 { padding: 8px; border-right: 0; border-bottom: 1px solid var(--line); flex-direction: row; flex-wrap: wrap; overflow: visible; }
  .xp-c1 .xp-h { flex-basis: 100%; }
  .xp-c1 .xp-bloc { flex: 1 1 220px; border-left: 0; border-radius: 12px; }
  .xp-c1 .xp-bloc.on { box-shadow: inset 0 -3px 0 var(--blue); }
  .xp-keys { display: none; }
  .xp-due, .xp-excl { flex-basis: 100%; margin: 6px 0 0; }
  .xp-c2 { border-right: 0; border-bottom: 1px solid var(--line); }
  .xp-scroll, .xp-c3 { overflow: visible; }
  .xp-mhead, .xp-phead { position: static; }
  .xp-row { grid-template-columns: 22px 30px minmax(0, 1fr) auto 44px; }
  .xp-row .move { display: none; }
}
@media (max-width: 900px) {
  .pg-head { flex-wrap: wrap; }
  .pg-head .actions { flex: 1 1 100%; justify-content: flex-start; flex-wrap: wrap; }
}
@media (max-width: 600px) {
  .xp .prog-tabs, .xp .pg-blocs .xp-bloc, .xp-rail .xp-bloc, .xp-c1 .xp-h { display: none; }
  .xp .prog-pick, .xp .pg-bloc-pick { display: flex; gap: 8px; margin: 0 0 10px; }
  .xp .prog-pick label, .xp .pg-bloc-pick label { flex: 1; min-width: 0; }
  .xp .prog-pick select, .xp .pg-bloc-pick select { width: 100%; }
  .xp .pg-blocs:not(:has(.xp-excl)) { display: none; }
  .pg-head .lead { display: none; }
  .pg-bar .srch { flex-basis: 100%; max-width: none; margin: 0; }
  .xp-topbar .srch { flex-basis: 100%; max-width: none; margin: 0; }
  .xp-mhead, .xp-tools, .xp-phead { padding-left: 12px; padding-right: 12px; }
  .pg-mod-actions { justify-content: flex-start; margin-left: 0; }
  .xp-selbar, .xp-rows.res-admin, .xp-cat { margin-left: 10px; margin-right: 10px; }
  .xp-row { grid-template-columns: 22px minmax(0, 1fr) 44px; gap: 6px 8px; }
  .xp-row .pill-ic, .xp-row .move-none { display: none; }
  .xp-row-st { grid-column: 2; }
  .xp-row .sw-form { grid-column: 3; grid-row: 1; }
  .xp-banner { height: 84px; }
  .xp-resume span { max-width: 18ch; }
  .xp-tools .pg-tools-all { margin-left: 0; }
}
@media print { .xp-c1, .xp-c2, .pg-bar, .xp-selbar, .xp-tools, .sw-form { display: none !important; } .xp-grid { display: block; border: 0; box-shadow: none; } .xp-c3 { overflow: visible; } }
.row-main > .tag-common { align-self: flex-start; margin: 3px 0 2px; }

/* =====================================================================
   v1.20 — Suivi détaillé : téléchargements par utilisateur, temps par module et par chapitre (section)
   ===================================================================== */
a.stat { cursor: pointer; }
a.stat:focus-visible { outline: 3px solid var(--blue-2); outline-offset: 2px; }
.view-tabs { display: inline-flex; gap: 4px; padding: 4px; margin: 0 0 16px; background: #e9eef8; border-radius: 12px; max-width: 100%; overflow-x: auto; }
.view-tabs a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 9px; color: var(--muted); font-weight: 700; font-size: .88rem; white-space: nowrap; text-decoration: none; transition: background .15s, color .15s, box-shadow .15s; }
.view-tabs a .ic { width: 16px; height: 16px; }
.view-tabs a:hover { color: var(--navy); background: rgba(255, 255, 255, .6); }
.view-tabs a.on { background: var(--white); color: var(--navy); box-shadow: 0 1px 3px rgba(15, 30, 70, .12); }
.view-tabs a:focus-visible { outline: 3px solid var(--blue-2); outline-offset: 1px; }

/* Filtres étiquetés (téléchargements) */
.dl-filters { align-items: flex-end; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow); }
.dl-f { display: flex; flex-direction: column; gap: 4px; flex: 1 1 170px; min-width: 0; margin: 0; }
.dl-f span { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.dl-f select { width: 100%; flex: none; }
.dl-filters .btn { flex: none; }
.dl-stats { margin-top: 4px; }
.dl-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.dl-table td, .dl-detail td { vertical-align: top; }
.dl-table tr.dim td { opacity: .62; }
.dl-table tr.dim:hover td { opacity: 1; }
.dl-table .c-files strong, .time-table .c-dl a, .dossier-table .c-dl a { font-family: var(--display); color: var(--navy); }
.dl-lastt { display: inline-block; max-width: 30ch; }
.tag-teacher { background: #ececff; color: #3730a3; }
.dl-t { background: var(--sky-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.dl-t-pdf { background: var(--accent-soft); color: var(--accent-ink); box-shadow: none; }
.dl-t-ppt { background: #fff1e6; color: #9a3f00; box-shadow: none; }
.dl-t-doc { background: var(--sky); color: var(--blue); box-shadow: none; }
.dl-t-xls { background: #e6f6ef; color: #0f6b46; box-shadow: none; }
.dl-t-gen { background: #ececff; color: #3730a3; box-shadow: none; }
.dl-src { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); }
.dl-src .ic { width: 15px; height: 15px; color: var(--blue); }
.dl-top { position: sticky; top: 16px; padding: 16px 16px 10px; margin: 0; }
.dl-top h2 { display: flex; align-items: center; gap: 8px; font-size: 1rem; margin: 0 0 8px; }
.dl-top h2 .ic { color: var(--accent); }
.dl-top-list { list-style: none; margin: 0; padding: 0; counter-reset: dl; }
.dl-top-list li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid #edf1f9; }
.dl-top-list li:first-child { border-top: 0; }
.dl-top-list .pill-ic { width: 34px; height: 34px; border-radius: 10px; }
.dl-top-m { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.dl-top-m a { font-weight: 700; font-size: .86rem; color: var(--navy); overflow-wrap: anywhere; }
.dl-top-m small { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .76rem; }
.dl-top-m .pf { min-width: 32px; height: 18px; font-size: .66rem; }
.dl-top-n { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; }
.dl-top-n strong { font-family: var(--display); color: var(--navy); font-size: 1.05rem; }
.dl-top-n small { color: var(--muted); font-size: .72rem; }
.empty strong { color: var(--navy); }
.dl-layout > * { min-width: 0; }
@media (max-width: 1440px) { .dl-layout { grid-template-columns: minmax(0, 1fr); } .dl-top { position: static; } .dl-top-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); column-gap: 18px; } .dl-top-list li:nth-child(-n+3) { border-top: 0; } }
@media (max-width: 760px) {
  .dl-table thead { display: none; }
  .dl-table, .dl-table tbody { display: block; }
  .dl-table tr { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 12px 14px; border-top: 1px solid #edf1f9; }
  .dl-table tr:first-child { border-top: 0; }
  .dl-table td { display: block; padding: 0; border: 0; }
  .dl-table td:first-child { flex: 1 1 100%; }
  .dl-table .c-files::before { content: "Téléch. "; font-size: .76rem; color: var(--muted); }
  .dl-table .c-pdf::before { content: "PDF "; font-size: .76rem; color: var(--muted); }
  .dl-table td:nth-child(6) { flex: 1 1 100%; font-size: .86rem; }
  .dl-table td:last-child { flex: 1 1 100%; }
  .dl-table td:last-child .btn { width: 100%; justify-content: center; }
  .dl-top-list li:nth-child(-n+3) { border-top: 1px solid #edf1f9; }
  .dl-top-list li:first-child { border-top: 0; }
}
@media (max-width: 600px) { .sec-table th:last-child, .sec-table td:last-child { display: none; } .sec-pc { min-width: 90px; } .sec-l3 .sec-name { padding-left: 16px; } }
@media (max-width: 600px) { .dl-filters { padding: 10px; } .dl-f { flex-basis: 100%; } .dl-filters .btn { width: 100%; justify-content: center; } }

/* Temps par section d'un cours (dossier, suivi du formateur, vue formation) */
.sec-details { border: 1px solid var(--line); border-radius: 14px; background: var(--white); margin: 8px 0; overflow: hidden; }
.sec-details > summary { list-style: none; display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; padding: 11px 14px; cursor: pointer; transition: background .15s; }
.sec-details > summary::-webkit-details-marker { display: none; }
.sec-details > summary:hover { background: var(--sky-2); }
.sec-details > summary:focus-visible { outline: 3px solid var(--blue-2); outline-offset: -3px; }
.sec-details > summary > .ic { margin-left: auto; width: 18px; height: 18px; color: var(--muted); transition: transform .2s; }
.sec-details[open] > summary > .ic { transform: rotate(90deg); }
.sec-details[open] > summary { border-bottom: 1px solid var(--line); background: var(--sky-2); }
.sec-sum-t { display: inline-flex; align-items: center; gap: 8px; min-width: 0; color: var(--navy); overflow-wrap: anywhere; }
.sec-sum-t .ic { width: 18px; height: 18px; color: var(--blue); flex: none; }
.sec-sum-m { font-size: .82rem; color: var(--muted); font-weight: 600; }
.sec-details .table-wrap { margin: 0; border: 0; border-radius: 0; box-shadow: none; }
.sec-table { margin: 0; }
.sec-table th { font-size: .72rem; }
.sec-table td { padding-top: 8px; padding-bottom: 8px; }
.sec-name { display: inline-flex; gap: 6px; align-items: baseline; }
.sec-num { font-family: var(--display); font-weight: 700; color: var(--blue); font-size: .85em; }
.sec-l2 .sec-name { font-weight: 700; color: var(--navy); }
.sec-l3 .sec-name { padding-left: 22px; color: var(--ink); font-size: .92em; position: relative; }
.sec-l3 .sec-name::before { content: ""; position: absolute; left: 8px; top: .1em; bottom: .35em; width: 8px; border-left: 2px solid var(--line); border-bottom: 2px solid var(--line); border-bottom-left-radius: 6px; }
.sec-pc { min-width: 140px; }
.sec-time { white-space: nowrap; }
.res-track .sec-row td { padding-top: 0; border-top: 0; }
.res-track .sec-row .sec-details { margin-top: 0; }
.empty-soft { flex-direction: row; text-align: left; padding: 18px 20px; gap: 14px; align-items: flex-start; }
.empty-soft::before { display: none; }
.empty-soft > .ic { width: 28px; height: 28px; color: var(--blue); flex: none; margin-top: 2px; }
.empty-soft p { margin: 0; }

/* Temps de connexion : onglet « Par module / par chapitre » */
.tm-filters { max-width: 420px; }
.tm-bloc { padding: 0; overflow: hidden; }
.tm-bloc-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px 18px 12px; border-left: 5px solid var(--c2); background: linear-gradient(90deg, var(--c-soft), var(--white) 70%); }
.tm-bloc-h h2 { margin: 2px 0 0; font-size: 1.08rem; }
.tm-bloc-h .eyebrow { margin: 0; }
.tm-bloc-m { display: flex; flex-direction: column; align-items: flex-end; margin: 0; line-height: 1.2; }
.tm-bloc-m strong { font-family: var(--display); font-size: 1.25rem; color: var(--navy); }
.tm-bloc-m span { font-size: .8rem; color: var(--muted); }
.tm-hd, .tm-row { display: grid; grid-template-columns: minmax(0, 1.8fr) 110px minmax(130px, 1fr) 100px 140px minmax(150px, auto); gap: 12px; align-items: center; padding: 10px 18px; }
.tm-hd { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: #f8faff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tm-row { border-top: 1px solid #edf1f9; font-size: .88rem; }
.tm-mat { margin: 0; padding: 10px 18px 4px; font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--c2); border-top: 1px solid var(--line); background: #fbfcff; }
.tm-c { min-width: 0; }
.tm-name { display: flex; flex-direction: column; gap: 2px; }
.tm-name strong { color: var(--navy); overflow-wrap: anywhere; }
.tm-name small, .tm-users small, .tm-last small { color: var(--muted); font-size: .76rem; }
.tm-users { display: flex; flex-direction: column; gap: 2px; }
.tm-users .prog span { display: none; }
.tm-avg strong { font-family: var(--display); color: var(--navy); }
.tm-more { justify-self: end; display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; color: var(--blue); white-space: nowrap; }
.tm-more .ic { width: 16px; height: 16px; transition: transform .2s; }
.tm-mod > summary { list-style: none; cursor: pointer; transition: background .15s; }
.tm-mod > summary::-webkit-details-marker { display: none; }
.tm-mod > summary:hover { background: var(--sky-2); }
.tm-mod > summary:focus-visible { outline: 3px solid var(--blue-2); outline-offset: -3px; }
.tm-mod[open] > summary { background: var(--sky-2); }
.tm-mod[open] > summary .tm-more .ic { transform: rotate(90deg); }
.tm-body { padding: 4px 18px 14px 34px; background: var(--sky-2); }
.tm-row.dim { opacity: .6; }
.tm-flat .tm-more { font-weight: 500; color: var(--muted); }
@media (max-width: 1000px) {
  .tm-hd { display: none; }
  .tm-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; padding: 12px 14px; }
  .tm-name { flex: 1 1 100%; }
  .tm-users { flex: 1 1 160px; flex-direction: row; align-items: center; gap: 8px; }
  .tm-users .prog { flex: 1; }
  .tm-avg::before { content: "Moyenne "; font-size: .76rem; color: var(--muted); font-family: var(--body); }
  .tm-tot::before { content: "Total "; font-size: .76rem; color: var(--muted); }
  .tm-last { display: none; }
  .tm-more { flex: 1 1 100%; justify-self: start; }
  .tm-flat .tm-more:empty { display: none; }
  .tm-body { padding: 4px 10px 12px; }
  .tm-bloc-m { align-items: flex-start; }
}
@media (max-width: 600px) {
  .sec-table thead { display: none; }
  .sec-table, .sec-table tbody { display: block; }
  .sec-table tr { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 10px 12px; border-top: 1px solid #edf1f9; }
  .sec-table tr:first-child { border-top: 0; }
  .sec-table td { display: block; padding: 0; border: 0; }
  .sec-table td:first-child { flex: 1 1 100%; }
  .sec-table .sec-pc { flex: 1 1 120px; min-width: 0; }
  .sec-table .sec-users::before { content: "Lecteurs "; font-size: .76rem; color: var(--muted); }
}
.filters select, .filters input { min-width: 0; max-width: 100%; }

/* =====================================================================
   v1.21 — Densité maîtrisée : explorateurs (direction, formateur, étudiant), menus « ⋯ », accueil étudiant restructuré
   Trois niveaux de texte : --navy (titres), --ink (texte), --muted (secondaire). Accent unique : var(--accent).
   ===================================================================== */
.xp-clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }

/* Menus « ⋯ » */
.xmenu { position: relative; display: inline-flex; flex: none; }
.xmenu-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid var(--line); border-radius: 9px; background: var(--white); color: var(--ink); font: 700 1.05rem/1 var(--body); letter-spacing: .02em; cursor: pointer; transition: background .15s, border-color .15s; }
.xmenu-btn:hover, .xmenu-btn[aria-expanded="true"] { background: var(--sky); border-color: #c4d2ee; color: var(--navy); }
.xmenu-btn:focus-visible { outline: 3px solid var(--blue-2); outline-offset: 2px; }
.xmenu-sm .xmenu-btn { width: 26px; height: 24px; font-size: .9rem; border-color: transparent; background: transparent; }
.xmenu-pop { display: none; position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; min-width: 230px; max-width: min(320px, 86vw); padding: 6px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 34px rgba(15, 30, 70, .18); flex-direction: column; gap: 1px; animation: xmenu-in .12s ease-out; }
.xmenu-pop.open { display: flex; }
.xmenu-pop.up { top: auto; bottom: calc(100% + 6px); }
@keyframes xmenu-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .xmenu-pop { animation: none; } }
.xmenu-f { display: block; margin: 0; }
.xmenu-i, .xmenu-i.btn-pub, .xmenu-i.btn-unpub { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: none; box-shadow: none; color: var(--ink); font: 600 .86rem/1.3 var(--body); text-align: left; text-decoration: none !important; white-space: nowrap; cursor: pointer; }
.xmenu-i:hover, .xmenu-i:focus-visible { background: var(--sky); color: var(--navy); outline: none; }
.xmenu-i .ic { width: 16px; height: 16px; color: var(--muted); flex: none; }
.xmenu-i.btn-unpub { color: var(--accent-ink); }
.xmenu-i.btn-unpub:hover { background: var(--accent-soft); color: var(--accent-ink); }

/* Barre du haut de la page Programme */
.xp-admin .pg-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 12px; }
.pg-h1 { font-size: 1.25rem; margin: 0 4px 0 0; }
.pg-h1::after { display: none; }
.xp-admin .pg-bar .srch { flex: 1 1 240px; max-width: 420px; margin: 0 0 0 auto; }
.pg-top-actions { display: flex; align-items: center; gap: 6px; }
.pg-note { flex-basis: 100%; margin: 0; }
.prog-state { white-space: nowrap; }

/* Grille : colonnes 220 / 300 / reste */
.xp-grid { grid-template-columns: 220px 300px minmax(0, 1fr); }
@media (min-width: 901px) and (max-width: 1280px) { .xp-grid { grid-template-columns: 200px 260px minmax(0, 1fr); } }
.xp-c1 { padding: 10px 8px 10px 0; gap: 2px; }
.xp-h { margin: 2px 14px 6px; font-size: .68rem; }

/* Colonne 1 : blocs compacts */
.xp-bloc { grid-template-columns: 40px minmax(0, 1fr); gap: 10px; align-items: center; padding: 8px 10px 8px 10px; border-left-width: 3px; }
.xp-bloc .xp-thumb { width: 40px; height: 40px; border-radius: 10px; }
.xp-bloc-main { gap: 2px; }
.xp-bloc-t { display: flex; align-items: flex-start; gap: 6px; min-width: 0; }
.xp-bloc-t .pg-num { width: 18px; height: 18px; font-size: .62rem; margin-top: 1px; }
.xp-bloc-t .pf { min-width: 0; height: 18px; padding: 0 5px; font-size: .62rem; margin-top: 1px; flex: none; }
.xp-bloc .pg-tab-s, .xp-bloc-t strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font: 700 .8rem/1.25 var(--body); color: var(--navy); }
.xp-bloc .pg-tab-count, .xp-bloc .xp-sub { font-size: .7rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.xp-bloc progress.xp-prog { height: 3px; margin-top: 3px; }
.xp-bloc.is-draft .xp-thumb { filter: grayscale(.7); opacity: .8; }
.xp-excl { margin: 10px 8px 0 10px; padding: 8px 10px; font-size: .8rem; }
.xp-excl summary { cursor: pointer; font-weight: 700; color: var(--muted); }

/* Colonne 2 : en-tête du bloc et modules */
.xp-c2 .xp-head { display: flex; align-items: flex-start; gap: 10px; padding: 12px 12px 10px 14px; }
.xp-head-t { flex: 1; min-width: 0; }
.xp-head .eyebrow { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: .68rem; margin: 0 0 2px; }
.xp-head .eyebrow .pf { height: 18px; min-width: 0; padding: 0 5px; font-size: .62rem; }
.xp-c2 .xp-head h1, .xp-c2 .xp-head h2 { font-size: .9rem; line-height: 1.3; margin: 0; }
.xp-c2 .xp-head h1::after { display: none; }
.pg-bloc-count, .xp-head .xp-count { margin: 3px 0 0; font-size: .72rem; color: var(--muted); }
.xp-c2 .xp-head-actions { display: flex; align-items: center; gap: 6px; margin: 0; flex: none; }
.xp-c2 .xp-head-actions .btn-sm { padding: 6px 10px; font-size: .78rem; }
.xp-c2 .mat-admin-head { display: flex; align-items: center; gap: 6px; margin: 0; padding: 12px 10px 4px 14px; border: 0; background: none; border-radius: 0; font-size: .74rem; font-weight: 800; letter-spacing: .01em; color: var(--muted); }
.mat-n { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xp-c2 .mat-admin-head .tag { font-size: .62rem; padding: 1px 6px; text-transform: none; letter-spacing: 0; }
.xp-mod { gap: 4px; padding: 0 10px 0 0; }
.xp-mod-link { gap: 8px; padding: 7px 4px 7px 12px; }
.xp-mod .xp-thumb.sm { width: 36px; height: 36px; border-radius: 9px; }
.xp-mod .pg-num { width: 18px; height: 18px; font-size: .62rem; }
.pg-mod-t { font-size: .8rem; line-height: 1.25; }
.pg-mod-count { font-size: 11px; line-height: 1.4; }
.xp-common { display: inline-block; align-self: flex-start; padding: 0 7px; border-radius: 999px; background: #efefff; color: #3730a3; font: 700 10.5px/1.7 var(--body); white-space: nowrap; }
.xp-mod .move { position: absolute; z-index: 2; right: 56px; top: 50%; transform: translateY(-50%); flex-direction: row; gap: 2px; padding: 2px; border-radius: 8px; background: var(--white); box-shadow: 0 2px 8px rgba(15, 30, 70, .14); opacity: 0; }
.xp-mod:hover .move, .xp-mod:focus-within .move { opacity: 1; pointer-events: auto; }
.xp-mod .iconbtn { width: 22px; height: 22px; }

/* Colonne 3 : bandeau 120 px avec titre superposé, une rangée d'actions */
.pg-detail .xp-mhead { position: static; display: block; padding: 0; background: var(--white); border-bottom: 1px solid var(--line); }
.xp-banner { position: relative; height: 120px; }
.xp-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 24, 56, 0) 25%, rgba(12, 24, 56, .82) 100%); pointer-events: none; }
.xp-banner-t { position: absolute; left: 16px; right: 16px; bottom: 10px; z-index: 1; color: #fff; }
.xp-banner-t .eyebrow { margin: 0 0 2px; color: rgba(255, 255, 255, .86); font-size: .68rem; }
.xp-banner-t .mod-title, .xp-banner-t h2, .xp-mhead .xp-banner-t strong.mod-title, .xp-mhead .xp-banner-t .mod-title.title-long { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; color: #fff; font: 800 1.02rem/1.25 var(--display); text-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.xp-banner-t h2::after { display: none; }
.xp-mbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; padding: 10px 16px; }
.xp-mbar .xp-meta { flex: 1 1 180px; margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: .76rem; color: var(--muted); min-width: 0; }
.xp-teach { display: inline-flex; align-items: center; gap: 5px; }
.xp-teach .ic { width: 14px; height: 14px; }
.xp-meta .tag { font-size: .7rem; padding: 2px 8px; }
.xp-mbar .pg-mod-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; flex-wrap: nowrap; }
.xp-mbar .pg-mod-actions .btn-sm { padding: 6px 11px; font-size: .8rem; }
.xp-mbar .pg-mod-actions .btn-sm .ic { width: 15px; height: 15px; }
.pg-detail .xp-tools { display: block; padding: 8px 16px; border-bottom: 1px solid #edf1f9; background: var(--white); }
.xp-filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; gap: 6px; padding: 1px 0 3px; max-width: 100%; }
.xp-filters .chip { flex: none; padding: 4px 10px; font-size: 12px; white-space: nowrap; }
.xp-listhead { display: flex; align-items: center; padding: 8px 16px 0 29px; }
.xp-listhead .xp-selall { font-size: .74rem; font-weight: 600; color: var(--muted); }
.xp-selbar { position: sticky; top: 0; z-index: 4; margin: 8px 16px 0; padding: 6px 8px 6px 14px; gap: 8px; background: var(--navy); color: #fff; border: 0; border-radius: 10px; box-shadow: 0 8px 20px rgba(15, 30, 70, .2); }
.js .xp-selbar:not(.has-sel) { display: none; }
.xp-selcount { font-weight: 700; font-size: .84rem; }
.xp-selbar .btn { padding: 5px 11px; font-size: .78rem; box-shadow: none; }
.xp-selbar .btn-pub { background: #fff; color: var(--navy); }
.xp-selbar .btn-pub:hover { background: var(--sky); }
.xp-selbar .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.xp-selbar .btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.xp-rows.res-admin { margin: 8px 16px 6px; }
.xp-row { position: relative; grid-template-columns: 18px 26px minmax(0, 1fr) 44px 22px; gap: 10px; min-height: 44px; padding: 3px 12px !important; font-size: .86rem; }
.xp-row .pill-ic.sm { width: 26px; height: 26px; border-radius: 8px; }
.xp-row .pill-ic.sm .ic { width: 14px; height: 14px; }
.xp-row-main { flex-wrap: nowrap; gap: 8px; overflow: hidden; }
.xp-row-main .pg-res-t { flex: 0 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal; font-size: .86rem; }
.xp-row-main .xp-row-type { flex: 0 100 auto; flex-basis: auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 11px; color: var(--muted); white-space: nowrap; }
.xp-row-main .tag { flex: none; font-size: .68rem; padding: 2px 7px; }
.xp-row.is-draft .pg-res-t { color: var(--ink); }
.xp-edit { position: absolute; right: 88px; top: 50%; transform: translateY(-50%); z-index: 1; padding: 3px 9px; border-radius: 7px; background: var(--white); box-shadow: 0 0 0 1px var(--line), -12px 0 12px var(--white); font-size: .76rem; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .12s; white-space: nowrap; }
.xp-row:hover .xp-edit, .xp-row:focus-within .xp-edit, .xp-edit:focus { pointer-events: auto; }
.xp-row.is-draft .xp-edit { background: #fffcf4; box-shadow: 0 0 0 1px var(--line), -12px 0 12px #fffcf4; }
.xp-row:hover .xp-edit, .xp-row:focus-within .xp-edit, .xp-edit:focus { opacity: 1; }
@media (hover: none) { .xp-edit { opacity: 1; } }
.xp-emptyres { display: flex; align-items: center; gap: 12px; margin: 16px; padding: 16px 18px; border: 1.5px dashed var(--line); border-radius: 12px; background: var(--white); color: var(--muted); font-size: .86rem; }
.xp-emptyres .ic { width: 24px; height: 24px; color: var(--blue); flex: none; }
.xp-emptyres p { margin: 0; }
.xp-emptyres strong { color: var(--navy); }
.pg-detail .pg-prevnext { padding: 10px 18px 16px; font-size: .82rem; }
.pg-detail .pg-prevnext .linkbtn { font-size: .82rem; text-decoration: none; font-weight: 600; }

/* Explorateur étudiant : mêmes règles de densité */
.xp-stu .xp-c2 .xp-head { display: block; }
.xp .module-card.xp-smod { gap: 8px; padding: 7px 10px 7px 12px; }
.xp-smod .xp-thumb.sm { width: 36px; height: 36px; border-radius: 9px; }
.xp-smod-main strong { font-size: .8rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.xp-smod-main small { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xp-smod .tag { font-size: 10.5px; padding: 2px 7px; }
.xp-stu .xp-mat { margin: 12px 12px 2px; padding: 0 0 3px; font-size: .74rem; font-weight: 800; letter-spacing: .01em; color: var(--muted); border-bottom: 1px solid var(--line); }
.xp-stu .xp-mat .ic { width: 13px; height: 13px; }
.xp-panel .xp-banner-t h2 { font-size: 1.02rem; }
.xp-stu .xp-phead { position: static; padding: 10px 16px; gap: 8px 10px; }
.xp-stu .xp-pmeta { flex: 1 1 200px; margin: 0; font-size: .78rem; color: var(--muted); }
.xp-stu .xp-pactions { gap: 6px; }
.xp-stu .xp-pactions .btn-sm { padding: 6px 10px; font-size: .8rem; }
.xp-resume { padding: 7px 13px; font-size: .84rem; }
.xp-cat { margin: 10px 16px 0; }
.xp-cat .pg-cat-toggle { padding: 7px 12px; }
.xp-cat .pg-cat-name { font-size: .86rem; }
.xp-cat .pill-ic.sm { width: 26px; height: 26px; }
.xp-r { gap: 10px; padding: 6px 12px; min-height: 44px; flex-wrap: nowrap; font-size: .86rem; }
.xp-r-main { flex: 1 1 auto; }
.xp-r-main a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal; }
.xp-r-main small { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xp-r .tag { font-size: .7rem; padding: 2px 8px; flex: none; }
.xp-open, .btn.xp-open { flex: none; padding: 4px 8px; font-size: .78rem; background: none; border-color: transparent; box-shadow: none; color: var(--blue); }
.xp-open:hover, .btn.xp-open:hover { background: var(--sky); border-color: transparent; }
.xp-due { margin: auto 8px 0 10px; padding: 10px 12px; font-size: .8rem; }
@media (max-width: 900px) {
  .xp-mod .move { right: 54px; }
  .xp-row { grid-template-columns: 18px 26px minmax(0, 1fr) 44px; }
  .xp-edit { right: 66px; }
  .xp-r { flex-wrap: wrap; }
}
@media (max-width: 600px) {
  .xp-admin .pg-bar .srch { flex-basis: 100%; max-width: none; margin: 0; }
  .pg-top-actions { margin-left: auto; }
  .xp-mbar .pg-mod-actions { margin-left: 0; flex-wrap: wrap; }
  .xp-row { grid-template-columns: 18px minmax(0, 1fr) 44px; }
  .xp-row .xp-row-type, .xp-row .xp-edit { display: none; }
  .xp-listhead { padding-left: 23px; }
  .xp-selbar { margin: 8px 10px 0; flex-wrap: wrap; }
  .xp-banner { height: 104px; }
}

/* Espace formateur : bandeau compact et panneau repliable sous l'explorateur */
.fm-banner { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin: 0 0 12px; padding: 10px 14px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); flex: none; }
.fm-hello { flex: 1 1 420px; min-width: 0; display: flex; flex-wrap: nowrap; white-space: nowrap; align-items: center; margin: 0; font-size: .86rem; color: var(--ink); }
.fm-hello > * + *::before { content: "·"; margin: 0 9px; color: var(--muted); font-weight: 400; }
.fm-hello strong { font: 700 1rem var(--display); color: var(--navy); }
.fm-hello a { color: var(--ink); font-weight: 600; text-decoration: none; }
.fm-hello a:hover { color: var(--blue); text-decoration: underline; }
.fm-hello a.fm-warn { color: var(--accent-ink); }
.fm-next { flex: 0 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fm-banner-a { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.fm-banner-a .btn-sm { padding: 6px 11px; font-size: .8rem; }
.fm-banner-a .tag { padding: 1px 7px; font-size: .7rem; }
.xp-sess { white-space: normal; }
.fm-panels { flex: none; margin: 12px 0 0; background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.fm-panels > summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 9px 14px; cursor: pointer; font-size: .84rem; font-weight: 700; color: var(--navy); border-radius: 14px; }
.fm-panels > summary::-webkit-details-marker { display: none; }
.fm-panels > summary:hover { background: var(--sky-2); }
.fm-panels > summary:focus-visible { outline: 3px solid var(--blue-2); outline-offset: -3px; }
.fm-panels > summary small { font-weight: 500; color: var(--muted); }
.fm-panels > summary .ic { margin-left: auto; width: 16px; height: 16px; color: var(--muted); transform: rotate(-90deg); transition: transform .2s; }
.fm-panels[open] > summary .ic { transform: rotate(90deg); }
.fm-panels-in { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.fm-panels .fm-box { margin: 0; padding: 10px 14px 12px; border: 0; border-left: 1px solid var(--line); border-radius: 0; box-shadow: none; background: none; min-width: 0; }
.fm-panels .fm-box:first-child { border-left: 0; }
.fm-panels .fm-box h2 { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; font-size: .78rem; color: var(--navy); }
.fm-panels .fm-box h2 .ic { width: 15px; height: 15px; color: var(--blue); }
.fm-list { list-style: none; margin: 0; padding: 0; }
.fm-list li { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 4px 0; font-size: .8rem; }
.fm-list li a { flex: 1; min-width: 0; display: flex; gap: 8px; white-space: nowrap; overflow: hidden; color: var(--ink); text-decoration: none; }
.fm-list li a:hover span { color: var(--blue); }
.fm-list li a strong { flex: none; color: var(--navy); font-weight: 700; }
.fm-list li a span { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.fm-list li small { flex: none; color: var(--muted); }
.fm-list .fm-pfs { flex: none; display: inline-flex; gap: 3px; }
.fm-list .pf { min-width: 0; height: 16px; padding: 0 4px; font-size: .58rem; border-radius: 4px; }
.fm-list .tag { padding: 1px 7px; font-size: .68rem; }
.fm-more summary, .fm-all { display: inline-block; margin-top: 4px; font-size: .76rem; font-weight: 700; color: var(--blue); cursor: pointer; }
.fm-empty { margin: 0; }
@media (max-width: 1000px) { .fm-panels-in { grid-template-columns: minmax(0, 1fr); } .fm-panels .fm-box { border-left: 0; border-top: 1px solid var(--line); } .fm-panels .fm-box:first-child { border-top: 0; } }
@media (max-width: 600px) { .fm-hello { flex-wrap: wrap; white-space: normal; } .fm-hello > * + *::before { margin: 0 6px; } .fm-next { flex-basis: 100%; } .fm-next::before { display: none; } }

/* Accueil étudiant : hero compact, cartes de blocs juste dessous (4 par ligne), listes 5 + 5 */
.hero.hero-compact { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 380px); align-items: center; gap: 14px 26px; padding: 18px 24px; border-radius: 20px; margin-bottom: 4px; }
.hero-compact::before { width: 260px; height: 260px; right: -60px; top: -120px; }
.hero-compact::after { width: 380px; height: 380px; right: -120px; top: -180px; }
.hero-compact h1 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); margin: 0; }
.hero-compact h1::after { display: none; }
.hero-compact .eyebrow { margin: 0 0 2px; }
.hero-compact .hero-sub { margin: 4px 0 0; font-size: .86rem; color: #c9d8f6; }
.hero-compact .cert-mention { margin: 4px 0 0; font-size: .76rem; }
.hero-prog { display: flex; align-items: center; gap: 10px; font-size: .8rem; color: #c9d8f6; }
.hero-compact .ring { width: 64px; height: 64px; }
.hero-compact .resume { margin: 0; max-width: none; padding: 10px 12px 10px 16px; gap: 12px; }
.hero-compact .resume strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #fff; }
.hero-compact .resume small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-done { font-size: .9rem; }
.section-title.home-h { margin: 18px 0 10px; font-size: 1.05rem; }
.home-blocs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.home-blocs .bloc-card { border-radius: 16px; }
.home-blocs .bloc-cover { aspect-ratio: auto; height: 104px; }
.home-blocs .bloc-num { left: 10px; top: 10px; padding: 3px 9px; font-size: .72rem; }
.home-blocs .lock-badge { right: 10px; bottom: 10px; padding: 3px 9px; font-size: .72rem; }
.home-blocs .bloc-body { padding: 12px 14px 14px; gap: 4px; }
.home-blocs .bloc-body h3 { font-size: .92rem; line-height: 1.3; }
.home-blocs .bloc-meta { font-size: .76rem; }
.home-blocs .bloc-meta .ic { width: 13px; height: 13px; vertical-align: -2px; }
.home-blocs .bloc-matieres { margin: 4px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 2px; font-size: .74rem; color: var(--ink); }
.home-blocs .bloc-matieres li { display: flex; justify-content: space-between; gap: 8px; }
.home-blocs .bloc-matieres li span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-blocs .bloc-matieres li small { flex: none; color: var(--muted); }
.home-blocs .bloc-matieres li.more { color: var(--muted); }
.home-blocs .bloc-body .prog { padding-top: 6px; font-size: .74rem; }
.home-lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 18px 0 0; }
.home-list { min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px 10px; box-shadow: var(--shadow); }
.home-list h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: .95rem; }
.home-list h2 .ic { width: 17px; height: 17px; color: var(--blue); }
.home-list h2 small { font: 500 .76rem var(--body); color: var(--muted); }
.home-list h2 .more { margin-left: auto; font: 600 .8rem var(--body); }
.hlist { list-style: none; margin: 0; padding: 0; }
.hl-row { display: flex; align-items: center; gap: 10px; min-height: 40px; border-top: 1px solid #edf1f9; font-size: .86rem; }
.hl-row:first-child { border-top: 0; }
.hl-ic { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--sky-2); color: var(--blue); }
.hl-ic .ic { width: 14px; height: 14px; }
.hl-t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; color: var(--navy); }
.hl-when { flex: none; font-size: .76rem; color: var(--muted); white-space: nowrap; }
.hl-row .tag { flex: none; font-size: .7rem; padding: 2px 8px; }
.hl-empty { margin: 4px 0 6px; font-size: .86rem; color: var(--muted); }
.hl-n { margin: 4px 0 0; font-size: .76rem; color: var(--muted); }
.home-news .section-title { margin: 22px 0 10px; font-size: 1.05rem; }
.home-more { margin-top: 18px; }
@media (max-width: 1150px) { .home-blocs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hero.hero-compact { grid-template-columns: minmax(0, 1fr) auto; } .hero-compact .resume { grid-column: 1 / -1; } }
@media (max-width: 760px) { .home-lists { grid-template-columns: minmax(0, 1fr); } .hero.hero-compact { padding: 16px 18px; } }
@media (max-width: 520px) { .home-blocs { grid-template-columns: minmax(0, 1fr); } .home-blocs .bloc-cover { height: 92px; } .hl-when { display: none; } .hero-prog span { display: none; } .hero-compact .ring { width: 54px; height: 54px; } }
.xp-row .sw-form, .xp-mod .sw-form { padding: 0; margin: 0; }

.xp-selbar { flex-wrap: nowrap; }
.xp-selbar .xp-selcount { white-space: nowrap; }
.xp-selclear { padding: 5px 8px !important; }

/* =====================================================================
   v1.22 — Proposition 5 : grille de publication (direction, formateurs), page du module (variante B, onglets
   verticaux de catégories), parcours guidé de l'étudiant, notes. Trois niveaux de texte (--navy, --ink, --muted),
   pastilles d'état AA (vert = tout publié, ambre = partiel, gris = brouillon), aucun style en ligne (CSP).
   ===================================================================== */
.pf-btsb { background: #0e5e7e; } .pf-btsmco { background: #9a3412; } .pf-btsndrc { background: #7a2e6c; }
.wrap:has(> .pg-g), .wrap:has(> .pc), .wrap:has(> .mg) { max-width: 1320px; }

/* Pastilles d'état */
.pill { display: inline-flex; align-items: center; justify-content: center; min-width: 54px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font: 700 .8rem/1.1 var(--body); font-variant-numeric: tabular-nums; white-space: nowrap; text-decoration: none !important; transition: box-shadow .12s, transform .12s; }
.pill.full { background: #e7f6ee; border-color: #9ad4b4; color: #14532d; }
.pill.part { background: #fff3d1; border-color: #f0c45c; color: #7a4300; }
.pill.none { background: #eef1f7; border-color: #d3dbea; color: #4a5a7c; }
.pill.nil { background: transparent; border-color: transparent; color: #a3aec4; }
a.pill:hover { box-shadow: 0 0 0 3px rgba(47, 111, 219, .16); transform: translateY(-1px); }
a.pill:focus-visible { outline: 3px solid rgba(47, 111, 219, .55); outline-offset: 2px; }
a.pill[aria-expanded="true"] { box-shadow: 0 0 0 3px var(--blue-2); }

/* Barre de la page Programme (grille) */
.pg-g .pg-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 14px; }
.pg-g .pg-top-actions { margin-left: auto; }
.g-tabs-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0 0 12px; }
.g-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.g-tab { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font-weight: 700; font-size: .88rem; text-decoration: none !important; transition: border-color .12s, background .12s; }
.g-tab:hover { border-color: var(--blue-2); background: var(--sky-2); }
.g-tab.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.g-tab .pf { min-width: 0; height: 18px; padding: 0 5px; font-size: .62rem; }
.g-tab-n { font-size: .76rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.g-tab.on .g-tab-n { color: #cdd8f3; }
.g-tab.is-draft .g-tab-l::after { content: " (brouillon)"; font-weight: 500; font-size: .78rem; }
.g-legend { display: flex; align-items: center; gap: 6px; margin: 0 0 0 auto; font-size: .78rem; color: var(--muted); }
.g-legend .pill { min-width: 0; padding: 2px 9px; font-size: .72rem; font-weight: 600; }

.g-card { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin: 0 0 18px; }
.g-head { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.g-head-img { width: 72px; height: 44px; object-fit: cover; border-radius: 9px; flex: none; }
.g-head-t { flex: 1; min-width: 0; }
.g-head-t .eyebrow { margin: 0 0 2px; color: var(--muted); flex-wrap: wrap; }
.g-head-t .eyebrow .tag { text-transform: none; letter-spacing: 0; }
.g-head-t h2 { margin: 0; font-size: 1.02rem; }
.g-head-a { display: flex; align-items: center; gap: 8px; flex: none; }
.g-wrap { position: relative; overflow-x: auto; }
.g-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .92rem; }
.g-table thead th { position: sticky; top: 0; z-index: 2; background: var(--white); padding: 10px 8px; border-bottom: 1px solid var(--line); font: 700 .7rem/1.2 var(--body); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); text-align: center; white-space: nowrap; }
.g-table thead th.g-th-mod { text-align: left; padding-left: 18px; }
.g-th-cat span { display: inline-block; padding-bottom: 3px; border-bottom: 2px solid var(--c); }
.g-table td, .g-table tbody th { padding: 9px 8px; border-bottom: 1px solid #edf1f9; vertical-align: middle; }
.g-table tbody tr:last-child > * { border-bottom: 0; }
.g-cell, .g-pub { text-align: center; }
.g-lab { display: none; }
.g-row:hover > * { background: #fafcff; }
.g-mod { text-align: left; font-weight: 400; min-width: 280px; width: 34%; padding-left: 18px !important; }
.g-mod-in { display: flex; align-items: center; gap: 12px; min-width: 0; }
.g-num { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: #fff; font: 800 .72rem var(--body); flex: none; }
.g-row.is-draft .g-num { background: #8f9bb3; }
.g-mod-main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.g-mod-t { font-weight: 700; color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-mod-t:hover { color: var(--blue); }
.g-row.is-draft .g-mod-t { color: #4a5a7c; }
.g-mod-s { font-size: .78rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-mod .move { flex-direction: column; gap: 2px; opacity: 0; transition: opacity .12s; }
.g-mod .move .iconbtn { width: 22px; height: 18px; font-size: .7rem; }
.g-row:hover .move, .g-row:focus-within .move { opacity: 1; }
@media (hover: none) { .g-mod .move { opacity: 1; } }
.g-mat > th { padding: 14px 18px 8px !important; background: var(--sky-2); border-bottom: 1px solid var(--line) !important; text-align: left; }
.g-mat-in { display: flex; align-items: center; gap: 10px; min-width: 0; }
.g-mat-img { width: 46px; height: 28px; object-fit: cover; border-radius: 6px; flex: none; }
.g-mat-t { display: flex; flex-direction: column; min-width: 0; }
.g-mat-n { font: 700 .92rem/1.25 var(--display); color: var(--navy); }
.g-mat-t small { font-size: .76rem; color: var(--muted); font-weight: 500; }
.g-mat.is-draft .g-mat-n { color: #4a5a7c; }
.g-addmod { padding: 5px 10px !important; font-size: .82rem !important; }
.g-none td { color: var(--muted); font-size: .86rem; padding: 12px 18px !important; font-style: italic; }
.g-help { margin: 0; padding: 10px 18px 14px; border-top: 1px solid var(--line); }
.g-excl { margin-top: 8px; }

/* Panneau d'une case */
.g-pop { position: absolute; z-index: 30; width: min(440px, calc(100vw - 32px)); background: var(--white); border: 1px solid #cfdaf0; border-radius: 14px; box-shadow: 0 18px 44px rgba(19, 38, 79, .2); padding: 12px 14px 12px; animation: xmenu-in .12s ease-out; }
@media (prefers-reduced-motion: reduce) { .g-pop { animation: none; } }
.gp-head { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; }
.gp-title { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.gp-title strong { color: var(--navy); font-size: .95rem; }
.gp-title small { color: var(--muted); font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gp-close { width: 28px; height: 28px; font-size: 1.1rem; line-height: 1; }
.gp-tools { display: flex; justify-content: flex-end; margin: 0 0 4px; }
.gp-all { display: inline-flex; gap: 14px; }
.gp-all .linkbtn { font-size: .82rem; }
.gp-list { list-style: none; margin: 0; padding: 0; max-height: 300px; overflow-y: auto; }
.gp-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid #edf1f9; font-size: .9rem; }
.gp-row:first-child { border-top: 0; }
.gp-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.gp-row.is-draft .gp-t { color: #4a5a7c; }
.gp-edit { font-size: .8rem; }
.gp-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.gp-open { margin-left: auto; font-size: .86rem; font-weight: 600; }

/* Mobile : une carte par module */
@media (max-width: 760px) {
  .g-legend { display: none; }
  .g-head { padding: 12px 14px; }
  .g-head-img { display: none; }
  .g-table, .g-table tbody, .g-table tr, .g-table td, .g-table th { display: block; width: auto; }
  .g-table thead { display: none; }
  .g-row { display: flex !important; flex-wrap: wrap; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .g-row > * { border: 0 !important; padding: 0 !important; background: none !important; }
  .g-mod { flex-basis: 100%; min-width: 0; width: auto; padding: 0 0 4px !important; }
  .g-mod .move { display: none; }
  .g-cell { display: flex !important; flex-direction: column; align-items: center; gap: 2px; min-width: 64px; }
  .g-lab { display: block; font-size: .64rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
  .g-cell .pill { min-width: 52px; padding: 4px 8px; }
  .g-pub { margin-left: auto; align-self: center; }
  .g-mat > th { display: block; padding: 12px 14px 8px !important; }
  .g-mat-img { display: none; }
  .g-none td { padding: 10px 14px !important; }
  .g-pop { left: 16px !important; right: 16px; width: auto; }
}

/* Page du module (variante B) */
.mg-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 18px; padding: 0 0 12px; border-bottom: 1px solid var(--line); font-size: .9rem; }
.mg-back { font-weight: 700; }
.mg-crumbs { margin: 0; }
.mg-nav { display: flex; gap: 6px; }
.mg-head { display: flex; align-items: center; gap: 20px; }
.mg-img { width: 120px; height: 76px; object-fit: cover; border-radius: 12px; flex: none; background: var(--c-soft); }
.mg-head-t { flex: 1; min-width: 0; }
.mg-head-t .eyebrow { margin: 0 0 2px; color: var(--muted); }
.mg-title { margin: 0; font-size: clamp(1.3rem, 2.4vw, 1.6rem); }
.mg-official { margin: 4px 0 0; }
.mg-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 6px 0 0; font-size: .86rem; color: var(--muted); }
.mg-meta .ic { width: 1em; height: 1em; }
.mg-pub { display: flex; align-items: center; gap: 8px; flex: none; font-weight: 700; font-size: .86rem; color: var(--muted); }
.mg-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 16px 0 0; }
.mg-common { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; color: var(--muted); }
.mg-common .pf { min-width: 0; height: 18px; padding: 0 5px; font-size: .62rem; }
.mg-tabs { display: flex; gap: 2px; margin: 22px 0 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
.mg-tab { padding: 10px 14px; font-weight: 700; font-size: .93rem; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; text-decoration: none !important; display: inline-flex; align-items: center; gap: 6px; }
.mg-tab:hover { color: var(--navy); background: var(--sky-2); }
.mg-tab.on { color: var(--navy); border-bottom-color: var(--navy); }
.mg-cats { display: flex; align-items: flex-start; gap: 18px; margin: 20px 0 0; }
.mg-vt { flex: 0 0 240px; display: flex; flex-direction: column; gap: 6px; position: sticky; top: 12px; }
.mg-vt-i { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid #e3e9f5; border-left: 4px solid var(--c); background: var(--white); border-radius: 12px; color: var(--navy); font-weight: 700; font-size: .9rem; text-decoration: none !important; transition: background .12s, border-color .12s; }
.mg-vt-i:hover { background: var(--sky-2); }
.mg-vt-i.on { background: var(--navy); border-color: var(--navy); border-left-color: var(--c); color: #fff; }
.mg-vt-i.on .pill-ic { background: rgba(255, 255, 255, .14); color: #fff; }
.mg-vt-l { flex: 1; min-width: 0; }
.mg-vt-n { font-size: .76rem; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.mg-vt-i.on .mg-vt-n { color: #cdd8f3; }
.mg-panel { flex: 1; min-width: 0; background: var(--white); border: 1px solid #e3e9f5; border-top: 4px solid var(--c); border-radius: 16px; box-shadow: 0 4px 14px rgba(19, 38, 79, .05); }
.mg-panel-h { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid #edf1f9; }
.mg-panel-h h2 { margin: 0; font-size: .98rem; }
.mg-panel-h .pill { min-width: 0; font-size: .74rem; padding: 3px 9px; }
.mg-all { display: inline-flex; gap: 14px; }
.mg-all .linkbtn { font-size: .84rem; }
.mg-rows { list-style: none; margin: 0; padding: 2px 16px; }
.mg-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid #edf1f9; }
.mg-row:first-child { border-top: 0; }
.mg-row-main { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; }
.mg-row-t { font-weight: 600; color: var(--ink); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.mg-row.is-draft .mg-row-t { color: #4a5a7c; }
.mg-row-main small { flex-basis: 100%; font-size: .78rem; color: var(--muted); }
.mg-row-act { display: flex; align-items: center; gap: 10px; font-size: .82rem; opacity: 0; transition: opacity .12s; }
.mg-row:hover .mg-row-act, .mg-row:focus-within .mg-row-act { opacity: 1; }
@media (hover: none) { .mg-row-act { opacity: 1; } }
.mg-row-act .iconbtn { width: 24px; height: 22px; }
.mg-panel-f { padding: 8px 16px 14px; }
.mg-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 20px 0 0; padding: 30px 20px; border: 1.5px dashed var(--line); border-radius: var(--radius); background: var(--white); text-align: center; color: var(--muted); }
.mg-empty > .ic { width: 28px; height: 28px; color: var(--blue-2); }
.mg-empty-a { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.mg-box, .mg-embed { margin: 20px 0 0; }
.mg-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.mg-box-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 10px; }
.mg-box-h h2 { margin: 0; font-size: 1.02rem; }
.mg-embed-h { margin-bottom: 12px; }
.mg-sess { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mg-sess a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; color: var(--ink); text-decoration: none !important; }
.mg-sess a:hover { background: var(--sky-2); }
.mg-sess-n { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 2px solid #c9d3e6; font: 800 .74rem var(--body); color: var(--muted); flex: none; }
.mg-sess li.is-done .mg-sess-n { background: #1a7f47; border-color: #1a7f47; color: #fff; }
.mg-sess-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mg-sess-t small { color: var(--muted); font-size: .8rem; }
@media (max-width: 760px) {
  .mg-head { flex-wrap: wrap; gap: 12px; }
  .mg-img { width: 96px; height: 60px; }
  .mg-pub { width: 100%; }
  .mg-cats { flex-direction: column; gap: 12px; }
  .mg-vt { position: static; flex: none; width: 100%; flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
  .mg-vt-i { flex: none; padding: 7px 10px; }
  .mg-panel { width: 100%; }
  .mg-nav .btn span { display: none; }
}

/* Parcours guidé (étudiants) */
.pc-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 6px; padding: 12px 14px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.pc-prog { display: inline-flex; align-items: center; gap: 8px; margin-right: 4px; font: 800 .92rem var(--display); color: var(--navy); min-width: 0; }
.pc-prog-t { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-sel { display: inline-flex; min-width: 0; }
.pc-sel select { font: 700 .86rem var(--body); color: var(--navy); padding: 7px 30px 7px 10px; border: 1px solid var(--line); border-radius: 10px; background-color: var(--white); max-width: 340px; min-width: 0; }
.pc-sel select:focus-visible { outline: 3px solid rgba(47, 111, 219, .45); outline-offset: 1px; }
.pc-sel-mod select { background-color: var(--navy); color: #fff; border-color: var(--navy); }
.pc-count { font-size: .86rem; color: var(--muted); white-space: nowrap; }
.pc-count strong { color: var(--navy); }
.pc-frise { overflow-x: auto; padding: 16px 4px 10px; margin: 0 0 4px; scrollbar-width: thin; }
.pc-groups { display: flex; align-items: flex-start; gap: 0; list-style: none; margin: 0; padding: 0; min-width: max-content; }
.pc-group { display: flex; flex-direction: column; gap: 8px; padding: 0 10px; position: relative; }
.pc-group + .pc-group { border-left: 2px solid #e3e9f5; }
.pc-grp { font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 800; white-space: nowrap; padding-left: 4px; border-left: 3px solid var(--c); }
.pc-steps { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.pc-step { display: flex; flex-direction: column; align-items: center; gap: 5px; width: 72px; padding: 2px 0; color: var(--muted); font-size: .7rem; line-height: 1.2; text-align: center; text-decoration: none !important; border-radius: 10px; }
.pc-step:hover .pc-n { transform: scale(1.08); }
.pc-step:focus-visible { outline: 3px solid rgba(47, 111, 219, .45); outline-offset: 1px; }
.pc-n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 2px solid #c3cde2; background: var(--white); font: 800 .78rem var(--body); color: #4a5a7c; transition: transform .12s; }
.pc-n .ic { width: 14px; height: 14px; }
.pc-step.ok .pc-n { background: #1a7f47; border-color: #1a7f47; color: #fff; }
.pc-step.seen .pc-n { border-color: var(--blue-2); color: var(--blue); background: var(--sky); }
.pc-step.due .pc-n { border-color: var(--accent-ink); color: var(--accent-ink); background: var(--accent-soft); }
.pc-step.lock .pc-n { border-style: dashed; color: #8f9bb3; }
.pc-step.cur .pc-n { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 0 0 4px #dbe7ff; transform: scale(1.12); }
.pc-step.cur.ok .pc-n { background: #1a7f47; border-color: var(--blue); }
.pc-step.cur { color: var(--navy); font-weight: 700; }
.pc-st { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 72px; overflow-wrap: anywhere; }
@media (prefers-reduced-motion: reduce) { .pc-n { transition: none; } }
.pc-main { display: flex; flex-direction: column; align-items: center; padding: 8px 0 0; }
.pc-card { width: 100%; max-width: 880px; background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--c); border-radius: 20px; padding: 26px 32px; box-shadow: 0 10px 30px rgba(19, 38, 79, .06); }
.pc-eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font-size: .8rem; color: var(--muted); }
.pc-cat { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink); }
.pc-cat .pill-ic { width: 24px; height: 24px; }
.pc-title { margin: 12px 0 6px; font-size: clamp(1.3rem, 2.6vw, 1.7rem); }
.pc-title::after { display: none !important; }
.pc-meta { margin: 0; font-size: .9rem; color: var(--muted); }
.pc-desc { margin: 16px 0 0; font-size: 1rem; line-height: 1.65; color: var(--ink); max-width: 70ch; }
.pc-lock { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.pc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 24px 0 0; }
.pc-foot { margin: 14px 0 0; text-align: center; }
.pc-empty { margin-top: 16px; }
@media (max-width: 760px) {
  .pc-bar { padding: 10px 12px; }
  .pc-prog { flex-basis: 100%; }
  .pc-sel, .pc-sel select { width: 100%; max-width: none; }
  .pc-count { flex-basis: 100%; }
  .pc-card { padding: 20px 18px; border-radius: 16px; }
  .pc-actions .grow { display: none; }
  .pc-actions .btn, .pc-actions form, .pc-actions form .btn { width: 100%; }
}

/* Notes */
.notes-filters { align-items: flex-end; }
.notes-filters label { display: flex; flex-direction: column; gap: 4px; font-size: .8rem; font-weight: 700; color: var(--muted); flex: 0 1 220px; }
.notes-filters select { width: 100%; }
.notes-sum { margin: -4px 0 12px; }
.notes-wrap { max-width: 100%; }
.notes-table th, .notes-table td { white-space: nowrap; }
.notes-table thead th { text-transform: none; letter-spacing: 0; font-size: .78rem; }
.notes-table th.n-grp { text-align: center; background: var(--sky); color: var(--navy); border-left: 1px solid var(--line); }
.notes-table th.n-w { vertical-align: bottom; max-width: 180px; }
.n-wt { display: block; max-width: 170px; overflow: hidden; text-overflow: ellipsis; color: var(--navy); font-weight: 700; }
.n-w small { display: block; font-weight: 500; color: var(--muted); max-width: 170px; overflow: hidden; text-overflow: ellipsis; }
.notes-table .n-stu { position: sticky; left: 0; z-index: 1; background: var(--white); text-align: left; font-weight: 700; color: var(--navy); }
.notes-table thead .n-stu { background: var(--sky-2); }
.notes-table .n-stu small { display: block; font-weight: 500; color: var(--muted); font-size: .74rem; }
.notes-table td.n-c { text-align: center; font-variant-numeric: tabular-nums; }
.notes-table td.n-txt a { color: var(--muted); font-style: italic; }
.notes-table .n-avg { text-align: center; background: #f6f8fd; }
.notes-table tfoot th, .notes-table tfoot td { background: var(--sky-2); font-weight: 700; border-top: 2px solid var(--line); }

/* Fiche formateur : matières confiées */
.mat-assign .mat-prog { border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; margin: 0 0 8px; background: var(--white); }
.mat-assign .mat-prog summary { display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 700; color: var(--navy); }
.mat-assign .mat-bloc-h { margin: 10px 0 4px; font-size: .8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
/* v1.22 — barre compacte de la page Programme (grille) : formations en pastilles courtes, brouillon = point ambre */
.pg-g .pg-bar { flex-wrap: wrap; }
.pg-g .pg-bar .prog-tabs { gap: 4px; }
.pg-g .pg-bar .prog-tabs a { padding: 5px 11px; font-size: .82rem; gap: 6px; }
.pg-g .pg-bar .prog-tabs a .tag { font-size: 0; width: 8px; height: 8px; padding: 0; gap: 0; background: #e3a23a; border-radius: 50%; }
.pg-g .pg-bar .prog-state { flex-basis: auto; }
.g-table thead th { padding: 10px 4px; letter-spacing: .03em; font-size: .66rem; }
.g-table td, .g-table tbody th { padding: 8px 4px; }
.g-mod { min-width: 250px; width: auto; }
.g-table .pill { min-width: 46px; padding: 4px 8px; }
.g-pub { padding-right: 14px !important; }
form.gp-all, form.mg-all { display: inline-flex; gap: 14px; }
.g-mod { min-width: 220px; }
.g-mod-t { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.3; }
.g-table thead th.g-th-pub { padding-right: 14px; }
.g-addmod { white-space: nowrap; }
.notes-filters select { flex: none; height: auto; }
.notes-table tbody th, .notes-table tfoot th { text-transform: none; letter-spacing: 0; font-size: .9rem; white-space: nowrap; }
.notes-table tbody th.n-stu { background: var(--white); }
.notes-table tfoot th.n-stu { background: var(--sky-2); }
@media (max-width: 760px) {
  .mg-row { flex-wrap: wrap; gap: 6px 12px; }
  .mg-row-main { flex: 1 1 calc(100% - 64px); }
  .mg-row-t { white-space: normal; }
  .mg-row-act { order: 3; flex-basis: 100%; opacity: 1; }
  .mg-rows { padding: 2px 12px; }
}

/* Lecture d'un PDF dans la page (v1.23) */
.pdf-view { margin: 14px 0 18px; }
.pdf-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 14px; background: var(--white); border: 1px solid var(--line); border-radius: 14px 14px 0 0; }
.pdf-name { flex: 1; min-width: 160px; display: flex; flex-direction: column; line-height: 1.25; }
.pdf-name small { color: var(--muted); font-size: .8rem; }
.pdf-frame { display: block; width: 100%; height: min(78vh, 900px); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 14px 14px; background: #525659; }
.pdf-fallback { margin: 6px 2px 0; }
.pdf-view.is-full { position: fixed; inset: 0; z-index: 70; margin: 0; background: var(--white); display: flex; flex-direction: column; }
.pdf-view.is-full .pdf-bar { border-radius: 0; }
.pdf-view.is-full .pdf-frame { flex: 1; height: auto; border-radius: 0; }
.pdf-view.is-full .pdf-fallback { display: none; }
@media (max-width: 720px) { .pdf-frame { height: 70vh; } }

/* Organisation par chapitre (v1.24) */
.pill-ic.ch-num { font-family: var(--display); font-weight: 800; font-size: .95rem; background: var(--navy); color: #fff; }
.res-section.is-chapter .cat-title .pg-cat-name { font-size: 1.05rem; }
.row.ch-read { background: var(--sky); border-radius: 12px; }
.row.ch-read .row-main strong { color: var(--navy); }
.ch-select { font-size: .78rem; padding: 3px 6px; border-radius: 8px; border: 1px solid var(--line); background: var(--white); color: var(--muted); max-width: 150px; }
.mg-row-lead { background: var(--sky); border-radius: 10px; }
.mg-row-lead .mg-row-t { color: var(--navy); font-weight: 700; }
.mg-vt-i .pill-ic.ch-num { font-size: .8rem; }
.mg-chapmode { margin: 0; }

/* Support par chapitre : rail, tiroir, activité dans le cadre (v1.24) */
.pdf-stage { display: flex; align-items: stretch; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 14px 14px; overflow: hidden; background: #525659; height: min(78vh, 900px); }
.pdf-main { flex: 1; min-width: 0; position: relative; display: flex; }
.pdf-main .pdf-frame { flex: 1; height: auto; border: 0; border-radius: 0; }
.pdf-main.is-act .pdf-frame { display: none; }
.pdf-act { flex: 1; display: flex; flex-direction: column; background: var(--white); min-width: 0; }
.pdf-act-bar { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-bottom: 1px solid var(--line); background: var(--sky); }
.pdf-act-t { font-weight: 700; color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdf-act-frame { flex: 1; border: 0; width: 100%; }
.pdf-drawer { width: 320px; flex: none; background: var(--white); border-left: 1px solid var(--line); padding: 14px; overflow: auto; display: flex; flex-direction: column; gap: 8px; }
.pdf-drawer-h { font-size: .98rem; margin: 0; }
.pdf-it { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 9px 11px; color: var(--ink); text-decoration: none !important; font-size: .9rem; }
.pdf-it:hover { border-color: var(--blue-2); background: var(--sky); }
.pdf-it.is-lock { opacity: .6; cursor: not-allowed; }
.pdf-it-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pdf-it-t b { font-weight: 600; line-height: 1.3; }
.pdf-it-t small { color: var(--muted); font-size: .78rem; }
/* v1.26.1 — rail des chapitres dans la barre de projection (proposition 9) : 1 2 3 ★ puis « Exercices ▾ » */
.pdf-rail { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.pdf-rail-l { font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 4px 0 0; }
.pdf-rail-b { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 0; background: var(--sky); color: var(--navy); font-family: var(--display); font-weight: 800; font-size: .9rem; cursor: pointer; text-decoration: none; }
.pdf-rail-b:hover { background: #d9e6ff; }
.pdf-rail-b.on { background: var(--orange); color: #fff; cursor: default; }
.pdf-rail-b.is-off { opacity: .45; }
.pdf-acts-b { margin-left: 4px; }
.pdf-acts-b small { font-weight: 600; opacity: .8; }
.pdf-acts-b[aria-expanded="true"] { background: var(--navy); color: #fff; box-shadow: none; }
.pdf-bar .file-actions { margin-left: 0; }
/* Barre sombre en projection et dans le support ouvert dans la page */
.pdf-view.is-full .pdf-bar, body.is-lean .pdf-bar { background: var(--night); border-color: var(--night); color: #fff; }
.pdf-view.is-full .pdf-bar .pdf-name strong, body.is-lean .pdf-bar .pdf-name strong { color: #fff; }
.pdf-view.is-full .pdf-bar .pdf-name small, body.is-lean .pdf-bar .pdf-name small, .pdf-view.is-full .pdf-rail-l, body.is-lean .pdf-rail-l { color: #aab6d0; }
.pdf-view.is-full .pdf-bar .pdf-name small a, body.is-lean .pdf-bar .pdf-name small a { color: #cfe0ff; }
.pdf-view.is-full .pdf-bar .btn-ghost, body.is-lean .pdf-bar .btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35); }
.pdf-view.is-full .pdf-bar .btn-ghost:hover, body.is-lean .pdf-bar .btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.pdf-view.is-full .pdf-bar .btn-proj, body.is-lean .pdf-bar .btn-proj { background: #fff; color: var(--navy); }
.pdf-view.is-full .pdf-rail-b, body.is-lean .pdf-rail-b { background: rgba(255, 255, 255, .12); color: #fff; }
.pdf-view.is-full .pdf-rail-b:hover, body.is-lean .pdf-rail-b:hover { background: rgba(255, 255, 255, .24); }
.pdf-view.is-full .pdf-rail-b.on, body.is-lean .pdf-rail-b.on { background: var(--orange); }
.pdf-view.is-full .pdf-bar .file-ext, body.is-lean .pdf-bar .file-ext { background: rgba(255, 255, 255, .14); color: #fff; }
.pdf-view.is-full .pdf-stage { flex: 1; height: auto; border: 0; border-radius: 0; }
.btn-proj { background: var(--navy); color: #fff; }
@media (max-width: 760px) { .pdf-drawer { position: absolute; right: 0; top: 0; bottom: 0; width: min(320px, 80%); z-index: 2; box-shadow: var(--shadow-lg); } .pdf-main { position: static; } .pdf-stage { position: relative; } }
/* Mode intégré (activité dans le cadre du support) */
body.is-embed .side, body.is-embed .mtop, body.is-embed .foot, body.is-embed .scrim, body.is-embed .gs-open, body.is-embed .imp-bar { display: none !important; }
body.is-embed .wrap { padding: 14px 18px 30px; max-width: none; }
body.is-embed .mod-bar, body.is-embed .crumbs { display: none; }
/* Formulaire : le choix « moment de publication » remplace la case Publiée */
.pub-when { margin-top: 10px; }
.pub-when ~ .pub-now { display: none; }
.mg-row-ch { margin: 0; flex: none; }
.pdf-rail-end { margin-top: auto; }

/* Accueil formateur : cartes de formations (v1.25) */
.fm-card { padding-top: 0; }
.fm-card-img { width: calc(100% + 32px); margin: 0 -16px 4px; height: 110px; object-fit: cover; display: block; }
.fm-card-mods { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: .88rem; }
.fm-card-bloc > a { font-weight: 700; color: var(--navy); }
.fm-card-mods ul { list-style: none; margin: 2px 0 0; padding: 0 0 0 10px; border-left: 2px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.fm-card-mods ul a { color: var(--ink); }
.fm-card-mods ul a.is-draft { color: var(--muted); }
.fm-card-mods ul a.is-draft::after { content: " · brouillon"; font-size: .75rem; }
.fm-card-go { margin-top: auto; align-self: flex-start; }

/* Page du module étudiante par chapitre : cartes de chapitre (v1.25, esquisse 7) */
.ch-card { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 6px 18px 14px; margin: 0 0 14px; box-shadow: 0 6px 18px rgba(19, 38, 79, .04); }
.ch-card.res-section.pg-cat .cat-title { margin: 8px 0 6px; }
.ch-card .pill-ic.ch-num { width: 40px; height: 40px; border-radius: 12px; }
.ch-card.st-done .pill-ic.ch-num { background: #1a9a5a; }
.ch-card.st-todo .pill-ic.ch-num { background: #c9d3e6; color: var(--navy); }
.ch-card .pill-ic.ch-star { background: var(--navy); color: #fff; }
.ch-card .pg-cat-name { display: flex; flex-direction: column; line-height: 1.25; }
.ch-sub { font-family: var(--body); font-weight: 500; font-size: .8rem; color: var(--muted); }
.ch-state { flex: none; }
.ch-card .list { gap: 0; }
.ch-card .list .row { border: 0; border-top: 1px solid #f1f4fa; border-radius: 0; padding: 11px 4px; box-shadow: none; }
.ch-card .list .row:first-child { border-top: 0; }
.ch-card .list .row:hover { box-shadow: none; border-color: #f1f4fa; background: var(--sky); border-radius: 10px; }
.ch-card .row.ch-read { background: var(--sky); border-radius: 12px; padding: 11px 12px; }
.ch-go { flex: none; white-space: nowrap; }
@media (max-width: 640px) { .ch-go { display: none; } .ch-card { padding: 4px 12px 10px; } }

/* ---------- v1.26 — Page d'une matière (proposition 9) : bandeau large avec photo, chapitres en accordéon, support ouvert dans la page ---------- */
.mt-hero { display: grid; grid-template-columns: 300px 1fr auto; align-items: center; gap: 0 26px; background: var(--white); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; margin-bottom: 18px; box-shadow: 0 8px 24px rgba(19, 38, 79, .05); min-height: 180px; }
.mt-hero-img { width: 100%; height: 100%; min-height: 180px; object-fit: cover; display: block; background: linear-gradient(135deg, var(--c, #1d4fb8), var(--c2, #5b5ef0)); }
.mt-hero-body { padding: 20px 0; min-width: 0; }
.mt-hero-body .eyebrow { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin: 0 0 4px; }
.mt-hero-body h1 { font-size: 1.5rem; line-height: 1.25; margin: 0; }
.mt-desc { font-size: .9rem; color: var(--muted); margin: 8px 0 0; }
.mt-prog { margin-top: 12px; max-width: 460px; }
.mt-prog span { font-size: .8rem; color: var(--muted); }
.mt-cta { display: flex; flex-direction: column; gap: 8px; padding: 0 22px 0 0; }
.mt-cta .btn { white-space: nowrap; justify-content: center; }
@media (max-width: 900px) { .mt-hero { grid-template-columns: 1fr; gap: 0; } .mt-hero-img { min-height: 150px; max-height: 190px; } .mt-hero-body { padding: 14px 16px; } .mt-cta { flex-direction: row; flex-wrap: wrap; padding: 0 16px 16px; } }

.row.has-inl .ch-go { min-width: 84px; }
.inl { display: block; padding: 0 0 12px; border-top: 0; }
.inl-top { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--night); color: #fff; border-radius: 12px 12px 0 0; font-size: .85rem; }
.inl-top > span:first-child { display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inl-top .ic { width: 1em; height: 1em; }
.inl-acts { margin-left: auto; display: flex; gap: 6px; flex: none; }
.inl-acts .btn { color: #fff; background: transparent; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35); }
.inl-acts .btn:hover { background: rgba(255, 255, 255, .12); }
.inl:fullscreen { background: var(--night); }
.inl.full .inl-top { display: none; }
.inl.full .inl-frame, .inl:fullscreen .inl-frame { height: 100%; border-radius: 0; }
.inl:fullscreen .inl-frame { height: calc(100% - 44px); } .inl:fullscreen .inl-frame iframe { height: 100%; }
.inl-frame { background: #0e1c3d; border-radius: 0 0 12px 12px; overflow: hidden; }
.inl-frame iframe { display: block; width: 100%; height: min(78vh, 760px); border: 0; background: #fff; }
.inl.full { position: fixed; inset: 0; z-index: 90; background: var(--night); padding: 0; margin: 0; border-radius: 0; }
.inl.full .inl-top { border-radius: 0; }
.inl.full .inl-frame { border-radius: 0; height: 100%; }
.inl.full .inl-frame iframe { height: 100%; }

/* ---------- v1.26 — Barre latérale de la direction en accordéon ---------- */
.nav-grp { border-radius: 12px; }
.nav-grp > summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: #fff; font-weight: 700; font-size: .92rem; cursor: pointer; user-select: none; }
.nav-grp > summary::-webkit-details-marker { display: none; }
.nav-grp > summary:hover { background: rgba(255, 255, 255, .07); }
.nav-grp[open] > summary { background: rgba(255, 255, 255, .08); }
.nav-grp > summary .ic { width: 1.2em; height: 1.2em; color: #8fa7d8; }
.nav-grp > summary .chev { margin-left: auto; width: 1em; height: 1em; color: #8fa7d8; transition: transform .15s; }
.nav-grp > summary .chev .ic { width: 1em; height: 1em; }
.nav-grp[open] > summary .chev { transform: rotate(90deg); }
.nav-grp > summary .badge.nav-grp-n { margin-left: auto; }
.nav-grp[open] > summary .badge.nav-grp-n { display: none; }
.nav-grp > summary .badge + .chev { margin-left: 6px; }
.nav-grp-b { display: flex; flex-direction: column; gap: 2px; padding: 2px 0 6px 10px; position: relative; }
.nav-grp-b::before { content: ""; position: absolute; left: 22px; top: 4px; bottom: 8px; width: 2px; background: rgba(255, 255, 255, .08); }
.nav-grp-b a { padding: 8px 10px 8px 34px; font-size: .9rem; }
/* v1.26 — Classeur Excel / document Word affichés dans la page de projection */
.doc-view { background: #fff; min-height: 60vh; display: flex; flex-direction: column; }
.pdf-frame, .doc-view { width: 100%; }
.doc-tabs { display: flex; gap: 4px; flex-wrap: wrap; padding: 8px 10px 0; border-bottom: 1px solid var(--line); background: var(--sky-2); }
.doc-tab { border: 1px solid var(--line); border-bottom: 0; background: #fff; border-radius: 10px 10px 0 0; padding: 7px 14px; font-size: .85rem; font-weight: 700; color: var(--muted); cursor: pointer; }
.doc-tab.on { color: var(--navy); background: #fff; box-shadow: inset 0 -3px 0 var(--blue); }
.doc-page { flex: 1; overflow: auto; padding: 14px 18px; }
.doc-sheet .doc-page table { border-collapse: collapse; font-size: .85rem; min-width: 100%; }
.doc-sheet .doc-page td, .doc-sheet .doc-page th { border: 1px solid #dfe6f3; padding: 4px 8px; white-space: nowrap; }
.doc-sheet .doc-page tr:first-child td { background: var(--sky-2); font-weight: 700; }
.doc-word .doc-page { max-width: 860px; margin: 0 auto; padding: 32px 40px; font-size: 1rem; line-height: 1.6; }
.doc-word .doc-page img { max-width: 100%; height: auto; }
.doc-word .doc-page table { border-collapse: collapse; margin: 1em 0; }
.doc-word .doc-page td, .doc-word .doc-page th { border: 1px solid #dfe6f3; padding: 6px 10px; }
.doc-image { display: grid; place-items: center; padding: 12px; background: #0e1c3d; }
.doc-image img { max-width: 100%; max-height: 78vh; border-radius: 6px; }
.doc-video { background: #000; display: grid; place-items: center; }
.doc-video video { width: 100%; max-height: 78vh; }
.pdf-view.is-full .doc-view { flex: 1; height: auto; min-height: 0; }
.pdf-view.is-full .pdf-main { display: flex; flex-direction: column; }
/* v1.26 — vue allégée dans le cadre intégré (support ouvert depuis la page de la matière) : la visionneuse seule */
body.is-lean .wrap { padding: 0; }
body.is-lean .res-detail { border: 0; box-shadow: none; padding: 0; border-radius: 0; }
body.is-lean .res-head, body.is-lean .res-meta, body.is-lean .res-detail > .prose, body.is-lean .pdf-fallback, body.is-lean .read-resume, body.is-lean .res-nav, body.is-lean .submit-box { display: none; }
body.is-lean .pdf-view { margin: 0; }
body.is-lean .pdf-frame, body.is-lean .doc-view { height: calc(100vh - 58px); min-height: 0; }
/* v1.26 — Publication depuis la barre de projection */
.pubpop { position: relative; display: inline-block; }
.pub-state { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; }
.pub-state .dot { width: 9px; height: 9px; border-radius: 50%; background: #8a98b8; }
.pub-state.is-on { background: #1a9a5a; color: #fff; } .pub-state.is-on .dot { background: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .3); }
.pub-state.is-sched { background: var(--sun); color: var(--navy); } .pub-state.is-sched .dot { background: var(--navy); }
.pub-state.is-off { background: #e8edf7; color: var(--navy); }
.pubpop-panel { position: absolute; right: 0; top: calc(100% + 6px); width: min(360px, 92vw); background: var(--white); color: var(--ink); border-radius: 16px; box-shadow: 0 18px 50px rgba(0, 0, 0, .25); padding: 14px 16px; z-index: 30; text-align: left; }
.pubpop-panel h3 { font-size: .98rem; margin: 0 0 4px; }
.pubpop-f { display: flex; gap: 8px; align-items: baseline; padding: 6px 0; border-top: 1px solid var(--line); font-size: .9rem; }
.pubpop-f small { display: block; }
.pubpop-when { border: 0; padding: 0; margin: 10px 0 0; display: flex; flex-direction: column; gap: 4px; }
.pubpop-when legend { padding: 0; margin-bottom: 4px; }
.pubpop-at { font-size: .85rem; padding: 4px 6px; border: 1px solid var(--line); border-radius: 8px; }
.pubpop-acts { display: flex; gap: 8px; margin-top: 12px; }
.pubpop-acts .btn { flex: 1; justify-content: center; }
.pdf-view.is-full .pubpop-panel { position: fixed; top: 54px; right: 12px; }
/* ---------- v1.26 — Grille harmonisée : cartes avec image, chapitres dépliables ---------- */
.g-expand { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line); background: var(--white); color: var(--muted); display: inline-grid; place-items: center; cursor: pointer; flex: none; }
.g-expand .ic { width: 14px; height: 14px; transition: transform .15s; }
.g-expand[aria-expanded="true"] .ic { transform: rotate(90deg); }
.g-expand:hover { border-color: var(--blue-2); color: var(--blue); }
.g-card-img { width: 92px; height: 60px; border-radius: 10px; object-fit: cover; flex: none; box-shadow: 0 2px 8px rgba(19, 38, 79, .15); background: var(--sky); }
.g-mod-in .g-card-img { margin-right: 2px; }
.g-mat.g-cardrow .g-mat-in { gap: 12px; }
.g-mat-pills { margin-right: 8px; }
.g-chaps > td { padding: 0 10px 12px; background: var(--sky-2); }
.gc-wrap { display: flex; flex-direction: column; gap: 10px; padding: 10px 10px 4px 46px; }
.gc-sec { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 12px; overflow: hidden; }
.gc-sec.is-full { border-left-color: #1a9a5a; } .gc-sec.is-part { border-left-color: #d9962a; } .gc-sec.is-none { border-left-color: #c9d3e6; }
.gc-sec-h { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: #f6f8fd; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.gc-num { width: 30px; height: 30px; border-radius: 9px; background: var(--sky); color: var(--blue); font-weight: 800; display: grid; place-items: center; font-size: .85rem; flex: none; }
.gc-num.is-end { background: var(--navy); color: #fff; }
.gc-sec-t { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.gc-sec-t strong { font-size: .95rem; } .gc-sec-t small { color: var(--muted); font-size: .78rem; }
.gc-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.gc-pill { font-size: .72rem; padding: 3px 8px; display: inline-flex; gap: 4px; align-items: center; }
.gc-pill small { font-weight: 700; opacity: .8; }
.gc-sw { display: flex; gap: 8px; align-items: center; margin-left: 4px; }
.gc-all .linkbtn { font-size: .78rem; margin-left: 6px; }
.gc-rows { list-style: none; margin: 0; padding: 4px 14px 8px 56px; display: flex; flex-direction: column; }
.gc-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid #f1f4fa; font-size: .9rem; min-width: 0; }
.gc-row:first-child { border-top: 0; }
.gc-row.is-draft .gc-t { color: var(--muted); }
.gc-ty { font-size: .68rem; font-weight: 800; padding: 2px 7px; border-radius: 999px; background: var(--sky); color: var(--blue); flex: none; text-transform: uppercase; letter-spacing: .04em; }
.gc-ty.k-supports { background: #e3f4fc; color: #1a9ad6; } .gc-ty.k-exercices { background: #fff3d1; color: #9a5b00; } .gc-ty.k-corriges { background: #e7f6ee; color: #166534; } .gc-ty.k-qcm { background: #ececff; color: #5b5ef0; } .gc-ty.k-projets { background: #f1ebff; color: #8b5cf6; } .gc-ty.k-examen { background: #fde8e8; color: #b42318; }
.gc-t { flex: 1; min-width: 0; color: var(--ink); text-decoration: none; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gc-t:hover { color: var(--blue); }
.gc-row .gp-edit { font-size: .78rem; }
.gc-empty { padding: 8px 14px; margin: 0; }
@media (max-width: 760px) { .gc-wrap { padding-left: 6px; } .gc-rows { padding-left: 14px; } .g-card-img { width: 64px; height: 44px; } .gc-t { white-space: normal; } }
.mat-link { color: inherit; text-decoration: none; }
.mat-link:hover { color: var(--blue); text-decoration: underline; }
/* ---------- v1.26 — Accueil de la direction ---------- */
.tb-hello { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.tb-hello h1 { font-size: 1.6rem; margin: 0; }
.tb-hello .actions { margin-left: auto; display: flex; gap: 8px; }
.tb-cols { display: grid; grid-template-columns: 1fr 360px; gap: 16px; align-items: start; }
@media (max-width: 1000px) { .tb-cols { grid-template-columns: 1fr; } }
.tb-card { padding: 16px 18px; }
.tb-card h2 { font-size: 1.05rem; margin: 0 0 10px; }
.tb-card .row-head h2 { margin: 0; }
.tb-frow { display: grid; grid-template-columns: 120px minmax(0, 1fr) 200px; gap: 10px 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.tb-frow:first-of-type { border-top: 0; }
.tb-fimg { position: relative; display: block; height: 76px; grid-row: span 2; border-radius: 12px; overflow: hidden; background: var(--sky); }
.tb-fimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tb-fimg .prog-code { position: absolute; left: 8px; top: 8px; font-size: .68rem; font-weight: 800; background: #fff; color: var(--navy); border-radius: 999px; padding: 2px 8px; }
.tb-ft { min-width: 0; display: flex; flex-direction: column; gap: 2px; grid-row: span 2; }
.tb-ft a { color: var(--ink); text-decoration: none; font-size: .98rem; }
.tb-ft h3 { font-size: .98rem; margin: 0; line-height: 1.3; }
.tb-ft .pc-state { align-self: flex-start; margin-top: 2px; }
.tb-card.prog-cards .tb-frow { display: grid; }
.tb-ft a:hover { color: var(--blue); }
.tb-ft small { font-size: .78rem; }
.tb-fs { font-size: .82rem; line-height: 1.35; grid-column: 3; }
.tb-fs .is-strong { font-weight: 700; } .is-warn { color: #b45309; font-weight: 700; }
.tb-fp { display: flex; flex-direction: column; gap: 4px; font-size: .78rem; grid-column: 3; }
.tb-fp progress { width: 100%; height: 7px; }
.tb-fl { grid-column: 2 / -1; display: flex; gap: 6px; flex-wrap: wrap; margin-top: -4px; }
.tb-fl a { font-size: .72rem; font-weight: 700; color: var(--blue); text-decoration: none; background: var(--sky); border-radius: 999px; padding: 3px 9px; }
.tb-fl a:hover { background: var(--blue); color: #fff; }
@media (max-width: 760px) { .tb-frow { grid-template-columns: 96px minmax(0, 1fr); } .tb-fimg, .tb-ft { grid-row: auto; } .tb-fs, .tb-fp, .tb-fl { grid-column: 1 / -1; } }
.tb-todo { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.tb-todo:first-of-type { border-top: 0; }
.tb-todo:hover strong { color: var(--blue); }
.tb-big { font-family: var(--display); font-weight: 800; font-size: 1.5rem; width: 44px; text-align: center; flex: none; }
.tb-big.is-red { color: #e23d3d; } .tb-big.is-amber { color: #d9962a; } .tb-big.is-ok { color: #1a9a5a; }
.tb-todo-t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.tb-todo-t small { color: var(--muted); font-size: .78rem; }
.tb-sess { list-style: none; margin: 0; padding: 0; }
.tb-sess li { display: flex; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); font-size: .9rem; }
.tb-sess li:first-child { border-top: 0; }
.tb-time { width: 48px; flex: none; font-weight: 800; font-size: .8rem; color: var(--muted); }
.tb-sess-t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.tb-sess-t a { color: var(--ink); text-decoration: none; }
.tb-sess-t small { color: var(--muted); font-size: .78rem; }
/* v1.26 — Explorateur étudiant en deux colonnes : blocs | matières en cartes (la page de la matière s'ouvre au clic) */
.xp-2col .xp-grid { grid-template-columns: 236px minmax(0, 1fr); }
.xp-2col .xp-c3 { display: none; }
.xp-2col .xp-c2 { border-right: 0; }
.xp-2col .xp-scroll { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; padding: 12px; align-content: start; }
.xp-2col .matiere-group { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; gap: 12px; }
.xp-2col .matiere-group .matiere-title { grid-column: 1 / -1; margin: 6px 0 0; }
.xp-2col .module-card.xp-smod { flex-direction: column; align-items: stretch; gap: 0; padding: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--white); overflow: hidden; box-shadow: 0 6px 18px rgba(19, 38, 79, .04); position: relative; }
.xp-2col .module-card.xp-smod:hover { box-shadow: 0 10px 26px rgba(19, 38, 79, .1); border-color: var(--blue-2); }
.xp-2col .module-card.xp-smod .xp-thumb.sm { width: 100%; height: 116px; border-radius: 0; }
.xp-2col .module-card.xp-smod .xp-smod-main { padding: 10px 12px 12px; gap: 3px; }
.xp-2col .module-card.xp-smod .xp-smod-main strong { font-size: .92rem; }
.xp-2col .module-card.xp-smod .xp-dot { position: absolute; left: 10px; top: 10px; }
.xp-2col .module-card.xp-smod > .tag { position: absolute; right: 10px; top: 10px; }
.xp-2col .module-card.xp-smod.on { outline: 2px solid var(--blue); }
@media (max-width: 900px) { .xp-2col .xp-grid { grid-template-columns: 1fr; } }
/* v1.26 — accueil direction : les lignes de formations reprennent les crochets des anciennes cartes (.prog-card) sans leur mise en page */
.tb-card.prog-cards { display: block; margin-bottom: 16px; }
.tb-card .prog-card.tb-frow { display: grid; grid-template-columns: 120px minmax(0, 1fr) 200px; gap: 10px 14px; padding: 12px 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; background: transparent; }
.tb-card .prog-card.tb-frow:first-of-type { border-top: 0; }
.tb-card .prog-card .pc-figs { font-weight: 500; font-size: .78rem; color: var(--muted); }
.tb-card .prog-card .pc-people { font-size: .82rem; line-height: 1.35; }
.tb-card .prog-card .pc-pub { flex-direction: column; align-items: stretch; gap: 4px; }
.tb-card .prog-card .prog-links { display: flex; gap: 6px; flex-wrap: wrap; grid-column: 2 / -1; margin-top: -4px; }
.tb-card .prog-card .prog-links a { font-size: .72rem; font-weight: 700; color: var(--blue); text-decoration: none; background: var(--sky); border-radius: 999px; padding: 3px 9px; display: inline-flex; align-items: center; gap: 5px; }
.tb-card .prog-card .prog-links a .ic { width: .9em; height: .9em; }
@media (max-width: 760px) { .tb-card .prog-card.tb-frow { grid-template-columns: 96px minmax(0, 1fr); } .tb-card .prog-card .pc-people, .tb-card .prog-card .pc-pub, .tb-card .prog-card .prog-links { grid-column: 1 / -1; } }
.tb-card .prog-card .prog-links a { flex-direction: row; padding: 3px 9px; font-size: .72rem; line-height: 1.3; border: 0; min-height: 0; }
.tb-card .prog-card .prog-links a span { font-size: .72rem; margin: 0; }
.tb-card .prog-card .pc-pub progress { height: 8px; background: #e3e9f5; }

/* v1.26.1 — nom de l'école dans l'orange de la charte */
.school-name { color: var(--orange); }
.login-left h2 .school-name, .login-hero .school-name { color: var(--orange); }

/* v1.26.4 — Page de connexion (proposition 13 validée, E-1) : photo entière sur bleu nuit à gauche, panneau blanc large à droite
   (logo centré, « Campus en ligne », formulaire, repères sous « Mot de passe oublié ? ») */
.login.login-v3 { display: grid; grid-template-columns: 1.15fr 1fr; max-width: 1200px; min-height: 620px; background: var(--white); }
.login-v3 .login-photo-pane { position: relative; background: var(--night); padding: 0; }
.login-v3 .login-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% center; border-radius: 0; display: block; }
.login-v3 .login-card { padding: 44px 56px; display: flex; flex-direction: column; justify-content: center; }
.login-v3 .login-card .brand-logo.big { width: 230px; max-width: 70%; height: auto; margin: 0 auto 18px; display: block; }
.login-v3 .login-card h1 { font-size: 1.4rem; line-height: 1.15; text-align: center; margin: 0 0 4px; }
.login-v3 .login-card .cert-mention { text-align: center; margin: 0 0 6px; }
.login-v3 .login-card .login-sub { text-align: center; font-size: .9rem; margin: 0 0 8px; }
.login-v3 .login-card .form { margin-top: 6px; }
.login-v3 .login-forgot { text-align: center; margin: 10px 0 0; }
.login-v3 .login-pills { margin: 20px 0 0; padding: 0; list-style: none; display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.login-v3 .login-pills li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border-radius: 999px; background: var(--sky); color: var(--navy); font-size: .78rem; font-weight: 700; }
.login-v3 .login-pills li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
@media (max-width: 860px) {
  .login.login-v3 { grid-template-columns: 1fr; min-height: 0; }
  .login-v3 .login-photo-pane { height: 240px; }
  .login-v3 .login-card { padding: 26px 20px 28px; }
}

/* v1.27 — suppression depuis la vue par chapitre : corbeille discrète sur chaque ressource, ligne d'outils du chapitre */
.row .del-form { margin-left: .15rem; }
.btn-del { color: var(--muted); padding-inline: .45rem; }
.btn-del:hover, .btn-del:focus-visible { color: var(--accent-ink); background: var(--red-bg); box-shadow: inset 0 0 0 1.5px #f3c3c7; }
.row.ch-tools { background: var(--soft, #f6f8fc); border-top: 1px dashed var(--line); flex-wrap: wrap; gap: .4rem; }
.row.ch-tools .row-main { min-width: 8rem; }
.row.ch-tools .btn-del { color: var(--accent-ink); }
@media (max-width: 640px) { .row.ch-tools .row-main { flex-basis: 100%; } }
/* v1.27 — en-tête de chapitre sur mobile : le titre long se replie, les pastilles (état, compteur) passent dessous sans déborder */
@media (max-width: 640px) {
  .ch-card .pg-cat-toggle { flex-wrap: wrap; row-gap: 4px; }
  .ch-card .pg-cat-name { flex: 1 1 60%; min-width: 0; }
  .ch-card .pg-cat-count, .ch-card .ch-state { margin-left: auto; }
}
@media (max-width: 560px) {
  /* lignes de ressources de la vue par chapitre : titre sur toute la largeur, boutons et pastilles en dessous à droite */
  .pg-cat-body .row { flex-wrap: wrap; row-gap: 8px; column-gap: 8px; }
  .pg-cat-body .row > .pill-ic { margin-right: 6px; }
  .pg-cat-body .row .row-main { flex: 1 1 calc(100% - 52px); }
  .pg-cat-body .row .row-main + * { margin-left: auto; }
}

/* v1.27.3 — fiche formateur : tableau unique des affectations (proposition 14 B) */
.aff-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.aff-table th { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); text-align: left; padding: 8px 10px; background: var(--soft, #f8faff); border-bottom: 1px solid var(--line); }
.aff-table th.c, .aff-table td.c { text-align: center; }
.aff-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.aff-head td { padding: 0; background: var(--c-soft, #eef3fd); }
.aff-toggle { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; background: transparent; font: inherit; font-weight: 800; color: var(--navy); cursor: pointer; text-align: left; }
.aff-toggle .chev .ic { transition: transform .15s; }
.aff-prog.open .aff-toggle .chev .ic { transform: rotate(90deg); }
.aff-prog:not(.open) .aff-row, .aff-prog:not(.open) .aff-detail { display: none; }
.aff-row td:first-child small { display: inline-block; }
.aff-direct { display: block; color: #166534; font-weight: 600; margin-top: 2px; }
.aff-specs { display: inline-flex; flex-direction: column; gap: 4px; align-items: flex-start; text-align: left; }
.check.sm { font-size: .85rem; gap: 5px; margin: 0; display: inline-flex; align-items: center; }
.check.sm .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.aff-cb input { width: 20px; height: 20px; }
.aff-detail td { background: var(--soft, #f8faff); }
.aff-detail .check-grid { margin: 0; }
@media (max-width: 640px) { .aff-table { font-size: .85rem; } .aff-table th, .aff-table td { padding: 7px 6px; } .aff-table td:last-child { display: none; } .aff-table th:last-child { display: none; } }

/* v1.27.3 — résultats d'un QCM */
.qr-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.qr-q { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.qr-q-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.qr-bar { margin: 8px 0; }
.qr-bar progress { flex: 1; }
.qr-opts { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.qr-opts li { display: flex; gap: 8px; align-items: center; font-size: .9rem; padding: 4px 8px; border-radius: 8px; }
.qr-opts li.is-right { background: #e7f6ee; }
.qr-letter { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--c-soft, #eef3fd); font-weight: 800; font-size: .75rem; flex: none; }
.qr-opts li .tag { margin-left: auto; }
.qr-table td.c, .qr-table th.c { text-align: center; }
.qr-ok { color: #166534; font-weight: 800; }
.qr-ko { color: var(--accent-ink, #b42318); font-weight: 800; }
.qr-all summary { cursor: pointer; }

/* v1.27.5 — formations (liste, paramètres), menu ⋯ d'un chapitre dans la grille */
.xmenu-i.danger { color: var(--accent-ink); }
.table.formations tr.is-sel td { background: var(--c-soft, #eef3fd); }
.table.formations td.nowrap { white-space: nowrap; }
.kind-opt { align-items: flex-start; }
.kind-opt small { display: block; font-weight: 500; }
.bloc-add { margin-top: 14px; padding: 14px 16px; border: 1px dashed var(--line); border-radius: 14px; }
.gc-sw .xmenu { display: inline-block; margin-left: 4px; vertical-align: middle; }
.upper { text-transform: uppercase; } .w-short { max-width: 8rem; } .mt-22 { margin-top: 22px; } .mt-14 { margin-top: 14px; }

/* v1.27.6 — publier aussi dans d'autres formations ; bouton « Choisir les cours » ; sections d'une matière */
.share-extra-d summary { cursor: pointer; font-weight: 700; color: var(--blue); }
.share-extra-q { width: 100%; margin: 10px 0 6px; font: inherit; padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 10px; }
.share-extra-list { max-height: 320px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; padding: 6px 10px; background: var(--white); }
.share-extra-p { margin: 8px 0 4px; font-weight: 800; font-size: .85rem; display: flex; gap: 6px; align-items: center; }
.share-extra-i { display: flex; gap: 8px; padding: 4px 2px; font-size: .88rem; margin: 0; }
.share-extra-i[hidden] { display: none; }
.aff-pick { white-space: nowrap; }
.mt-section { margin: 22px 0 8px; font-size: 1.1rem; display: flex; align-items: center; gap: 8px; color: var(--navy); border-bottom: 2px solid var(--c-soft, #eef3fd); padding-bottom: 6px; }

/* v1.27.10 — ressource : chapitre en tête du formulaire, filtre de la liste des cours */
.chap-box { margin: 4px 0 14px; padding: 12px 14px; border-radius: 14px; background: #f3f6fd; border: 1px solid #d7e0f5; }
.chap-box legend { font-weight: 700; color: #1d2a5a; padding: 0 6px; }
.chap-box .hint { margin: 6px 0 0; }
.mod-filter { margin: 4px 0 6px; }

/* v1.27.11 — tête de la barre latérale : identité (photo) + formation ; photo de profil */
.avatar.has-photo { padding: 0; overflow: hidden; background: #e6ebf7; }
.avatar.has-photo img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
.avatar.avatar-md { width: 44px; height: 44px; font-size: 15px; }
.avatar.avatar-lg { width: 72px; height: 72px; font-size: 22px; }
.avatar.sm { width: 30px; height: 30px; font-size: 12px; }
.side-who { display: flex; align-items: center; gap: 10px; margin: 10px 0 6px; padding: 9px 10px; border-radius: 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: #fff; text-decoration: none; }
.side-who:hover, .side-who.on { background: rgba(255,255,255,.14); }
.side-who .who-txt { min-width: 0; flex: 1; display: flex; flex-direction: column; line-height: 1.2; }
.side-who .who-txt strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-who .who-txt small { font-size: 11.5px; opacity: .78; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-who .who-edit { font-size: 11px; opacity: .8; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.side-prog { display: block; margin: 0 0 8px; border-radius: 12px; background: rgba(255,255,255,.06); color: #fff; text-decoration: none; font-size: 12.5px; }
.side-prog summary, .side-prog-a { display: flex; align-items: center; gap: 8px; padding: 8px 10px; cursor: pointer; list-style: none; }
.side-prog summary::-webkit-details-marker { display: none; }
.side-prog .sp-ic { width: 28px; height: 28px; border-radius: 8px; background: rgba(255,255,255,.14); display: grid; place-items: center; flex: none; }
.side-prog .sp-ic svg { width: 16px; height: 16px; }
.side-prog .sp-txt { min-width: 0; flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.side-prog .sp-txt strong { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-prog .sp-txt small { opacity: .75; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-prog .sp-sw { margin-left: auto; font-size: 11px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.side-prog .sp-bar { display: block; height: 5px; border-radius: 5px; background: rgba(255,255,255,.15); margin-top: 6px; overflow: hidden; }
.side-prog .sp-bar i { display: block; height: 100%; width: 0; background: #7cc4ff; border-radius: 5px; transition: width .4s; }
.side-prog .sp-list { padding: 4px 6px 8px; display: flex; flex-direction: column; gap: 2px; }
.side-prog .sp-list a { color: #fff; text-decoration: none; padding: 6px 8px; border-radius: 8px; font-size: 12.5px; opacity: .9; }
.side-prog .sp-list a:hover, .side-prog .sp-list a.on { background: rgba(255,255,255,.14); opacity: 1; }
.side-prog .sp-list a b { display: inline-block; min-width: 56px; }
.side-prog .sp-list .tag { font-size: 10px; }
.side-foot-v2 { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.12); }
.side-foot-v2 small { opacity: .7; font-size: 11.5px; }
.side-foot-v2 .logout button { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 5px 10px; cursor: pointer; }
.side-foot-v2 .logout button svg { width: 15px; height: 15px; }
.mtop-me { margin-left: 6px; display: inline-flex; }
.avatar-form { margin: 10px 0 16px; padding: 12px; border-radius: 14px; border: 1px solid #e3e8f3; background: #fafbff; }
.avatar-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.avatar-form .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.file-btn { cursor: pointer; }

/* v1.27.11 — chapitres : outils (renommer, déplacer, supprimer), ordre des ressources, création */
.res-ord { display: inline-flex; flex-direction: column; gap: 1px; margin-right: 2px; }
.res-ord button { border: 0; background: transparent; color: #5b6a93; font-size: 13px; font-weight: 700; line-height: 1; padding: 2px 5px; cursor: pointer; border-radius: 4px; }
.res-ord button:hover { background: #e9eef9; color: #1d2a5a; }
.ch-tools { flex-wrap: wrap; gap: 6px; }
.ch-ord { display: inline-flex; gap: 2px; }
.ch-ord button[disabled] { opacity: .35; cursor: default; }
.ch-act { position: relative; display: inline-block; }
.ch-act > summary { list-style: none; cursor: pointer; display: inline-flex; }
.ch-act > summary::-webkit-details-marker { display: none; }
.ch-act[open] > summary { background: #e9eef9; }
.ch-act-f { position: absolute; right: 0; top: calc(100% + 6px); z-index: 5; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; min-width: 320px; max-width: min(92vw, 520px); padding: 10px 12px; background: #fff; border: 1px solid #d7e0f5; border-radius: 12px; box-shadow: 0 10px 30px rgba(20, 34, 74, .14); }
.ch-act-f input[name=title] { flex: 1; min-width: 180px; }
.ch-act-f label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; flex: 1; min-width: 220px; }
.ch-act-del .ch-act-f { border-color: #f3c0bb; }
.btn-del { color: #b42318; }
.ch-new { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 12px 0 20px; padding: 12px 14px; border: 2px dashed #cfd8ec; border-radius: 14px; background: #fbfcff; }
.ch-new input { flex: 1; min-width: 220px; }
.ch-new small { flex-basis: 100%; }
@media (max-width: 640px) { .ch-act-f { position: static; min-width: 0; width: 100%; margin-top: 6px; box-shadow: none; } .ch-act { display: block; } }

/* v1.27.12 — barre compacte en tête des cours / matières / ressources (proposition A) */
.mod-bar.tb { gap: 6px 8px; padding: 8px 0; align-items: center; }
.tb-back { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--ink); text-decoration: none; padding: 6px 10px; border-radius: 10px; background: #e9eef9; white-space: nowrap; }
.tb-back:hover { background: #dde5f7; }
.tb-crumbs { flex: 1 1 240px; min-width: 0; display: flex; align-items: center; gap: 4px; font-size: 13.5px; color: var(--muted); overflow: hidden; }
.tb-crumbs .tb-pill { color: var(--ink); text-decoration: none; padding: 5px 9px; border-radius: 8px; background: #eef2fb; white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; flex: none; }
.tb-crumbs a.tb-pill:hover { background: #dde5f7; }
.tb-crumbs .tb-sep { opacity: .5; flex: none; }
.tb-crumbs .tb-cur { font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 40px; padding: 5px 4px; }
.tb-pn { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; flex: none; }
.tb-pn a, .tb-pn .off { padding: 6px 10px; color: var(--blue); text-decoration: none; font-weight: 700; font-size: 13px; white-space: nowrap; }
.tb-pn a + a, .tb-pn .off + a, .tb-pn a + .off { border-left: 1px solid var(--line); }
.tb-pn .off { opacity: .35; }
.tb-search { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: #5b6785; display: inline-grid; place-items: center; cursor: pointer; flex: none; }
.tb-search:hover { background: #eef2fb; }
.tb-search svg { width: 16px; height: 16px; }
.mod-bar.tb .read-actions { flex: 1 1 auto; justify-content: flex-end; }
.mod-bar.tb.read-bar .tb-crumbs { flex: 1 1 200px; }
@media (max-width: 760px) {
  .mod-bar.tb { gap: 6px; }
  .tb-back span { display: none; }
  .tb-crumbs { order: 10; flex-basis: 100%; font-size: 12px; }
  .tb-crumbs .tb-pill, .tb-crumbs .tb-cur { padding: 2px 6px; background: transparent; color: #5b6785; font-weight: 500; max-width: 160px; }
  .tb-pn a span, .tb-pn .off span { display: none; }
  .tb-pn a, .tb-pn .off { padding: 6px 9px; }
}
.eyebrow .tag-prog { font-size: 11px; letter-spacing: 0; text-transform: none; font-weight: 700; background: var(--sky); color: var(--navy); margin-right: 2px; }

/* v1.27.12 — déplacement : poignées, menus « Déplacer », sélection multiple, glisser-déposer */
.grip { cursor: grab; color: #9aa6c4; font-size: 16px; letter-spacing: -3px; padding: 0 4px; user-select: none; flex: none; line-height: 1; }
.grip:hover { color: var(--ink); }
.grip-ch { margin-right: 4px; }
li.row.dragging, section.dragging { opacity: .5; }
.dnd-ph { height: 0; border-top: 3px solid var(--blue); border-radius: 3px; margin: 2px 6px; list-style: none; position: relative; }
.dnd-ph::before { content: ""; position: absolute; left: -7px; top: -6px; width: 9px; height: 9px; border-radius: 50%; background: var(--blue); }
body.dnd-chap .res-section .pg-cat-body { display: none; }
body.dnd-chap .res-section { border: 2px dashed var(--line); }
.dnd-toast { position: fixed; right: 18px; bottom: 18px; z-index: 60; background: #e7f6ed; color: #0f7b46; border: 1px solid #bfe6cf; border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: 13.5px; display: flex; gap: 10px; align-items: center; box-shadow: 0 10px 30px rgba(20, 34, 74, .14); }
.dnd-toast button { border: 0; background: transparent; color: #0f7b46; text-decoration: underline; font-weight: 700; cursor: pointer; font: inherit; }
.sel-box { width: 16px; height: 16px; flex: none; margin: 0 2px 0 0; opacity: .35; }
li.row:hover .sel-box, .sel-box:checked, li.row.is-sel .sel-box { opacity: 1; }
li.row.is-sel { background: var(--sky-2); outline: 2px solid var(--blue); border-radius: 10px; }
details.mv { position: relative; display: inline-block; }
details.mv > summary { list-style: none; cursor: pointer; display: inline-flex; }
details.mv > summary::-webkit-details-marker { display: none; }
.mv-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 270px; max-width: min(92vw, 380px); background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(20, 34, 74, .14); padding: 6px; display: flex; flex-direction: column; gap: 2px; }
.mv-f { display: flex; flex-direction: column; gap: 2px; }
.mv-h { font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); padding: 6px 10px 2px; }
.mv-pop button, .mv-pop a { text-align: left; border: 0; background: transparent; padding: 7px 10px; border-radius: 8px; font: inherit; font-size: 13.5px; color: var(--ink); cursor: pointer; text-decoration: none; }
.mv-pop button:hover, .mv-pop a:hover { background: var(--sky-2); }
.mv-pop button.on { font-weight: 700; background: var(--sky-2); cursor: default; }
.sel-bar { position: sticky; bottom: 10px; z-index: 30; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 10px 0; padding: 10px 12px; border-radius: 12px; background: var(--ink); color: #fff; box-shadow: 0 10px 30px rgba(20, 34, 74, .25); }
.sel-bar .btn { background: #fff; color: var(--ink); border-color: #fff; }
.sel-bar .btn.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.3); }
.sel-bar .sel-to { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.sel-bar select { padding: 5px 8px; border-radius: 8px; border: 1px solid rgba(255,255,255,.4); background: #fff; color: var(--ink); font: inherit; font-size: 13px; max-width: 240px; }
@media (max-width: 640px) { .mv-pop { position: fixed; left: 10px; right: 10px; top: auto; bottom: 10px; max-width: none; } }
.dnd-ph-sec { margin: 6px 0; }
.cat-title.has-grip { display: flex; align-items: center; gap: 4px; }
.cat-title.has-grip .pg-cat-toggle { flex: 1; min-width: 0; }

/* v1.27.13 — « Ouvrir » (vue intégrée) sur un exercice à rédiger : visionneuse réduite + éditeur de réponse visible */
body.is-lean .submit-box.lean-keep { display: block; padding: 14px 16px 24px; }
body.is-lean .pdf-view.with-editor .pdf-frame, body.is-lean .pdf-view.with-editor .doc-view { height: 58vh; }
body.is-lean .submit-box.lean-keep h2 { font-size: 17px; margin-top: 8px; }
.ch-hide-all { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 10px 0 4px; }
.ch-hide-all small { font-size: 12.5px; }
/* v1.27.13 — réponses rédigées en ligne, vues par l'équipe */
.drafts-staff { margin-top: 14px; } .drafts-staff h3 { font-size: 16px; display: flex; gap: 8px; align-items: center; margin: 0 0 8px; }
.draft-d > summary { list-style: none; display: flex; align-items: center; gap: 10px; cursor: pointer; } .draft-d > summary::-webkit-details-marker { display: none; }
.draft-d[open] > summary .btn::after { content: " ▴"; } .draft-d .answer-view { margin: 10px 0 6px; padding: 12px 14px; background: var(--soft, #f3f6fc); border-radius: 10px; }
/* v1.27.13 — pendant un glisser-déposer, la barre fixe du haut laisse passer le dépôt sur le chapitre qu'elle recouvre */
body.dnd-chap .mod-bar.tb, body.dnd-res .mod-bar.tb, body.dnd-chap .mtop, body.dnd-res .mtop { pointer-events: none; }

/* v1.27.14 — « + Ressource » en tête de chapitre (toutes formations) */
.res-section.pg-cat .cat-title { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.res-section.pg-cat .cat-title .pg-cat-toggle { flex: 1 1 260px; min-width: 0; }
.cat-title .ch-add { flex: 0 0 auto; white-space: nowrap; font-family: var(--body); font-weight: 600; font-size: .82rem; }
@media (max-width: 560px) { .cat-title .ch-add { margin-left: 44px; } }
.mail-prefs { gap: 6px; margin-bottom: 18px; }
.mail-prefs label.check { background: var(--sky-2); border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; margin: 0; }
.mail-prefs .btn { align-self: flex-start; margin-top: 6px; }

/* v1.27.14 — Publication par section du cours (éditeur) */
.sec-pub-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.sec-pub-list li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.sec-pub-list li.is-off { background: var(--sky-2); }
.sec-pub-list .sec-n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; font-size: .82rem; flex: none; }
.sec-pub-list .sec-t { flex: 1 1 200px; min-width: 0; font-weight: 600; }
.sec-pub-all { margin-top: 10px; }

/* v1.27.15 — Éditeur enrichi : couleurs (palette fixe), surlignage, encadrés, tableaux, images, liens */
.tc-blue { color: var(--blue); } .tc-red { color: #c0392b; } .tc-green { color: #17784a; } .tc-orange { color: #a35f00; } .tc-grey { color: #5b6b8a; }
mark.hl-yellow { background: #fff3a3; } mark.hl-blue { background: #dbe7ff; } mark.hl-green { background: #dff5e8; } mark.hl-pink { background: #ffe1ec; }
mark[class^="hl-"] { color: inherit; padding: 0 2px; border-radius: 3px; }
.course figure.ce-fig { margin: 1.2em 0; text-align: center; }
.course figure.ce-fig img { max-width: 100%; height: auto; border-radius: 12px; box-shadow: var(--shadow); }
.course figure.ce-fig figcaption { font-size: .88rem; color: #5b6b8a; margin-top: 8px; font-style: italic; }
.course img { max-width: 100%; height: auto; }
.course table:not(.c-table) { border-collapse: collapse; width: 100%; font-size: .93rem; }
.course table:not(.c-table) th, .course table:not(.c-table) td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.course table:not(.c-table) th { background: var(--sky-2); color: var(--navy); }
.ce-visual td, .ce-visual th { outline: 1px dashed rgba(29, 79, 184, .25); outline-offset: -1px; min-height: 1.4em; }
.ce-visual td:focus, .ce-visual th:focus { outline: 2px solid var(--blue-2); }
.editor-bar details.ce-dd { position: relative; }
.editor-bar details.ce-dd summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; border-radius: 9px; border: 1px solid transparent; font-size: .86rem; color: var(--ink); user-select: none; }
.editor-bar details.ce-dd summary::-webkit-details-marker { display: none; }
.editor-bar details.ce-dd summary:hover, .editor-bar details.ce-dd[open] summary { background: var(--white); border-color: var(--line); }
.ce-menu { position: absolute; left: 0; top: 38px; z-index: 5; background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; min-width: 220px; display: grid; gap: 2px; }
.ce-menu hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }
.ce-menu small { padding: 4px 8px; max-width: 260px; line-height: 1.35; }
.editor-bar .ce-menu button { height: auto; min-width: 0; padding: 7px 10px; text-align: left; display: flex; align-items: center; gap: 8px; width: 100%; border-radius: 8px; }
.editor-bar .ce-menu button:hover { background: var(--sky-2); border-color: transparent; }
span.sw { display: inline-block; width: 13px; height: 13px; border-radius: 4px; border: 1px solid rgba(0, 0, 0, .14); flex: none; }
.sw-blue { background: var(--blue); } .sw-red { background: #c0392b; } .sw-green { background: #17784a; } .sw-orange { background: #a35f00; } .sw-grey { background: #5b6b8a; }
.sw-hl-yellow { background: #fff3a3; } .sw-hl-blue { background: #dbe7ff; } .sw-hl-green { background: #dff5e8; } .sw-hl-pink { background: #ffe1ec; }
.ce-tbar { position: sticky; top: 50px; z-index: 2; display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 12px 0; padding: 5px; background: var(--navy); color: #fff; border-radius: 10px; width: max-content; max-width: calc(100% - 24px); }
.ce-tbar button { font: inherit; font-size: .8rem; padding: 4px 8px; border-radius: 7px; border: 0; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; }
.ce-tbar button:hover { background: rgba(255, 255, 255, .26); }

/* v1.27.15 — Coche « Fait » de l'équipe (pour soi) et reprise */
.done-btn { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px 0 7px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: #5b6b8a; font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; }
.done-btn .done-ic { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #9db4e8; flex: none; }
.done-btn:hover { border-color: var(--blue-2); color: var(--blue); }
.done-btn.is-done { background: #e5f5ec; border-color: #b9e6cb; color: #17784a; }
.done-btn.is-done .done-ic { border-color: #17784a; background: #17784a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 11px no-repeat; }
.staff-prog { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* v1.27.15 — Auto-évaluation par chapitre (étudiant) */
.ae { margin: 8px 0 4px; border: 1px dashed #c9d4ea; border-radius: 14px; background: #fbfcff; }
.ae > summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 10px 14px; cursor: pointer; }
.ae > summary::-webkit-details-marker { display: none; }
.ae > summary .row-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ae[open] > summary { border-bottom: 1px dashed #c9d4ea; }
.ae-f { padding: 12px 14px 14px; display: grid; gap: 10px; }
.ae-levels { display: flex; flex-wrap: wrap; gap: 8px; }
.ae-opt { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-size: .88rem; font-weight: 600; cursor: pointer; }
.ae-opt input { margin: 0; accent-color: var(--blue); }
.ae-opt.on, .ae-opt:has(input:checked) { border-color: currentColor; }
.ae-1, .ae-opt.ae-1:has(input:checked) { color: #c0392b; } .ae-2, .ae-opt.ae-2:has(input:checked) { color: #a35f00; } .ae-3, .ae-opt.ae-3:has(input:checked) { color: var(--blue); } .ae-4, .ae-opt.ae-4:has(input:checked) { color: #17784a; }
.ae-opt.ae-1:has(input:checked) { background: #fff1ef; } .ae-opt.ae-2:has(input:checked) { background: #fff4d1; } .ae-opt.ae-3:has(input:checked) { background: #eef3ff; } .ae-opt.ae-4:has(input:checked) { background: #e5f5ec; }
.ae-lv { font-weight: 700; }
.ae-c { display: grid; gap: 4px; font-size: .86rem; color: #5b6b8a; }
.ae-c textarea { font: inherit; font-size: .95rem; color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; resize: vertical; }
.ae-act { display: flex; gap: 8px; }
.ae-dist { display: flex; gap: 2px; height: 10px; border-radius: 5px; overflow: hidden; background: var(--sky-2); min-width: 140px; }
.ae-dist span { display: block; height: 100%; } .ae-dist .d1 { background: #e4716a; } .ae-dist .d2 { background: #f0b14f; } .ae-dist .d3 { background: #4b8af0; } .ae-dist .d4 { background: #3fae75; }
.ae-com { border-left: 3px solid var(--line); padding: 4px 10px; margin: 6px 0; font-size: .92rem; }
.ae-com small { display: block; color: #5b6b8a; }
.ae-li { list-style: none; padding: 4px 0 0; }
.tag-new { background: #fff1d6; color: #a35f00; font-weight: 700; }

/* v1.27.15 — Cloche des nouveautés (étudiant) */
.bell { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 12px; color: inherit; text-decoration: none; }
.bell svg { width: 20px; height: 20px; }
.bell-side { margin: 0 0 6px; color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); width: 100%; justify-content: flex-start; gap: 10px; padding: 0 12px; height: 40px; font-size: .9rem; }
.bell-side::after { content: "Nouveautés"; font-weight: 600; }
.bell-side:hover { background: rgba(255,255,255,.14); }
.bell-top { color: #fff; }
.bell-n { position: absolute; top: 2px; left: 22px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #e4716a; color: #fff; font-size: .72rem; font-weight: 700; display: grid; place-items: center; line-height: 1; }
.bell-side .bell-n { position: static; margin-left: auto; }
.bell-side.has-new { border-color: rgba(228,113,106,.6); }
.list .row.is-unread { background: #fff8ef; }
.editor img, .answer-view img, .prose img { max-width: 100%; height: auto; }
.editor figure.ce-fig, .answer-view figure.ce-fig { margin: 1em 0; text-align: center; }
.editor figure.ce-fig img, .answer-view figure.ce-fig img { border-radius: 10px; box-shadow: var(--shadow); }
.editor figure.ce-fig figcaption, .answer-view figure.ce-fig figcaption { font-size: .86rem; color: #5b6b8a; margin-top: 6px; font-style: italic; }
.editor-wrap .ce-tbar { top: 52px; }

/* v1.27.15 — Téléphone : PDF ouvert dans le lecteur de l'appareil, activités en page entière */
.pdf-mobile { display: none; }
@media (max-width: 760px) {
  .pdf-view .pdf-frame { display: none; }
  .pdf-mobile { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 28px 16px; background: var(--sky-2); border-radius: 14px; margin: 8px; }
  .pdf-mobile small { color: #5b6b8a; }
  .pdf-mobile-btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
  .editor-bar { gap: 2px; }
  .editor-bar button, .editor-bar details.ce-dd summary { height: 32px; padding: 0 7px; font-size: .82rem; }
}

/* v1.27.17 — bloc Évaluations certificatives et éditeur de dates clés */
.tag-certif { background: var(--amber-bg); color: var(--amber); }
.fx-bloc.is-certif { --c: var(--amber); }
.kd-rows { display: grid; gap: 6px; margin: 6px 0 8px; }
.kd-row { display: grid; grid-template-columns: auto auto auto 1fr auto; gap: 6px; align-items: center; }
.kd-row input { margin: 0; }
.kd-row input[type=date] { width: 9.5em; }
.kd-to { font-size: .85rem; color: var(--muted); }
@media (max-width: 640px) {
  .kd-row { grid-template-columns: 1fr 1fr; }
  .kd-to { display: none; }
  .kd-row input[name="kd_label[]"] { grid-column: 1 / 3; }
  .kd-row input[type=date] { width: 100%; }
}

/* v1.27.17 — Mon calendrier : vue Semaines (grille de deux semaines, devoirs uniquement) */
.seg { display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--white); }
.seg a { padding: 7px 14px; font-size: .9rem; font-weight: 600; color: var(--blue); text-decoration: none; }
.seg a.on { background: var(--blue); color: var(--white); }
.wk-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 10px; }
.wk-head h2 { margin: 0; flex: 1 1 260px; font-size: 1.1rem; }
.wk-head h2 small { font-weight: 400; font-size: .85rem; }
.wk-nav { display: flex; gap: 6px; }
.wk-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.wk-day { border: 1px solid var(--line); border-radius: 10px; padding: 6px; min-height: 96px; background: var(--white); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.wk-day.is-we { background: #fbfcff; }
.wk-day.is-today { border: 2px solid var(--blue); }
.wk-date { font-size: .78rem; color: var(--muted); }
.wk-day.is-today .wk-date { color: var(--blue); font-weight: 700; }
.wk-item { display: flex; flex-direction: column; border-radius: 7px; padding: 4px 6px; text-decoration: none !important; font-size: .78rem; line-height: 1.3; text-decoration: none; color: var(--ink); border: 1px solid var(--line); background: var(--sky); min-width: 0; }
.wk-item strong { overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.wk-more { margin-top: 2px; } .wk-more summary { cursor: pointer; font-size: .78rem; color: var(--blue); font-weight: 600; list-style: none; }
.wk-more summary::-webkit-details-marker { display: none; }
.wk-more[open] summary { margin-bottom: 4px; }
.wk-more .wk-item { margin-top: 4px; }
.wk-card .wk-grid { gap: 4px; }
.wk-item span { color: var(--muted); }
.wk-item.is-done { opacity: .55; text-decoration: line-through; }
.wk-devoir { background: #eef3ff; border-color: #9db4e8; } .wk-devoir strong { color: var(--blue); }
.wk-qcm { background: #e5f5ec; border-color: #b9e6cb; } .wk-qcm strong { color: #17784a; }
.wk-rendre, .wk-retard { background: #fff1ef; border-color: #f8c9c4; } .wk-rendre strong, .wk-retard strong { color: #c0392b; }
.wk-seance { background: #fff8e1; border-color: #ffe08a; } .wk-seance strong { color: #a35f00; }
.wk-perso { background: #f1ebff; border-color: #d9d0fb; } .wk-perso strong { color: #6d4ce0; }
.wk-legend { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.wk-legend .wk-item { display: inline-block; padding: 2px 9px; border-radius: 999px; }
.wk-empty { margin: 0 0 8px; }
@media (max-width: 760px) {
  .wk-grid { grid-template-columns: 1fr; }
  .wk-day { min-height: 0; }
  .wk-day:not(.has-items):not(.is-today) { display: none; }
  .wk-item { font-size: .9rem; }
}
.form [data-kd-add] { width: auto; align-self: flex-start; }

/* v1.28 — Décrochages, tableau de bord du formateur, planning de publication */
.dc-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.form.dc-form { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.form.dc-form label, .form.dc-form label.check { display: inline-flex; flex-direction: row; align-items: center; gap: 6px; margin: 0; font-size: .92rem; width: auto; }
.form.dc-form input.num { width: 4.2em; margin: 0; padding: 5px 7px; display: inline-block; }
.form.dc-form .btn { width: auto; margin: 0; }
.dc-lab { font-weight: 700; color: var(--muted); }
.dc-table .tag { margin: 2px 2px 2px 0; }
.dc-connexion { background: #fff1ef; color: #c0392b; } .dc-retard { background: #fff4d1; color: #8a5200; } .dc-qcm { background: #f1ebff; color: #6d4ce0; } .dc-autoeval { background: #e3f4fc; color: #0f6fa8; }
.dc-relance { border-left: 6px solid var(--amber); }
.dc-msg { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 10px 0; background: var(--white); }
.dc-msg.is-unread { border-color: var(--blue); background: var(--sky); }
.dc-msg-b { white-space: normal; line-height: 1.55; }
.bd-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 22px; align-items: start; }
@media (max-width: 1000px) { .bd-layout { grid-template-columns: 1fr; } }
.eyebrow-h { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.bd-table tr.is-alert td { background: #fff6f5; }
.bd-table tr.is-alert td:first-child { box-shadow: inset 4px 0 0 #c0392b; }
.bd-table tr.is-draft td { opacity: .7; }
.bd-bar { display: inline-block; width: 70px; height: 8px; border-radius: 999px; background: var(--sky); vertical-align: middle; overflow: hidden; margin-right: 6px; }
.bd-fill { display: block; height: 100%; background: var(--blue); border-radius: 999px; }
.bd-today .tag { flex: 0 0 auto; min-width: 64px; text-align: center; }
.tag-sched { background: #e3f4fc; color: #0f6fa8; display: inline-flex; align-items: center; gap: 4px; }
.pub-sched { display: block; margin: 8px 0; }
.pub-sched-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pub-sched-row input { margin: 0; width: auto; }
.pl-chapitre { background: #eef3ff; border-color: #9db4e8; } .pl-chapitre strong { color: var(--blue); }
.pl-ressource { background: #e3f4fc; border-color: #9fd3ef; } .pl-ressource strong { color: #0f6fa8; }
.pl-visible { background: #e5f5ec; border-color: #b9e6cb; } .pl-visible strong { color: #17784a; }
.pl-echeance { background: #fff1ef; border-color: #f8c9c4; } .pl-echeance strong { color: #c0392b; }
.pl-grid [draggable=true] { cursor: grab; }
.pl-grid .is-dragging { opacity: .5; }
.pl-grid .wk-day.is-over { outline: 2px dashed var(--blue); outline-offset: -2px; background: var(--sky); }
.bd-today .row-main strong { font-size: .92rem; font-weight: 600; }
.bd-today .list .row { padding: 8px 10px; }

/* v1.28 — correction annotée, grilles de notation */
.copy-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 22px; align-items: start; }
@media (max-width: 1000px) { .copy-layout { grid-template-columns: 1fr; } }
.copy-form .copy-side label { margin-bottom: 10px; }
.an-eyebrow { margin: 10px 0 6px; }
.an-tools { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; position: sticky; top: 6px; z-index: 5; background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px; box-shadow: var(--shadow); margin-bottom: 8px; }
.an-tools select, .an-tools input { margin: 0; padding: 6px 8px; font-size: .88rem; width: auto; }
.an-tools input[data-an-comment] { flex: 1 1 200px; }
.an-view mark.an { background: #ffe9a8; color: inherit; border-radius: 3px; padding: 0 1px; cursor: pointer; }
.an-view mark.an-erreur { background: #ffd6d0; } .an-view mark.an-bien { background: #d6f2e0; } .an-view mark.an-remarque { background: #dbe7ff; }
.an-view mark.an::after { content: attr(data-an); font-size: .7em; vertical-align: super; font-weight: 700; margin-left: 2px; color: var(--navy); }
.an-list { padding-left: 0; list-style: none; margin: 6px 0; }
.an-list li { padding: 6px 10px; border-left: 4px solid var(--line); margin-bottom: 6px; border-radius: 6px; background: var(--white); transition: background .3s; }
.an-list li.an-erreur { border-color: #c0392b; } .an-list li.an-bien { border-color: #17784a; } .an-list li.an-remarque { border-color: var(--blue); }
.an-list li.is-hl { background: var(--sky); }
.an-n { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--navy); color: var(--white); font-size: .75rem; font-weight: 700; }
.an-side { margin-top: 14px; }
.an-side h3, .an-h { margin: 0 0 6px; font-size: 1rem; }
.grid-edit, .grid-res { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: .92rem; }
.grid-edit td, .grid-res td { padding: 5px 6px; border-bottom: 1px solid var(--line); }
.grid-edit .num, .grid-res .num { text-align: right; white-space: nowrap; }
.grid-edit input { width: 4.5em; margin: 0; padding: 4px 6px; display: inline-block; }
.grid-edit .tot td, .grid-res .tot td { font-weight: 700; border-bottom: 0; }
.grid-res caption { text-align: left; font-weight: 600; font-size: .85rem; color: var(--muted); padding: 4px 0; }
.copy-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.crit-row { grid-template-columns: 1fr auto auto auto; }
.crit-row input.num { width: 5em; }

/* v1.28 — banque de questions */
.qb-table tr.is-alert td { background: #fff6f5; }
.pct.warn { color: #c0392b; font-weight: 700; } .pct.ok { color: #17784a; font-weight: 700; }
.qb-mats { list-style: none; padding: 0; margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.qb-mats a { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; font-size: .88rem; font-weight: 600; background: var(--white); }
.qb-box { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; margin: 10px 0; }
.qb-box summary { cursor: pointer; font-weight: 700; color: var(--blue); }
.qb-list { list-style: none; padding: 0; margin: 0; }
.qb-list > li { border: 1px solid var(--line); border-left: 5px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; background: var(--white); }
.qb-list > li.qb-difficile { border-left-color: #c0392b; } .qb-list > li.qb-moyenne { border-left-color: var(--amber); } .qb-list > li.qb-facile { border-left-color: #17784a; }
.qb-opts { margin: 6px 0; padding-left: 18px; font-size: .9rem; } .qb-opts li.is-right { font-weight: 700; color: #17784a; }
.qb-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.qb-tag-difficile { background: #fff1ef; color: #c0392b; } .qb-tag-moyenne { background: var(--amber-bg); color: var(--amber); } .qb-tag-facile { background: #e5f5ec; color: #17784a; } .qb-tag-non { background: var(--sky); color: var(--muted); }

/* v1.29 — notes de l'étudiant */
.sn-panel { border: 1px solid var(--line); border-radius: 14px; background: var(--white); margin: 14px 0; }
.sn-panel > summary { cursor: pointer; padding: 10px 14px; font-weight: 700; display: flex; align-items: center; gap: 8px; list-style: none; }
.sn-panel > summary::-webkit-details-marker { display: none; }
.sn-panel > summary .badge { margin-left: auto; }
.sn-body { padding: 0 14px 14px; }
.sn-note { border-left: 4px solid #f0c040; padding: 6px 10px; margin: 8px 0; background: #fffdf3; border-radius: 6px; }
.sn-note.is-blue { border-color: #4b8af0; background: #f3f7ff; }
.sn-note.sn-note { border-color: var(--line); background: var(--white); }
.sn-note.is-hl { outline: 2px solid var(--blue); }
.sn-note .sn-quote, .sn-item .sn-quote { display: block; font-style: italic; color: var(--muted); font-size: .9rem; }
.sn-text { width: 100%; margin: 4px 0; font: inherit; font-size: .92rem; border: 1px solid var(--line); border-radius: 6px; padding: 5px 7px; resize: vertical; }
.sn-acts { display: flex; gap: 10px; align-items: center; font-size: .82rem; }
.sn-bar { position: absolute; z-index: 30; display: flex; gap: 4px; background: var(--navy); color: var(--white); border-radius: 999px; padding: 4px 6px; box-shadow: var(--shadow-lg); }
.sn-bar button { background: transparent; border: 0; color: var(--white); font: inherit; font-size: .82rem; font-weight: 600; padding: 4px 8px; border-radius: 999px; cursor: pointer; }
.sn-bar button:hover { background: rgba(255,255,255,.15); }
.sn-bar .sw { display: inline-block; width: 12px; height: 12px; border-radius: 50%; vertical-align: middle; margin-right: 4px; }
.sn-bar .sw-y { background: #ffe066; } .sn-bar .sw-b { background: #8fb8ff; }
mark.sn-hl { background: #fff0a8; color: inherit; border-radius: 2px; cursor: pointer; }
mark.sn-hl.is-blue { background: #d8e6ff; }
mark.sn-hl.has-note { box-shadow: inset 0 -2px 0 var(--blue); }
mark.sn-hl.has-note::after { content: '✎'; font-size: .7em; vertical-align: super; color: var(--blue); margin-left: 2px; }
.sn-form { display: grid; gap: 6px; margin-top: 10px; }
.sn-form .row2 { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sn-form input[type=number] { width: 5em; margin: 0; }
.sn-form select { margin: 0; width: auto; }
.sn-filter { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 10px; }
.sn-search { flex: 1 1 220px; }
.sn-group { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; }
.sn-group h2 { font-size: 1.02rem; margin: 0 0 6px; }
.sn-items { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.sn-item a { display: block; border: 1px solid var(--line); border-left: 4px solid #f0c040; border-radius: 8px; padding: 6px 10px; color: var(--ink); text-decoration: none; background: var(--white); }
.sn-item.sn-note a { border-left-color: var(--blue); }
.sn-item .sn-quote.is-blue { color: #1d4fb8; }
.sn-item .sn-text { display: block; margin-top: 2px; }
.sn-bar[hidden] { display: none; }
.sn-panel, .sn-body, .sn-note { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.sn-form .row2 select { max-width: 100%; }
.sn-form { grid-template-columns: minmax(0, 1fr); }
.sn-form > * { min-width: 0; max-width: 100%; }
.sn-form .row2 select { flex: 1 1 160px; min-width: 0; width: auto; }
.sn-form textarea { width: 100%; box-sizing: border-box; }

/* v1.30 — Dates importantes et tâches (direction + étudiant) */
.kd-filters { display: flex; flex-direction: column; gap: 8px; margin: 0 0 14px; }
.kd-frow { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.kd-lab { font-size: .78rem; font-weight: 700; color: var(--muted); margin-right: 4px; text-transform: uppercase; letter-spacing: .03em; }
.kd-frow .prog-tabs { margin: 0; }
.kd-main { min-width: 0; }
.kd-side { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.kd-badge { display: inline-block; white-space: nowrap; font-size: .76rem; font-weight: 700; border-radius: 999px; padding: 3px 10px; background: var(--sky); color: var(--navy); border: 1px solid transparent; align-self: flex-start; }
.kd-examen { background: #e9f0ff; color: var(--blue); border-color: #c9d9fb; }
.kd-depot { background: #fff1d6; color: #a35f00; border-color: #ffe0a3; }
.kd-admtc { background: #f1ebff; color: #6d4ce0; border-color: #d9d0fb; }
.kd-fede { background: #e5f5ec; color: #17784a; border-color: #bfe6cf; }
.kd-interne { background: #f1f3f7; color: var(--muted); border-color: var(--line); }
.kd-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.kd-list li { display: flex; gap: 10px; align-items: flex-start; min-width: 0; padding: 6px 0; border-bottom: 1px solid var(--line); }
.kd-list li:last-child { border-bottom: 0; }
.kd-list .row-main { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.kd-list small { color: var(--muted); }
.kd-list .is-unread strong { color: var(--blue); }
.kd-list-lg li { padding: 10px 0; }
.kd-list-lg .kd-badge { font-size: .84rem; padding: 5px 12px; min-width: 96px; text-align: center; }
.kd-note { white-space: pre-line; color: var(--ink) !important; background: var(--sky); border-radius: 8px; padding: 6px 10px; margin-top: 4px; }
.kd-table .is-past { opacity: .6; }
.kd-table .is-soon td:first-child { box-shadow: inset 3px 0 0 var(--amber); }
.kd-table td { vertical-align: middle; }
.kd-progs { display: flex; flex-wrap: wrap; gap: 6px 12px; margin: 4px 0; }
.kd-progs label { display: inline-flex; align-items: center; gap: 5px; font-size: .9rem; }
.kd-tasks { list-style: none; margin: 0; padding: 0; }
.kd-task { display: flex; gap: 8px; align-items: flex-start; padding: 7px 0; border-bottom: 1px solid var(--line); }
.kd-task:last-child { border-bottom: 0; }
.kd-task.is-done { opacity: .55; } .kd-task.is-done .row-main strong { text-decoration: line-through; }
.kd-task .row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; } .kd-task small { color: var(--muted); }
.kd-task .task-check { margin-top: 2px; }
.kd-tform { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.kd-tform input[type=text] { flex: 1 1 160px; min-width: 0; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--blue); color: #fff; }
/* frise */
.kd-frise { position: relative; height: 72px; margin: 6px 0 14px; border-bottom: 2px solid var(--line); }
.kd-frise::before { content: ""; position: absolute; left: 0; right: 0; top: 40px; height: 2px; background: var(--line); }
.kd-now { position: absolute; top: 30px; width: 2px; height: 22px; background: var(--amber); z-index: 1; }
.kd-now::after { content: "aujourd'hui"; position: absolute; top: 24px; left: -30px; font-size: .68rem; color: var(--amber); font-weight: 700; white-space: nowrap; }
.kd-pt { position: absolute; top: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; width: 90px; text-align: center; line-height: 1.2; }
.kd-pt b { font-size: .72rem; border-radius: 999px; padding: 2px 7px; white-space: nowrap; }
.kd-pt i { width: 10px; height: 10px; border-radius: 50%; background: currentColor; margin: 6px 0 4px; }
.kd-pt small { font-size: .68rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 90px; }
.kd-pt.kd-examen { color: var(--blue); } .kd-pt.kd-depot { color: #a35f00; } .kd-pt.kd-admtc { color: #6d4ce0; } .kd-pt.kd-fede { color: #17784a; } .kd-pt.kd-interne { color: var(--muted); }
.kd-pt b { background: var(--sky); color: inherit; }
/* agenda mois (réutilise .wk-grid/.wk-day) */
.kd-dow { font-size: .72rem; font-weight: 700; text-transform: uppercase; color: var(--muted); text-align: center; padding: 4px 0; }
.kd-grid .wk-day.is-out { opacity: .55; }
.kd-dayadd { text-decoration: none; }
.kd-grid .wk-item { padding: 2px 5px; border-bottom: 1px solid transparent; }
.kd-grid .wk-item strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wk-item.kd-task { background: #fff; border-color: var(--line); gap: 0; }
/* reprises étudiant */
.wk-kdate { background: #fff1d6; border-color: #ffe0a3; } .wk-kdate strong { color: #a35f00; }
.home-dates .kd-list li { padding: 4px 0; }
.fx-dates { margin-top: 18px; }
.kd-cal { margin-bottom: 14px; }
.tb-dates .kd-list li { padding: 5px 0; }
@media (max-width: 720px) {
  .kd-frise { height: 64px; } .kd-pt { width: 64px; } .kd-pt small { display: none; } .kd-pt b { font-size: .64rem; padding: 1px 5px; }
    .kd-dow { display: none; }
  .kd-list-lg .kd-badge { min-width: 0; }
  .kd-table th:nth-child(4), .kd-table td:nth-child(4) { display: none; }
}

/* v1.30 — Dossier étudiant (CRM) */
.crm-status { display: inline-block; font-size: .76rem; font-weight: 700; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.crm-st-inscrit { background: #e5f5ec; color: #17784a; } .crm-st-candidat { background: #fff4d1; color: #8a5200; } .crm-st-sorti { background: var(--sky); color: var(--muted); }
.crm-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 6px 0 10px; }
.crm-bar { flex: 1 1 120px; max-width: 220px; height: 8px; border-radius: 999px; background: #e6ecf7; overflow: hidden; display: block; }
.crm-fill { display: block; height: 100%; width: 0; background: #17784a; } .crm-fill.is-ko { background: #c0392b; }
.crm-tags { display: inline-flex; flex-wrap: wrap; gap: 4px; } .crm-tags .tag { background: var(--sky); color: var(--navy); }
.crm-relance { margin-bottom: 10px; }
.crm-d { border-top: 1px solid var(--line); padding: 8px 0; }
.crm-d > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; }
.crm-d > summary::-webkit-details-marker { display: none; }
.crm-d > summary::before { content: "›"; display: inline-block; width: 16px; color: var(--muted); font-weight: 700; transition: transform .15s; }
.crm-d[open] > summary::before { transform: rotate(90deg); }
.crm-d h3 { margin: 0; font-size: 1rem; }
.crm-d h4.eyebrow-h { margin-top: 14px; }
.crm-sub { margin: 6px 0; } .crm-sub summary { color: var(--blue); cursor: pointer; }
.crm-piece .crm-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; margin-top: 8px; background: #c0392b; }
.crm-piece.is-ok .crm-dot { background: #17784a; } .crm-piece.is-expire .crm-dot { background: #d9962a; }
.crm-upload { margin-top: 10px; }
.crm-jform { margin: 8px 0 10px; }
.crm-jrow { display: flex; flex-wrap: wrap; gap: 6px; } .crm-jrow input[name=body] { flex: 1 1 240px; min-width: 0; }
.crm-journal { list-style: none; margin: 0; padding: 0; }
.crm-j { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; border-bottom: 1px solid var(--line); }
.crm-j:last-child { border-bottom: 0; }
.crm-j .row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; } .crm-j small { color: var(--muted); }
.crm-jk { flex: none; font-size: .72rem; font-weight: 700; border-radius: 999px; padding: 3px 8px; background: var(--sky); color: var(--navy); margin-top: 2px; min-width: 70px; text-align: center; }
.crm-j-relance .crm-jk { background: #fff1d6; color: #a35f00; } .crm-j-systeme .crm-jk { background: #f1f3f7; color: var(--muted); } .crm-j-rdv .crm-jk, .crm-j-visite .crm-jk { background: #e9f0ff; color: var(--blue); }
.btn-x { background: none; border: 0; color: var(--muted); font-size: 1.1rem; cursor: pointer; padding: 0 6px; line-height: 1; } .btn-x:hover { color: #c0392b; }
.is-late { color: #c0392b; }
/* vue liste */
.crm-srch { display: flex; gap: 6px; align-items: center; margin-left: auto; } .crm-srch input { width: 200px; max-width: 100%; }
.crm-table { font-size: .9rem; } .crm-table td, .crm-table th { vertical-align: middle; }
.crm-table .crm-sel { width: 28px; } .crm-table tr.is-ko td:nth-child(2) { box-shadow: inset 3px 0 0 #c0392b; }
.crm-pcs { display: flex; align-items: center; gap: 8px; min-width: 120px; } .crm-pcs .crm-bar { flex: 1; }
.crm-miss .is-red { color: #c0392b; font-weight: 600; } .crm-miss .is-amber { color: #a35f00; font-weight: 600; }
.crm-bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); margin-top: 6px; }
.crm-bulk-in { display: inline-flex; align-items: center; gap: 4px; } .crm-bulk-in input, .crm-bulk-in select { max-width: 150px; }
.crm-kinds { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-bottom: 10px; }
.crm-kinds textarea { width: 100%; font-size: .88rem; }
.md-pieces .md-file { position: relative; overflow: hidden; } .md-pieces .md-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
@media (max-width: 720px) {
  .crm-table th:nth-child(n+6), .crm-table td:nth-child(n+6) { display: none; }
  .crm-srch { margin-left: 0; width: 100%; } .crm-srch input { flex: 1; width: auto; }
  .crm-jk { min-width: 0; }
}

.crm-sum .tag { white-space: normal; text-align: left; }
.kd-table td:first-child strong { white-space: nowrap; }
.kd-pills { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.kd-table .kd-t { font-weight: 600; }
@media (min-width: 1001px) { .bd-layout:has(.kd-main) { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); } }
@media (max-width: 720px) { .crm-table th:nth-child(3), .crm-table td:nth-child(3), .crm-table th:nth-child(4), .crm-table td:nth-child(4) { display: none; } .crm-pcs { min-width: 90px; } .crm-table td { padding-left: 4px; padding-right: 4px; } }
.kd-frise { overflow: clip; }

/* v1.31 — Tableau de bord direction repensé : indicateurs, cartes de formation avec menu ⋯, « À traiter — par urgence », « Cette semaine » */
.tb-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.tb-kpi { display: flex; flex-direction: column; gap: 2px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); border-top: 4px solid var(--line); min-width: 0; }
.tb-kpi strong { font-family: var(--display); font-size: 2rem; line-height: 1; font-weight: 800; }
.tb-kpi span { font-weight: 700; font-size: .9rem; } .tb-kpi small { color: var(--muted); font-size: .76rem; }
.tb-kpi.is-red { border-top-color: #e23d3d; } .tb-kpi.is-red strong { color: #e23d3d; }
.tb-kpi.is-amber { border-top-color: #d9962a; } .tb-kpi.is-amber strong { color: #b45309; }
.tb-kpi.is-ok { border-top-color: #1a9a5a; } .tb-kpi.is-ok strong { color: #1a9a5a; }
.tb-kpi:hover { border-color: var(--blue); border-top-color: var(--blue); }
.tb-pcs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tb-pc { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr) 36px; grid-template-rows: auto auto auto; gap: 6px 12px; align-items: center; border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: var(--white); min-width: 0; }
.tb-pc-img { position: relative; display: block; width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: var(--sky); grid-row: 1 / 3; }
.tb-pc-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tb-pc-img .prog-code { position: absolute; left: 4px; bottom: 4px; font-size: .62rem; font-weight: 800; background: #fff; color: var(--navy); border-radius: 999px; padding: 1px 6px; }
.tb-pc-t { min-width: 0; display: flex; flex-direction: column; gap: 2px; grid-row: 1 / 3; }
.tb-pc-t a { color: var(--ink); text-decoration: none; } .tb-pc-t a:hover { color: var(--blue); }
.tb-pc-t h3 { font-size: .95rem; margin: 0; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tb-pc-t small { font-size: .76rem; }
.tb-pc-pub { grid-column: 1 / 3; display: flex; align-items: center; gap: 8px; font-size: .76rem; } .tb-pc-pub progress { flex: 1; height: 7px; } .tb-pc-pub .pc-state { margin-left: auto; }
.tb-pc-fig { grid-column: 1 / -1; display: flex; gap: 14px; font-size: .84rem; } .tb-pc-fig strong { font-family: var(--display); font-size: 1.1rem; }
.tb-menu { grid-column: 3; grid-row: 1; justify-self: end; position: relative; }
.tb-menu > summary { list-style: none; cursor: pointer; width: 32px; height: 32px; border-radius: 10px; border: 1px solid var(--line); background: var(--white); display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; color: var(--navy); letter-spacing: 1px; }
.tb-menu > summary::-webkit-details-marker { display: none; }
.tb-menu[open] > summary, .tb-menu > summary:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.tb-menu-list { position: absolute; right: 0; top: 38px; z-index: 20; min-width: 230px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(20, 33, 61, .18); padding: 6px; display: flex; flex-direction: column; gap: 1px; }
.tb-menu-list a { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 8px; text-decoration: none; color: var(--ink); font-size: .86rem; font-weight: 600; }
.tb-menu-list a:hover { background: var(--sky); color: var(--blue); } .tb-menu-list .ic { width: 1em; height: 1em; color: var(--blue); }
.tb-quiet { margin-top: 12px; } .tb-quiet > summary { cursor: pointer; font-size: .88rem; font-weight: 700; color: var(--blue); } .tb-quiet[open] > summary { margin-bottom: 10px; }
.tb-urgent .tb-todo .btn { flex: none; }
.tb-week .tb-time { width: 70px; line-height: 1.25; } .tb-week .tb-time b { color: var(--navy); }
.tb-recap { margin: 10px 0 0; }
@media (max-width: 1000px) { .tb-pcs { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .tb-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .tb-kpi { padding: 10px 12px; border-radius: 12px; } .tb-kpi strong { font-size: 1.6rem; } .tb-kpi span { font-size: .8rem; } .tb-kpi small { font-size: .7rem; }
  .tb-hello .actions { width: 100%; } .tb-hello .actions .btn { flex: 1; justify-content: center; }
  .tb-pc { grid-template-columns: 52px minmax(0, 1fr) 36px; padding: 10px; } .tb-pc-img { width: 52px; height: 52px; }
  .tb-pc-fig { flex-wrap: wrap; gap: 6px 14px; }
  .tb-menu-list { min-width: 210px; }
}

/* v1.31 — Accessibilité : réglages d'affichage (classes sur <html>), bouton ◐ et panneau, règle de lecture, mode allégé */
html.a11y-size-1 { font-size: 115%; } html.a11y-size-2 { font-size: 130%; }
html.a11y-font body, html.a11y-font input, html.a11y-font button, html.a11y-font select, html.a11y-font textarea { font-family: Verdana, "Trebuchet MS", Arial, sans-serif; letter-spacing: .02em; word-spacing: .06em; }
html.a11y-font h1, html.a11y-font h2, html.a11y-font h3, html.a11y-font .brand-txt strong { font-family: Verdana, "Trebuchet MS", Arial, sans-serif; letter-spacing: 0; }
html.a11y-space body { line-height: 1.8; } html.a11y-space .prose p, html.a11y-space .course p, html.a11y-space .course li { line-height: 1.95; margin-bottom: 1.2em; }
html.a11y-contrast { --ink: #000; --muted: #333; --line: #444; --blue: #0030a0; --navy: #000; --sky: #fff; --bg: #fff; }
html.a11y-contrast body { background: #fff; color: #000; }
html.a11y-contrast a { text-decoration: underline; } html.a11y-contrast .card, html.a11y-contrast .home-list, html.a11y-contrast .tb-kpi { border: 2px solid #000; box-shadow: none; }
html.a11y-contrast .btn { border: 2px solid #000; } html.a11y-contrast .btn-ghost { color: #0030a0; box-shadow: inset 0 0 0 2px #000; }
html.a11y-contrast .tag { border: 1px solid #000; } html.a11y-contrast .muted, html.a11y-contrast small { color: #222; }
html.a11y-contrast .side { background: #000; } html.a11y-contrast .side a, html.a11y-contrast .side summary { color: #fff; }
html.a11y-motion, html.a11y-motion * , html.a11y-motion *::before, html.a11y-motion *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
/* bouton ◐ */
.a11y-open { width: 36px; height: 36px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--white); color: var(--navy); font-size: 1.15rem; line-height: 1; cursor: pointer; padding: 0; flex: none; }
.a11y-open:hover, .a11y-open[aria-expanded=true] { background: var(--navy); color: #fff; border-color: var(--navy); }
.side .a11y-open { margin-left: auto; } .mtop .a11y-open { margin-left: 2px; }
.a11y-panel { position: fixed; right: 16px; bottom: 16px; z-index: 90; width: min(360px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; background: var(--white); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 16px 40px rgba(20, 33, 61, .25); padding: 14px 16px; }
.a11y-panel[hidden] { display: none; }
.a11y-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; } .a11y-head h2 { font-size: 1rem; margin: 0; }
.a11y-close { width: 36px; height: 36px; border: 0; background: none; font-size: 1.1rem; cursor: pointer; border-radius: 10px; } .a11y-close:hover { background: var(--sky); }
.a11y-size { display: flex; gap: 8px; margin: 6px 0 10px; }
.a11y-sz { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 2px; border: 1.5px solid var(--line); border-radius: 12px; padding: 8px 4px; cursor: pointer; min-height: 64px; position: relative; text-align: center; }
.a11y-sz input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.a11y-sz span { font-family: var(--display); font-weight: 800; line-height: 1; } .a11y-sz-0 span { font-size: 1rem; } .a11y-sz-1 span { font-size: 1.3rem; } .a11y-sz-2 span { font-size: 1.7rem; }
.a11y-sz small { font-size: .68rem; color: var(--muted); } .a11y-sz:has(input:checked) { border-color: var(--blue); background: var(--sky); box-shadow: inset 0 0 0 1px var(--blue); }
.a11y-sz:has(input:focus-visible) { outline: 3px solid var(--amber); }
.a11y-tog { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); cursor: pointer; min-height: 44px; }
.a11y-tog input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.a11y-sw { width: 40px; height: 24px; border-radius: 999px; background: #c9d4ea; position: relative; flex: none; transition: background .15s; }
.a11y-sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: left .15s; }
.a11y-tog input:checked + .a11y-sw { background: var(--blue); } .a11y-tog input:checked + .a11y-sw::after { left: 19px; }
.a11y-tog input:focus-visible + .a11y-sw { outline: 3px solid var(--amber); outline-offset: 2px; }
.a11y-lab { display: flex; flex-direction: column; font-weight: 600; font-size: .92rem; } .a11y-lab small { font-weight: 400; color: var(--muted); font-size: .76rem; }
.a11y-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 10px 0 0; font-size: .86rem; } .a11y-saved { color: #17784a; font-weight: 700; font-size: .8rem; }
/* Mon compte */
.a11y-fs { border: 1px solid var(--line); border-radius: 12px; padding: 8px 14px 10px; margin: 0 0 10px; } .a11y-fs .check { margin: 4px 0; }
.a11y-prev { background: var(--sky); border-radius: 10px; padding: 10px 12px; } .a11y-am { margin: 0 0 8px; padding-left: 18px; }
/* règle de lecture */
.a11y-ruler-bar { position: fixed; left: 0; right: 0; height: 2.2em; background: rgba(255, 214, 102, .28); border-top: 1px solid rgba(217, 150, 42, .6); border-bottom: 1px solid rgba(217, 150, 42, .6); pointer-events: none; z-index: 80; display: none; }
html.a11y-ruler .a11y-ruler-bar.is-on { display: block; }
/* mode lecture allégé : une section à la fois */
html.a11y-lean .course-toc { display: none; } html.a11y-lean .res-detail { max-width: 860px; }
.a11y-sec[hidden] { display: none; }
.a11y-secnav { display: flex; justify-content: space-between; gap: 10px; margin: 18px 0 6px; flex-wrap: wrap; }
.a11y-secnav .a11y-pos { width: 100%; font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
/* écouter */
.tts-btn { display: none; } html.a11y-tts .tts-btn { display: inline-flex; } .tts-btn.is-on { background: var(--navy); color: #fff; }
@media (max-width: 720px) { .a11y-panel { right: 8px; left: 8px; bottom: 8px; width: auto; } }

.crm-sum .tag { white-space: normal; text-align: left; }
.a11y-side { width: 100%; height: auto; display: flex; align-items: center; gap: 10px; padding: 7px 12px; margin: 0 0 8px; border-radius: 12px; background: rgba(255,255,255,.07); color: #c9d6f2; border: 1px solid rgba(255,255,255,.14); font: inherit; font-size: .9rem; text-align: left; } .a11y-side:hover { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.3); } .a11y-side b { font-size: 1.1rem; }
@media (max-width: 960px) { .mtop { gap: 8px; } .mtop .brand { min-width: 0; flex: 1; } .mtop .brand-logo { max-width: 100%; object-fit: contain; } .mtop .a11y-top { width: 32px; height: 32px; font-size: 1rem; border-color: rgba(255,255,255,.3); background: transparent; color: #fff; } .mtop .a11y-top:hover { background: rgba(255,255,255,.15); } }
@media (max-width: 420px) { .mtop .menu-btn span { display: none; } .mtop .menu-btn { padding: 8px 10px; } }
.tb-pc-pub { flex-wrap: nowrap; } .tb-pc-pub progress { min-width: 0; } .tb-pc-pub .pc-state { flex: none; }
@media (max-width: 1000px) { .tb-cols .tb-side { order: -1; } }
.side-foot-v2 .logout button { width: auto; height: auto; white-space: nowrap; flex: none; } .side-foot-v2 small { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* v1.31.1 — Dates et tâches : fidèle à l'esquisse (filtres en pastilles, couleurs par type, saisie compacte) */
.kd-frow > a { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 12px; background: var(--white); border: 1px solid #c9d4ea; color: var(--ink); font-weight: 600; font-size: .86rem; text-decoration: none; }
.kd-frow > a:hover { border-color: var(--blue); color: var(--blue); }
.kd-frow > a.on { background: var(--blue); color: #fff; border-color: var(--blue); }
.kd-frow > a.kd-past { background: transparent; border-color: transparent; color: var(--blue); text-decoration: underline; font-weight: 500; }
.kd-lab { font-size: .8rem; text-transform: none; letter-spacing: 0; }
.kd-examen { background: #fff1ef; color: #c0392b; border-color: #f8c9c4; }
.kd-depot { background: #fff4d1; color: #8a5200; border-color: #ffe08a; }
.kd-admtc { background: #e3f4fc; color: #0b5e8a; border-color: #bfe3f6; }
.kd-fede { background: #f1ebff; color: #6d4ce0; border-color: #d9d0fb; }
.kd-interne { background: #e5f5ec; color: #17784a; border-color: #bfe6cf; }
.kd-frow > a.kd-examen, .kd-frow > a.kd-depot, .kd-frow > a.kd-admtc, .kd-frow > a.kd-fede, .kd-frow > a.kd-interne { border-color: transparent; }
.kd-frow > a.kd-examen.on { background: #c0392b; color: #fff; } .kd-frow > a.kd-depot.on { background: #8a5200; color: #fff; } .kd-frow > a.kd-admtc.on { background: #0b5e8a; color: #fff; } .kd-frow > a.kd-fede.on { background: #6d4ce0; color: #fff; } .kd-frow > a.kd-interne.on { background: #17784a; color: #fff; }
.kd-pt.kd-examen { color: #c0392b; } .kd-pt.kd-depot { color: #8a5200; } .kd-pt.kd-admtc { color: #0b5e8a; } .kd-pt.kd-fede { color: #6d4ce0; } .kd-pt.kd-interne { color: #17784a; }
.kd-pt b { background: transparent; }
.kd-form { border: 1px solid #c9d4ea; border-radius: 10px; padding: 12px 14px; background: #fbfcff; }
.kd-form > label, .kd-form-row > label, .kd-form .kd-flab { font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); display: flex; flex-direction: column; gap: 3px; }
.kd-form > label small, .kd-form-row > label small, .kd-form .kd-flab small { text-transform: none; letter-spacing: 0; font-weight: 500; }
.kd-form input, .kd-form select, .kd-form textarea { font-weight: 400; letter-spacing: 0; text-transform: none; font-size: .92rem; }
.kd-form-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
.kd-form > label { margin-bottom: 10px; }
.kd-form-progs { grid-template-columns: 1fr; gap: 6px; }
.kd-progs { gap: 6px; margin: 0; }
.kd-prog { position: relative; cursor: pointer; } .kd-prog input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.kd-prog span { display: inline-block; border-radius: 999px; padding: 4px 12px; border: 1px solid #c9d4ea; background: var(--white); font-weight: 700; font-size: .84rem; }
.kd-prog input:checked + span { background: var(--navy); color: #fff; border-color: var(--navy); } .kd-prog input:focus-visible + span { outline: 3px solid var(--amber); }
.kd-form-opts { grid-template-columns: auto auto 1fr; align-items: center; margin-bottom: 0; }
.kd-form-opts .check { text-transform: none; letter-spacing: 0; font-size: .88rem; font-weight: 500; color: var(--ink); flex-direction: row; align-items: center; gap: 6px; }
.kd-form-btns { justify-self: end; display: flex; gap: 6px; }
.kd-tform { margin-top: 10px; display: block; }
.kd-trow { display: flex; gap: 6px; margin-bottom: 6px; } .kd-trow input[name=title] { flex: 1; min-width: 0; } .kd-trow input[type=date] { width: 150px; }
.kd-trow-2 select { flex: 1; min-width: 0; font-size: .86rem; }
@media (max-width: 720px) { .kd-form-row { grid-template-columns: 1fr 1fr; } .kd-form-opts { grid-template-columns: 1fr; } .kd-form-btns { justify-self: start; } .kd-trow { flex-wrap: wrap; } .kd-trow input[type=date] { width: auto; flex: 1; } }

.kd-frow > a.kd-examen { background: #fff1ef; color: #c0392b; } .kd-frow > a.kd-depot { background: #fff4d1; color: #8a5200; } .kd-frow > a.kd-admtc { background: #e3f4fc; color: #0b5e8a; } .kd-frow > a.kd-fede { background: #f1ebff; color: #6d4ce0; } .kd-frow > a.kd-interne { background: #e5f5ec; color: #17784a; }
.kd-table { width: 100%; table-layout: auto; } .kd-table td:first-child, .kd-table td:nth-child(3), .kd-table td:last-child { width: 1%; white-space: nowrap; } .kd-table td:nth-child(2) { min-width: 200px; }
.kd-table .tag { white-space: nowrap; } .kd-pills { align-items: center; }
.kd-form-opts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.kd-form-opts .check { white-space: nowrap; } .kd-form-opts .check small { white-space: normal; }
.kd-form-btns { margin-left: auto; } .kd-form-btns .btn { white-space: nowrap; }
@media (min-width: 1001px) { .bd-layout:has(.kd-main) { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } }
.kd-table th:nth-child(4), .kd-table td:nth-child(4) { display: table-cell; }
.kd-table td:first-child, .kd-table td:first-child strong { white-space: normal; } .kd-table td:first-child { max-width: 130px; } .kd-table td, .kd-table th { padding-left: 8px; padding-right: 8px; } .kd-table td:last-child { white-space: nowrap; }
.kd-table td:first-child { min-width: 110px; } .kd-table td:last-child { white-space: normal; width: 72px; } .kd-table td:last-child a { display: block; line-height: 1.6; }

/* v1.32 — Aide des formateurs */
.gd-search { display: flex; gap: 6px; align-items: center; } .gd-search input { width: 260px; max-width: 100%; }
.gd-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 16px; align-items: start; }
.gd-nav { padding: 12px 10px; } .gd-nav .eyebrow-h { margin: 2px 8px 6px; }
.gd-ch > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; font-weight: 600; font-size: .9rem; }
.gd-ch > summary::-webkit-details-marker { display: none; } .gd-ch > summary:hover { background: var(--sky); }
.gd-ch[open] > summary { color: var(--blue); }
.gd-n { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--sky); color: var(--navy); font-size: .74rem; font-weight: 800; flex: none; }
.gd-ch ul { list-style: none; margin: 0 0 6px; padding: 0 0 0 30px; }
.gd-ch li a { display: block; padding: 4px 8px; border-radius: 6px; font-size: .84rem; color: var(--muted); text-decoration: none; }
.gd-ch li a:hover { background: var(--sky); color: var(--blue); } .gd-ch li a.on { background: #e9f0ff; color: var(--blue); font-weight: 700; }
.gd-extra { margin: 8px 8px 2px; font-size: .84rem; border-top: 1px solid var(--line); padding-top: 8px; } .gd-extra a.on { font-weight: 700; }
.gd-main { padding: 22px 26px; min-width: 0; }
.gd-meta { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--muted); margin-bottom: 4px; } .gd-crumb { margin-right: auto; }
.gd-pill { border-radius: 999px; padding: 3px 9px; background: #f1f3f7; font-weight: 700; font-size: .72rem; } .gd-who { background: #e5f5ec; color: #17784a; }
.gd-title { font-size: 1.35rem; margin: 0 0 8px; } .gd-sum { font-size: 1rem; line-height: 1.5; margin: 0 0 12px; }
.gd-shot { margin: 0 0 14px; } .gd-shot img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 10px; display: block; } .gd-shot figcaption { font-size: .76rem; color: var(--muted); margin-top: 4px; }
.gd-steps { margin: 0 0 12px; padding-left: 22px; } .gd-steps li { margin: 0 0 6px; line-height: 1.5; }
.gd-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.gd-col h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 6px; } .gd-col ul { margin: 0; padding-left: 18px; } .gd-col li { margin: 0 0 5px; line-height: 1.45; font-size: .93rem; }
.gd-box { border-left: 3px solid var(--blue); padding: 6px 12px; display: flex; flex-direction: column; gap: 3px; font-size: .9rem; line-height: 1.45; background: #fbfcff; border-radius: 0 8px 8px 0; }
.gd-box.gd-warn { border-left-color: #d9962a; } .gd-box.gd-tip { border-left-color: #17784a; margin-bottom: 12px; }
.gd-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; font-size: .86rem; }
.gd-also { color: var(--muted); } .gd-ask { margin-left: auto; }
.gd-pn { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; font-size: .86rem; }
.gd-faq { border-bottom: 1px solid var(--line); padding: 8px 0; } .gd-faq summary { cursor: pointer; font-weight: 600; } .gd-faq p { margin: 6px 0 0; color: var(--muted); }
.gd-log { list-style: none; margin: 0; padding: 0; } .gd-log li { display: grid; grid-template-columns: 70px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .9rem; line-height: 1.45; } .gd-log strong { color: var(--blue); }
.gd-memo td:first-child { white-space: nowrap; font-weight: 700; }
@media (max-width: 900px) { .gd-layout { grid-template-columns: 1fr; } .gd-two { grid-template-columns: 1fr; } .gd-search input { width: 100%; } .gd-search { width: 100%; } .gd-main { padding: 16px; } .gd-ask { margin-left: 0; } }
.reindex progress { width: 100%; height: 10px; margin-top: 6px; }

/* ---------- v1.33 : blocs de compétences, séquences, livret ---------- */
.comp-pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.comp-pill { display: inline-flex; align-items: baseline; gap: 5px; font-size: .82rem; line-height: 1.3; padding: 4px 10px; border-radius: 999px; background: var(--sky); color: var(--navy); border: 1px solid #cfdcf5; }
.comp-pill b { color: var(--blue); font-size: .78rem; }
.comp-box .mod-comp p.small { margin-top: 6px; }
.comp-row .row-main.comp-pills { margin: 0; }
.comp-fs .comp-grp { border: 1px solid var(--line); border-radius: 10px; padding: 6px 12px; margin: 0 0 8px; background: #fff; }
.comp-fs .comp-grp summary { cursor: pointer; font-size: .92rem; }
.comp-grp-b { padding: 6px 0 2px; display: flex; flex-direction: column; gap: 4px; }
.comp-parent { margin: 8px 0 2px; font-size: .88rem; color: var(--muted); }
.comp-sub { margin-left: 16px; }
.comp-fs .check { font-size: .9rem; }
.cp-head, .lv-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.cp-head h1, .lv-head h1 { margin: 0 0 4px; font-size: 1.35rem; }
.cp-actions { margin: 0; }
.cp-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 16px; }
.cp-filters .cp-fl { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 4px 0 6px; }
.cp-filters .chip { text-decoration: none; border: 1px solid var(--line); background: #fff; }
.cp-filters .chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.cp-layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 18px; align-items: start; }
.cp-bloc-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 10px; }
.cp-bloc-h small { display: block; margin-top: 2px; }
.cp-comp { border-top: 1px solid var(--line); padding: 8px 0 4px; }
.cp-comp > summary { cursor: pointer; font-weight: 600; padding: 6px 0; }
.cp-comp > summary b { color: var(--blue); margin-right: 4px; }
.cp-table { font-size: .9rem; margin-top: 6px; table-layout: fixed; width: 100%; }
.cp-table th:nth-child(1) { width: 32%; } .cp-table th:nth-child(2) { width: 36%; } .cp-table th:nth-child(3) { width: 19%; } .cp-table th:nth-child(4) { width: 13%; }
.cp-table td { overflow-wrap: anywhere; } .cp-table th { white-space: normal; overflow-wrap: normal; hyphens: manual; }
.cp-table td b { color: var(--blue); }
.cp-seqs { display: flex; flex-wrap: wrap; gap: 4px; }
.cp-seq { display: inline-flex; flex-direction: column; text-decoration: none; padding: 4px 9px; border-radius: 8px; background: var(--sky); color: var(--navy); font-size: .85rem; line-height: 1.25; }
.cp-seq small { color: var(--muted); font-size: .75rem; }
.cp-seq.draft { background: #f3f4f7; border: 1px dashed var(--line); }
.cp-miss { display: inline-block; padding: 3px 9px; border-radius: 999px; background: var(--amber-bg); color: #8a5a00; font-size: .8rem; font-weight: 600; }
.cp-stat { white-space: normal; }
.cp-v { color: #17784a; font-weight: 700; }
.cp-sav summary { cursor: pointer; font-size: .9rem; color: var(--muted); margin-top: 8px; }
.cp-sav ul { font-size: .88rem; }
.cp-cov { list-style: none; margin: 0; padding: 0; }
.cp-cov li { display: grid; grid-template-columns: minmax(0, 1fr) 70px auto; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: .88rem; }
.cp-cov li a { text-decoration: none; color: var(--ink); } .cp-cov li a b { color: var(--blue); }
.cp-cov li .ok { color: #17784a; font-weight: 700; }
.cp-bar { display: block; height: 8px; border-radius: 999px; background: #e9edf5; overflow: hidden; }
.cp-bar i { display: block; height: 100%; width: 0; background: var(--blue); }
.cp-legend { list-style: none; margin: 6px 0 10px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; font-size: .85rem; }
.cp-legend b { float: right; }
.cp-orph { font-size: .88rem; margin: 0; padding-left: 18px; }
.h-sm { font-size: 1rem; margin: 0 0 8px; }
.lv-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 0 0 18px; }
.lv-card { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.lv-card .tag { align-self: flex-start; }
.lv-card .lv-n { font-size: 1.1rem; font-weight: 700; color: var(--blue); }
.lv-card small { color: var(--muted); }
.lv-bloc h2 { font-size: 1.1rem; margin: 0 0 4px; }
.lv-comp { margin: 12px 0 0; }
.lv-comp h3 { font-size: .95rem; margin: 10px 0 6px; } .lv-comp h3 b { color: var(--blue); }
.lv-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 10px 18px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; margin: 0 0 8px; background: #fff; }
.lv-row.is-val { border-color: #9fd3b4; background: #f3fbf6; }
.lv-title { margin: 0; font-weight: 600; } .lv-title b { color: var(--blue); }
.lv-seqs, .lv-val { margin: 4px 0 0; }
.lv-val { color: #17784a; }
.lv-self { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.lv-levels { display: flex; flex-wrap: wrap; gap: 6px; }
.lv-opt { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-size: .84rem; font-weight: 600; cursor: pointer; }
.lv-opt input { margin: 0; accent-color: var(--blue); }
.lv-opt:has(input:disabled) { cursor: default; opacity: .8; }
.lv-0:has(input:checked) { border-color: var(--muted); color: var(--muted); background: #f3f4f7; }
.lv-1:has(input:checked) { border-color: #a35f00; color: #a35f00; background: #fff4d1; }
.lv-2:has(input:checked) { border-color: #17784a; color: #17784a; background: #e5f5ec; }
.lv-3:has(input:checked) { border-color: #a35f00; color: #a35f00; background: #fff4d1; }
.lv-4:has(input:checked) { border-color: #17784a; color: #17784a; background: #e5f5ec; }
.lv-5:has(input:checked) { border-color: #0f5c37; color: #0f5c37; background: #cdeedb; }
.lv-proof { font-size: .82rem; color: var(--muted); } .lv-proof input { width: 100%; margin-top: 3px; }
.lv-proof-ro { margin: 0; }
.lv-self .btn { align-self: flex-start; }
.lv-validate { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0; padding-top: 8px; border-top: 1px dashed var(--line); }
.lv-validate input { flex: 1 1 240px; }
.lv-table .cp-v { white-space: nowrap; }
@media (max-width: 1000px) { .cp-layout { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .lv-row { grid-template-columns: 1fr; } .cp-table thead { display: none; } .cp-table tr { display: block; padding: 8px 0; border-bottom: 1px solid var(--line); } .cp-table td { display: block; border: 0; padding: 2px 0; } .cp-table td.num { text-align: left; } .hide-phone { display: none; } }
.fx-comp-grid { display: grid; gap: 8px; }
.fx-comp-bloc { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; background: #fff; }
.fx-comp-bloc summary { cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fx-comp-bloc summary small { color: var(--muted); flex-basis: 100%; }
.fx-comp-list { margin: 8px 0 2px; padding-left: 18px; font-size: .92rem; } .fx-comp-list b { color: var(--blue); } .fx-comp-list ul { margin: 2px 0 6px; padding-left: 18px; }
.mdocs { margin-top: 14px; }
.mdocs .row-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.mdocs h2 { font-size: 1.05rem; margin: 0; }
.mdoc-list .row .btn { margin-left: 6px; }
.mdoc-add { margin-top: 10px; } .mdoc-add summary { display: inline-block; cursor: pointer; list-style: none; } .mdoc-add summary::-webkit-details-marker { display: none; }
.mdoc-form { margin-top: 10px; padding: 12px; border: 1px dashed var(--line); border-radius: 10px; }
/* v1.34 : bandeau de la matière — un intitulé de chapitre long dans « Reprendre où j'en étais » n'écrase plus le titre */
.mt-hero { grid-template-columns: 300px minmax(0, 1fr) minmax(0, auto); }
.mt-cta { max-width: 340px; }
.mt-cta .btn { white-space: normal; text-align: center; }

/* ---------- v1.35 : pilotage pédagogique ---------- */
.pil-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.pil-head h1 { margin: 0 0 4px; font-size: 1.35rem; color: #17214E; }
.pil-head .actions { margin: 0; align-items: flex-start; }
.btn-red { background: #C23B2E; border-color: #C23B2E; color: #fff; } .btn-red:hover { background: #a93224; }
.pil-filters { justify-content: space-between; }
.pil-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.pil-tab { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid #C9CFE4; background: #fff; color: #17214E; text-decoration: none; font-weight: 600; font-size: .9rem; }
.pil-tab.on { background: #17214E; border-color: #17214E; color: #fff; }
.pil-seg { display: flex; gap: 4px; padding: 4px; background: #E8EBF3; border-radius: 12px; }
.pil-seg a { min-height: 34px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 9px; color: #5B6380; text-decoration: none; font-weight: 500; font-size: .88rem; }
.pil-seg a.on { background: #fff; color: #17214E; font-weight: 600; box-shadow: 0 1px 2px rgba(23,33,78,.12); }
.pil-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 0 0 18px; }
.pil-kpi { background: #fff; border: 1px solid #E3E6EF; border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.pil-kpi > span { font-size: .82rem; color: #5B6380; } .pil-kpi > small { font-size: .76rem; color: #5B6380; }
.pil-kpi strong { font-size: 1.8rem; color: #17214E; line-height: 1.1; } .pil-kpi strong small { font-size: 1rem; color: #5B6380; font-weight: 500; }
.pil-kpi strong.ok { color: #1E4FA8; } .pil-kpi strong.late { color: #A63A12; } .pil-kpi strong.none { color: #4E556B; }
.pil-table-card .row-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.pil-table-card h2 { font-size: 1.05rem; margin: 0; color: #17214E; }
.pil-legend { font-size: .78rem; color: #5B6380; display: inline-flex; gap: 12px; align-items: center; }
.pil-legend i { display: inline-block; vertical-align: middle; margin-right: 4px; } .pil-lg-done { width: 18px; height: 8px; border-radius: 4px; background: #17214E; } .pil-lg-exp { width: 3px; height: 14px; background: #E0563F; }
.pil-table, .pil-seqs, .pil-cov { font-size: .9rem; }
.pil-table td, .pil-seqs td { vertical-align: middle; }
.pil-prog { min-width: 200px; } .pil-prog small { display: block; color: #5B6380; font-size: .78rem; margin-top: 4px; }
.pil-bar { position: relative; height: 10px; border-radius: 5px; background: #E8EBF3; overflow: visible; }
.pil-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 5px; background: #17214E; }
.pil-bar b { position: absolute; top: -3px; bottom: -3px; left: 0; width: 3px; margin-left: -1px; background: #E0563F; border-radius: 2px; }
.pil-pill { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.pil-ok { background: #E5EDFB; color: #1E4FA8; } .pil-late { background: #FDE8DE; color: #A63A12; } .pil-none { background: #ECEEF3; color: #4E556B; }
.pil-cov-full { background: #17214E; color: #fff; } .pil-cov-prog { background: #E5EDFB; color: #1E4FA8; } .pil-cov-none { background: #ECEEF3; color: #4E556B; }
.pil-nomis { color: #A63A12; font-weight: 600; }
.pil-hours details summary { cursor: pointer; list-style: none; } .pil-hours details summary::-webkit-details-marker { display: none; }
.pil-hform { display: flex; gap: 6px; align-items: flex-end; margin-top: 6px; } .pil-hform label { font-size: .72rem; color: #5B6380; } .pil-hform input { width: 70px; padding: 4px 6px; display: block; }
.pil-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.pil-alert { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: 10px; background: #F5F6FA; margin: 0 0 8px; }
.pil-sent { color: #5B6380; cursor: default; }
.pil-rules p { font-size: .88rem; margin: 4px 0; }
.pil-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.pil-side .card { margin-bottom: 14px; }
.pil-kv { display: flex; justify-content: space-between; gap: 10px; font-size: .88rem; margin: 6px 0; } .pil-kv b { color: #1E4FA8; }
.pil-comp { margin: 6px 0; }
.pil-hist { list-style: none; margin: 0; padding: 0; font-size: .84rem; } .pil-hist li { padding: 4px 0; border-bottom: 1px solid var(--line); } .pil-hist small { color: #5B6380; }
.pil-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.pil-chip { display: inline-block; padding: 2px 8px; border-radius: 6px; background: #F0F2F7; color: #4E556B; font-size: .76rem; text-decoration: none; }
.pil-chip-eval { background: #FDE8DE; color: #A63A12; font-weight: 600; }
.pil-codes { color: #1E4FA8; font-weight: 600; font-size: .84rem; }
.pil-seqs tr.is-done td { background: #FAFBFD; }
.pil-done .check { margin: 0; align-items: flex-start; } .pil-done input { width: 18px; height: 18px; accent-color: #17214E; margin-top: 2px; }
.pil-date { font-weight: 600; color: #20243A; font-size: .84rem; line-height: 1.2; } .pil-date small { font-weight: 400; color: #5B6380; }
.pil-rowact { white-space: nowrap; } .pil-rowact form { display: inline; }
.pil-import summary { list-style: none; cursor: pointer; } .pil-import summary::-webkit-details-marker { display: none; }
.pil-import-f { margin-top: 8px; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 10px; background: #fff; max-width: 420px; }
.pil-empty .actions { margin-top: 8px; }
.pil-bloc { padding: 0; margin-bottom: 14px; }
.pil-bloc > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px 18px; }
.pil-bloc > summary::-webkit-details-marker { display: none; }
.pil-bloc-tags { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pil-bloc .table-wrap { margin: 0 18px 16px; }
.pil-code { color: #1E4FA8; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1000px) { .pil-layout { grid-template-columns: minmax(0, 1fr); } }
.pil-layout > * { min-width: 0; }
@media (max-width: 700px) { .grid3 { grid-template-columns: 1fr; } .pil-filters { flex-direction: column; align-items: flex-start; } }
.pil-empty > summary { cursor: pointer; list-style: none; font-weight: 600; } .pil-empty > summary::-webkit-details-marker { display: none; }
.pil-empty .actions { margin-top: 10px; }
.pil-table { font-size: .86rem; } .pil-table td, .pil-table th { padding: 10px 10px; } .pil-table td:first-child strong { font-size: .9rem; }
.pil-layout { grid-template-columns: minmax(0, 1fr) 280px; }
.pil-seqs { table-layout: fixed; width: 100%; font-size: .86rem; }
.pil-seqs th:nth-child(1) { width: 34px; } .pil-seqs th:nth-child(2) { width: 64px; } .pil-seqs th:nth-child(4) { width: 92px; } .pil-seqs th:nth-child(5) { width: 48px; } .pil-seqs th:nth-child(6) { width: 118px; } .pil-seqs th:nth-child(7) { width: 70px; }
.pil-seqs td, .pil-seqs th { padding: 9px 8px; overflow-wrap: anywhere; } .pil-seqs th { white-space: normal; }
@media (max-width: 760px) { .pil-seqs { table-layout: auto; min-width: 640px; } }
.pil-layout { grid-template-columns: minmax(0, 1fr) 260px; }
.pil-seqs th { overflow-wrap: normal; hyphens: manual; font-size: .68rem; letter-spacing: .02em; }
.pil-seqs th:nth-child(2) { width: 68px; } .pil-seqs th:nth-child(4) { width: 100px; } .pil-seqs th:nth-child(5) { width: 54px; } .pil-seqs th:nth-child(6) { width: 124px; } .pil-seqs th:nth-child(7) { width: 78px; }
.pil-rowact .btn { padding: 4px 7px; min-height: 0; }
.pil-table-card { padding: 14px 16px; }

/* v1.36 — promotions, archives, statut des déroulés */
.flash-warn { background: var(--amber-bg); border-color: #efd9a3; color: #6b4e0d; }
.tag-promo { background: #e8f1ff; color: #1e4fa3; }
.tag-archive { background: #ececf3; color: #4e556b; }
.pil-st-brouillon { background: var(--amber-bg); color: #8a5a00; }
.pil-st-valide { background: #eaf7ee; color: #1f6b3a; }
.pil-st-none { background: #eceef3; color: #4e556b; }
.pil-byteacher summary { cursor: pointer; }
.btn-valid { background: #1f6b3a; color: #fff; border-color: #1f6b3a; }
.btn-valid:hover { background: #185730; }
.inline-lab { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; }
.pil-detail td { background: var(--bg-soft, #f8f9fc); }
.pil-filters form.inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pil-detail .pil-seqs td:last-child { white-space: nowrap; }
.bulk-bar .promo-new { max-width: 190px; }
.flash-promo { margin: 10px 0; }

/* v1.37 — Emploi du temps, appel et absences */
.ass-pill { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.ass-p { background: #2E7D32; color: #fff; } .ass-a { background: #C62828; color: #fff; } .ass-r { background: #F4B400; color: #fff; text-shadow: 0 1px 1px rgba(0,0,0,.25); }
.ass-none { background: #eceef3; color: #4e556b; }
.ass-j-ok { background: #e5edfb; color: #1e4fa8; } .ass-j-pend { background: #fff3d6; color: #8a5a00; } .ass-j-ko, .ass-j-missing { background: #fde8de; color: #a63a12; }
.ass-src { background: #f0f2f7; color: #4e556b; }
.ass-layout { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.ass-layout > * { min-width: 0; }
.ass-week { flex: 1 1 300px; display: flex; flex-direction: column; gap: 10px; }
.ass-day { display: flex; flex-direction: column; gap: 8px; }
.ass-day h3 { margin: 0; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--navy); }
.ass-sess { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; text-decoration: none; color: inherit; font: inherit; text-align: left; }
.ass-sess.on { border: 2px solid var(--navy); background: #f0f2f9; }
.ass-sess .top { display: flex; justify-content: space-between; gap: 8px; width: 100%; }
.ass-sess small { color: var(--muted); }
.ass-badge { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.ass-badge.todo { background: #fde8de; color: #a63a12; } .ass-badge.done { background: #e5edfb; color: #1e4fa8; } .ass-badge.retro { background: #fff3d6; color: #8a5a00; }
.ass-appel { flex: 999 1 560px; }
.ass-counts { display: flex; flex-wrap: wrap; gap: 18px; font-size: .9rem; padding: 10px 0; }
.ass-legend { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; font-size: .85rem; margin: 6px 0 10px; }
.ass-legend i { display: inline-flex; width: 22px; height: 22px; border-radius: 50%; align-items: center; justify-content: center; font-style: normal; font-size: 11px; font-weight: 800; color: #fff; margin-right: 6px; }
.ass-table { width: 100%; min-width: 640px; border: 1px solid #b9c0d4; border-radius: 10px; border-collapse: separate; border-spacing: 0; overflow: hidden; }
.ass-table th { background: var(--navy); color: #fff; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; padding: 10px 12px; text-align: left; border-right: 1px solid #3a4577; }
.ass-table th:last-child, .ass-table td:last-child { border-right: 0; }
.ass-table td { padding: 8px 12px; border-top: 1px solid #b9c0d4; border-right: 1px solid #d5d9e4; vertical-align: middle; }
.ass-table tr:nth-child(even) td { background: #f7f8fb; }
.ass-table td.n { text-align: center; font-weight: 700; color: var(--muted); width: 52px; }
.ass-table .who { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.ass-av { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; background: #e8ebf3; color: var(--navy); }
.ass-row:has(input[name^="st["][value="P"]:checked) .ass-av { background: #2E7D32; color: #fff; }
.ass-row:has(input[name^="st["][value="A"]:checked) .ass-av { background: #C62828; color: #fff; }
.ass-row:has(input[name^="st["][value="R"]:checked) .ass-av { background: #F4B400; color: #fff; }
.ass-dots { display: flex; gap: 10px; align-items: center; }
.ass-dots input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ass-dot { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px; cursor: pointer; background: #fff; border: 2px solid; opacity: .85; }
.ass-dot.p { color: #2E7D32; border-color: #2E7D32; } .ass-dot.a { color: #C62828; border-color: #C62828; } .ass-dot.r { color: #B88600; border-color: #F4B400; }
.ass-dots input:checked + .ass-dot { color: #fff; opacity: 1; box-shadow: 0 0 0 3px #fff, 0 0 0 5px currentColor; }
.ass-dots input:checked + .ass-dot.p { background: #2E7D32; box-shadow: 0 0 0 3px #fff, 0 0 0 5px #2E7D32; }
.ass-dots input:checked + .ass-dot.a { background: #C62828; box-shadow: 0 0 0 3px #fff, 0 0 0 5px #C62828; }
.ass-dots input:checked + .ass-dot.r { background: #F4B400; box-shadow: 0 0 0 3px #fff, 0 0 0 5px #F4B400; }
.ass-dots input:focus-visible + .ass-dot { outline: 3px solid var(--navy); outline-offset: 2px; }
.ass-mins { display: none; flex-wrap: wrap; gap: 4px; align-items: center; margin-top: 6px; }
.ass-row:has(input[name^="st["][value="R"]:checked) .ass-mins { display: flex; }
.ass-mins input[type=radio] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ass-min { min-height: 34px; padding: 0 9px; border-radius: 8px; background: #F4B400; color: #fff; font-size: 12px; font-weight: 700; opacity: .55; cursor: pointer; display: inline-flex; align-items: center; border: 2px solid transparent; }
.ass-mins input:checked + .ass-min { opacity: 1; border-color: var(--navy); }
.ass-mins .free { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; }
.ass-mins .free input { width: 64px; min-height: 34px; padding: 0 6px; border-radius: 8px; border: 2px solid #F4B400; font-weight: 700; }
.ass-status { font-size: 12px; font-weight: 600; color: var(--muted); }
.ass-row:has(input[name^="st["][value="P"]:checked) .ass-status::before { content: "Présent"; color: #2E7D32; }
.ass-row:has(input[name^="st["][value="A"]:checked) .ass-status::before { content: "Absent"; color: #C62828; }
.ass-row:has(input[name^="st["][value="R"]:checked) .ass-status::before { content: "Retard"; color: #B88600; }
.ass-row:not(:has(input[name^="st["]:checked)) .ass-status::before { content: "À renseigner"; }
.ass-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.ass-kpi { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.ass-kpi span { font-size: 12px; color: var(--muted); } .ass-kpi strong { font-size: 1.4rem; }
.ass-rule { background: #fff4e5; border: 1px solid #f3d9b5; border-radius: 12px; padding: 12px 16px; font-size: .9rem; color: #6b4a12; }
.ass-info { background: #f0f4ff; border: 1px solid #d5def7; border-radius: 12px; padding: 12px 16px; font-size: .9rem; color: #2b3a6b; }
.ass-map { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px; }
.ass-map label { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; }
.ass-prev td.suspens { color: #a63a12; } .ass-prev td.ok { color: #1f6b3a; } .ass-prev td.dup { color: #8a5a00; } .ass-prev td.del { color: #b3261e; font-weight: 600; } .ass-prev td.kept { color: #8a5a00; } .ass-prev td.rien { color: #5b6480; }
.ass-edt-item { display: flex; flex-direction: column; gap: 3px; padding: 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.ass-edt-item.entretien { border: 2px solid #F4B400; }
.ass-edt-item .top { display: flex; justify-content: space-between; gap: 8px; font-weight: 700; font-size: .9rem; }
.ass-just-form { display: flex; flex-direction: column; gap: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.ass-th { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.ass-th label { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; }
.ass-th input { max-width: 120px; }
.ass-reasons { display: flex; flex-wrap: wrap; gap: 6px; }
.ass-reasons span { background: #fde8de; color: #a63a12; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.ass-mail { background: #f8f9fc; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; white-space: pre-wrap; font-size: .85rem; max-height: 320px; overflow: auto; }
@media (max-width: 700px) { .ass-table { min-width: 560px; } .ass-dot { width: 40px; height: 40px; } }
.ass-txt-a { color: #a63a12; } .ass-txt-ok { color: #1e4fa8; }

/* v1.37.2 — grille hebdomadaire */
.ass-weeknav { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ass-glegend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: #4e556b; margin: 6px 0 10px; }
.ass-glegend span { display: inline-flex; align-items: center; gap: 6px; }
.ass-glegend i { width: 14px; height: 14px; border-radius: 4px; border-left: 4px solid; display: inline-block; }
.ass-k-pro { background: #dce6fa; border-color: #17214e; } .ass-k-gen { background: #e6f2ea; border-color: #2e7d32; } .ass-k-atelier { background: #fff3d6; border-color: #f4b400; } .ass-k-exam { background: #f1e6f7; border-color: #7b3fa0; }
.ass-gridwrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.ass-grid { min-width: 860px; display: grid; grid-template-columns: 96px repeat(5, minmax(0, 1fr)); }
.ass-grid.ass-cols-6 { grid-template-columns: 96px repeat(6, minmax(0, 1fr)); }
.ass-g-corner { padding: 12px 10px; background: var(--navy); color: #fff; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; border-right: 1px solid #3a4577; }
.ass-g-head { padding: 10px; text-align: center; background: var(--navy); color: #fff; border-right: 1px solid #3a4577; }
.ass-g-head span { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; opacity: .85; } .ass-g-head strong { display: block; font-size: 15px; }
.ass-g-head.today { background: var(--accent, #C23B2E); }
.ass-g-slot { padding: 10px; border-top: 1px solid var(--line); border-right: 1px solid var(--line); background: #f8f9fc; font-size: 13px; color: var(--navy); }
.ass-g-slot strong { display: block; } .ass-g-slot span { display: block; color: var(--muted); }
.ass-g-cell { padding: 6px; border-top: 1px solid var(--line); border-right: 1px solid #eef0f5; min-height: 92px; display: flex; flex-direction: column; gap: 6px; }
.ass-cell { display: flex; flex-direction: column; gap: 3px; flex: 1; padding: 8px 10px; border-radius: 8px; border-left: 4px solid; text-decoration: none; color: inherit; }
a.ass-cell:hover { outline: 2px solid var(--navy); } .ass-cell.on { outline: 3px solid var(--navy); }
.ass-c-title { font-size: 13px; font-weight: 700; line-height: 1.25; color: var(--navy); }
.ass-c-sub { font-size: 12px; color: #4e556b; }
.ass-c-foot { display: flex; justify-content: space-between; gap: 6px; align-items: center; font-size: 11px; color: var(--muted); margin-top: auto; flex-wrap: wrap; }
.ass-daylist { display: none; flex-direction: column; gap: 8px; }
.ass-daylist h3 { margin: 10px 0 2px; font-size: .9rem; color: var(--navy); } .ass-daylist h3.today { color: var(--accent, #C23B2E); }
.ass-daylist .ass-edt-item { padding: 0; border: 0; background: transparent; }
.ass-daylist .ass-edt-item .top { font-size: 12px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.ass-daylist .ass-cell { border: 1px solid var(--line); border-left: 4px solid; }
@media (max-width: 760px) { .ass-gridwrap { display: none; } .ass-daylist { display: flex; } }
@media print { .ass-daylist { display: none; } .ass-gridwrap { display: block; overflow: visible; } }
.ass-week-list { display: flex; flex-direction: column; gap: 8px; }
.ass-week { flex: none; }
.ass-dayradio { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.ass-daytabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; padding: 4px; background: #e8ebf3; border-radius: 12px; }
.ass-daytabs label { min-height: 52px; border-radius: 9px; text-align: center; color: var(--navy); cursor: pointer; display: flex; flex-direction: column; justify-content: center; }
.ass-daytabs label span { font-size: 11px; } .ass-daytabs label strong { font-size: 15px; }
.ass-daytabs label i { display: block; width: 6px; height: 6px; margin: 2px auto 0; border-radius: 50%; background: transparent; }
.ass-daytabs label.has i { background: var(--accent, #C23B2E); } .ass-daytabs label.today span { color: var(--accent, #C23B2E); font-weight: 700; }
.ass-daylist .ass-dayblock { display: none; }
.ass-daylist:has(.ass-dr-0:checked) .ass-d0, .ass-daylist:has(.ass-dr-1:checked) .ass-d1, .ass-daylist:has(.ass-dr-2:checked) .ass-d2, .ass-daylist:has(.ass-dr-3:checked) .ass-d3, .ass-daylist:has(.ass-dr-4:checked) .ass-d4, .ass-daylist:has(.ass-dr-5:checked) .ass-d5 { display: block; }
.ass-daylist:has(.ass-dr-0:checked) label[for="ass_jour_0"], .ass-daylist:has(.ass-dr-1:checked) label[for="ass_jour_1"], .ass-daylist:has(.ass-dr-2:checked) label[for="ass_jour_2"], .ass-daylist:has(.ass-dr-3:checked) label[for="ass_jour_3"], .ass-daylist:has(.ass-dr-4:checked) label[for="ass_jour_4"], .ass-daylist:has(.ass-dr-5:checked) label[for="ass_jour_5"] { background: var(--navy); color: #fff; }
.ass-daylist:has(.ass-dr-0:checked) label[for="ass_jour_0"] span, .ass-daylist:has(.ass-dr-1:checked) label[for="ass_jour_1"] span, .ass-daylist:has(.ass-dr-2:checked) label[for="ass_jour_2"] span, .ass-daylist:has(.ass-dr-3:checked) label[for="ass_jour_3"] span, .ass-daylist:has(.ass-dr-4:checked) label[for="ass_jour_4"] span, .ass-daylist:has(.ass-dr-5:checked) label[for="ass_jour_5"] span { color: #fff; }
.ass-dayblock { display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 760px) { .ass-weeknav { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; } .ass-weeknav .tag { text-align: center; font-size: 12px; white-space: normal; } .ass-weeknav > a:last-child { grid-column: 1 / -1; text-align: center; } }
/* v1.38 — classes de l'assiduité */
.inline-details summary { list-style: none; display: inline-block; } .inline-details summary::-webkit-details-marker { display: none; }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin-top: 8px; } .inline-form label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; }
.form-inline-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; align-items: end; }
.list-plain { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
/* v1.38 — mise à jour : la ligne d'une archive en attente passe sur deux lignes au lieu de s'écraser */
.maj-pending.row { flex-wrap: wrap; } .maj-pending .row-main { flex: 1 1 320px; } .maj-pending .row-main strong { overflow-wrap: anywhere; }
.maj-pending .task-actions { white-space: normal; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
/* v1.39 — statistiques par matière */
.ass-nj { color: #c0392b; font-weight: 700; } tr.ass-alert td { background: #fff6f4; }
.bulk-bar select, .bulk-bar input, .pil-filters select, form.form select { max-width: 100%; min-width: 0; }
.ass-ref { width: 76px; }
/* v1.39.2 — vue par mois */
.ass-vswitch { margin: 0 0 8px; }
.ass-month { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.ass-m-head { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); background: var(--navy); color: #fff; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.ass-m-head div { padding: 8px 10px; }
.ass-m-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.ass-m-day { min-height: 96px; padding: 6px; border-right: 1px solid #eef0f5; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ass-m-day.out { background: #f8f9fc; opacity: .55; } .ass-m-day.today .ass-m-num { background: var(--accent, #C23B2E); color: #fff; }
.ass-m-num { align-self: flex-start; font-weight: 700; font-size: 13px; color: var(--navy); text-decoration: none; padding: 1px 7px; border-radius: 999px; } .ass-m-num:hover { background: #e8ebf3; }
.ass-m-item { display: block; font-size: 11px; line-height: 1.25; padding: 3px 6px; border-radius: 6px; border-left: 3px solid; color: var(--ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ass-m-item .h { font-weight: 700; color: var(--navy); }
.ass-m-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; vertical-align: middle; } .ass-m-dot.todo { background: #c0392b; } .ass-m-dot.done { background: #2e7d32; }
@media (max-width: 760px) { .ass-m-head, .ass-m-row { grid-template-columns: repeat(6, minmax(0, 1fr)); } .ass-m-day { min-height: 56px; padding: 3px; } .ass-m-item { font-size: 0; padding: 0; height: 6px; border-radius: 3px; border-left: 0; } .ass-m-item .h { display: none; } .ass-m-dot { display: none; } }
.copy-zone { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); } .copy-zone select { max-width: 100%; }
/* v1.40 — état civil */
.civil fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px 4px; margin: 0 0 10px; } .civil legend { font-weight: 700; color: var(--navy); padding: 0 6px; }
.civil .grid3 label { font-size: 13px; } .civil-fold { opacity: .85; }
.civil-dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; font-size: 14px; } .civil-dl dt { color: var(--muted); } .civil-dl dd { margin: 0; }
@media (max-width: 760px) { .civil-dl { grid-template-columns: 1fr; } .civil-dl dt { margin-top: 6px; } }
.civil input[type=date] { font: inherit; color: var(--ink); background: var(--white); border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 13px; width: 100%; }

/* v1.41 — Liste des étudiants : raccourcis par classe, numérotation */
.class-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: -6px 0 14px; }
.class-chips .chip { padding: 5px 11px; border: 1px solid #c9d3e6; background: var(--white); color: #4a5876; font-size: .8rem; font-weight: 700; text-decoration: none; }
.class-chips .chip:hover { border-color: var(--blue-2); color: var(--navy); }
.class-chips .chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.class-chips .chip b { font-weight: 800; opacity: .85; }
.table td.num, .table th.num { width: 2.4em; color: #6b7390; font-variant-numeric: tabular-nums; text-align: right; }

/* v1.41 — Fiche étudiant : bandeau d'identité + onglets (sans script : cases radio) */
.fiche-band { display: grid; grid-template-columns: auto 1fr auto; gap: 18px 24px; align-items: center; }
.fiche-band .fiche-photo .avatar-form { margin: 0; padding: 10px; }
.fiche-band .fiche-photo .avatar-row { margin-bottom: 8px; }
.fiche-band .fiche-photo .avatar-row .grow { display: none; }
.fiche-band .fiche-photo .avatar.avatar-lg { width: 96px; height: 96px; font-size: 30px; border-radius: 14px; }
.fiche-band .fiche-photo .avatar.avatar-lg img { border-radius: 14px; }
.fiche-id h1 { margin: 0 0 6px; }
.fiche-id p { margin: 0 0 4px; }
.fiche-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.fiche-stats { display: flex; gap: 0; }
.fiche-stats > div { display: flex; flex-direction: column; gap: 2px; padding: 0 18px; border-left: 1px solid #e3e8f3; }
.fiche-stats b { font-size: 1.25rem; color: var(--navy); }
.fiche-stats span { font-size: .78rem; color: #6b7390; }
.fiche-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; padding-top: 12px; border-top: 1px solid #eef0f5; }
@media (max-width: 900px) { .fiche-band { grid-template-columns: auto 1fr; } .fiche-stats { grid-column: 1 / -1; } .fiche-stats > div:first-child { padding-left: 0; border-left: 0; } }
.ftabs { margin-top: 18px; }
.ftab-r { position: absolute; opacity: 0; pointer-events: none; }
.ftab-bar { display: flex; flex-wrap: wrap; gap: 2px; border-bottom: 1px solid #d9dfec; margin-bottom: 18px; }
.ftab { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; margin-bottom: -1px; border-bottom: 3px solid transparent; font-weight: 700; font-size: .92rem; color: #5b6686; cursor: pointer; }
.ftab:hover { color: var(--navy); }
.ftab-p { display: none; }
#ft-identite:checked ~ .ftab-bar label[for=ft-identite], #ft-compte:checked ~ .ftab-bar label[for=ft-compte], #ft-parcours:checked ~ .ftab-bar label[for=ft-parcours], #ft-suivi:checked ~ .ftab-bar label[for=ft-suivi], #ft-dossier:checked ~ .ftab-bar label[for=ft-dossier] { color: var(--navy); border-bottom-color: var(--navy); }
.ftab-r:focus-visible ~ .ftab-bar label[for] { outline: 2px solid var(--blue-2); }
#ft-identite:checked ~ .ftab-identite, #ft-compte:checked ~ .ftab-compte, #ft-parcours:checked ~ .ftab-parcours, #ft-suivi:checked ~ .ftab-suivi, #ft-dossier:checked ~ .ftab-dossier { display: block; }
.ftab-p > .card + .card { margin-top: 18px; }

/* v1.41 — État civil en cartes */
.civil-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 12px 0; }
@media (max-width: 760px) { .civil-cards { grid-template-columns: 1fr; } }
.civil-card h3 { margin: 0 0 10px; font-size: .95rem; }
.civil-dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; margin: 0; }
.civil-dl > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.civil-dl > div.wide { grid-column: 1 / -1; }
.civil-dl dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: #6b7390; font-weight: 700; }
.civil-dl dd { margin: 0; font-size: .95rem; overflow-wrap: anywhere; }
.civil-dl dd.civ-none { color: #9aa3bd; }
.civil-edit > summary { display: inline-flex; list-style: none; cursor: pointer; }
.civil-edit > summary::-webkit-details-marker { display: none; }
.civil-edit[open] > summary { margin-bottom: 12px; }
.civil-edit .form.card { margin: 0; }

/* v1.41 — Trombinoscope */
.trombi { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
@media (max-width: 1100px) { .trombi { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .trombi { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.trombi-card { background: var(--white); border: 1px solid #e3e8f3; border-radius: 14px; padding: 14px 10px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.trombi-card.no-photo { border-style: dashed; }
.trombi-ph { display: block; text-decoration: none; }
.avatar.avatar-xl { width: 140px; height: 140px; font-size: 40px; border-radius: 12px; }
.avatar.avatar-xl img { border-radius: 12px; }
.trombi-nm { font-size: .92rem; line-height: 1.25; }
.trombi-form { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.table-wrap { position: relative; } /* v1.41 : les éléments positionnés du tableau (libellés pour lecteurs d'écran) restent dans la zone de défilement, sans élargir la page sur téléphone */

/* v1.42 — emploi du temps annuel (PDF) : options repliées */
.annuel-d { display: inline-block; position: relative; }
.annuel-d > summary { list-style: none; cursor: pointer; display: inline-flex; }
.annuel-d > summary::-webkit-details-marker { display: none; }
.annuel-f { position: absolute; right: 0; z-index: 20; margin-top: 8px; width: min(420px, 92vw); padding: 14px 16px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px rgba(10, 20, 50, .18); display: flex; flex-direction: column; gap: 8px; text-align: left; }
.annuel-f .grid2 { gap: 8px; }
@media (max-width: 700px) { .annuel-d { position: static; } .annuel-f { position: static; width: 100%; } }

/* v1.43 — Notes, évaluations, conseils de classe, bulletins */
.ev-form .ev-counts { align-self: end; min-height: 44px; }
.ev-grid input.note { width: 84px; text-align: right; font-variant-numeric: tabular-nums; }
.ev-grid input.wide, .conseil-t input.wide { width: 100%; min-width: 220px; box-sizing: border-box; }
.ev-grid select { min-width: 150px; }
.ev-edit > summary { cursor: pointer; }
.ev-list td, .conseil-t td, .res-t td { vertical-align: middle; }
.conseil-t th.num, .conseil-t td.num { text-align: right; font-variant-numeric: tabular-nums; }
.conseil-t .moy { background: #eef1f7; font-weight: 700; }
.conseil-t td.lo, .conseil-t td.lo a { color: #9a1b1b; font-weight: 700; }
.conseil-t a.plain { color: inherit; text-decoration: none; }
.conseil-t a.plain:hover { text-decoration: underline; }
.conseil-t select { min-width: 170px; }
.conseil-t input[name^=decision] { min-width: 160px; }
.unlock-f { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.unlock-f input { height: 40px; min-width: 220px; }
.opts-row { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; }
.opts-row .check { margin: 0; }
pre.log { white-space: pre-wrap; font-size: .82rem; background: #f6f8fc; border-radius: 10px; padding: 10px 12px; }
.appr-grid, .coef-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; margin-bottom: 14px; }
@media (max-width: 760px) { .appr-grid, .coef-grid { grid-template-columns: 1fr; } }
.appr-grid label, .coef-grid label { display: flex; flex-direction: column; gap: 4px; font-size: .9rem; font-weight: 600; }
.coef-grid input.coef { width: 90px; }
.types-t input, .intakes-t input[type=text], .intakes-t input:not([type]) { width: 100%; min-width: 120px; box-sizing: border-box; }
.types-t td:nth-child(3) input { width: 90px; }
.dates { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.sig-row { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: flex-start; margin: 10px 0 14px; }
.sig-row > div { display: flex; flex-direction: column; gap: 8px; }
.sig-img { max-width: 260px; max-height: 110px; border: 1px dashed #c9d3e6; border-radius: 8px; padding: 6px; background: #fff; }
.imp-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
@media (max-width: 900px) { .imp-cols { grid-template-columns: 1fr; } }
.imp-col { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin: 0; }
.imp-col legend { font-weight: 700; padding: 0 6px; }
.imp-col .grid3 label.check { align-self: end; }
.res-avg { font-size: 1.6rem; margin: 4px 0 10px; }
.res-avg strong { color: var(--navy); }
.res-t th.num, .res-t td.num { text-align: right; font-variant-numeric: tabular-nums; }
.tag-off { background: #eef0f5; color: #6b7390; }
/* v1.43.1 — publication des notes aux étudiants */
.pub-form { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; }
.pub-form .check { margin: 0; }
.pub-at input[type=datetime-local] { height: 38px; margin-left: 6px; }
.pub-at { flex-wrap: wrap; } .pub-at input[type=datetime-local] { max-width: 100%; }
/* v1.43.2 — annonces : actions */
.ann-acts { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.news-full .tag { vertical-align: middle; }
/* v1.44 — certificats de scolarité */
.cert-box { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fafbff; margin: 12px 0; }
.cert-access .row-head { align-items: flex-start; }
.cert-access .actions { display: inline-flex; gap: 8px; flex-wrap: wrap; }
/* v1.44.1 — trombinoscope et fiche : photo d'identité entière (format portrait), jamais coupée */
.avatar.avatar-xl { width: 150px; height: 190px; border-radius: 12px; }
.avatar.avatar-xl.has-photo { background: #f3f5fa; }
.avatar.avatar-xl.has-photo img { object-fit: contain; border-radius: 12px; }
.fiche-band .fiche-photo .avatar.avatar-lg { width: 96px; height: 120px; }
.fiche-band .fiche-photo .avatar.avatar-lg.has-photo { background: #f3f5fa; }
.fiche-band .fiche-photo .avatar.avatar-lg.has-photo img { object-fit: contain; }
.maj-progress { font-weight: 700; color: var(--navy); margin: 6px 0; }

/* v1.46.1 — Entreprises et tuteurs : filtres et actions sur la sélection */
.ent-filters{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.ent-filters input[type=search]{flex:1;min-width:180px}
.ent-bulk{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:0 0 10px}.ent-bulk select,.ent-bulk input{max-width:100%}
@media (max-width:640px){.ent-bulk select,.ent-bulk input,.ent-bulk button{width:100%}}

.ass-mail-edit{width:100%;font-family:inherit;font-size:.95rem;line-height:1.45}

/* v1.47 — Absences du jour */
.absj-nav{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.absj-nav input[type=date]{padding:7px 9px}
.absj-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:12px}@media (max-width:640px){.absj-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
.absj-bulk{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:0 0 10px}.absj-sp{flex:1}
.absj-slot{display:inline-block;margin:2px 6px 2px 0;padding:3px 8px;border-radius:8px;background:#fde8e8;color:#8a1c1c;font-size:12px;font-weight:600}
.absj-slot.r{background:#fff1d6;color:#8a5a00}.absj-slot.j{background:#e3f6e8;color:#1d6b35}.absj-slot.p{background:#e8eefc;color:#1e3a8a}
.absj-apercu{margin-top:14px;padding:14px;border:1px solid var(--line,#dfe3ee);border-radius:12px;background:var(--bg-soft,#f7f8fc)}
.absj-missing{margin:10px 0 0}

/* v1.47.2 — Étudiants : tableau compact (une ligne par étudiant) ; v1.48 : toutes les colonnes visibles sans défilement horizontal */
.stu-table { width: 100%; table-layout: auto; font-size: .88rem; }
.stu-table td, .stu-table th { padding: 6px 7px; vertical-align: middle; }
.stu-table th { font-size: .68rem; letter-spacing: .04em; white-space: nowrap; }
.stu-table td.num { width: 1.8em; padding-left: 2px; padding-right: 2px; }
.stu-table td:first-child, .stu-table th:first-child { width: 22px; padding-left: 6px; padding-right: 2px; }
.stu-table .tag { font-size: .72rem; padding: 2px 7px; }
.stu-table td.small { font-size: .82rem; }
.stu-table .btn-imp { padding: 4px 7px; }
.stu-table .who { max-width: 230px; }
.stu-table .who strong { max-width: 190px; }
.stu-table .who small { max-width: 190px; font-size: .74rem; }
.stu-table td:nth-child(3) { width: 1%; }
@media (max-width: 1300px) { .stu-table { font-size: .8rem; } .stu-table .who { max-width: 170px; } .stu-table .who strong, .stu-table .who small { max-width: 150px; } .stu-table .who .avatar.sm { display: none; } .stu-table td, .stu-table th { padding: 5px 5px; } .stu-table .tag { font-size: .68rem; padding: 2px 5px; } }
.stu-table .who { display: flex; align-items: center; gap: 8px; min-width: 0; }
.stu-table .who .avatar.sm { width: 28px; height: 28px; font-size: .7rem; flex: 0 0 auto; }
.stu-table .who div { min-width: 0; line-height: 1.25; }
.stu-table .who strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; max-width: 260px; }
.stu-table .who small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; max-width: 260px; font-size: .78rem; }
.stu-table .tag { white-space: nowrap; }
.stu-table .tag small { font-weight: 400; opacity: .8; margin-left: 2px; }

/* v1.48 — Modifier le créneau */
.sm-slots{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:-4px 0 10px}.sm-warn ul{margin:4px 0 0 18px}

/* v1.49 — Modifier le créneau : classes à cocher, récurrence par semaine */
.sm-form .lbl{display:block;font-weight:600;margin-bottom:6px}
.sm-classes{display:flex;flex-wrap:wrap;gap:6px}
.sm-chk{display:inline-flex;align-items:center;gap:8px;padding:7px 11px;border:1px solid var(--line, #dfe5f2);border-radius:10px;background:#fff;font-size:.9rem;cursor:pointer}
.sm-chk:has(input:checked){background:var(--sky, #e8eefc);border-color:#b9c7ee}
.sm-chk input{margin:0}
.sm-weeks{border:1px solid #dfe5f2;border-radius:12px;padding:12px 14px;margin:14px 0;background:#f7f9fd}
.sm-weeks legend{font-weight:700;padding:0 6px}
.sm-weeks-tools{display:flex;gap:6px;margin:0 0 10px}
.sm-weeks-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:8px}
.sm-week{flex-wrap:wrap}.sm-week span{color:var(--muted, #5b6480)}.sm-week small{flex-basis:100%;color:var(--muted, #5b6480)}
.sm-week.is-appel{background:#fff7e6;border-color:#f1d9a3}.sm-week.is-appel small{color:#8a5a00}
.sm-week.is-conflict{border-color:#e7c3bf}.sm-week.is-conflict small{color:#b23a2e}
.ass-declare{display:flex;flex-wrap:wrap;gap:10px 16px;align-items:center;margin:12px 0 4px;padding:10px 14px;background:#f7f9fd;border:1px solid #dfe5f2;border-radius:10px}
.ass-kpi-declare{border-color:#b9c7ee}

/* v1.50 — Programme : chapitres repliés, ajout rapide, déplacer */
.gc-chap.is-closed .gc-body{display:none}
.gc-chap .gc-toggle-close{display:none}.gc-chap.is-open .gc-toggle-open{display:none}.gc-chap.is-open .gc-toggle-close{display:inline}
.gc-acts{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.gc-mv{position:relative}.gc-mv > summary{list-style:none}.gc-mv > summary::-webkit-details-marker{display:none}
.gc-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 10px}
.gc-filters{display:flex;gap:4px;flex-wrap:wrap;margin-left:auto}.gc-filters .pill{cursor:pointer;border:1px solid var(--line);background:#fff;font:inherit;font-size:.78rem}.gc-filters .pill.on{background:var(--sky, #e8eefc);color:var(--navy, #1e3a8a);border-color:#b9c7ee}
.gc-quick{margin:6px 14px 12px 56px}.gc-quick > summary{list-style:none;cursor:pointer;display:inline-flex}.gc-quick > summary::-webkit-details-marker{display:none}
.gc-quick[open] > summary{display:none}
.gc-quick-f{background:#f7f9fd;border:1px dashed #b9c7ee;border-radius:12px;padding:12px 14px;display:flex;flex-direction:column;gap:10px;text-align:left;font-weight:400}
.gc-quick-row{display:flex;gap:10px;align-items:flex-end;flex-wrap:wrap}.gc-quick-row label{display:flex;flex-direction:column;gap:4px;font-size:.8rem;font-weight:600;color:var(--muted)}
.gc-quick-row label.check{flex-direction:row;align-items:center;font-weight:500;color:var(--ink)}
.gc-quick-file{flex:1 1 240px}.gc-quick-title{flex:1 1 220px}.gc-quick-f input:not([type=checkbox]):not([type=file]),.gc-quick-f select{padding:7px 9px;border:1px solid var(--line);border-radius:8px;font:inherit}
.gc-quick-f p{margin:0}
@media (max-width: 760px){.gc-quick{margin-left:14px}.gc-filters{margin-left:0}}
.api-url{width:100%;font-family:ui-monospace,monospace;font-size:.85rem;padding:8px 10px;border:1px solid var(--line);border-radius:8px}

/* v1.53 : années inférieures ouvertes / promotions concernées */
.tag-promo{background:#eef3ff;color:#1e3a8a;border:1px solid #c7d4f5}
.res-promos{display:flex;flex-wrap:wrap;gap:6px 14px;align-items:center;margin:10px 0 2px;padding:10px 14px;background:#f7f9fd;border:1px solid #dfe5f2;border-radius:10px}
.res-promos .lbl{font-weight:600;font-size:13px;margin-right:4px}
.res-promos .hint{flex-basis:100%;margin:2px 0 0}
/* v1.54 : évaluation → livret de compétences */
.evc-card .comp-grp{margin:6px 0}.evc-card .comp-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px 16px}
@media (max-width:800px){.evc-card .comp-list{grid-template-columns:1fr}}
.evc-prefill{display:flex;gap:10px;align-items:center;flex-wrap:wrap;font-size:13px}.evc-prefill input{width:64px;padding:4px 6px}
.evc-grid th{white-space:normal;min-width:120px}.evc-grid td{vertical-align:middle}
.evc-lv{display:inline-flex;border:1px solid #cfd5e3;border-radius:8px;overflow:hidden}
.evc-opt{position:relative;cursor:pointer}.evc-opt input{position:absolute;opacity:0;width:1px;height:1px}
.evc-opt span{display:block;padding:4px 8px;font-size:11px;font-weight:600;color:#5b6480;border-right:1px solid #cfd5e3}.evc-opt:last-child span{border-right:0}
.evc-opt input:focus-visible+span{outline:2px solid #1e3a8a;outline-offset:-2px}
.evc-x input:checked+span{background:#f1f3f8}.evc-0 input:checked+span{background:#fde8e6;color:#b3261e}.evc-1 input:checked+span{background:#fff4dd;color:#8a5a00}.evc-2 input:checked+span{background:#e3f4ea;color:#1f7a4d}.evc-3 input:checked+span{background:#cdeedb;color:#0f5c37}
.lv-trace{margin-top:8px;font-size:12px}.lv-trace-t{font-weight:600;color:#1b2340}.lv-tr{display:flex;gap:8px;align-items:center;padding:4px 0;border-top:1px dashed #e3e7f0}
.pill.evc-0{background:#fde8e6;color:#b3261e}.pill.evc-1{background:#fff4dd;color:#8a5a00}.pill.evc-2{background:#e3f4ea;color:#1f7a4d}.pill.evc-3{background:#cdeedb;color:#0f5c37}

/* v1.54.4 : onglets communs des pages Travaux */
.trav-tabs{margin:0 0 14px}.trav-tabs .badge{margin-left:4px}

/* ---------- v1.55 : Programme en cartes (Programme, Mes cours) ---------- */
.ck { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px 14px; }
.ck-tabs-bar .ck-list { margin-left: auto; }
.ck-head { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: flex-start; margin-bottom: 10px; }
.ck-head-t { flex: 1 1 320px; min-width: 0; }
.ck-head-t h2 { margin: 2px 0 2px; font-size: 1.25rem; }
.ck-head-t .ck-counts { margin: 0; }
.ck-head-a { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ck-filters { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 3px; border-radius: 999px; background: var(--sky-2); border: 1px solid var(--line); }
.pillbtn { border: 0; background: transparent; color: var(--muted); font: 700 .8rem/1 var(--body); padding: 7px 11px; border-radius: 999px; cursor: pointer; }
.pillbtn:hover { color: var(--ink); background: var(--white); }
.pillbtn.on { background: var(--navy); color: #fff; }
.ck-mats { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 14px; }
.ck-mat { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font-weight: 700; font-size: .84rem; text-decoration: none !important; }
.ck-mat small { font-weight: 600; color: var(--muted); }
.ck-mat:hover { border-color: var(--blue-2); background: var(--sky-2); }
.ck-mat.on { background: var(--c, var(--blue)); border-color: var(--c, var(--blue)); color: #fff; }
.ck-mat.on small { color: rgba(255, 255, 255, .8); }
.ck-mat.is-draft { border-style: dashed; }
.ck-strip { padding: 12px 0 6px; border-top: 1px solid var(--line); }
.ck-strip:first-of-type { border-top: 0; }
.ck-strip-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 10px; }
.ck-strip-img { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; flex: none; }
.ck-strip-t { min-width: 0; display: flex; flex-direction: column; }
.ck-strip-t h3 { margin: 0; font-size: 1.02rem; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ck-strip.is-draft .ck-strip-img { filter: grayscale(.6); opacity: .8; }
.ck-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.ck-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; background: var(--white); overflow: visible; transition: box-shadow .15s, transform .15s; min-width: 0; }
.ck-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.ck-card.hl { box-shadow: 0 0 0 3px var(--sun); }
.ck-card.is-draft, .ck-card.st-draft { background: #fbfcfe; }
.ck-card.st-draft .ck-cover img { filter: grayscale(.7); opacity: .75; }
.ck-cover { display: block; aspect-ratio: 16 / 7; background: var(--c-soft); overflow: hidden; border-radius: 13px 13px 0 0; }
.ck-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ck-body { padding: 10px 12px 6px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.ck-eyebrow { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .78rem; }
.ck-num { font-weight: 800; color: var(--c, var(--blue)); text-transform: uppercase; letter-spacing: .04em; font-size: .74rem; }
.ck-st .tag { font-size: .7rem; padding: 2px 8px; }
.ck-title { margin: 0; font-size: .98rem; line-height: 1.3; }
.ck-title a { color: var(--ink); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ck-title a:hover { color: var(--blue); text-decoration: underline; }
.ck-sub { margin: 0; }
.ck-pills { margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 4px; }
.ck-pill { min-width: 0; padding: 3px 8px; font-size: .72rem; gap: 3px; }
.ck-pill small { font-weight: 600; opacity: .8; }
.ck-foot { border-radius: 0 0 13px 13px; display: flex; flex-wrap: nowrap; align-items: center; gap: 5px; padding: 8px 8px; border-top: 1px solid var(--line); background: var(--sky-2); }
.ck-foot .btn-sm { padding: 6px 9px; font-size: .8rem; white-space: nowrap; }
.ck-foot .sw-form { padding: 0; margin: 0; }
.ck-foot .xmenu-btn { flex: none; }
.xmenu-move { display: flex; align-items: center; gap: 8px; padding: 6px 10px; font-size: .8rem; color: var(--muted); border-top: 1px solid var(--line); white-space: nowrap; }
.xmenu-move .move { display: inline-flex; gap: 3px; margin-left: auto; }
.ck-cover { aspect-ratio: 16 / 6; }
.ck-new { align-items: center; justify-content: center; gap: 8px; min-height: 120px; border-style: dashed; color: var(--blue); font-weight: 700; text-decoration: none !important; background: var(--sky-2); }
.ck-new-plus { font-size: 1.6rem; line-height: 1; }
.ck-more { color: var(--muted); background: var(--white); }
.ck-more:hover { background: var(--sky-2); color: var(--blue); }
.ck-new:hover { background: var(--sky); }
.ck-empty { margin: 0 0 8px; }
.ck-card[data-cf-hide] { display: none; }
.ck-strip[data-cf-hide] { display: none; }
@media (max-width: 640px) {
  .ck { padding: 14px 12px 10px; }
  .ck-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ck-cover { aspect-ratio: 16 / 8; }
  .ck-foot .btn-sm { padding: 6px 8px; }
}
@media (max-width: 440px) { .ck-grid { grid-template-columns: 1fr; } }

/* v1.55 : page du chapitre allégée (équipe) — en-tête compact, fiche en tiroir */
.ch-head { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 18px; margin-bottom: 14px; border-left: 6px solid var(--c, var(--blue)); }
.ch-head-img { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; flex: none; }
.ch-head-t { flex: 1 1 320px; min-width: 0; }
.ch-head-t .eyebrow { margin: 0 0 2px; }
.ch-head-t .mod-title { margin: 0; font-size: 1.3rem; line-height: 1.25; }
.ch-meta { margin: 4px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.ch-head-a { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ch-head-a .ck-all { display: inline-flex; gap: 8px; }
.ch-fiche { margin: 0 0 14px; }
.ch-fiche > summary { list-style: none; }
.ch-fiche:not([open]) > .mt-hero, .ch-fiche:not([open]) > .mod-intro, .ch-fiche:not([open]) > .comp-box, .ch-fiche:not([open]) > .actions { display: none; }
.ch-fiche[open] { padding: 0 0 4px; border-radius: var(--radius); }
.ch-fiche[open] .mt-hero.is-fiche { box-shadow: none; border: 1px solid var(--line); min-height: 0; padding: 10px 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ch-fiche[open] .mt-hero.is-fiche .mt-hero-img, .ch-fiche[open] .mt-hero.is-fiche .mt-hero-body { display: none; }
.ch-fiche[open] .mt-hero.is-fiche .mt-cta { margin: 0; }
.ch-fiche-btn[aria-expanded="true"] { background: var(--sky); }
@media (max-width: 640px) {
  .ch-head { padding: 12px 12px; }
  .ch-head-img { width: 48px; height: 48px; }
  .ch-head-t .mod-title { font-size: 1.1rem; }
}

/* v1.55.1 : fenêtre de structure, menus, page « Publier aussi dans… » */
.xmenu-sep { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }
.st-dlg { border: 0; border-radius: var(--radius); padding: 0; width: min(560px, calc(100vw - 32px)); box-shadow: var(--shadow-lg); color: var(--ink); }
.st-dlg::backdrop { background: rgba(12, 24, 56, .45); }
.st-form { display: flex; flex-direction: column; gap: 12px; padding: 20px 22px; }
.st-form h2 { margin: 0; font-size: 1.15rem; }
.st-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .9rem; }
.st-form label.check { flex-direction: row; align-items: center; }
.st-form input[type=text], .st-form input:not([type]), .st-form select { font: inherit; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; min-height: 40px; }
.st-form [hidden] { display: none !important; }
.st-acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.sh-card { display: flex; flex-direction: column; gap: 10px; }
.sh-card h2 { margin: 0; font-size: 1.2rem; }
.sh-form { display: flex; flex-direction: column; gap: 12px; }
.sh-same { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; background: var(--sky-2); display: flex; flex-direction: column; gap: 6px; }
.sh-same legend { font-weight: 700; padding: 0 6px; }
.sh-opt { font-weight: 500; font-size: .92rem; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sh-all > summary, .sh-prog > summary { cursor: pointer; font-weight: 700; padding: 6px 0; }
.sh-prog { margin: 4px 0 4px 10px; }
.sh-list { display: flex; flex-direction: column; gap: 4px; padding: 4px 0 4px 14px; }
.tag-archive, .tag.tag-warn a { color: inherit; }

/* v1.55.2 : affectation officielle (M2) */
.aff-box { border: 1px solid var(--blue-2); border-radius: 12px; padding: 10px 14px 6px; margin: 6px 0 10px; display: flex; flex-direction: column; gap: 6px; }
.aff-box legend { font-weight: 700; padding: 0 6px; }
.aff-opt { font-weight: 600; }
.aff-parc { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; padding-left: 28px; }
.aff-parc .check.sm { font-weight: 500; font-size: .9rem; }
.aff-table input { width: 100%; min-width: 0; }
.aff-table .aff-code { text-transform: uppercase; max-width: 110px; }
.aff-form h3 { margin: 0 0 4px; }

/* v1.56.3 : étiquette longue (ressource liée d'une demande d'aide) */
.tag-wrap{white-space:normal;display:inline-block;max-width:100%;line-height:1.3;height:auto}

/* v1.56.4 — séances depuis la progression, Ma semaine */
.pil-filters { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 8px; }
.pil-pill.pil-nolink { background: #f1f3f8; color: #555; border: 1px dashed #b9c2d8; }
.pil-slot { min-width: 150px; } .pil-slot small { line-height: 1.3; }
.pil-link summary, .pil-after summary { list-style: none; cursor: pointer; display: inline-block; } .pil-link summary::-webkit-details-marker, .pil-after summary::-webkit-details-marker { display: none; }
.pil-after summary { color: var(--navy); text-decoration: underline; margin-top: 4px; }
.pil-link-f, .pil-after-f { margin-top: 6px; padding: 8px; border: 1px dashed var(--line); border-radius: 8px; background: #fff; display: flex; flex-direction: column; gap: 6px; min-width: 220px; }
.pil-link-f select { max-width: 100%; }
.pil-after-f textarea { width: 100%; font-size: .9rem; } .pil-after-f .actions { margin: 0; gap: 6px; }
.pil-obs { margin-top: 4px; font-style: italic; }
.sem-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.sem-kpi { display: block; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: inherit; text-decoration: none; }
.sem-kpi strong { display: block; font-size: 1.7rem; color: var(--navy); line-height: 1.1; } .sem-kpi.is-alert strong { color: #b3261e; }
.sem-kpi span { display: block; font-size: .85rem; } .sem-kpi small { color: #666; }
.sem-day { margin: 10px 0 0; } .sem-day h3 { margin: 0 0 6px; font-size: 1rem; color: var(--navy); }
.sem-seance { display: grid; grid-template-columns: 130px 1fr auto; gap: 10px 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; margin-bottom: 8px; align-items: start; }
.sem-seance .sem-when { font-weight: 600; } .sem-seance .sem-when small { display: block; font-weight: 400; color: #666; }
.sem-seance .sem-what strong { display: block; } .sem-seance .sem-act { display: flex; flex-direction: column; gap: 6px; }
.sem-prog { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.sem-prog a { display: block; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: inherit; text-decoration: none; }
.sem-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
@media (max-width: 640px) { .sem-seance { grid-template-columns: 1fr; } .sem-seance .sem-act { flex-direction: row; flex-wrap: wrap; } }
.pil-seqs td:nth-child(3) { min-width: 240px; }
/* v1.56.5 — évaluation commune, rattachement d'un rendu */
.ev-grid tr.ev-cls td { background: #eef2fb; color: var(--navy); padding: 8px 10px; }
.ev-classes { margin: 10px 0; } .ev-classes .check-grid { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.res-eval { margin-top: 12px; } .res-eval .check { display: block; margin: 4px 0; } .res-eval-sub { margin: 4px 0 10px 26px; } .res-eval-sub .lbl { display: block; font-weight: 600; font-size: .9rem; } .res-eval-sub .check.sm { display: inline-flex; margin-right: 12px; }
/* v1.56.7 — suspension temporaire de l'accès */
.susp-form { margin-top: 6px; } .susp-form .actions { margin-top: 4px; }
/* v1.57 */
.res-eval .lbl { margin: 6px 0; } .res-eval-more { margin: 6px 0; } .res-eval-more summary { cursor: pointer; color: var(--navy); }
.cp-tools { display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-start; margin: 4px 0 8px; }
.cp-edit summary { list-style: none; cursor: pointer; display: inline-block; } .cp-edit summary::-webkit-details-marker { display: none; }
.cp-edit-f { margin-top: 6px; padding: 8px 10px; border: 1px dashed var(--line); border-radius: 8px; background: #fff; display: flex; flex-direction: column; gap: 6px; min-width: 260px; max-width: 520px; }
.cp-rowtools { white-space: nowrap; } .cp-rowtools .cp-edit, .cp-rowtools form { display: inline-block; vertical-align: top; }
.cp-rowtools .cp-edit-f { position: relative; white-space: normal; }
.ae-obj-t { margin: 8px 0; width: 100%; table-layout: fixed; } .ae-obj-t th.num, .ae-obj-t td.num { text-align: center; width: 92px; padding: 4px 2px; font-size: .72rem; letter-spacing: 0; white-space: normal; } .ae-obj-t td:first-child { word-break: break-word; }
@media (max-width: 640px) { .ae-obj-t th.num, .ae-obj-t td.num { width: 60px; font-size: .62rem; } .ae-obj-opt { min-width: 36px; } }
.ae-obj-opt { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 36px; cursor: pointer; }
.ae-obj-opt input { width: 20px; height: 20px; }
.ae-o0 { color: #b3261e; } .ae-o1 { color: #9a6700; } .ae-o2 { color: #1d5a35; }
.ae-obj-sum td.num { text-align: center; }
.edt-repeat .check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 4px 10px; max-height: 260px; overflow: auto; padding: 6px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.edt-repeat-tools { align-items: center; gap: 8px; flex-wrap: wrap; margin: 6px 0; }

/* v1.58 — Mes fiches (portfolios E4 / E6) */
.fs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; }
.fs-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.fs-bar { height: 8px; background: #e9edf5; border-radius: 999px; margin: 8px 0; overflow: hidden; } .fs-bar div { height: 8px; background: var(--navy, #002060); border-radius: 999px; }
.fs-list { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.fs-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid #dfe5ef; border-radius: 10px; text-decoration: none; color: inherit; }
.fs-item small { display: block; color: var(--muted); font-size: .8rem; } .fs-item.fs-empty { border-style: dashed; color: var(--muted); }
.fs-tag { font-size: .75rem; padding: 3px 9px; border-radius: 999px; white-space: nowrap; background: #e9edf5; color: #3b4a63; }
.fs-tag.fs-draft { background: #fff4e0; color: #8a5200; } .fs-tag.fs-sent { background: #e3eefc; color: #0b3a8c; } .fs-tag.fs-fix { background: #ffe5e5; color: #a12626; } .fs-tag.fs-ok { background: #e3f6e8; color: #1b6b34; }
.fs-new, .fs-add { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin-top: 8px; } .fs-new label, .fs-add label { flex: 1 1 160px; margin: 0; font-size: .85rem; }
.fs-just { margin-top: 10px; } .fs-file { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid #eef1f6; font-size: .9rem; } .fs-file a { word-break: break-word; }
.fs-actions { flex-wrap: wrap; } .fs-req { color: #a12626; font-weight: 400; font-size: .8rem; } .fs-warn { color: #a12626; }
.fs-top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.fs-cols { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; } .fs-main { flex: 999 1 520px; min-width: 0; } .fs-side { flex: 1 1 300px; max-width: 400px; display: flex; flex-direction: column; gap: 12px; }
.fs-sec { border: 1px solid #dfe5ef; border-radius: 12px; padding: 14px 16px; margin: 0 0 14px; background: #fff; } .fs-sec legend { font-weight: 600; color: var(--navy, #002060); padding: 0 6px; }
.fs-types { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 8px; } .fs-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; } .fs-cand { flex: 1 1 200px; margin: 0; }
.fs-field { margin-bottom: 10px; } .fs-field.has-c { border-left: 3px solid #e39a9f; padding-left: 10px; }
.fs-field textarea, .fs-field input, .fs-sec input[name=title] { width: 100%; box-sizing: border-box; } .fs-field textarea[readonly], .fs-field input[readonly] { background: #f7f9fc; }
.fs-com { font-size: .85rem; color: #3b4a63; border-left: 3px solid #c9d2e3; padding-left: 10px; margin: 6px 0; }
.fs-cbox summary { font-size: .8rem; color: var(--navy, #002060); cursor: pointer; } .fs-cform { display: flex; gap: 8px; align-items: flex-start; margin-top: 6px; } .fs-cform textarea { flex: 1; }
.fs-comps { display: flex; flex-direction: column; gap: 6px; font-size: .88rem; } .fs-cell { margin: 2px 0; } .fs-table td { vertical-align: top; }
@media (max-width: 720px) { .fs-side { max-width: none; } .fs-top .actions { width: 100%; } .fs-grid { grid-template-columns: 1fr; } }
/* v1.58.4 — document Word annoté en ligne */
.fs-paras { display: flex; flex-direction: column; gap: 6px; } .fs-para { position: relative; padding: 8px 10px 8px 44px; border: 1px solid #eef1f6; border-radius: 8px; background: #fff; }
.fs-para.has-c { border-color: #e39a9f; background: #fff8f8; } .fs-pn { position: absolute; left: 10px; top: 9px; font-size: .72rem; color: var(--muted); width: 26px; text-align: right; }
.fs-pt { white-space: pre-wrap; font-size: .95rem; line-height: 1.45; } .fs-para-h .fs-pt { font-weight: 600; color: var(--navy, #002060); font-size: 1.05rem; } .fs-para-li .fs-pt::before { content: "• "; } .fs-para-tbl .fs-pt { font-family: inherit; font-size: .88rem; color: #3b4a63; }
/* v1.58.5 — Mes fiches : visuel (illustrations, couleurs par épreuve, anneau de progression, carte d'accueil) */
.fs-hero { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; background: linear-gradient(135deg, #0f2554, #2f5bea); color: #fff; border: 0; }
.fs-hero h1, .fs-hero p { color: #fff; } .fs-hero p { opacity: .9; font-size: .92rem; margin: 6px 0 0; max-width: 760px; } .fs-hero-t { flex: 1 1 420px; min-width: 0; }
.fs-ring { --p: 0; width: 112px; height: 112px; border-radius: 50%; background: conic-gradient(#ffd166 calc(var(--p) * 1%), rgba(255,255,255,.22) 0); display: grid; place-items: center; flex: 0 0 auto; }
.fs-ring span { width: 86px; height: 86px; border-radius: 50%; background: #16306b; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; } .fs-ring strong { font-size: 1.35rem; } .fs-ring small { font-size: .7rem; opacity: .85; margin-top: 3px; }
.fs-port { padding-top: 0; overflow: hidden; } .fs-cover { position: relative; margin: 0 -26px 12px; aspect-ratio: 16 / 6; overflow: hidden; } .fs-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fs-cover-ep { position: absolute; left: 16px; top: 14px; background: rgba(255,255,255,.95); color: #1b2e8f; font-weight: 800; font-size: .8rem; padding: 5px 12px; border-radius: 999px; }
.fs-cover-t { position: absolute; left: 16px; bottom: 12px; color: #fff; font-weight: 800; font-size: 1.15rem; text-shadow: 0 2px 8px rgba(0,0,0,.35); display: flex; flex-direction: column; } .fs-cover-t small { font-weight: 500; font-size: .8rem; opacity: .95; }
.fs-cover .fs-tag { position: absolute; right: 14px; top: 14px; }
.fs-port-e4 .fs-bar div { background: linear-gradient(90deg, #2f8fea, #f4a261); } .fs-port-e6 .fs-bar div { background: linear-gradient(90deg, #8e5bea, #ffd166); }
.fs-item { gap: 12px; } .fs-item-main { flex: 1; min-width: 0; } .fs-numb { width: 36px; height: 36px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; background: #9fb3e8; flex: 0 0 auto; }
.fs-port-e4 .fs-numb { background: linear-gradient(135deg, #1b2e8f, #2f8fea); } .fs-port-e6 .fs-numb { background: linear-gradient(135deg, #4b2a8f, #8e5bea); } .fs-empty .fs-numb { background: #dfe5ef; color: #8a96b5; }
.fs-item.fs-st-validee { border-color: #bfe7cb; background: #f3fbf5; } .fs-item.fs-st-a_corriger { border-color: #f3c3c7; background: #fff8f8; } .fs-item.fs-st-envoyee { border-color: #c5d8f7; background: #f5f8ff; }
a.fs-item:hover { transform: translateY(-2px); box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.bloc-fiches .bloc-cover { aspect-ratio: 16 / 9; } .fs-badge-fix { background: rgba(161, 38, 38, .9); } .fs-badge-sent { background: rgba(11, 58, 140, .9); }
.fs-top { background: linear-gradient(135deg, #f5f8ff, #fff); border-left: 6px solid #2f5bea; } .fs-top.fs-ep-e6 { border-left-color: #8e5bea; }
@media (max-width: 720px) { .fs-cover { margin: 0 -18px 12px; aspect-ratio: 16 / 7; } .fs-ring { margin: 0 auto; } }
.fs-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,20,60,0) 45%, rgba(10,20,60,.55)); pointer-events: none; } .fs-cover-t, .fs-cover-ep, .fs-cover .fs-tag { z-index: 1; }
.fs-new { justify-content: flex-start; } .fs-new label { flex: 1 1 260px; }
/* v1.59.1 — archive des retours */
.fs-timeline { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid #dfe5ef; display: flex; flex-direction: column; gap: 10px; } .fs-timeline li { position: relative; font-size: .88rem; padding-left: 8px; }
.fs-timeline li::before { content: ""; position: absolute; left: -20px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: #9fb3e8; } .fs-tl-retour::before, .fs-tl-annotee::before { background: #a12626 !important; } .fs-tl-reponse::before { background: #1b6b34 !important; } .fs-tl-version::before { background: #002060 !important; }
.fs-tl-at { color: var(--muted); font-size: .78rem; margin-right: 6px; } .fs-tl-k { font-weight: 600; color: var(--navy, #002060); } .fs-tl-t { color: #3b4a63; }
/* v1.59.4 — document Word : rendu fidèle (titres, gras, tableaux en lignes annotables) */
.fs-docpage { background: #fff; border: 1px solid #dfe5ef; border-radius: 8px; padding: 22px 26px; gap: 0; }
.fs-docpage .fs-para { border: 0; border-radius: 0; padding: 4px 8px 4px 40px; background: transparent; } .fs-docpage .fs-para.has-c { background: #fff8f8; border-left: 3px solid #e39a9f; }
.fs-docpage .fs-pn { left: 6px; top: 6px; color: #b4bdd0; } .fs-docpage .fs-pt { font-family: "Times New Roman", Times, serif; font-size: 1rem; line-height: 1.5; color: #111; }
.fs-docpage .fs-para-h .fs-pt { font-size: 1.15rem; font-weight: 700; color: #002060; margin-top: 10px; } .fs-docpage .fs-center .fs-pt { text-align: center; }
.fs-docpage .fs-para-li .fs-pt::before { content: "• "; }
.fs-tbl-start { height: 10px; } .fs-para-tr { padding-top: 0 !important; padding-bottom: 0 !important; }
.fs-row-cells { display: grid; border: 1px solid #c9d2e3; border-top: 0; font-family: "Times New Roman", Times, serif; font-size: .95rem; line-height: 1.45; }
.fs-tbl-start + .fs-para-tr .fs-row-cells { border-top: 1px solid #c9d2e3; }
.fs-docpage .fs-cbox summary { font-size: .72rem; color: #8a96b5; } .fs-docpage .fs-para:hover .fs-cbox summary { color: var(--navy, #002060); }
.fs-cell { padding: 6px 10px; border-left: 1px solid #c9d2e3; min-width: 0; overflow-wrap: anywhere; } .fs-cell:first-child { border-left: 0; } .fs-cell-lab { background: #eef2f9; font-weight: 600; }
.fs-docpage .fs-com { font-family: Inter, system-ui, sans-serif; } .fs-docpage .fs-cbox { margin: 2px 0 6px; }
@media (max-width: 720px) { .fs-docpage { padding: 12px; } .fs-row-cells { grid-template-columns: 1fr !important; } .fs-cell { border-left: 0; border-top: 1px solid #e3e8f0; } .fs-cell:first-child { border-top: 0; } }
.fs-nc-1 { grid-template-columns: 1fr; } .fs-nc-2 { grid-template-columns: minmax(140px, 28%) minmax(0, 1fr); } .fs-nc-3 { grid-template-columns: minmax(120px, 24%) repeat(2, minmax(0, 1fr)); }
.fs-nc-4 { grid-template-columns: minmax(110px, 20%) repeat(3, minmax(0, 1fr)); } .fs-nc-5 { grid-template-columns: minmax(100px, 18%) repeat(4, minmax(0, 1fr)); } .fs-nc-6 { grid-template-columns: minmax(90px, 16%) repeat(5, minmax(0, 1fr)); }
.edt-vol { margin-top: 8px; } .edt-vol summary { cursor: pointer; color: var(--navy, #002060); }
/* v1.60 — relevé intermédiaire : options du document */
.filters .releve-opts { display: flex; flex-wrap: wrap; gap: .25rem .9rem; border: 1px solid var(--border, #d9dee7); border-radius: 8px; padding: .35rem .7rem; margin: 0; flex-basis: 100%; }
.filters .releve-opts legend { padding: 0 .3rem; } .filters .releve-opts label { display: inline-flex; flex: 0 0 auto; flex-direction: row; align-items: center; gap: .35rem; font-size: .92rem; white-space: nowrap; margin: 0; }
.filters .releve-opts input[type=checkbox] { flex: 0 0 auto; width: auto; margin: 0; }
/* v1.62 — Espace Scolarité (direction) */
.sco-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 6px 10px 2px; padding: 9px 10px; border-radius: 10px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: #fff; text-decoration: none; }
.sco-switch:hover { background: rgba(255,255,255,.14); color: #fff; } .sco-switch .ic { width: 18px; height: 18px; flex: 0 0 auto; } .sco-switch span { font-weight: 700; } .sco-switch small { flex-basis: 100%; color: #b7c4e2; font-size: .74rem; margin-left: 26px; }
.sco-home-head h1 { margin-bottom: .15em; } .sco-home-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; align-items: flex-start; }
.sco-kpis { display: flex; flex-wrap: wrap; gap: 8px; } .sco-kpi { display: flex; flex-direction: column; align-items: center; min-width: 84px; padding: 8px 12px; border: 1px solid var(--border, #d9dee7); border-radius: 10px; background: #fff; text-decoration: none; color: inherit; }
.sco-kpi b { font-size: 1.35rem; color: var(--navy, #002060); line-height: 1.1; } .sco-kpi span { font-size: .74rem; color: var(--muted, #5b6b8c); text-align: center; } a.sco-kpi:hover { border-color: var(--navy, #002060); }
.sco-kpis-inline { margin-top: 6px; }
.sco-search { position: relative; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; } .sco-search .srch-box { flex: 1 1 320px; } .sco-search .srch-box input { width: 100%; }
.sco-live { position: absolute; left: 0; right: 0; top: 100%; z-index: 30; margin-top: 4px; background: #fff; border: 1px solid var(--border, #d9dee7); border-radius: 10px; box-shadow: 0 10px 30px rgba(15,29,69,.14); max-height: 60vh; overflow: auto; }
.sco-live a { display: flex; align-items: baseline; gap: 8px; padding: 9px 12px; text-decoration: none; color: inherit; border-top: 1px solid #eef1f6; } .sco-live a:first-child { border-top: 0; } .sco-live a:hover, .sco-live a.on { background: #f3f5f9; }
.sco-live .t { flex: 0 0 76px; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted, #5b6b8c); } .sco-live .l { font-weight: 600; } .sco-live .s { color: var(--muted, #5b6b8c); font-size: .85rem; } .sco-live .none { padding: 10px 12px; color: var(--muted, #5b6b8c); }
.sco-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; margin-top: 12px; }
.sco-todo { list-style: none; margin: 0; padding: 0; } .sco-todo > li { padding: 8px 10px; border-radius: 8px; margin-bottom: 6px; background: #f7f9fc; border-left: 4px solid #cfd8ea; } .sco-todo > li.is-warn { border-left-color: #e0a100; background: #fff8e6; } .sco-todo > li.is-bad { border-left-color: var(--accent, #D64550); background: var(--accent-soft, #FBE9EB); }
.sco-todo a { text-decoration: none; color: inherit; display: flex; gap: 8px; align-items: baseline; } .sco-todo a b { font-size: 1.15rem; color: var(--navy, #002060); } .sco-todo-sub { margin: 4px 0 0 26px; padding: 0; font-size: .82rem; color: var(--muted, #5b6b8c); list-style: disc; }
.sco-quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; } .sco-quick a { display: flex; flex-direction: column; gap: 2px; padding: 10px; border: 1px solid var(--border, #d9dee7); border-radius: 10px; text-decoration: none; color: inherit; } .sco-quick a:hover { border-color: var(--navy, #002060); } .sco-quick .ic { width: 18px; height: 18px; color: var(--navy, #002060); } .sco-quick span { font-weight: 600; font-size: .9rem; } .sco-quick small { color: var(--muted, #5b6b8c); font-size: .74rem; }
.sco-table td, .sco-table th { vertical-align: middle; } .sco-table .avatar.sm { vertical-align: middle; margin-right: 4px; } .sco-table tr.sco-total td { font-weight: 700; background: #f7f9fc; border-top: 2px solid #cfd8ea; }
.sco-ok { color: #1f7a4d; font-weight: 600; } .sco-warn { color: #8a5a00; font-weight: 600; } .sco-bad { color: var(--accent-ink, #B8303C); font-weight: 600; }
.sco-pill { display: inline-block; padding: 2px 9px; border-radius: 999px; background: #e3e8f3; color: #1b2340; font-size: .78rem; white-space: nowrap; } .sco-pill.is-ok { background: #e3f3ea; color: #1f7a4d; } .sco-pill.is-warn { background: #fff4dd; color: #8a5a00; } .sco-pill.is-bad { background: var(--accent-soft, #FBE9EB); color: var(--accent-ink, #B8303C); }
.sco-crumbs { margin-bottom: 8px; }
.sco-head .sco-note { margin: -4px 0 10px; padding: 6px 10px; border-radius: 8px; background: #e3e8f3; font-size: .82rem; color: #1b2340; }
.sco-head-row { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: flex-start; } .sco-head-txt { flex: 1 1 320px; min-width: 0; } .sco-head-txt h1 { margin: 0 0 .2em; } .sco-head .sco-av { flex: 0 0 auto; }
.sco-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; } .sco-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-start; justify-content: flex-end; } .sco-actions form.inline { display: inline; }
.sco-tabs { margin-top: 12px; border-top: 1px solid var(--border, #d9dee7); padding-top: 4px; }
.sco-sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; align-items: baseline; margin-bottom: 8px; } .sco-sec-head h2 { margin: 0; } .sco-sec-head > span { display: flex; flex-wrap: wrap; gap: 6px; }
.sco-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; } .sco-two > .card { margin-top: 0; }
.h-xs { font-size: .92rem; margin: 0 0 6px; color: var(--navy, #002060); }
.sco-docs { display: flex; flex-wrap: wrap; gap: 6px; }
.sco-dl { display: grid; grid-template-columns: minmax(120px, 160px) 1fr; gap: 6px 12px; margin: 0; font-size: .92rem; } .sco-dl dt { color: var(--muted, #5b6b8c); } .sco-dl dd { margin: 0; }
.sco-bars { width: 100%; max-width: 560px; height: auto; display: block; font-family: var(--text, inherit); } .sco-bars .sb-bg { fill: #eef1f6; } .sco-bars .sb-a { fill: var(--navy, #002060); } .sco-bars .sb-b { fill: #9fb0d4; } .sco-bars text { font-size: 11px; fill: #1b2340; } .sco-bars .sb-lab { font-size: 11px; } .sco-bars .sb-val { font-weight: 600; } .sco-bars .sb-cmp { fill: #5b6b8c; font-weight: 400; } .sco-bars .sb-none { fill: #9aa5bd; } .sco-bars .sb-leg { fill: #5b6b8c; font-size: 10px; }
.sco-journal li { font-size: .9rem; } .sco-filters { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: flex-end; } .sco-filters label { display: flex; flex-direction: column; gap: 3px; font-size: .85rem; } .sco-filters input, .sco-filters select { min-width: 140px; }
@media (max-width: 640px) { .sco-dl { grid-template-columns: 1fr; gap: 2px; } .sco-dl dt { margin-top: 6px; } .sco-actions { justify-content: flex-start; } }
.sco-table td.actions-cell { white-space: nowrap; } .sco-table td.actions-cell .btn { margin: 1px 0; } .sco-table td:first-child { min-width: 150px; } .sco-empty-cls { margin-top: 8px; } .sco-empty-cls summary { cursor: pointer; }
/* v1.62.2 — bascule Campus / Scolarité, visible des deux côtés */
.side .sco-toggle { display: flex; gap: 6px; padding: 4px 4px 10px; } .side .sco-toggle a { flex: 1; text-align: center; padding: 7px 0; border-radius: 8px; background: #1d3a7a; color: #cfd8ea; font-size: 13px; text-decoration: none; } .side .sco-toggle a.cur { background: #fff; color: #0f1f45; font-weight: 700; } .side .sco-toggle a:not(.cur):hover { background: #27499a; color: #fff; }
/* v1.62.6 — bascule Campus / Scolarité : même rendu des deux côtés (centrée, compacte, sans les styles des liens du menu) */
.side .nav .sco-toggle { display: flex; gap: 6px; padding: 2px 4px 10px; margin: 0; }
.side .nav .sco-toggle a, .side .sco-toggle a { flex: 1 1 0; display: flex; align-items: center; justify-content: center; gap: 0; padding: 7px 6px; border-radius: 8px; background: #1d3a7a; color: #cfd8ea; font-size: 13px; font-weight: 500; line-height: 1.2; text-align: center; box-shadow: none; text-decoration: none; }
.side .nav .sco-toggle a.cur, .side .sco-toggle a.cur { background: #fff; color: #0f1f45; font-weight: 700; box-shadow: none; }
.side .nav .sco-toggle a:not(.cur):hover, .side .sco-toggle a:not(.cur):hover { background: #27499a; color: #fff; }
/* v1.62.9 — toasts (copie des messages flash, visibles en bas d'écran) et actions directes sur la liste des évaluations */
.toasts { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; gap: 8px; max-width: min(92vw, 640px); transition: opacity .4s; }
.toasts.is-hide { opacity: 0; } .toast { display: flex; align-items: flex-start; gap: 10px; background: #1b2340; color: #fff; padding: 12px 14px 12px 16px; border-radius: 12px; font-size: .95rem; box-shadow: 0 12px 30px rgba(15,29,69,.3); border-left: 5px solid #8ea0c4; }
.toast.is-ok { border-left-color: #2fbf71; } .toast.is-error { border-left-color: #e5484d; } .toast button { background: none; border: 0; color: #cfd8ea; font-size: 1.1rem; cursor: pointer; margin-left: auto; line-height: 1; }
.ev-list td.ev-acts { white-space: nowrap; } .ev-list td.ev-acts .btn { margin: 1px 0; } .ev-list td.ev-acts form.inline { display: inline; } .btn.btn-del { color: #b3261e; }
.ev-saved { margin-left: 10px; vertical-align: middle; }
@media (max-width: 720px) { .ev-list td.ev-acts { white-space: normal; } }

/* v1.63.3 — pièces jointes d'un travail demandé */
.tr-att{list-style:none;padding:0;margin:4px 0 8px}
.tr-att li{display:flex;align-items:center;gap:8px;padding:5px 0;border-bottom:1px solid #eef0f4;flex-wrap:wrap}
.tr-att li:last-child{border-bottom:0}
.tr-att li .check.inline{margin-left:auto;font-size:.9em}
.tr-att-line svg{width:14px;height:14px;vertical-align:-2px}
