/* ═══════════════════════════════════════════════════════════════════════
   BAD - Système de design unifié (chargé en dernier sur toutes les pages)
   Couleurs issues du logo : bleu marine, orange et vert ivoiriens.
   ═══════════════════════════════════════════════════════════════════════ */
:root {
  --brand-900: #071C45;
  --brand-800: #0A2766;
  --brand-700: #12357F;
  --brand-600: #1B4A9E;
  --brand-100: #E7EDF8;
  --brand-50:  #F2F5FB;
  --accent-600: #C2410C;
  --accent-500: #F27A12;
  --accent-100: #FDEBD9;
  --green-700: #0D7A35;
  --green-100: #E3F4E8;

  --u-ink: #121826;
  --u-text: #384152;
  --u-muted: #5E6878;
  --u-faint: #5F6878;
  --u-bg: #F4F6FA;
  --u-surface: #FFFFFF;
  --u-surface-2: #F9FAFC;
  --u-hover: #EEF2F8;
  --u-line: #E2E7EF;
  --u-line-2: #CDD5E1;

  --u-ok: #157A42;   --u-ok-bg: #E8F5EE;   --u-ok-line: #BFE3CD;
  --u-warn: #8A5300; --u-warn-bg: #FFF5E6; --u-warn-line: #F4D9A8;
  --u-danger: #B42318; --u-danger-bg: #FEF0EF; --u-danger-line: #F6C9C5;
  --u-info: #1B4A9E; --u-info-bg: #EDF2FB; --u-info-line: #C9D7F0;

  --u-radius-sm: 8px;
  --u-radius: 12px;
  --u-radius-lg: 16px;
  --u-shadow-1: 0 1px 2px rgba(10, 25, 60, .06), 0 0 0 1px rgba(10, 25, 60, .04);
  --u-shadow-2: 0 6px 16px rgba(10, 25, 60, .08), 0 1px 3px rgba(10, 25, 60, .06);
  --u-shadow-3: 0 18px 40px rgba(10, 25, 60, .16);
  --u-font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --u-top: 64px;
  --u-side: 268px;
  --u-ease: cubic-bezier(.2, .7, .2, 1);

  /* Harmonisation des jeux de variables historiques (app.css, theme.css, console.css…) */
  --navy: var(--brand-800);
  --navy-2: var(--brand-700);
  --navy-3: var(--brand-600);
  --navy-soft: var(--brand-700);
  --blue: var(--brand-600);
  --accent: var(--accent-500);
  --accent-dark: var(--accent-600);
  --accent-soft: var(--accent-100);
  --focus: 0 0 0 3px rgba(27, 74, 158, .25);
  color-scheme: light;
}
/* Les espaces formateur / apprenant partagent la même palette */
.tr-body, .lp-body { --n9: var(--brand-800); --n8: var(--brand-900); --n7: var(--brand-700); --bg: var(--u-bg); }

/* ── Base ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--u-top) + 16px); }
body.app-body, body.auth-page, body.error-page {
  margin: 0; font-family: var(--u-font); font-size: 15px; line-height: 1.55;
  color: var(--u-text); background: var(--u-bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
.app-body h1, .app-body h2, .app-body h3 { color: var(--u-ink); }
img, video, iframe { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid rgba(27, 74, 158, .55); outline-offset: 2px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; padding: 10px 16px; background: var(--brand-800); color: #fff; border-radius: 8px; font-weight: 600; text-decoration: none; transition: top .15s; }
.skip-link:focus { top: 12px; }
.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; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

/* ── Boutons (classes communes à toutes les vues) ─────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 9px 18px; border-radius: var(--u-radius-sm); border: 1px solid var(--brand-800);
  background: var(--brand-800); color: #fff; font: inherit; font-size: 14px; font-weight: 600; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--brand-900); border-color: var(--brand-900); color: #fff; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--brand-800); border-color: var(--brand-800); color: #fff; }
.btn-accent, .bd-btn-gold { background: var(--accent-500) !important; border-color: var(--accent-500) !important; color: #1B1206 !important; }
.btn-accent:hover, .bd-btn-gold:hover { background: #E06A05 !important; border-color: #E06A05 !important; }
.btn-secondary, .btn-ghost, .btn-outline { background: var(--u-surface); color: var(--u-ink); border-color: var(--u-line-2); }
.btn-secondary:hover, .btn-ghost:hover, .btn-outline:hover { background: var(--u-hover); color: var(--u-ink); border-color: var(--u-line-2); }
.btn-danger { background: var(--u-danger); border-color: var(--u-danger); color: #fff; }
.btn-danger:hover { background: #8F1C13; border-color: #8F1C13; }
.btn-sm { min-height: 34px; padding: 6px 12px; font-size: 13px; }
.btn-lg { min-height: 50px; padding: 12px 22px; font-size: 15.5px; }
.btn-block { display: flex; width: 100%; }
.btn[disabled], .btn[aria-busy="true"], button[aria-busy="true"] { opacity: .65; cursor: progress; }
button[aria-busy="true"]::after, .btn[aria-busy="true"]::after { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: u-spin .7s linear infinite; }
@keyframes u-spin { to { transform: rotate(360deg); } }
.link-sm { font-size: 13px; font-weight: 600; color: var(--brand-600); }

/* ── Champs ───────────────────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label, .field-row label { font-size: 13.5px; font-weight: 600; color: var(--u-ink); }
.field-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.optional { font-weight: 400; color: var(--u-faint); }
.hint { margin: 2px 0 0; font-size: 12.5px; color: var(--u-muted); }
.app-body input[type="text"], .app-body input[type="email"], .app-body input[type="password"], .app-body input[type="search"],
.app-body input[type="number"], .app-body input[type="tel"], .app-body input[type="url"], .app-body input[type="date"],
.app-body input[type="datetime-local"], .app-body input[type="time"], .app-body select, .app-body textarea,
.auth-page input[type="text"], .auth-page input[type="email"], .auth-page input[type="password"], .auth-page select {
  width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--u-line-2); border-radius: var(--u-radius-sm);
  background: #fff; color: var(--u-ink); font: inherit; font-size: 15px; line-height: 1.35;
  transition: border-color .15s, box-shadow .15s;
}
.app-body textarea { min-height: 110px; resize: vertical; }
.app-body select, .auth-page select { appearance: none; -webkit-appearance: none; padding-right: 36px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%235E6878' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 10px center / 18px; }
.app-body input:focus, .app-body select:focus, .app-body textarea:focus, .auth-page input:focus { outline: none; border-color: var(--brand-600); box-shadow: var(--focus); }
.app-body input::placeholder, .app-body textarea::placeholder, .auth-page input::placeholder { color: #98A1B0; }
.app-body input[aria-invalid="true"], .auth-page input[aria-invalid="true"] { border-color: var(--u-danger); }
.app-body input[type="checkbox"], .app-body input[type="radio"], .auth-page input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--brand-800); }
@media (max-width: 640px) { .app-body input, .app-body select, .app-body textarea { font-size: 16px; } } /* évite le zoom iOS */
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--u-text); margin: 4px 0 18px; cursor: pointer; }
.check input { margin-top: 2px; flex: none; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 48px; }
.pw-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--u-muted); cursor: pointer; }
.pw-toggle:hover { background: var(--u-hover); color: var(--u-ink); }
.pw-toggle svg { width: 20px; height: 20px; }
.pw-meter { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 6px; align-items: center; margin-top: 4px; }
.pw-meter i { height: 5px; border-radius: 9px; background: var(--u-line); transition: background .2s; }
.pw-meter span { font-size: 12px; font-weight: 600; color: var(--u-muted); min-width: 72px; text-align: right; }
.pw-meter[data-level="1"] i:nth-child(-n+1) { background: #D92D20; }
.pw-meter[data-level="2"] i:nth-child(-n+2) { background: #F79009; }
.pw-meter[data-level="3"] i:nth-child(-n+3) { background: #2E90FA; }
.pw-meter[data-level="4"] i { background: var(--u-ok); }

/* ── Alertes et messages ──────────────────────────────────────────────── */
.app-alert { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; margin: 0 0 12px; border: 1px solid; border-radius: var(--u-radius-sm); font-size: 14px; line-height: 1.5; animation: u-in .25s var(--u-ease); }
.app-alert p { margin: 0; flex: 1; color: inherit; }
.app-alert svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.app-alert[data-tone="ok"] { background: var(--u-ok-bg); border-color: var(--u-ok-line); color: #0E5A30; }
.app-alert[data-tone="danger"] { background: var(--u-danger-bg); border-color: var(--u-danger-line); color: #8C1D13; }
.app-alert[data-tone="warn"] { background: var(--u-warn-bg); border-color: var(--u-warn-line); color: #6E4200; }
.app-alert[data-tone="info"] { background: var(--u-info-bg); border-color: var(--u-info-line); color: #163D84; }
.app-alert-x { flex: none; width: 30px; height: 30px; margin: -5px -6px -5px 0; display: grid; place-items: center; border: 0; border-radius: 6px; background: transparent; color: inherit; opacity: .7; cursor: pointer; }
.app-alert-x:hover { opacity: 1; background: rgba(0, 0, 0, .06); }
.app-alert-x svg { width: 16px; height: 16px; margin: 0; }
.app-alert.is-leaving, .alert.is-leaving { opacity: 0; transform: translateY(-4px); transition: opacity .2s, transform .2s; }
@keyframes u-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
/* Alertes historiques */
.alert { padding: 12px 14px; border-radius: var(--u-radius-sm); border: 1px solid var(--u-line); margin: 0 0 14px; font-size: 14px; }
.alert-success { background: var(--u-ok-bg); border-color: var(--u-ok-line); color: #0E5A30; }
.alert-error, .alert-danger { background: var(--u-danger-bg); border-color: var(--u-danger-line); color: #8C1D13; }
.alert-info { background: var(--u-info-bg); border-color: var(--u-info-line); color: #163D84; }
.alert-warning { background: var(--u-warn-bg); border-color: var(--u-warn-line); color: #6E4200; }

/* ── Coquille applicative ─────────────────────────────────────────────── */
.app-top {
  position: fixed; inset: 0 0 auto; z-index: 80; height: calc(var(--u-top) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) max(16px, env(safe-area-inset-right, 0px)) 0 max(12px, env(safe-area-inset-left, 0px));
  display: flex; align-items: center; gap: 16px; background: #fff; border-bottom: 1px solid var(--u-line);
  box-shadow: 0 1px 0 rgba(10, 25, 60, .02);
}
.app-top-l { display: flex; align-items: center; gap: 6px; min-width: 0; flex: 0 1 auto; }
.app-top-r { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.app-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--u-ink); padding: 4px 8px 4px 4px; border-radius: 10px; min-width: 0; }
.app-brand:hover { background: var(--u-hover); text-decoration: none; }
.app-brand img { width: 54px; height: 36px; object-fit: contain; flex: none; }
.app-brand-t { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.app-brand-t strong { font-size: 15px; letter-spacing: .5px; color: var(--brand-800); }
.app-brand-t small { font-size: 12px; color: var(--u-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-iconbtn { position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 10px; background: transparent; color: var(--u-muted); cursor: pointer; text-decoration: none; }
.app-iconbtn:hover { background: var(--u-hover); color: var(--u-ink); text-decoration: none; }
.app-iconbtn svg { width: 22px; height: 22px; }
.app-burger { display: none; }
.app-dot { position: absolute; top: 4px; right: 3px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; background: var(--accent-600); color: #fff; font-size: 10.5px; font-weight: 700; font-style: normal; line-height: 16px; text-align: center; border: 2px solid #fff; box-sizing: content-box; pointer-events: none; }
.app-search { position: relative; flex: 1 1 420px; max-width: 520px; margin: 0 auto; }
.app-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--u-faint); pointer-events: none; }
.app-search input[type="search"] { min-height: 42px; padding-left: 40px; background: var(--u-bg); border-color: transparent; border-radius: 99px; }
.app-search input[type="search"]:focus { background: #fff; }
.app-pop { position: relative; }
.app-user-btn { display: flex; align-items: center; gap: 10px; padding: 4px 8px 4px 4px; min-height: 46px; border: 0; border-radius: 12px; background: transparent; cursor: pointer; font: inherit; color: var(--u-ink); }
.app-user-btn:hover, .app-user-btn[aria-expanded="true"] { background: var(--u-hover); }
.app-avatar { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--brand-700), var(--brand-900)); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .5px; }
.app-avatar-lg { width: 44px; height: 44px; font-size: 15px; }
.app-user-t { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; max-width: 160px; }
.app-user-t b { font-size: 14px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.app-user-t small { font-size: 12px; color: var(--u-muted); }
.app-user-chev { width: 16px; height: 16px; color: var(--u-faint); transition: transform .15s; }
.app-user-btn[aria-expanded="true"] .app-user-chev { transform: rotate(180deg); }
.app-popover { position: absolute; right: 0; top: calc(100% + 8px); z-index: 90; width: min(340px, calc(100vw - 24px)); background: #fff; border: 1px solid var(--u-line); border-radius: var(--u-radius); box-shadow: var(--u-shadow-3); animation: u-in .16s var(--u-ease); overflow: hidden; }
.app-popover-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--u-line); font-size: 14px; color: var(--u-ink); }
.app-popover-f { display: block; padding: 11px 14px; border-top: 1px solid var(--u-line); text-align: center; font-size: 13.5px; font-weight: 600; color: var(--brand-600); text-decoration: none; }
.app-popover-f:hover { background: var(--u-hover); text-decoration: none; }
.app-link { border: 0; background: none; padding: 0; color: var(--brand-600); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.app-link:hover { text-decoration: underline; }
.app-menu { width: 280px; padding: 6px; }
.app-menu-id { display: flex; align-items: center; gap: 12px; padding: 10px 10px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--u-line); }
.app-menu-id div { display: flex; flex-direction: column; min-width: 0; }
.app-menu-id b { font-size: 14px; color: var(--u-ink); }
.app-menu-id small { font-size: 12.5px; color: var(--u-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-menu a, .app-menu button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 8px 10px; border: 0; border-radius: 8px; background: none; color: var(--u-text); font: inherit; font-size: 14px; text-align: left; text-decoration: none; cursor: pointer; }
.app-menu a:hover, .app-menu button:hover, .app-menu a:focus-visible, .app-menu button:focus-visible { background: var(--u-hover); color: var(--u-ink); text-decoration: none; }
.app-menu svg { width: 18px; height: 18px; color: var(--u-faint); }
.app-menu-logout { margin: 4px 0 0; padding-top: 4px; border-top: 1px solid var(--u-line); }
.app-menu-logout button { color: var(--u-danger); }
.app-menu-logout button svg { color: var(--u-danger); }

.app-layout { display: grid; grid-template-columns: var(--u-side) minmax(0, 1fr); min-height: 100vh; padding-top: calc(var(--u-top) + env(safe-area-inset-top, 0px));
  background: linear-gradient(to right, #fff calc(var(--u-side) - 1px), var(--u-line) calc(var(--u-side) - 1px), var(--u-line) var(--u-side), transparent var(--u-side)); }
.app-side {
  position: sticky; top: calc(var(--u-top) + env(safe-area-inset-top, 0px)); height: calc(100vh - var(--u-top) - env(safe-area-inset-top, 0px));
  display: flex; flex-direction: column; background: #fff; border-right: 1px solid var(--u-line); overflow: hidden;
}
.app-side-h { display: none; }
.app-nav { flex: 1; overflow-y: auto; padding: 14px 10px 10px; scrollbar-width: thin; scrollbar-color: var(--u-line-2) transparent; overscroll-behavior: contain; }
.app-navgroup + .app-navgroup { margin-top: 14px; }
.app-navtitle { margin: 0 0 4px; padding: 0 12px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--u-faint); }
.app-nav ul { margin: 0; padding: 0; list-style: none; }
.app-navlink { position: relative; display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 8px 12px; margin: 1px 0; border-radius: 10px; color: var(--u-text); font-size: 14px; font-weight: 500; text-decoration: none; transition: background .12s, color .12s; }
.app-navlink svg { width: 20px; height: 20px; color: var(--u-faint); flex: none; transition: color .12s; }
.app-navlink:hover { background: var(--u-hover); color: var(--u-ink); text-decoration: none; }
.app-navlink:hover svg { color: var(--u-text); }
.app-navlink.is-active { background: var(--brand-50); color: var(--brand-800); font-weight: 650; }
.app-navlink.is-active svg { color: var(--brand-700); }
.app-navlink.is-active::before { content: ""; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: var(--accent-500); }
.app-side-f { padding: 8px 10px 14px; border-top: 1px solid var(--u-line); }
.app-side-f form { margin: 0; }
.app-navlink-btn { width: 100%; border: 0; background: none; font: inherit; cursor: pointer; color: var(--u-muted); }
.app-scrim { position: fixed; inset: 0; z-index: 84; background: rgba(7, 18, 45, .45); backdrop-filter: blur(2px); animation: u-fade .2s; }
@keyframes u-fade { from { opacity: 0; } }

.app-main { min-width: 0; display: flex; flex-direction: column; }
.app-main:focus { outline: none; }
.app-container { width: 100%; max-width: 1320px; margin: 0 auto; padding: 28px 32px 40px; flex: 1; }
.app-flashes { margin-bottom: 8px; }
.app-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding: 18px 32px 26px; font-size: 12.5px; color: var(--u-faint); border-top: 1px solid var(--u-line); max-width: 1320px; width: 100%; margin: 0 auto; }
.app-foot a { color: var(--u-muted); }

/* Neutralise les mises en page des anciennes coquilles à l'intérieur de la nouvelle */
.app-container > .lp-main, .app-container > .tr-main, .app-container > .dash-main { padding: 0; max-width: none; }

/* Tableaux : défilement horizontal propre */
.app-table-scroll, .app-body .table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.app-table-scroll > table { min-width: 560px; }

/* Toast */
.app-toast { position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom, 0px)); z-index: 200; transform: translate(-50%, 20px); max-width: min(92vw, 460px); padding: 12px 18px; border-radius: 12px; background: var(--u-ink); color: #fff; font-size: 14px; font-weight: 500; box-shadow: var(--u-shadow-3); opacity: 0; transition: opacity .2s, transform .2s var(--u-ease); }
.app-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* Boîte de confirmation et modales */
.app-dialog, .app-modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 16px; }
.app-modal { background: rgba(7, 18, 45, .5); animation: u-fade .15s; }
.app-dialog-scrim { position: absolute; inset: 0; background: rgba(7, 18, 45, .5); animation: u-fade .15s; }
.app-dialog-box, .app-modal-box { position: relative; width: min(460px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 24px; background: #fff; border-radius: var(--u-radius-lg); box-shadow: var(--u-shadow-3); animation: u-pop .18s var(--u-ease); }
.app-modal-box { width: min(540px, 100%); }
.app-dialog-box h2, .app-modal-box h3 { margin: 0 0 8px; font-size: 18px; color: var(--u-ink); }
.app-dialog-box p { margin: 0 0 20px; color: var(--u-text); line-height: 1.55; }
.app-dialog-a { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
@keyframes u-pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
html.has-dialog { overflow: hidden; }

/* ── Responsive de la coquille ────────────────────────────────────────── */
@media (max-width: 1279.98px) { .app-container { padding: 24px 24px 36px; } .app-foot { padding: 16px 24px 24px; } }
@media (max-width: 1023.98px) {
  .app-burger { display: inline-grid; }
  .app-layout { grid-template-columns: minmax(0, 1fr); background: none; }
  .app-side {
    position: fixed; top: 0; bottom: 0; left: 0; z-index: 85; width: min(86vw, 320px); height: 100%;
    padding-top: env(safe-area-inset-top, 0px); transform: translateX(-102%); transition: transform .25s var(--u-ease);
    box-shadow: var(--u-shadow-3); border-right: 0; visibility: hidden;
  }
  body.drawer-open .app-side { transform: none; visibility: visible; }
  body.drawer-open { overflow: hidden; }
  .app-side-h { display: flex; align-items: center; justify-content: space-between; padding: 12px 10px 10px 22px; border-bottom: 1px solid var(--u-line); }
  .app-side-space { font-weight: 700; color: var(--brand-800); }
  .app-search { flex-basis: 260px; }
  .app-user-t { display: none; }
}
@media (max-width: 767.98px) {
  :root { --u-top: 58px; }
  .app-top { gap: 8px; }
  .app-search { display: none; }
  .app-brand-t small { display: none; }
  .app-container { padding: 18px 16px 28px; }
  .app-foot { padding: 14px 16px 22px; flex-direction: column; }
  .app-user-chev { display: none; }
  .app-dialog-a .btn { flex: 1; }
}
@media (max-width: 380px) { .app-brand-t { display: none; } }
@media print {
  .app-top, .app-side, .app-scrim, .app-foot, .skip-link, .app-toast { display: none !important; }
  .app-layout { display: block; padding: 0; }
  .app-container { padding: 0; max-width: none; }
  body.app-body { background: #fff; }
}

/* ── Écrans d'authentification ────────────────────────────────────────── */
.auth-page { min-height: 100vh; background: #F4F6FA; }
.auth-wrap { display: grid; grid-template-columns: minmax(400px, 44%) minmax(0, 1fr); min-height: 100vh; }
.auth-brand-panel {
  position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center;
  padding: 56px clamp(36px, 5vw, 76px) 40px; color: #DCE5F5;
  background: radial-gradient(120% 90% at 0% 0%, #1B4A9E 0%, transparent 55%), radial-gradient(90% 70% at 100% 100%, rgba(242, 122, 18, .32) 0%, transparent 60%), var(--brand-900);
}
.auth-brand-panel::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(180deg, transparent, #000 40%, transparent); pointer-events: none; }
.auth-brand-panel::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: linear-gradient(90deg, var(--accent-500) 0 33.3%, #fff 33.3% 66.6%, #12A048 66.6%); }
.auth-brand-inner { position: relative; max-width: 470px; }
.auth-logo { display: inline-block; padding: 12px 16px; background: #fff; border-radius: 16px; box-shadow: 0 14px 34px rgba(0, 0, 0, .28); margin-bottom: 36px; transition: transform .2s; }
.auth-logo:hover { transform: translateY(-2px); }
.auth-logo:focus-visible { outline: 3px solid #FFC07F; outline-offset: 3px; }
.auth-logo img { display: block; width: 168px; height: auto; }
.auth-eyebrow { margin: 0 0 10px; font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #FFC07F; }
.auth-brand-panel h2 { margin: 0 0 14px; color: #fff; font-size: clamp(28px, 2.7vw, 38px); line-height: 1.12; letter-spacing: -.02em; }
.auth-brand-lead { margin: 0 0 32px; font-size: 16.5px; line-height: 1.6; color: #C9D5EC; }
.auth-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.auth-points li { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .09); font-size: 15px; line-height: 1.4; color: #EEF2FA; }
.auth-point-i { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: rgba(242, 122, 18, .16); color: #FFC07F; }
.auth-point-i svg { width: 20px; height: 20px; }
.auth-brand-foot { position: absolute; left: clamp(36px, 5vw, 76px); bottom: 22px; margin: 0; font-size: 12.5px; letter-spacing: .06em; color: #9FB0D0; }

.auth-side { display: flex; flex-direction: column; min-height: 100vh; min-width: 0; }
.auth-top { display: flex; align-items: center; gap: 16px; padding: 22px clamp(20px, 4vw, 48px) 0; }
.auth-top-logo { display: none; }
.auth-top-logo img { display: block; width: 66px; height: auto; }
.auth-back { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px 8px 8px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--u-muted) !important; text-decoration: none; }
.auth-back:hover { background: #E9EDF4; color: var(--u-ink) !important; }
.auth-back svg { width: 18px; height: 18px; }
.auth-switch { margin: 0 0 0 auto; font-size: 14px; color: var(--u-muted); }
.auth-switch a { margin-left: 6px; display: inline-block; padding: 8px 14px; border: 1px solid var(--u-line-2); border-radius: 10px; background: #fff; font-weight: 600; color: var(--brand-800) !important; text-decoration: none; }
.auth-switch a:hover { border-color: var(--brand-600); background: var(--brand-50); }

.auth-main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px clamp(16px, 4vw, 48px); }
.auth-card { width: 100%; max-width: 448px; background: #fff; border: 1px solid #E3E8EF; border-radius: 22px; box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 18px 48px rgba(16, 24, 40, .08); padding: 40px 40px 32px; }
.auth-card.is-wide { max-width: 560px; }
.auth-card h1 { margin: 0 0 8px; font-size: 27px; line-height: 1.2; color: var(--u-ink); letter-spacing: -.02em; }
.auth-lead { margin: 0 0 24px; color: var(--u-muted); font-size: 15px; line-height: 1.55; }
.auth-form { margin-top: 6px; }
.auth-page .field { margin-bottom: 18px; }
.auth-page input[type="text"], .auth-page input[type="email"], .auth-page input[type="password"] { min-height: 48px; border-radius: 12px; font-size: 15px; background: #FCFDFE; }
.auth-page input:hover { border-color: #B9C2D0; }
.in-ico { position: relative; }
.in-ico > svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: #7A8496; pointer-events: none; }
.auth-page .in-ico > input { padding-left: 42px; }
.in-ico:focus-within > svg { color: var(--brand-600); }
.link-sm { font-size: 13.5px; font-weight: 600; }
.auth-page .btn-lg { min-height: 50px; border-radius: 12px; font-size: 15.5px; box-shadow: 0 6px 16px rgba(10, 39, 102, .18); }
.auth-page .btn-primary:hover { background: var(--brand-700); border-color: var(--brand-700); }
.auth-sep { display: flex; align-items: center; gap: 12px; margin: 22px 0 16px; font-size: 12.5px; color: var(--u-faint); text-transform: uppercase; letter-spacing: .08em; }
.auth-sep::before, .auth-sep::after { content: ""; flex: 1; height: 1px; background: #E3E8EF; }
.auth-cta2 { min-height: 48px; border-radius: 12px; font-weight: 600; color: var(--brand-800) !important; }
.auth-set { margin: 0 0 6px; padding: 0; border: 0; min-width: 0; }
.auth-set + .auth-set { margin-top: 8px; padding-top: 20px; border-top: 1px solid #EEF1F5; }
.auth-set legend { float: left; width: 100%; display: flex; align-items: center; gap: 10px; margin: 0 0 16px; padding: 0; font-size: 15px; font-weight: 700; color: var(--u-ink); }
.auth-set legend + * { clear: both; }
.auth-step { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--brand-50); color: var(--brand-800); font-size: 13px; font-weight: 700; border: 1px solid var(--brand-100); }
.auth-page .hint { margin: 2px 0 0; font-size: 12.5px; color: var(--u-muted); }
.optional { font-weight: 500; color: var(--u-muted); }
.auth-terms { padding: 12px 14px; border-radius: 12px; background: #F6F8FB; font-size: 13.5px; line-height: 1.5; margin-top: 10px; }
.auth-form .btn-ghost { margin-top: 10px; }
.auth-alt { margin: 22px 0 0; text-align: center; font-size: 14.5px; color: var(--u-muted); }
.auth-alt a { font-weight: 600; color: var(--brand-600); display: inline-flex; align-items: center; gap: 4px; }
.auth-alt svg { width: 16px; height: 16px; }
.auth-note { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--brand-50); font-size: 13px; line-height: 1.5; color: #344054; }
.auth-note svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--brand-600); }
.auth-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 18px; padding: 18px clamp(20px, 4vw, 48px) 22px; font-size: 13px; color: var(--u-faint); }
.auth-foot nav { display: flex; gap: 18px; }
.auth-foot a { color: var(--u-muted); text-decoration: none; }
.auth-foot a:hover { color: var(--brand-600); text-decoration: underline; }
.auth-page a { color: var(--brand-600); }
@media (max-width: 1100px) and (min-width: 960px) {
  .auth-wrap { grid-template-columns: 40% minmax(0, 1fr); }
  .auth-card { padding: 34px 30px 28px; }
}
@media (max-width: 959.98px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-brand-panel { display: none; }
  .auth-top { padding-top: max(16px, env(safe-area-inset-top, 0px)); }
  .auth-top-logo { display: block; }
  .auth-back { display: none; }
  .auth-main { justify-content: flex-start; padding-top: 20px; }
}
@media (max-width: 560px) {
  .auth-top { gap: 8px; padding: 12px 14px 0; }
  .auth-switch span { display: none; }
  .auth-switch a { margin: 0; padding: 7px 12px; }
  .auth-main { padding: 14px 12px 8px; }
  .auth-card { padding: 26px 20px 22px; border-radius: 18px; box-shadow: 0 8px 24px rgba(16, 24, 40, .06); }
  .auth-card h1 { font-size: 23px; }
  .field-grid { grid-template-columns: 1fr; }
  .auth-foot { justify-content: center; text-align: center; padding: 14px 14px 20px; }
}

/* ── Page d'erreur ────────────────────────────────────────────────────── */
.error-page { display: grid; place-items: center; min-height: 100vh; padding: 24px; }
.error-box { max-width: 520px; text-align: center; background: #fff; border: 1px solid var(--u-line); border-radius: 20px; box-shadow: var(--u-shadow-2); padding: 36px 28px; }
.error-code { margin: 18px 0 4px; font-size: 64px; font-weight: 800; line-height: 1; color: var(--brand-800); letter-spacing: -.04em; }
.error-box h1 { margin: 0 0 8px; font-size: 22px; color: var(--u-ink); }
.error-box p { margin: 0 0 22px; color: var(--u-muted); }
.error-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.auth-page a, .app-foot a, .error-page a:not(.btn) { text-decoration: none; }
.auth-page a:hover, .app-foot a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ── Console (administration / gestion) : compléments ──────────────── */
.cs-body { --n9: var(--brand-800); --n8: var(--brand-900); --n7: var(--brand-700); --bg: var(--u-bg); }
.cc-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 18px; }
.cc-kpi { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; background: #fff; border: 1px solid var(--u-line); border-radius: 12px; box-shadow: var(--u-shadow-1); }
.cc-kpi-n { font-size: 26px; font-weight: 750; line-height: 1.1; color: var(--u-ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.cc-kpi-l { font-size: 12.5px; font-weight: 600; color: var(--u-muted); }
.cc-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cc-grid-2 > .cc-panel { margin-bottom: 16px; }
.cc-chart { display: block; width: 100%; height: 220px; }
.cc-activity { list-style: none; margin: 0; padding: 0; }
.cc-activity li { padding: 9px 0; border-bottom: 1px solid var(--u-line); font-size: 13.5px; }
.cc-activity li:last-child { border-bottom: 0; }
.cc-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; background: var(--u-hover); font-size: 12.5px; font-weight: 600; color: var(--u-text); }
.cc-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.cc-head h1 { margin: 0 0 4px; font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -.02em; color: var(--u-ink); }
.cc-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cc-toolbar label { font-size: 13px; font-weight: 600; color: var(--u-muted); }
.cc-toolbar select { width: auto; min-width: 150px; }
@media (max-width: 900px) { .cc-grid-2 { grid-template-columns: 1fr; } }

/* ── Mises en page historiques (dash-*, panel, table) harmonisées ───── */
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.dash-eyebrow, .cc-eyebrow, .lp-eyebrow, .tr-eyebrow { margin: 0 0 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-600); }
.dash-title { margin: 0 0 4px; font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -.02em; color: var(--u-ink); }
.dash-sub { margin: 0; color: var(--u-muted); }
.app-body .panel { background: #fff; border: 1px solid var(--u-line); border-radius: 12px; box-shadow: var(--u-shadow-1); margin-bottom: 18px; overflow: hidden; }
.app-body .panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--u-line); background: var(--u-surface-2); }
.app-body .panel-title { margin: 0; font-size: 15px; font-weight: 650; color: var(--u-ink); }
.app-body .panel-count { font-size: 12.5px; color: var(--u-muted); }
.app-body .panel-body, .app-body .panel > form, .app-body .panel > .form { padding: 18px; }
.app-body .panel-empty { padding: 26px 18px; text-align: center; color: var(--u-muted); }
.app-body table.table, .app-body .cc-table, .app-body .tr-table, .app-body .lp-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.app-body table.table th, .app-body table.table td { padding: 11px 14px; border-bottom: 1px solid var(--u-line); text-align: left; vertical-align: middle; }
.app-body table.table thead th { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--u-faint); background: var(--u-surface-2); }
.app-body table.table tbody tr:hover { background: #FAFBFD; }
.app-body .search-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.app-body .search-bar input[type="search"] { flex: 1 1 260px; width: auto; }
.app-body .search-bar select { flex: 0 1 200px; width: auto; }
.app-body .link-action { font-weight: 600; font-size: 13.5px; color: var(--brand-600); }
.app-body .table-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.app-body .tag { display: inline-flex; padding: 3px 9px; border-radius: 99px; font-size: 12px; font-weight: 650; background: var(--u-hover); color: var(--u-text); }
.app-body .tag-on { background: var(--u-ok-bg); color: var(--u-ok); }
.app-body .pagination { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 18px; font-size: 13.5px; color: var(--u-muted); }
.app-body .pagination-links { display: flex; gap: 8px; }
.app-body .form .field input, .app-body .form .field select, .app-body .form .field textarea { width: 100%; }
.app-body .form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.app-body .field-error { color: var(--u-danger); font-size: 12.5px; }
.app-body .col-hide-sm { }
@media (max-width: 720px) { .app-body .col-hide-sm { display: none; } }

/* Menus d'actions de ligne */
.row-menu { position: relative; display: inline-block; }
.row-menu-btn { min-width: 36px; padding: 6px 8px !important; background: #fff !important; color: var(--u-text) !important; border-color: var(--u-line-2) !important; }
.row-menu-btn:hover { background: var(--u-hover) !important; }
.row-menu-btn svg { width: 18px; height: 18px; }
.row-menu-panel { display: none; position: absolute; right: 0; top: calc(100% + 6px); z-index: 50; min-width: 200px; padding: 6px; background: #fff; border: 1px solid var(--u-line); border-radius: 10px; box-shadow: var(--u-shadow-3); }
.row-menu.open .row-menu-panel { display: block; }
.row-menu-panel form { margin: 0; }
.row-menu-panel button, .row-menu-panel a { display: block; width: 100%; padding: 9px 10px; border: 0; border-radius: 7px; background: none; font: inherit; font-size: 13.5px; text-align: left; color: var(--u-text); cursor: pointer; text-decoration: none; }
.row-menu-panel button:hover, .row-menu-panel a:hover { background: var(--u-hover); color: var(--u-ink); }
/* Graphiques SVG plein format dans la console */
.app-body svg.cc-chart { width: 100%; height: 220px; }
.app-body .cc-panel-b > svg:not([width]) { width: 100%; height: auto; }
.badge-amber { background: var(--u-warn-bg) !important; color: var(--u-warn) !important; }

/* ═══ Pages publiques (accueil, catalogue, fiche formation, vérification) ═══ */
.pub-body { margin: 0; font-family: var(--u-font); color: var(--u-text); background: #fff; -webkit-font-smoothing: antialiased; }
.pub-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 max(20px, env(safe-area-inset-left, 0px)); }
.pub-top { position: sticky; top: 0; z-index: 90; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid transparent; transition: transform .28s ease, box-shadow .2s ease, border-color .2s ease; }
.pub-top.is-scrolled { border-bottom-color: var(--u-line); box-shadow: 0 6px 20px rgba(10, 39, 102, .07); }
.pub-top.is-hidden { transform: translateY(-100%); }
@media (prefers-reduced-motion: reduce) { .pub-top { transition: none; } }
.pub-top-in { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.pub-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--u-ink); flex: none; }
.pub-brand:hover { text-decoration: none; }
.pub-brand img { width: 54px; height: 36px; object-fit: contain; }
.pub-brand span { display: flex; flex-direction: column; line-height: 1.15; }
.pub-brand strong { font-size: 16px; color: var(--brand-800); letter-spacing: .5px; }
.pub-brand small { font-size: 12px; color: var(--u-muted); }
.pub-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.pub-nav > a { padding: 9px 12px; border-radius: 9px; color: var(--u-text); font-size: 14.5px; font-weight: 550; text-decoration: none; }
.pub-nav > a:hover { background: var(--u-hover); color: var(--u-ink); text-decoration: none; }
.pub-nav > a[aria-current="page"] { color: var(--brand-800); background: var(--brand-50); }
.pub-nav-cta { display: flex; gap: 8px; margin-left: 10px; }
.pub-nav-cta .btn svg { width: 16px; height: 16px; }
.pub-burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--u-line); border-radius: 12px; background: #fff; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; padding: 0; }
.pub-burger span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--brand-800); transition: transform .25s, opacity .2s; }
.pub-top.is-menu .pub-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.pub-top.is-menu .pub-burger span:nth-child(2) { opacity: 0; }
.pub-top.is-menu .pub-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
html.pub-lock { overflow: hidden; }
@media (max-width: 880px) {
  .pub-burger { display: inline-flex; }
  .pub-top-in { min-height: 62px; }
  .pub-nav { position: fixed; left: 0; right: 0; top: 62px; bottom: 0; flex-direction: column; align-items: stretch; gap: 4px; margin: 0; padding: 18px 20px calc(24px + env(safe-area-inset-bottom, 0px)); background: #fff; overflow-y: auto; visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s; }
  .pub-top.is-menu .pub-nav { visibility: visible; opacity: 1; transform: none; }
  .pub-nav > a { padding: 14px 12px; font-size: 17px; border-bottom: 1px solid var(--u-line); border-radius: 0; }
  .pub-nav > a[aria-current="page"] { border-radius: 10px; border-bottom-color: transparent; }
  .pub-nav-cta { margin: 16px 0 0; flex-direction: column; gap: 10px; }
  .pub-nav-cta .btn { width: 100%; justify-content: center; min-height: 48px; font-size: 16px; }
  .pub-brand small { display: none; }
  .pub-top.is-menu { transform: none; backdrop-filter: none; background: #fff; }
}

.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost-light:hover { background: rgba(255,255,255,.1); color: #fff; border-color: #fff; }
.pub-eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-600); margin-bottom: 10px; }
.pub-hero { position: relative; overflow: hidden; color: #DCE5F5; background: radial-gradient(90% 120% at 0% 0%, #1B4A9E 0%, transparent 55%), radial-gradient(70% 90% at 100% 100%, rgba(242,122,18,.28), transparent 60%), var(--brand-900); }
.pub-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: linear-gradient(90deg, var(--accent-500) 0 33.3%, #fff 33.3% 66.6%, #12A048 66.6%); }
.pub-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 80px; }
.pub-hero .pub-eyebrow { color: #FFC07F; }
.pub-hero h1 { margin: 0 0 18px; font-size: clamp(34px, 4.6vw, 56px); line-height: 1.05; letter-spacing: -.03em; color: #fff; }
.pub-hero h1 span { color: #FFB46B; }
.pub-lead { margin: 0 0 28px; font-size: clamp(16px, 1.4vw, 18.5px); line-height: 1.65; color: #C9D6EE; max-width: 58ch; }
.pub-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.pub-hero-points { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14.5px; }
.pub-hero-points li { display: flex; align-items: center; gap: 8px; }
.pub-hero-points svg { color: #4ADE80; width: 20px; height: 20px; }
.pub-hero-media img { width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; border-radius: 22px; box-shadow: 0 30px 60px rgba(0,0,0,.35); border: 6px solid rgba(255,255,255,.08); }
.pub-stats { background: #fff; border-bottom: 1px solid var(--u-line); }
.pub-stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding-top: 30px; padding-bottom: 30px; text-align: center; }
.pub-stats b { display: block; font-size: clamp(28px, 3vw, 38px); font-weight: 800; color: var(--brand-800); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pub-stats span { font-size: 14px; color: var(--u-muted); }
.pub-section { padding: 72px 0; }
.pub-section-alt { background: var(--u-bg); }
.pub-section-h { max-width: 680px; margin: 0 auto 36px; text-align: center; }
.pub-section-h h2 { margin: 0 0 10px; font-size: clamp(26px, 3vw, 36px); line-height: 1.15; letter-spacing: -.02em; color: var(--u-ink); }
.pub-section-h p { margin: 0; font-size: 16.5px; color: var(--u-muted); line-height: 1.6; }
.pub-section-h-row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; text-align: left; }
.pub-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.pub-features article { padding: 26px; border: 1px solid var(--u-line); border-radius: 18px; background: #fff; transition: box-shadow .2s, transform .2s; }
.pub-features article:hover { box-shadow: var(--u-shadow-2); transform: translateY(-2px); }
.pub-features span { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--brand-50); color: var(--brand-700); margin-bottom: 16px; }
.pub-features svg { width: 24px; height: 24px; }
.pub-features h3 { margin: 0 0 8px; font-size: 18px; color: var(--u-ink); }
.pub-features p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--u-muted); }
.pub-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.pub-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--u-line); border-radius: 16px; overflow: hidden; text-decoration: none; color: inherit; transition: box-shadow .2s, transform .2s; }
.pub-card:hover { box-shadow: var(--u-shadow-2); transform: translateY(-3px); text-decoration: none; }
.pub-card-cover { display: block; aspect-ratio: 16/9; background: #EEF1F5; overflow: hidden; }
.pub-card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pub-card-b { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; }
.pub-card strong { font-size: 17px; line-height: 1.3; color: var(--u-ink); }
.pub-card-x { font-size: 14px; color: var(--u-muted); line-height: 1.55; }
.pub-card-m { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--u-muted); }
.pub-card-m svg { width: 16px; height: 16px; }
.pub-tag { align-self: flex-start; display: inline-flex; padding: 3px 10px; border-radius: 99px; background: var(--accent-100); color: #8A3B00; font-size: 12px; font-weight: 700; }
.pub-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: s; }
.pub-steps li { position: relative; padding: 26px; border-radius: 18px; background: var(--u-bg); }
.pub-steps b { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand-800); color: #fff; font-size: 17px; margin-bottom: 14px; }
.pub-steps h3 { margin: 0 0 6px; font-size: 18px; color: var(--u-ink); }
.pub-steps p { margin: 0; color: var(--u-muted); line-height: 1.6; }
.pub-cta { background: linear-gradient(120deg, var(--brand-800), var(--brand-600)); color: #fff; }
.pub-cta-in { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-top: 48px; padding-bottom: 48px; }
.pub-cta h2 { margin: 0 0 6px; font-size: clamp(22px, 2.6vw, 30px); color: #fff; }
.pub-cta p { margin: 0; color: #CCD8F0; }
.pub-foot { background: var(--brand-900); color: #AFC0DE; font-size: 14.5px; }
.pub-foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-top: 48px; padding-bottom: 32px; }
.pub-foot-logo { background: #fff; border-radius: 12px; padding: 6px 10px; box-sizing: content-box; margin-bottom: 14px; }
.pub-foot p { margin: 0; line-height: 1.6; max-width: 40ch; }
.pub-foot h2 { margin: 0 0 12px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: #fff; }
.pub-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pub-foot a { color: #DCE5F5; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.pub-foot a:hover { color: #fff; text-decoration: underline; }
.pub-foot a svg { width: 16px; height: 16px; }
.pub-foot-b { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 18px; padding-bottom: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; }
.pub-flag { display: inline-flex; width: 42px; height: 8px; border-radius: 2px; overflow: hidden; }
.pub-flag i { flex: 1; } .pub-flag i:nth-child(1) { background: var(--accent-500); } .pub-flag i:nth-child(2) { background: #fff; } .pub-flag i:nth-child(3) { background: #12A048; }
@media (max-width: 960px) {
  .pub-hero-grid { grid-template-columns: 1fr; gap: 32px; padding-top: 48px; padding-bottom: 56px; }
  .pub-features, .pub-cards, .pub-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pub-foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .pub-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 20px; }
  .pub-features, .pub-cards, .pub-steps, .pub-foot-grid { grid-template-columns: 1fr; }
  .pub-section { padding: 52px 0; }
  .pub-hero-cta .btn { width: 100%; }
}

/* Fiche formation */
.crs-hero { background: linear-gradient(180deg, var(--brand-900), #0E2C6A); color: #D6E1F4; }
.crs-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; padding-top: 44px; padding-bottom: 48px; }
.crs-crumb { display: flex; gap: 8px; font-size: 13.5px; margin-bottom: 14px; color: #9FB3D8; }
.crs-crumb a { color: #fff; text-decoration: none; font-weight: 600; }
.crs-hero h1 { margin: 0 0 12px; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.12; letter-spacing: -.02em; color: #fff; }
.crs-lead { margin: 0 0 20px; font-size: 17px; line-height: 1.6; color: #C9D6EE; max-width: 62ch; }
.crs-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14.5px; }
.crs-facts li { display: flex; align-items: center; gap: 8px; }
.crs-facts svg { width: 18px; height: 18px; color: #FFB46B; }
.crs-card { background: #fff; color: var(--u-text); border-radius: 18px; overflow: hidden; box-shadow: var(--u-shadow-3); position: sticky; top: 88px; margin-bottom: -120px; }
.crs-card-cover { display: block; width: 100%; aspect-ratio: 16/9; height: auto; object-fit: cover; background: #EEF1F5; }
.crs-card-b { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.crs-price { margin: 0; font-size: 26px; font-weight: 800; color: var(--u-ink); }
.crs-note { display: flex; align-items: center; gap: 8px; margin: 2px 0 0; font-size: 13px; color: var(--u-muted); }
.crs-note svg { width: 16px; height: 16px; flex: none; }
.crs-incl { list-style: none; margin: 8px 0 0; padding: 12px 0 0; border-top: 1px solid var(--u-line); display: grid; gap: 8px; font-size: 13.5px; }
.crs-incl li { display: flex; align-items: center; gap: 8px; }
.crs-incl svg { width: 17px; height: 17px; color: var(--brand-600); flex: none; }
.crs-progress { display: flex; align-items: center; gap: 10px; }
.crs-progress span { flex: 1; height: 8px; border-radius: 99px; background: #E8ECF3; overflow: hidden; }
.crs-progress i { display: block; height: 100%; width: var(--w, 0%); background: linear-gradient(90deg, var(--brand-600), var(--green-700)); border-radius: inherit; }
.crs-progress b { font-size: 13px; color: var(--u-ink); }
.crs-body { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; }
.crs-main { min-width: 0; }
.crs-main h2 { margin: 28px 0 12px; font-size: 22px; color: var(--u-ink); }
.crs-main h2:first-child { margin-top: 0; }
.crs-prose { font-size: 16px; line-height: 1.75; color: var(--u-text); }
.crs-empty { color: var(--u-muted); }
.crs-program { display: flex; flex-direction: column; gap: 10px; }
.crs-mod { border: 1px solid var(--u-line); border-radius: 14px; overflow: hidden; background: #fff; }
.crs-mod summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; cursor: pointer; font-weight: 650; color: var(--u-ink); background: var(--u-surface-2); list-style: none; }
.crs-mod summary::-webkit-details-marker { display: none; }
.crs-mod summary::after { content: ""; width: 10px; height: 10px; border-right: 2px solid var(--u-muted); border-bottom: 2px solid var(--u-muted); transform: rotate(45deg); transition: transform .2s; margin-left: 8px; }
.crs-mod[open] summary::after { transform: rotate(-135deg); }
.crs-mod summary em { margin-left: auto; font-style: normal; font-size: 13px; font-weight: 500; color: var(--u-muted); }
.crs-mod ol { list-style: none; margin: 0; padding: 4px 0; }
.crs-mod li { display: flex; align-items: center; gap: 12px; padding: 11px 18px; border-top: 1px solid var(--u-line); font-size: 15px; }
.crs-li-i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--brand-50); color: var(--brand-700); flex: none; }
.crs-li-i svg { width: 16px; height: 16px; }
.crs-mod li.is-done .crs-li-i { background: var(--u-ok-bg); color: var(--u-ok); }
.crs-li-t { flex: 1; min-width: 0; }
.crs-li-d { font-size: 13px; color: var(--u-muted); white-space: nowrap; }
@media (max-width: 960px) {
  .crs-hero-grid, .crs-body { grid-template-columns: 1fr; }
  .crs-card { position: static; margin-bottom: 0; max-width: 520px; }
}

/* Écran Paramètres */
.st-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 18px; padding: 5px; background: var(--u-surface-2, #F4F6FA); border: 1px solid var(--u-line); border-radius: 14px; }
.st-tab { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--u-muted); text-decoration: none; }
.st-tab svg { width: 17px; height: 17px; }
.st-tab:hover { background: #fff; color: var(--u-ink); text-decoration: none; }
.st-tab.is-active { background: #fff; color: var(--brand-800); box-shadow: 0 1px 3px rgba(10,39,102,.12); }
.st-form { display: flex; flex-direction: column; gap: 16px; padding-bottom: 8px; }
.st-panel { margin: 0; }
.st-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 22px; }
.st-wide, .st-field-bool { grid-column: 1 / -1; }
.st-field-bool + .st-field-bool { margin-top: -4px; }
.st-hint { display: block; margin-top: -2px; font-size: 12.5px; color: var(--u-muted); }
.st-switch { display: flex; align-items: center; gap: 12px; padding: 10px 0; cursor: pointer; }
.st-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.st-switch-ui { position: relative; flex: none; width: 42px; height: 24px; border-radius: 99px; background: #CBD3DF; transition: background .2s; }
.st-switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .2s; }
.st-switch input:checked + .st-switch-ui { background: var(--green-700, #12A048); }
.st-switch input:checked + .st-switch-ui::after { transform: translateX(18px); }
.st-switch input:focus-visible + .st-switch-ui { outline: 3px solid rgba(27,74,158,.35); outline-offset: 2px; }
.st-switch-t { display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: var(--u-ink); }
.st-switch-t b { font-weight: 600; }
.st-switch-t small { font-size: 12.5px; color: var(--u-muted); }
.st-actions { position: sticky; bottom: 0; z-index: 5; display: flex; justify-content: flex-end; gap: 10px; padding: 12px 0; background: linear-gradient(180deg, transparent, var(--u-bg, #F5F7FB) 35%); }
.st-empty { margin: 0; color: var(--u-muted); }
@media (max-width: 720px) {
  .st-grid { grid-template-columns: 1fr; }
  .st-tabs { flex-wrap: nowrap; overflow-x: auto; }
  .st-tab { white-space: nowrap; }
  .st-actions .cc-btn { flex: 1; justify-content: center; }
}

/* Import de programme */
.im-drop { display: flex; align-items: center; gap: 14px; padding: 22px; border: 2px dashed #C6D0E0; border-radius: 14px; background: var(--u-surface-2, #F7F9FC); cursor: pointer; transition: border-color .2s, background .2s; }
.im-drop:hover, .im-drop:focus-within { border-color: var(--brand-600); background: var(--brand-50); }
.im-drop svg { width: 30px; height: 30px; color: var(--brand-700); flex: none; }
.im-drop span { display: flex; flex-direction: column; gap: 2px; }
.im-drop b { color: var(--u-ink); font-size: 15px; }
.im-drop small { color: var(--u-muted); }
.im-drop input[type=file] { margin-left: auto; max-width: 260px; font-size: 13px; }
.im-help { margin-top: 14px; font-size: 14px; color: var(--u-text); }
.im-help summary { cursor: pointer; font-weight: 600; color: var(--brand-700); }
.im-help ul { margin: 8px 0 0; padding-left: 20px; line-height: 1.7; }
.im-preview { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; scroll-margin-top: 90px; }
.im-file { font-size: 13px; color: var(--u-muted); }
.im-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.im-kpis div { padding: 12px; border-radius: 12px; background: var(--u-surface-2, #F4F6FA); text-align: center; }
.im-kpis b { display: block; font-size: 22px; color: var(--u-ink); }
.im-kpis span { font-size: 12.5px; color: var(--u-muted); }
.im-kpis .is-new { background: #EAF7EF; } .im-kpis .is-new b { color: #0D7A3A; }
.im-meta { margin: 0 0 6px; font-size: 14px; }
.im-bloc { margin: 18px 0 8px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-600, #C2410C); }
.im-theme { border: 1px solid var(--u-line); border-radius: 12px; margin-bottom: 8px; background: #fff; }
.im-theme summary { display: flex; align-items: center; gap: 10px; padding: 11px 14px; cursor: pointer; list-style: none; }
.im-theme summary::-webkit-details-marker { display: none; }
.im-pick input { width: 17px; height: 17px; accent-color: var(--brand-700); }
.im-num { flex: none; padding: 2px 8px; border-radius: 6px; background: var(--brand-50); color: var(--brand-800); font-size: 12px; font-weight: 700; }
.im-t { flex: 1; min-width: 0; font-weight: 600; color: var(--u-ink); }
.im-badge { flex: none; padding: 3px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; }
.im-badge.is-new { background: #EAF7EF; color: #0D7A3A; } .im-badge.is-old { background: #FFF4E5; color: #8A4B00; }
.im-mods { margin: 0; padding: 4px 14px 12px 40px; display: grid; gap: 10px; font-size: 14px; }
.im-mods li { display: flex; flex-direction: column; gap: 2px; }
.im-mods li.is-done { opacity: .55; }
.im-mods span { color: var(--u-text); } .im-mods small { color: var(--u-muted); }
.im-final { display: flex; flex-direction: column; gap: 6px; max-width: 640px; }
.im-note { margin: 4px 0 8px; font-size: 14px; color: var(--u-muted); }
.im-actions { display: flex; gap: 10px; justify-content: flex-end; }
@media (max-width: 720px) {
  .im-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .im-drop { flex-wrap: wrap; } .im-drop input[type=file] { margin-left: 0; max-width: 100%; }
  .im-theme summary { flex-wrap: wrap; } .im-actions .cc-btn { flex: 1; justify-content: center; }
}
.st-test { margin-top: 16px; }
.st-test-f { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.st-test-f .cc-field { flex: 1; min-width: 240px; margin: 0; }
.st-status { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; }
.st-status li { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; background: var(--u-surface-2, #F4F6FA); font-size: 13px; }
.st-status span { color: var(--u-muted); } .st-status b { color: var(--u-ink); font-weight: 600; word-break: break-word; }

/* Programmes */
.pg-tablewrap { overflow-x: auto; }
.pg-right { text-align: right; }
.pg-badge { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 650; background: #EEF1F5; color: #4A5468; }
.pg-badge[data-tone="ok"] { background: #EAF7EF; color: #0D7A3A; }
.pg-list { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; max-height: 560px; overflow: auto; padding-right: 4px; }
.pg-item { display: flex; align-items: center; gap: 14px; padding: 9px 12px; border: 1px solid var(--u-line); border-radius: 10px; background: #fff; }
.pg-item.is-on { border-color: #B8C7E6; background: #F6F9FF; }
.pg-pick { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; cursor: pointer; }
.pg-pick input, .pg-req input { width: 17px; height: 17px; accent-color: var(--brand-700); flex: none; }
.pg-pick span { display: flex; flex-direction: column; min-width: 0; }
.pg-pick b { font-size: 14px; font-weight: 600; color: var(--u-ink); }
.pg-pick small { font-size: 12px; color: var(--u-muted); }
.pg-ord { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--u-muted); }
.pg-ord input { width: 64px; padding: 6px 8px; border: 1px solid var(--u-line); border-radius: 8px; }
.pg-req { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--u-text); white-space: nowrap; }
.pg-bar { display: flex; align-items: center; gap: 8px; min-width: 140px; }
.pg-bar span { flex: 1; height: 7px; border-radius: 99px; background: #E8ECF3; overflow: hidden; }
.pg-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand-600), #12A048); }
.pg-bar b { font-size: 12.5px; }
.pg-pub-hero { padding-top: 48px; padding-bottom: 48px; }
.pg-card-top { display: flex; align-items: center; justify-content: space-between; padding: 18px 18px 0; color: var(--brand-700); }
.pg-card-top svg { width: 30px; height: 30px; }
.pg-card-top em { font-style: normal; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: var(--brand-50); }
.pg-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pg-steps li { display: flex; gap: 14px; padding: 14px 16px; border: 1px solid var(--u-line); border-radius: 14px; background: #fff; }
.pg-steps a { text-decoration: none; color: var(--u-ink); } .pg-steps a:hover strong { color: var(--brand-700); text-decoration: underline; }
.pg-steps p { margin: 4px 0; color: var(--u-muted); font-size: 14.5px; }
.pg-steps small { color: var(--u-muted); font-size: 13px; }
.pg-step-n { flex: none; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--brand-800); color: #fff; font-weight: 700; font-size: 14px; }
.pg-step-n svg { width: 16px; height: 16px; }
.pg-row.is-done .pg-step-n { background: #12A048; }
.pg-row .lp-row-main { gap: 4px; }
.pg-my { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; margin-bottom: 18px; }
.pg-my-card { display: flex; align-items: center; gap: 16px; padding: 18px; text-decoration: none; color: inherit; transition: box-shadow .2s, transform .2s; }
.pg-my-card:hover { box-shadow: var(--u-shadow-2); transform: translateY(-2px); text-decoration: none; }
.pg-my-b h2 { margin: 0 0 4px; font-size: 16px; color: var(--u-ink); }
.pg-my-b p { margin: 0 0 8px; }
.pg-hero { display: flex; align-items: center; gap: 26px; padding: 22px; margin-bottom: 18px; }
.pg-hero-b h2 { margin: 0 0 6px; font-size: 19px; color: var(--u-ink); }
.pg-hero-b p { margin: 0 0 12px; color: var(--u-text); }
@media (max-width: 720px) {
  .pg-item { flex-wrap: wrap; } .pg-pick { flex-basis: 100%; }
  .pg-hero { flex-direction: column; text-align: center; }
}

/* Questionnaires de satisfaction */
.sv-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sv-form { max-width: 760px; }
.sv-intro { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 10px 14px; border-radius: 10px; background: #EEF4FF; color: #1B3A78; font-size: 14px; }
.sv-intro svg { width: 18px; height: 18px; flex: none; }
.sv-q { border: 0; margin: 0; padding: 14px 0; border-top: 1px solid var(--u-line, #E6EAF0); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.sv-q legend { float: left; display: flex; flex-direction: column; gap: 2px; padding: 0; max-width: 420px; }
.sv-q legend b { font-size: 15px; color: var(--u-ink, #111827); }
.sv-q legend small { font-size: 13px; color: var(--u-muted, #6B7280); }
.sv-stars { display: inline-flex; flex-direction: row-reverse; gap: 4px; margin-left: auto; }
.sv-stars { position: relative; }
.sv-stars input, .sv-nps input { position: absolute; left: 0; top: 0; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; clip: rect(0 0 0 0); }
.sv-stars label { cursor: pointer; padding: 2px; border-radius: 8px; line-height: 0; }
.sv-stars svg { width: 34px; height: 34px; fill: #DDE2EA; transition: fill .12s, transform .12s; }
.sv-stars label:hover svg, .sv-stars label:hover ~ label svg, .sv-stars input:checked ~ label svg { fill: #F5A524; }
.sv-stars label:hover svg { transform: scale(1.08); }
.sv-stars input:focus-visible + label { outline: 3px solid rgba(27,74,158,.35); }
.sv-nps { display: flex; flex-wrap: wrap; gap: 5px; margin-left: auto; }
.sv-nps { position: relative; }
.sv-nps label { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; border: 1px solid #D5DBE5; font-weight: 600; font-size: 14px; cursor: pointer; background: #fff; color: #374151; }
.sv-nps label:hover { border-color: var(--brand-600, #1B4A9E); }
.sv-nps input:checked + label { background: var(--brand-800, #0A2766); border-color: var(--brand-800, #0A2766); color: #fff; }
.sv-nps input:focus-visible + label { outline: 3px solid rgba(27,74,158,.35); }
.sv-texts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding-top: 14px; border-top: 1px solid var(--u-line, #E6EAF0); }
.sv-texts textarea { width: 100%; }
.sv-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--u-line, #E6EAF0); background: var(--u-surface-2, #F7F9FC); }
.sv-banner { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-bottom: 14px; border-radius: 14px; background: linear-gradient(90deg, #FFF7E8, #FFFDF8); border: 1px solid #F6D9A8; }
.sv-banner-i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #F5A524; color: #fff; flex: none; }
.sv-banner-i svg { width: 20px; height: 20px; }
.sv-banner div { flex: 1; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.sv-banner span { color: #6B5A3A; font-size: 13px; }
@media (max-width: 720px) {
  .sv-q { flex-direction: column; align-items: flex-start; }
  .sv-stars, .sv-nps { margin-left: 0; }
  .sv-stars svg { width: 38px; height: 38px; }
  .sv-texts { grid-template-columns: 1fr; }
  .sv-banner { flex-wrap: wrap; }
}

/* Rapport de satisfaction */
.sat-filter select { min-width: 260px; max-width: 420px; padding: 9px 12px; border: 1px solid var(--u-line, #D9DEE7); border-radius: 10px; background: #fff; font: inherit; font-size: 14px; }
.sat-of { font-size: 14px; color: var(--u-muted, #6B7280); font-weight: 500; margin-left: 2px; }
.sat-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; }
.sat-bars, .sat-dist { display: flex; flex-direction: column; gap: 12px; }
.sat-bar, .sat-dist > div { display: grid; grid-template-columns: 170px 1fr 42px; align-items: center; gap: 12px; font-size: 13.5px; }
.sat-dist > div { grid-template-columns: 80px 1fr 36px; }
.sat-dist span { color: #F5A524; letter-spacing: 1px; }
.sat-bar i, .sat-dist i { height: 10px; border-radius: 99px; background: #EDF0F5; overflow: hidden; }
.sat-bar b, .sat-dist b { display: block; height: 100%; border-radius: inherit; background: var(--brand-600, #1B4A9E); }
.sat-dist b { background: #F5A524; }
.sat-bar[data-tone="ok"] b { background: #12A048; } .sat-bar[data-tone="mid"] b { background: #F5A524; } .sat-bar[data-tone="low"] b { background: #D64545; }
.sat-bar em, .sat-dist em { font-style: normal; font-weight: 700; text-align: right; color: var(--u-ink, #111827); }
.sat-pill { display: inline-block; min-width: 38px; text-align: center; padding: 2px 8px; border-radius: 99px; font-weight: 650; font-size: 12.5px; background: #EEF1F5; color: #4A5468; }
.sat-pill[data-tone="ok"] { background: #EAF7EF; color: #0D7A3A; } .sat-pill[data-tone="mid"] { background: #FFF4E0; color: #8A5300; } .sat-pill[data-tone="low"] { background: #FDECEC; color: #B42318; }
.sat-table th, .sat-table td { white-space: nowrap; }
.sat-comments { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.sat-c { padding: 12px 14px; border: 1px solid var(--u-line, #E6EAF0); border-radius: 12px; background: #fff; font-size: 14px; }
.sat-c header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.sat-c header small { color: var(--u-muted, #6B7280); font-size: 12px; width: 100%; }
.sat-c p { display: flex; gap: 8px; margin: 6px 0 0; line-height: 1.5; color: #374151; }
.sat-c em { font-style: normal; font-weight: 800; flex: none; }
.sat-plus { color: #12A048; } .sat-minus { color: #C2410C; }
.sat-note { font-size: 12.5px; }
@media (max-width: 900px) { .sat-grid { grid-template-columns: 1fr; } .sat-bar { grid-template-columns: 120px 1fr 38px; } }

/* Cohortes */
.co-preview { max-height: 420px; overflow: auto; border: 1px solid var(--u-line, #E6EAF0); border-radius: 10px; margin: 6px 0 14px; }
.co-preview thead th { position: sticky; top: 0; z-index: 1; }
.co-err td, .co-err th { color: #6B7385; }
.co-confirm { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.co-hint { margin: 10px 0 18px; }
.co-add { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--u-line, #E6EAF0); }
.co-add .cc-field { flex: 1; min-width: 240px; margin: 0; }
.co-search { padding: 7px 11px; border: 1px solid var(--u-line, #D9DEE7); border-radius: 9px; font: inherit; font-size: 13px; min-width: 200px; }
.co-edit summary { cursor: pointer; list-style: none; }
.co-edit summary::-webkit-details-marker { display: none; }
.co-edit[open] summary { border-bottom: 1px solid var(--u-line, #E6EAF0); }
.sat-pill[data-tone="info"] { background: #EAF1FF; color: #1B4A9E; }

/* Évaluation diagnostique */
.dg-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-bottom: 18px; }
.dg-card.is-todo { background: linear-gradient(90deg, #FFF7E8, #FFFDF8); border-color: #F6D9A8; }
.dg-card-b { flex: 1; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.dg-card-b span { color: var(--u-muted, #6B7280); font-size: 13px; }
.dg-intro .lp-panel-b { max-width: 720px; }
.dg-intro h2 { margin: 12px 0 8px; font-size: 20px; }
.dg-intro p { line-height: 1.65; }
.dg-rules { margin: 12px 0 18px; padding-left: 20px; line-height: 1.8; color: var(--u-text, #374151); }
.dg-form { max-width: 820px; }
.dg-theme { margin: 22px 0 10px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-600, #C2410C); }
.dg-q { border: 1px solid var(--u-line, #E6EAF0); padding: 16px 18px; margin: 0 0 10px; }
.dg-q legend { float: left; width: 100%; display: flex; gap: 10px; font-weight: 600; font-size: 15px; color: var(--u-ink, #111827); line-height: 1.5; margin-bottom: 10px; }
.dg-n { flex: none; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--brand-50, #EEF3FC); color: var(--brand-800, #0A2766); font-size: 12.5px; }
.dg-choices { clear: both; display: grid; gap: 7px; }
.dg-c { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid #DCE2EB; border-radius: 10px; cursor: pointer; font-size: 14.5px; line-height: 1.45; background: #fff; transition: border-color .15s, background .15s; }
.dg-c:hover { border-color: var(--brand-600, #1B4A9E); }
.dg-c input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--brand-700, #12357F); flex: none; }
.dg-c:has(input:checked) { border-color: var(--brand-700, #12357F); background: #F3F7FF; }
.dg-skip { color: var(--u-muted, #6B7280); border-style: dashed; }
.dg-actions { position: sticky; bottom: 0; justify-content: space-between; align-items: center; border: 1px solid var(--u-line, #E6EAF0); border-radius: 12px; }
.dg-res { display: flex; flex-direction: column; gap: 14px; }
.dg-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, 1fr); gap: 16px; align-items: center; }
.dg-row-t { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.dg-lvl { padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 650; }
.dg-lvl[data-l="low"] { background: #FDECEC; color: #B42318; } .dg-lvl[data-l="mid"] { background: #FFF4E0; color: #8A5300; } .dg-lvl[data-l="high"] { background: #EAF7EF; color: #0D7A3A; }
.dg-bars { display: flex; flex-direction: column; gap: 5px; }
.dg-after i { background: linear-gradient(90deg, #12A048, #34C26B) !important; }
.dg-legend { display: flex; align-items: center; gap: 8px; font-size: 12.5px; margin: 4px 0 0; }
.dg-legend i { display: inline-block; width: 14px; height: 6px; border-radius: 3px; }
.dg-k1 { background: var(--brand-600, #1B4A9E); } .dg-k2 { background: #12A048; margin-left: 10px; }
.dg-filter { margin: 0 0 14px; }
.dg-tbar { grid-template-columns: 220px 1fr 52px auto; }
.dg-post { color: #0D7A3A; font-size: 12px; white-space: nowrap; }
.dg-admin { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; align-items: start; }
.dq-choices { border: 0; padding: 0; margin: 0 0 12px; display: grid; gap: 7px; }
.dq-choices legend { font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--u-ink, #111827); }
.dq-c { display: flex; align-items: center; gap: 8px; }
.dq-c input[type=radio] { width: 17px; height: 17px; accent-color: #12A048; flex: none; }
.dq-l { width: 22px; font-weight: 700; color: var(--u-muted, #6B7280); }
.dq-c input[type=text] { flex: 1; padding: 8px 10px; border: 1px solid var(--u-line, #D9DEE7); border-radius: 8px; font: inherit; font-size: 14px; }
.dq-list { margin: 0 0 8px; padding-left: 22px; display: grid; gap: 8px; }
.dq-list li { padding: 8px 0; border-bottom: 1px solid var(--u-line, #EEF1F5); }
.dq-list li > div { display: inline-flex; flex-direction: column; gap: 2px; width: calc(100% - 210px); vertical-align: middle; font-size: 14px; }
.dq-list li small { color: var(--u-muted, #6B7280); font-size: 12.5px; }
.dq-list li form, .dq-list li > a { display: inline-block; vertical-align: middle; margin-left: 6px; }
.dq-list li.is-off { opacity: .55; }
@media (max-width: 900px) { .dg-admin { grid-template-columns: 1fr; } .dg-row { grid-template-columns: 1fr; } .dq-list li > div { width: 100%; } .dg-tbar { grid-template-columns: 1fr 52px; } .dg-tbar > i { grid-column: 1 / -1; } }

/* ═══ Page d'accueil ═══ */
.hm-hero { position: relative; overflow: hidden; color: #DCE5F5; background: radial-gradient(80% 120% at 0% 0%, #1B4A9E 0%, transparent 55%), radial-gradient(60% 80% at 100% 100%, rgba(242,122,18,.28), transparent 60%), var(--brand-900); }
.hm-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: linear-gradient(90deg, var(--accent-500) 0 33.3%, #fff 33.3% 66.6%, #12A048 66.6%); }
.hm-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; padding-top: clamp(40px, 7vw, 88px); padding-bottom: clamp(48px, 8vw, 104px); }
.hm-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); font-size: 13px; font-weight: 600; color: #E8EEF9; margin-bottom: 18px; }
.hm-dot { width: 8px; height: 8px; border-radius: 50%; background: #34C26B; box-shadow: 0 0 0 4px rgba(52,194,107,.2); }
.hm-hero h1 { margin: 0 0 18px; font-size: clamp(34px, 5.2vw, 62px); line-height: 1.04; letter-spacing: -.03em; color: #fff; }
.hm-hero h1 span { color: #FFB46B; }
.hm-lead { margin: 0 0 28px; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.65; color: #C9D6EE; max-width: 56ch; }
.hm-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hm-hero-points { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14.5px; }
.hm-hero-points li { display: flex; align-items: center; gap: 8px; }
.hm-hero-points svg { color: #4ADE80; width: 20px; height: 20px; flex: none; }
.hm-hero-media { position: relative; }
.hm-hero-media img { display: block; width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; border-radius: 24px; box-shadow: 0 30px 60px rgba(0,0,0,.35); border: 6px solid rgba(255,255,255,.08); }
.hm-float { position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: #fff; color: var(--u-ink); box-shadow: 0 18px 40px rgba(0,0,0,.22); font-size: 13px; }
.hm-float span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--brand-50); color: var(--brand-700); flex: none; }
.hm-float svg { width: 19px; height: 19px; }
.hm-float div { display: flex; flex-direction: column; line-height: 1.3; }
.hm-float small { color: var(--u-muted); }
.hm-float-a { left: -22px; bottom: 28px; }
.hm-float-b { right: -16px; top: 26px; }
.hm-float-b span { background: #EAF7EF; color: #0D7A3A; }
.hm-stats { background: #fff; border-bottom: 1px solid var(--u-line); }
.hm-stats-grid { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 12px; padding-top: 30px; padding-bottom: 30px; text-align: center; }
.hm-stats b { display: block; font-size: clamp(28px, 3vw, 38px); font-weight: 800; color: var(--brand-800); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.hm-stats span { font-size: 14px; color: var(--u-muted); }
.hm-prog { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hm-prog-txt h2 { margin: 0 0 12px; font-size: clamp(26px, 3vw, 36px); line-height: 1.15; letter-spacing: -.02em; color: var(--u-ink); }
.hm-prog-txt > p { margin: 0 0 22px; font-size: 16.5px; line-height: 1.65; color: var(--u-muted); }
.hm-prog-facts { list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.hm-prog-facts li { min-width: 110px; padding: 12px 16px; border-radius: 14px; background: var(--u-bg); border: 1px solid var(--u-line); }
.hm-prog-facts b { display: block; font-size: 26px; color: var(--brand-800); line-height: 1.1; }
.hm-prog-facts span { font-size: 13px; color: var(--u-muted); }
.hm-soon { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 10px 14px; border-radius: 12px; background: #FFF4E5; color: #8A4B00; font-weight: 600; font-size: 14.5px; }
.hm-soon svg { width: 18px; height: 18px; }
.hm-blocks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.hm-blocks li { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 16px; background: #fff; border: 1px solid var(--u-line); box-shadow: 0 1px 2px rgba(10,39,102,.04); transition: transform .2s, box-shadow .2s; }
.hm-blocks li:hover { transform: translateX(4px); box-shadow: var(--u-shadow-2); }
.hm-block-l { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, var(--brand-800), var(--brand-600)); color: #fff; font-weight: 800; font-size: 18px; }
.hm-blocks li:nth-child(2) .hm-block-l { background: linear-gradient(135deg, #C2410C, #F27A12); }
.hm-blocks li:nth-child(3) .hm-block-l { background: linear-gradient(135deg, #0D7A3A, #12A048); }
.hm-blocks li:nth-child(4) .hm-block-l { background: linear-gradient(135deg, #3B2A78, #6B53C9); }
.hm-blocks b { display: block; font-size: 15.5px; color: var(--u-ink); line-height: 1.35; }
.hm-blocks small { color: var(--u-muted); font-size: 13px; }
.hm-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.hm-features article { padding: 26px; border: 1px solid var(--u-line); border-radius: 18px; background: #fff; transition: box-shadow .2s, transform .2s; }
.hm-features article:hover { box-shadow: var(--u-shadow-2); transform: translateY(-2px); }
.hm-features span { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--brand-50); color: var(--brand-700); margin-bottom: 16px; }
.hm-features svg { width: 24px; height: 24px; }
.hm-features h3 { margin: 0 0 8px; font-size: 18px; color: var(--u-ink); }
.hm-features p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--u-muted); }
.hm-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; position: relative; }
.hm-steps li { position: relative; padding: 24px; border-radius: 18px; background: #fff; border: 1px solid var(--u-line); }
.hm-steps b { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--brand-800); color: #fff; font-size: 17px; margin-bottom: 14px; box-shadow: 0 0 0 6px var(--brand-50); }
.hm-steps li:last-child b { background: #12A048; box-shadow: 0 0 0 6px #EAF7EF; }
.hm-steps h3 { margin: 0 0 6px; font-size: 17px; color: var(--u-ink); }
.hm-steps p { margin: 0; color: var(--u-muted); line-height: 1.6; font-size: 14.5px; }
.hm-aud { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.hm-aud article { padding: 26px; border-radius: 18px; background: var(--u-bg); border: 1px solid var(--u-line); }
.hm-aud-i { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: #fff; color: var(--brand-700); box-shadow: 0 1px 3px rgba(10,39,102,.1); margin-bottom: 14px; }
.hm-aud-i svg { width: 22px; height: 22px; }
.hm-aud h3 { margin: 0 0 12px; font-size: 18px; color: var(--u-ink); }
.hm-aud ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.hm-aud li { position: relative; padding-left: 22px; font-size: 14.5px; line-height: 1.5; color: var(--u-text); }
.hm-aud li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-500); }
.hm-faq-wrap { max-width: 860px; }
.hm-faq { display: grid; gap: 10px; }
.hm-faq details { border: 1px solid var(--u-line); border-radius: 14px; background: #fff; }
.hm-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; cursor: pointer; font-weight: 650; font-size: 16px; color: var(--u-ink); list-style: none; }
.hm-faq summary::-webkit-details-marker { display: none; }
.hm-faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-50); color: var(--brand-800); font-size: 18px; font-weight: 600; transition: transform .2s; }
.hm-faq details[open] summary::after { transform: rotate(45deg); }
.hm-faq details p { margin: 0; padding: 0 20px 18px; line-height: 1.65; color: var(--u-text); }
.hm-faq summary:focus-visible { outline: 3px solid rgba(27,74,158,.35); border-radius: 14px; }
@media (max-width: 1080px) {
  .hm-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-float-a { left: 10px; } .hm-float-b { right: 10px; }
}
@media (max-width: 960px) {
  .hm-hero-grid, .hm-prog { grid-template-columns: 1fr; gap: 36px; }
  .hm-hero-media { max-width: 640px; }
  .hm-features, .hm-aud { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .hm-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 20px; }
  .hm-features, .hm-aud, .hm-steps { grid-template-columns: 1fr; }
  .hm-cta .btn { width: 100%; justify-content: center; }
  .hm-float { display: none; }
  .hm-hero-media img { border-radius: 18px; border-width: 4px; }
  .hm-features article, .hm-aud article, .hm-steps li { padding: 20px; }
  .hm-prog-facts li { flex: 1; min-width: 0; }
  .pub-section-h-row .btn { width: 100%; justify-content: center; }
}
@media (max-width: 620px) {
  .hm-stats-grid.hm-n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hm-n3 b { font-size: 26px; } .hm-n3 span { font-size: 12.5px; }
}
.pub-credit { margin-left: auto; margin-right: 14px; color: #AFC0DE; }
.pub-credit a { color: #fff; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.35); }
.pub-credit a:hover { border-bottom-color: #fff; text-decoration: none; }
@media (max-width: 620px) { .pub-foot-b { flex-wrap: wrap; } .pub-credit { order: 3; width: 100%; margin: 4px 0 0; } }

/* Prérequis entre formations */
.pq-box { border: 1px solid var(--u-line, #E6EAF0); border-radius: 12px; padding: 12px 14px; margin: 6px 0 14px; }
.pq-box legend { font-weight: 600; font-size: 13.5px; padding: 0 6px; }
.pq-search { width: 100%; margin: 8px 0; padding: 8px 10px; border: 1px solid var(--u-line, #D9DEE7); border-radius: 8px; font: inherit; font-size: 13.5px; }
.pq-list { max-height: 220px; overflow: auto; display: grid; gap: 2px; }
.pq-list label { display: flex; align-items: center; gap: 9px; padding: 6px 8px; border-radius: 8px; font-size: 13.5px; cursor: pointer; }
.pq-list label:hover { background: var(--u-hover, #F3F5F9); }
.pq-list input { width: 16px; height: 16px; accent-color: var(--brand-700, #12357F); flex: none; }
.pq-missing { list-style: none; margin: 10px 0 16px; padding: 0; display: grid; gap: 6px; text-align: left; }
.pq-missing a { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--u-line, #E6EAF0); border-radius: 10px; text-decoration: none; font-weight: 600; }
.pq-missing svg { width: 18px; height: 18px; flex: none; }
.pq-note { display: flex; gap: 14px; padding: 14px 16px; margin: 20px 0 6px; border-radius: 14px; background: #FFF7E8; border: 1px solid #F6D9A8; }
.pq-note > span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #F5A524; color: #fff; flex: none; }
.pq-note svg { width: 18px; height: 18px; }
.pq-note ul { margin: 6px 0 0; padding-left: 18px; }

/* Recommandations */
.rc-list { display: grid; gap: 8px; }
.rc-item { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border: 1px solid var(--u-line, #E6EAF0); border-radius: 12px; text-decoration: none; color: inherit; transition: border-color .15s, background .15s; }
.rc-item:hover { border-color: var(--brand-600, #1B4A9E); background: #F7FAFF; text-decoration: none; }
.rc-i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--brand-50, #EEF3FC); color: var(--brand-700, #12357F); flex: none; }
.rc-i svg { width: 18px; height: 18px; }
.rc-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.rc-b strong { font-size: 14.5px; color: var(--u-ink, #111827); }
.rc-why { font-size: 12.5px; color: var(--u-muted, #6B7280); }
.rc-why[data-tone="danger"] { color: #B42318; } .rc-why[data-tone="warn"] { color: #8A5300; } .rc-why[data-tone="ok"] { color: #0D7A3A; }
.rc-go { flex: none; font-size: 13px; font-weight: 650; color: var(--brand-700, #12357F); }
.rc-seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--u-surface-2, #F1F4F8); gap: 2px; }
.rc-seg a { padding: 6px 11px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--u-muted, #6B7280); text-decoration: none; }
.rc-seg a[aria-current="true"] { background: #fff; color: var(--brand-800, #0A2766); box-shadow: 0 1px 2px rgba(10,39,102,.12); }
.rc-hint { margin: 0; padding: 10px 18px 0; font-size: 13px; }
@media (max-width: 620px) { .rc-seg { width: 100%; } .rc-seg a { flex: 1; text-align: center; } .rc-go { display: none; } }

/* Gamification */
.gm-hero { display: flex; align-items: center; gap: 22px; padding: 20px 22px; margin-bottom: 16px; background: linear-gradient(120deg, #0A2766, #1B4A9E); color: #DCE5F5; border: 0; }
.gm-hero h2 { margin: 0 0 10px; color: #fff; font-size: 20px; }
.gm-hero .lp-mute { color: #C9D6EE; margin: 8px 0 0; }
.gm-hero-b { flex: 1; min-width: 0; }
.gm-lvl { flex: none; display: grid; place-items: center; align-content: center; width: 84px; height: 84px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #FFC26B, #F27A12); color: #fff; box-shadow: 0 0 0 6px rgba(255,255,255,.12); }
.gm-lvl-n { font-size: 32px; font-weight: 800; line-height: 1; }
.gm-lvl small { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; opacity: .9; }
.gm-lvl-sm { width: 46px; height: 46px; box-shadow: none; }
.gm-lvl-sm .gm-lvl-n { font-size: 20px; }
.gm-bar { display: block; height: 10px; border-radius: 99px; background: rgba(255,255,255,.18); overflow: hidden; }
.gm-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #FFB46B, #F27A12); }
.gm-count { flex: none; text-align: center; }
.gm-count b { display: block; font-size: 26px; color: #fff; }
.gm-count small { color: #C9D6EE; }
.gm-tabs { margin-bottom: 14px; }
.gm-badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.gm-badge { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 16px 12px; border-radius: 14px; border: 1px dashed #D5DBE5; background: #FAFBFD; color: #5F6878; }
.gm-badge-i { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: #EEF1F5; margin-bottom: 6px; }
.gm-badge-i svg { width: 26px; height: 26px; }
.gm-badge b { font-size: 14.5px; color: #4A5468; }
.gm-badge small { font-size: 12.5px; line-height: 1.4; }
.gm-badge em { font-style: normal; font-size: 11.5px; margin-top: 4px; }
.gm-badge.is-on { border: 1px solid #F6D9A8; background: linear-gradient(180deg, #FFF8EC, #fff); color: var(--u-muted, #6B7280); }
.gm-badge.is-on .gm-badge-i { background: radial-gradient(circle at 30% 30%, #FFC26B, #F27A12); color: #fff; box-shadow: 0 6px 14px rgba(242,122,18,.3); }
.gm-badge.is-on b { color: var(--u-ink, #111827); }
.gm-badge.is-on em { color: #0D7A3A; font-weight: 600; }
.gm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.gm-rules, .gm-hist { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.gm-rules li, .gm-hist li { display: grid; grid-template-columns: 1fr auto 110px; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--u-line, #EEF1F5); font-size: 14px; }
.gm-rules b, .gm-hist b { color: #0D7A3A; }
.gm-rules em, .gm-hist em { font-style: normal; font-size: 12.5px; color: var(--u-muted, #6B7280); text-align: right; }
.gm-opt-f { display: flex; align-items: center; gap: 14px; justify-content: space-between; flex-wrap: wrap; }
.gm-opt-f div { display: flex; flex-direction: column; gap: 3px; max-width: 620px; font-size: 14px; }
.gm-filters { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 12px; }
.gm-filters select { width: auto; min-width: 200px; padding: 8px 12px; border: 1px solid var(--u-line, #D9DEE7); border-radius: 10px; background: #fff; font: inherit; font-size: 14px; }
.gm-board { list-style: none; margin: 0; padding: 6px 0; }
.gm-board li { display: grid; grid-template-columns: 44px 1fr auto auto; gap: 12px; align-items: center; padding: 10px 18px; border-bottom: 1px solid var(--u-line, #EEF1F5); }
.gm-board li:last-child { border-bottom: 0; }
.gm-board li.is-me { background: #F3F7FF; }
.gm-rank { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #EEF1F5; font-weight: 800; color: #4A5468; }
.gm-board li.is-top:nth-child(1) .gm-rank { background: #F5B301; color: #fff; }
.gm-board li.is-top:nth-child(2) .gm-rank { background: #A7B0BE; color: #fff; }
.gm-board li.is-top:nth-child(3) .gm-rank { background: #C97A3D; color: #fff; }
.gm-board div { display: flex; flex-direction: column; min-width: 0; }
.gm-board small { color: var(--u-muted, #6B7280); font-size: 12.5px; }
.gm-nb { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: #8A5300; }
.gm-nb svg { width: 15px; height: 15px; }
.gm-board strong { font-variant-numeric: tabular-nums; color: var(--brand-800, #0A2766); }
.gm-mini { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-bottom: 16px; text-decoration: none; color: inherit; }
.gm-mini:hover { text-decoration: none; border-color: var(--brand-600, #1B4A9E); }
.gm-mini-b { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.gm-mini .gm-bar { background: #EDF0F5; height: 8px; }
@media (max-width: 760px) {
  .gm-hero { flex-wrap: wrap; } .gm-count { margin-left: auto; }
  .gm-grid { grid-template-columns: 1fr; }
  .gm-board li { grid-template-columns: 38px 1fr auto; } .gm-nb { display: none; }
  .gm-rules li, .gm-hist li { grid-template-columns: 1fr auto; } .gm-rules em, .gm-hist em { grid-column: 1 / -1; text-align: left; }
}

/* Hors ligne */
.of-box { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; padding: 10px 14px; border: 1px solid var(--u-line, #E6EAF0); border-radius: 12px; background: #fff; font-size: 13.5px; position: relative; overflow: hidden; }
.of-box[hidden] { display: none; }
.of-i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--brand-50, #EEF3FC); color: var(--brand-700, #12357F); flex: none; }
.of-i svg { width: 17px; height: 17px; }
.of-t { flex: 1; color: var(--u-text, #374151); }
.of-box.is-on { border-color: #BFE3CC; background: #F2FBF5; }
.of-box.is-on .of-i { background: #12A048; color: #fff; }
.of-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; }
.of-bar i { display: block; height: 100%; width: 0; background: var(--brand-600, #1B4A9E); transition: width .2s; }
.of-box.is-busy { opacity: .85; }
.lr-wm { position: fixed; right: 14px; bottom: 10px; z-index: 5; font-size: 11px; color: rgba(10,39,102,.22); pointer-events: none; user-select: none; letter-spacing: .02em; }
@media print { .lr-wm { position: fixed; right: 10mm; bottom: 8mm; color: rgba(0,0,0,.35); } }
html.is-offline body::before { content: "Hors connexion"; position: fixed; left: 50%; top: 8px; transform: translateX(-50%); z-index: 1000; padding: 5px 12px; border-radius: 99px; background: #17202E; color: #fff; font-size: 12.5px; font-weight: 600; box-shadow: 0 6px 16px rgba(0,0,0,.2); }
@media (max-width: 620px) { .of-box { flex-wrap: wrap; } .of-box .lp-btn { width: 100%; justify-content: center; } }
.of-allow { margin: 4px 0 12px; }

/* ═════════════ Phase 3 : compétences ═════════════ */
.cc-btn-danger { background: #fff; color: #A32B22; border-color: #E8BDB9; }
.cc-btn-danger:hover { background: #F7EDEC; }
.cp-del { margin-right: auto; }
.cp-tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 14px; }
.cp-inline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cp-inline input[type=file], .cp-inline select { flex: 1 1 200px; min-width: 0; padding: 8px; border: 1px solid var(--ln2, #D5D9E0); border-radius: 8px; font: inherit; font-size: 13.5px; background: #fff; }
.cp-search { display: flex; gap: 8px; flex: 1 1 260px; }
.cp-search input { flex: 1; min-width: 0; padding: 8px 10px; border: 1px solid var(--ln2, #D5D9E0); border-radius: 8px; font: inherit; font-size: 13.5px; }
.cp-domain { margin: 18px 18px 8px; font-size: 14px; font-weight: 700; display: flex; gap: 8px; align-items: baseline; }
.cp-levels { margin-bottom: 10px; font-size: 13.5px; }
.cp-levels summary { cursor: pointer; font-weight: 600; }
.cp-levels ol { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 4px; }
.cp-forms-w { max-height: 460px; overflow: auto; }
.cp-forms tr.is-on th { font-weight: 700; }
.cp-forms select { padding: 6px 8px; border: 1px solid var(--ln2, #D5D9E0); border-radius: 8px; font: inherit; font-size: 13px; background: #fff; }
.cm-filter { padding: 7px 10px; border: 1px solid var(--ln2, #D5D9E0); border-radius: 8px; font: inherit; font-size: 13.5px; min-width: 0; flex: 0 1 240px; }
.cm-wrap { max-height: 70vh; overflow: auto; }
.cm-table { border-collapse: separate; border-spacing: 0; }
.cm-table th.cm-sticky { position: sticky; left: 0; z-index: 2; background: #fff; min-width: 180px; }
.cm-table thead th { position: sticky; top: 0; z-index: 3; background: #F8FAFC; }
.cm-table thead th.cm-sticky { z-index: 4; }
.cm-h { text-align: center; white-space: nowrap; }
.cm-h abbr { text-decoration: none; display: block; font-size: 12px; }
.cm-h small { display: block; font-weight: 500; color: #525B6A; font-size: 11.5px; }
.cm-c { text-align: center; font-weight: 700; font-size: 13px; padding: 4px !important; }
.cm-c span:first-child { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; }
.cm-c[data-lvl="0"] { color: #8A93A3; }
[data-lvl="1"] > span:first-child, .cm-legend i[data-lvl="1"], .cl-lvl[data-lvl="1"] { background: #DCEBFB; color: #0B3B75; }
[data-lvl="2"] > span:first-child, .cm-legend i[data-lvl="2"], .cl-lvl[data-lvl="2"] { background: #A9CCF4; color: #0B3B75; }
[data-lvl="3"] > span:first-child, .cm-legend i[data-lvl="3"], .cl-lvl[data-lvl="3"] { background: #1F5FAF; color: #fff; }
[data-lvl="4"] > span:first-child, .cm-legend i[data-lvl="4"], .cl-lvl[data-lvl="4"] { background: #0B3B75; color: #fff; }
.cm-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 12px 18px; font-size: 12.5px; color: #525B6A; }
.cm-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cm-legend i { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 5px; font-style: normal; font-weight: 700; font-size: 11px; }
.cm-key { padding: 0 18px 16px; font-size: 13px; }
.cm-key summary { cursor: pointer; font-weight: 600; }
.cm-key ul { columns: 2 280px; margin: 8px 0 0; padding-left: 18px; }
.cl-list { display: grid; gap: 12px; }
.cl-item { border: 1px solid var(--ln, #E4E7EC); border-radius: 12px; padding: 14px; scroll-margin-top: 90px; }
.cl-item:target { border-color: #1F5FAF; box-shadow: 0 0 0 3px #DCEBFB; }
.cl-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.cl-top h3 { margin: 0 0 2px; font-size: 15px; }
.cl-lvl { flex: none; padding: 4px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 700; background: #F2F4F7; color: #525B6A; }
.cl-steps, .mc-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 10px 0; }
.cl-steps i { height: 8px; border-radius: 4px; background: #E4E7EC; }
.cl-steps i.is-on, .mc-steps i.is-on { background: #1F5FAF; }
.cl-steps i.is-target, .mc-steps i.is-target { outline: 2px dashed #0B3B75; outline-offset: 2px; }
.cl-ev { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 4px; font-size: 13px; color: #344054; }
.cl-ev em { color: #525B6A; font-style: normal; margin-left: 6px; }
.cl-ev q { display: block; color: #525B6A; font-style: italic; }
.cl-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; padding-top: 10px; border-top: 1px dashed var(--ln, #E4E7EC); }
.cl-form .cc-field { margin: 0; }
.cl-note { flex: 1 1 240px; }
.mc-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 12px; margin-bottom: 14px; }
.mc-kpis .lp-panel { padding: 16px; display: flex; align-items: baseline; gap: 10px; margin: 0; }
.mc-kpis b { font-size: 26px; }
.mc-scale { padding: 12px 16px; font-size: 14px; }
.mc-scale summary { cursor: pointer; font-weight: 600; }
.mc-scale ol { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 4px; }
.mc-list { display: grid; gap: 14px; }
.mc-item + .mc-item { border-top: 1px solid var(--lp-line, #E6EAF0); padding-top: 14px; }
.mc-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.mc-top h3 { margin: 0 0 2px; font-size: 15px; }
.mc-steps i { display: block; padding-top: 12px; border-radius: 4px; background: #E4E7EC; position: relative; font-style: normal; }
.mc-steps i span { position: absolute; top: 14px; left: 0; font-size: 11.5px; color: #525B6A; white-space: nowrap; }
.mc-steps { margin-bottom: 26px; }
.mc-ev { margin: 0; font-size: 13px; }
@media (max-width: 640px) {
  .mc-steps i span { display: none; }
  .mc-steps { margin-bottom: 10px; }
  .cl-top { flex-direction: column; }
  .cm-table th.cm-sticky { min-width: 130px; }
}

/* ═════════════ Phase 3 : SCORM / xAPI ═════════════ */
.pk-player { display: flex; flex-direction: column; gap: 8px; background: #fff; }
.pk-player:fullscreen { padding: 10px; }
.pk-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.pk-status { font-size: 13.5px; font-weight: 600; color: #1F5FAF; }
.pk-player[data-done="1"] .pk-status { color: #1F6B45; }
.pk-frame { width: 100%; height: min(78vh, 760px); min-height: 420px; border: 1px solid #E4E7EC; border-radius: 12px; background: #fff; }
.pk-player:fullscreen .pk-frame { height: calc(100vh - 70px); }
.pk-help { margin: 0; font-size: 12.5px; }
.pk-missing { display: flex; gap: 10px; align-items: flex-start; padding: 16px; border-radius: 12px; background: #F6F1E7; color: #6B4700; }
.pk-missing p { margin: 0; }
.pk-note { margin: 0 0 14px; padding: 12px 14px; border-radius: 10px; background: #F6F1E7; color: #6B4700; font-size: 13.5px; }
.pk-dl { display: grid; gap: 8px; margin: 0 0 14px; }
.pk-dl div { display: grid; grid-template-columns: minmax(140px, 220px) 1fr; gap: 10px; font-size: 13.5px; }
.pk-dl dt { color: #525B6A; }
.pk-dl dd { margin: 0; overflow-wrap: anywhere; }
.pk-kpi-s { font-size: 17px !important; }
.pk-up { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.pk-up .cc-field { flex: 1 1 280px; margin: 0; }
.pk-up input[type=file] { width: 100%; padding: 8px; border: 1px dashed #C3C9D2; border-radius: 10px; background: #FAFBFC; font: inherit; font-size: 13.5px; }
.pk-tips { margin: 14px 0 0; padding-left: 18px; display: grid; gap: 5px; font-size: 13px; color: #344054; }
.cc-pkg-box { padding: 12px 14px; border-radius: 10px; background: #EDF1F7; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.cc-pkg-box[hidden] { display: none; }
.cc-pkg-t { margin: 0; font-size: 13px; flex: 1 1 260px; }
.lp-btn[disabled] { opacity: .65; cursor: not-allowed; }
.xa-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); gap: 14px; }
.xa-secret { margin-bottom: 14px; padding: 14px; border-radius: 10px; background: #EDF4F0; border: 1px solid #B7D7C4; }
.xa-secret p { margin: 0 0 8px; }
.xa-new { margin-bottom: 14px; }
.xa-new input { flex: 2 1 240px; min-width: 0; padding: 8px 10px; border: 1px solid var(--ln2, #D5D9E0); border-radius: 8px; font: inherit; font-size: 13.5px; }
.xa-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.xa-filter select, .xa-filter input { padding: 7px 10px; border: 1px solid var(--ln2, #D5D9E0); border-radius: 8px; font: inherit; font-size: 13px; background: #fff; min-width: 0; }
.xa-obj small { display: block; color: #525B6A; font-size: 11.5px; overflow-wrap: anywhere; }
.xa-void td { text-decoration: line-through; color: #525B6A; }
@media (max-width: 640px) {
  .pk-dl div { grid-template-columns: 1fr; gap: 2px; }
  .pk-frame { min-height: 360px; height: 70vh; }
}

/* ═════════════ Phase 3 : analyses pédagogiques ═════════════ */
.an-filters { display: flex; flex-wrap: wrap; gap: 10px 14px; margin: 0 0 16px; padding: 12px 14px; background: #fff; border: 1px solid #E4E7EC; border-radius: 12px; }
.an-filters .cc-field { margin: 0; flex: 1 1 180px; min-width: 0; }
.an-filters select { width: 100%; }
.an-kpis .cc-kpi small { display: block; margin-top: 4px; font-size: 12px; color: #525B6A; font-weight: 500; }
.an-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 14px; }
.an-svg { display: block; width: 100%; height: auto; overflow: visible; }
.an-grid-l, .an-grid line, .an-svg .an-grid { stroke: #EEF0F3; stroke-width: 1; }
.an-svg .an-base { stroke: #C3C9D2; stroke-width: 1; }
.an-svg .an-tick { font-size: 15px; fill: #525B6A; font-family: inherit; }
.an-svg .an-bar { fill: #2a78d6; }
.an-svg .an-hit { fill: transparent; }
.an-svg .an-col:hover .an-hit { fill: rgba(42, 120, 214, .07); }
.an-svg .an-col:hover .an-bar { fill: #1F5FAF; }
.an-table-alt { margin: -4px 0 16px; font-size: 13px; }
.an-table-alt summary { cursor: pointer; color: #1F5FAF; font-weight: 600; padding: 4px 0; }
.an-funnel { display: grid; gap: 10px; }
.an-cols { grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 10px 24px; }
.an-fn { display: grid; grid-template-columns: minmax(110px, 38%) 1fr auto; align-items: center; gap: 10px; font-size: 13px; }
.an-fn > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.an-fn i { display: block; height: 12px; border-radius: 6px; background: #EEF0F3; overflow: hidden; }
.an-fn i b { display: block; height: 100%; border-radius: 6px; background: #2a78d6; }
.an-fn em { font-style: normal; font-weight: 700; min-width: 64px; text-align: right; }
.an-fn em small { font-weight: 500; color: #525B6A; }
.an-legend { display: inline-flex; gap: 14px; font-size: 12.5px; color: #344054; }
.an-legend span { display: inline-flex; align-items: center; gap: 6px; }
.an-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.an-k1 { background: #2a78d6; }
.an-k2 { background: #eb6834; }
.an-themes { display: grid; gap: 12px; }
.an-th { display: grid; grid-template-columns: minmax(120px, 36%) 1fr; gap: 10px; align-items: center; font-size: 13px; }
.an-th-t { overflow: hidden; text-overflow: ellipsis; }
.an-th-b { display: grid; gap: 3px; }
.an-th-b div { display: grid; grid-template-columns: 1fr 52px; align-items: center; gap: 8px; background: linear-gradient(#EEF0F3, #EEF0F3) left center / calc(100% - 60px) 10px no-repeat; }
.an-th-b i { display: block; height: 10px; border-radius: 5px; max-width: 100%; }
.an-th-b em { font-style: normal; font-size: 12px; color: #344054; text-align: right; }
.an-mini { display: inline-block; vertical-align: middle; width: 54px; height: 6px; margin-right: 8px; border-radius: 3px; background: #EEF0F3; overflow: hidden; }
.an-mini i { display: block; height: 100%; background: #2a78d6; border-radius: 3px; }
.an-table th small { display: block; color: #525B6A; font-weight: 500; font-size: 12px; }
@media (max-width: 640px) {
  .an-fn { grid-template-columns: 1fr auto; }
  .an-fn i { grid-column: 1 / -1; grid-row: 2; }
  .an-th { grid-template-columns: 1fr; gap: 4px; }
}
@media print {
  .an-filters, .an-table-alt, .cc-head-a { display: none !important; }
  .an-grid { grid-template-columns: 1fr 1fr; }
}
.an-table td { white-space: nowrap; }
.xa-filter { flex: 1 1 420px; justify-content: flex-end; }
.xa-filter select, .xa-filter input { width: auto !important; flex: 0 1 190px; }
@media (max-width: 640px) { .xa-filter select, .xa-filter input { flex: 1 1 100%; } }

/* ═════════════ Catalogue public (/parcours) ═════════════ */
.ct-hero { position: relative; overflow: hidden; color: #DCE5F5; background: radial-gradient(80% 120% at 0% 0%, #1B4A9E 0%, transparent 55%), radial-gradient(60% 90% at 100% 100%, rgba(242,122,18,.26), transparent 60%), var(--brand-900); }
.ct-hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px); background-size: 24px 24px; mask-image: linear-gradient(180deg, #000, transparent 85%); pointer-events: none; }
.ct-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: linear-gradient(90deg, var(--accent-500) 0 33.3%, #fff 33.3% 66.6%, #12A048 66.6%); }
.ct-hero-in { position: relative; text-align: center; padding-top: clamp(44px, 7vw, 84px); padding-bottom: clamp(48px, 7vw, 80px); }
.ct-hero h1 { max-width: 880px; margin: 0 auto 16px; font-size: clamp(32px, 4.6vw, 56px); line-height: 1.06; letter-spacing: -.03em; color: #fff; }
.ct-hero h1 span { display: block; color: #FFB46B; }
.ct-lead { max-width: 680px; margin: 0 auto 30px; font-size: clamp(16px, 1.5vw, 18px); line-height: 1.6; color: #C9D5EC; }
.ct-search { display: flex; align-items: stretch; gap: 8px; max-width: 900px; margin: 0 auto; padding: 8px; background: #fff; border-radius: 18px; box-shadow: 0 20px 50px rgba(0, 0, 0, .28); }
.ct-q { position: relative; flex: 2 1 280px; min-width: 0; }
.ct-q svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: #6B7586; pointer-events: none; }
.ct-search input, .ct-search select { width: 100%; height: 50px; border: 1px solid transparent; border-radius: 12px; background: #F4F6FA; font: inherit; font-size: 15px; color: var(--u-ink); }
.ct-search input { padding: 0 14px 0 44px; }
.ct-search select { flex: 1 1 200px; min-width: 0; width: auto; padding: 0 36px 0 14px; appearance: none; -webkit-appearance: none; cursor: pointer;
  background: #F4F6FA url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23525B6A' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 12px center; }
.ct-search input:focus, .ct-search select:focus { outline: none; border-color: var(--brand-600); background-color: #fff; box-shadow: 0 0 0 3px rgba(27, 74, 158, .18); }
.ct-go { flex: none; height: 50px; border-radius: 12px; padding: 0 22px; gap: 8px; }
.ct-go svg { width: 18px; height: 18px; }
.ct-facts { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin: 26px 0 0; padding: 0; font-size: 14.5px; color: #C9D5EC; }
.ct-facts li { display: inline-flex; align-items: center; gap: 7px; }
.ct-facts b { color: #fff; font-size: 16px; }
.ct-facts svg { width: 18px; height: 18px; color: #FFB46B; }

.ct-prog-band { padding: 26px 0 0; background: #F4F6FA; }
.ct-prog-band .pub-wrap { display: grid; gap: 12px; }
.ct-progcard { display: flex; align-items: center; gap: 18px; padding: 18px 22px; border-radius: 18px; background: #fff; border: 1px solid #E3E8EF; text-decoration: none !important; color: inherit; box-shadow: 0 1px 2px rgba(16,24,40,.04); transition: box-shadow .2s, transform .2s, border-color .2s; }
.ct-progcard:hover { border-color: #C8D3E6; box-shadow: 0 12px 30px rgba(16, 24, 40, .08); transform: translateY(-2px); }
.ct-progcard-i { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(135deg, var(--brand-800), var(--brand-600)); color: #fff; }
.ct-progcard-i svg { width: 26px; height: 26px; }
.ct-progcard-t { display: grid; gap: 2px; flex: 1; min-width: 0; }
.ct-progcard-t small { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-600, #C2410C); }
.ct-progcard-t b { font-size: 17px; color: var(--u-ink); line-height: 1.3; }
.ct-progcard-t em { font-style: normal; font-size: 13.5px; color: var(--u-muted); }
.ct-progcard-a { flex: none; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14.5px; color: var(--brand-600); }
.ct-progcard-a svg { width: 18px; height: 18px; transition: transform .2s; }
.ct-progcard:hover .ct-progcard-a svg { transform: translateX(3px); }

.ct-main { padding: 34px 0 72px; background: #F4F6FA; min-height: 40vh; }
.ct-bar-top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-bottom: 22px; }
.ct-count { margin: 0; font-size: 15px; color: var(--u-muted); }
.ct-count b { color: var(--u-ink); }
.ct-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ct-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px 6px 12px; border-radius: 99px; background: var(--brand-50); border: 1px solid var(--brand-100); font-size: 13.5px; font-weight: 600; color: var(--brand-800) !important; text-decoration: none !important; }
.ct-chip:hover { background: var(--brand-100); }
.ct-chip svg { width: 15px; height: 15px; }
.ct-reset { font-size: 13.5px; font-weight: 600; }
.ct-sort { display: flex; align-items: center; gap: 8px; margin-left: auto; font-size: 14px; color: var(--u-muted); }
.ct-sort select { height: 40px; padding: 0 34px 0 12px; border: 1px solid var(--u-line-2); border-radius: 10px; font: inherit; font-size: 14px; color: var(--u-ink); appearance: none; -webkit-appearance: none; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23525B6A' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 10px center; }

.ct-group + .ct-group { margin-top: 40px; }
.ct-group h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 21px; letter-spacing: -.01em; color: var(--u-ink); }
.ct-group h2 span { display: inline-grid; place-items: center; min-width: 28px; height: 24px; padding: 0 8px; border-radius: 99px; background: #E3E9F4; font-size: 13px; color: var(--brand-800); }
.ct-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ct-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid #E3E8EF; border-radius: 18px; overflow: hidden; transition: box-shadow .2s, transform .2s, border-color .2s; }
.ct-card:hover { border-color: #CBD5E4; box-shadow: 0 14px 34px rgba(16, 24, 40, .1); transform: translateY(-3px); }
.ct-card:focus-within { border-color: var(--brand-600); }
.ct-cover { display: block; aspect-ratio: 16 / 9; background: #E9EDF4; overflow: hidden; }
.ct-cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.ct-card:hover .ct-cover img { transform: scale(1.04); }
.ct-body { display: flex; flex-direction: column; flex: 1; gap: 10px; padding: 18px 20px 18px; }
.ct-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 24px; }
.ct-tag { display: inline-block; max-width: 100%; padding: 4px 10px; border-radius: 99px; background: #FFF1E6; color: #9A3412; font-size: 12px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-code { font-size: 12px; font-weight: 600; letter-spacing: .04em; color: #6B7586; }
.ct-card h3 { margin: 0; font-size: 18px; line-height: 1.3; letter-spacing: -.01em; }
.ct-card h3 a { color: var(--u-ink) !important; text-decoration: none !important; }
.ct-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.ct-card h3 a:focus-visible { outline: none; }
.ct-card h3 a:focus-visible::after { outline: 3px solid var(--brand-600); outline-offset: -3px; border-radius: 18px; }
.ct-x { margin: 0; font-size: 14px; line-height: 1.55; color: var(--u-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ct-meta { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 2px 0 0; padding: 0; font-size: 13px; color: #525B6A; }
.ct-meta li { display: inline-flex; align-items: center; gap: 5px; }
.ct-meta svg { width: 15px; height: 15px; color: #7A8496; }
.ct-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid #EEF1F5; }
.ct-more { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14.5px; color: var(--brand-600) !important; text-decoration: none !important; }
.ct-more svg { width: 17px; height: 17px; transition: transform .2s; }
.ct-card:hover .ct-more svg { transform: translateX(3px); }
.ct-foot .btn { position: relative; z-index: 2; }
.ct-prog { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #344054; }
.ct-bar { display: inline-block; width: 70px; height: 6px; border-radius: 3px; background: #E6EAF0; overflow: hidden; }
.ct-bar i { display: block; height: 100%; background: #1F6B45; border-radius: 3px; }
.ct-empty { max-width: 520px; margin: 30px auto; padding: 48px 28px; text-align: center; background: #fff; border: 1px dashed #CBD5E4; border-radius: 20px; }
.ct-empty-i { display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: 14px; border-radius: 50%; background: var(--brand-50); color: var(--brand-600); }
.ct-empty-i svg { width: 28px; height: 28px; }
.ct-empty h2 { margin: 0 0 8px; font-size: 21px; color: var(--u-ink); }
.ct-empty p { margin: 0 0 20px; color: var(--u-muted); }
.ct-cta-a { display: flex; flex-wrap: wrap; gap: 10px; }
.ct-cta-main { background: var(--accent-500); border-color: var(--accent-500); color: #1A1206 !important; font-weight: 700; }
.ct-cta-main:hover { background: #FF8A24; border-color: #FF8A24; }
.ct-cta-alt { background: transparent; border-color: rgba(255,255,255,.4); color: #fff !important; }
.ct-cta-alt:hover { background: rgba(255,255,255,.1); }
@media (max-width: 1024px) { .ct-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .ct-search { flex-wrap: wrap; padding: 8px; border-radius: 16px; }
  .ct-q { flex-basis: 100%; }
  .ct-search select { flex: 1 1 100%; }
  .ct-go { flex: 1 1 100%; justify-content: center; }
  .ct-progcard { flex-wrap: wrap; gap: 12px 14px; padding: 16px; }
  .ct-progcard-a { width: 100%; justify-content: flex-end; }
  .ct-sort { margin-left: 0; width: 100%; }
  .ct-sort select { flex: 1; }
}
@media (max-width: 600px) {
  .ct-grid { grid-template-columns: 1fr; gap: 16px; }
  .ct-facts { gap: 6px 16px; font-size: 13.5px; }
  .ct-cta-a .btn { flex: 1 1 100%; justify-content: center; }
}
